:root {
  color-scheme: light;
  --surface: #fff;
  --paper: #f1f6f7;
  --ink: #112f3d;
  --muted: #48606a;
  --line: #d7e3e6;
  --accent: #00665d;
  --accent-strong: #004b45;
  --accent-tint: #e6f4f0;
  --focus: #007f72;
  --shadow: 0 12px 32px #173b4b09, 0 2px 5px #173b4b08;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-inline-size: 18rem; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-strong); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(67.5rem, calc(100% - 5rem)); margin-inline: auto; }
.masthead { color: #fff; background: #102b3b; border-bottom: 1px solid #224553; }
.masthead-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; font-size: 1rem; font-weight: 700; }
.brand-mark { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border-radius: .55rem; background: #bfebe0; color: #174c46; }
.brand-mark span { width: .78rem; height: 1rem; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.brand-mark span::after { content: ""; position: absolute; top: .29rem; left: .12rem; right: .12rem; height: .28rem; border-block: 1.5px solid currentColor; }
.privacy { display: inline-flex; align-items: center; gap: .55rem; color: #d1e9e6; font-size: .875rem; white-space: nowrap; }
.icon-lock { width: .75rem; height: .58rem; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-top: .3rem; }
.icon-lock::before { content: ""; width: .43rem; height: .35rem; position: absolute; left: 50%; translate: -50% 0; bottom: 100%; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; }

main { padding-block: clamp(2.25rem, 5vw, 4.4rem) 2.5rem; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
h1 { font-size: clamp(2.1rem, 4.7vw, 3.5rem); line-height: 1.08; letter-spacing: -.048em; font-weight: 720; }
.intro p { color: var(--muted); font-size: 1.12rem; margin-top: .75rem; }
.edition { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; margin-bottom: .15rem; background: #e6eef0; border: 1px solid #dce7e9; border-radius: .75rem; white-space: nowrap; }
.edition strong, .edition div span { display: block; }
.edition strong { font-size: .91rem; }
.edition div span { color: var(--muted); font-size: .83rem; }
.icon-document { flex: none; position: relative; width: .875rem; height: 1.1rem; color: var(--accent); border: 1.6px solid currentColor; border-radius: 2px; }
.icon-document::after { content: ""; position: absolute; top: .31rem; height: .31rem; left: .13rem; right: .13rem; border-block: 1px solid currentColor; }

.card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 1rem; }
.search-card { padding: clamp(1rem, 3vw, 1.7rem) clamp(1rem, 3.4vw, 2rem); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
label { font-weight: 650; }
.shortcut { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .875rem; }
kbd { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.5rem; padding-inline: .25rem; color: var(--muted); background: #f6f9fa; border: 1px solid #d1dfe2; border-radius: .32rem; font: inherit; line-height: 1; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.search-input { display: flex; align-items: center; gap: .65rem; padding-inline: 1rem .55rem; min-height: 3.35rem; background: #f8fbfc; border: 1px solid #aabfc5; border-radius: .65rem; }
.search-input:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.icon-search { position: relative; width: .95rem; height: .95rem; border: 1.8px solid #46717a; border-radius: 50%; flex: none; margin-inline-end: .15rem; }
.icon-search::after { content: ""; position: absolute; width: .46rem; height: 1.8px; background: #46717a; transform: rotate(46deg); transform-origin: 0 50%; top: .69rem; left: .64rem; }
input { width: 100%; min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0 !important; padding-block: .52rem; font-size: 1.18rem; font-weight: 600; letter-spacing: .015em; caret-color: var(--accent); }
input::placeholder { color: #617981; opacity: 1; font-weight: 400; }
input::-webkit-search-cancel-button { display: none; }
.clear { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; background: transparent; border: 0; border-radius: .4rem; color: var(--muted); font-size: 1.45rem; line-height: 1; }
.clear:hover { color: var(--ink); background: #e1ebed; }
.primary { border: 1px solid transparent; border-radius: .65rem; padding-inline: clamp(.9rem, 3vw, 2rem); background: var(--accent); color: white; font-weight: 650; }
.primary:hover { background: var(--accent-strong); }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.examples > span { margin-inline-end: .2rem; }
.examples button { color: var(--accent-strong); background: #f3f8f8; border: 1px solid #dce8e9; border-radius: .45rem; padding: .22rem .62rem; font-weight: 650; }
.examples button:hover { background: var(--accent-tint); border-color: #aacdc4; }

.result-area { margin-top: 2rem; }
.result-header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .65rem; }
.result-header h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.012em; }
.result-header > span { color: var(--muted); font-size: .875rem; }
.result-card { overflow: hidden; }
.result-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 29%); gap: 1.25rem; padding: clamp(1rem, 3.4vw, 2rem); }
.service { align-self: center; min-width: 0; }
.code-badge { display: inline-block; border-radius: .4rem; background: var(--accent-tint); color: var(--accent-strong); padding: .24rem .65rem; font-size: .925rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.service h3 { margin-top: .68rem; font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.21; letter-spacing: -.018em; overflow-wrap: anywhere; }
.method { margin-top: .55rem; color: var(--muted); }
.price { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .28rem; padding: 1rem 1.25rem; border-radius: .7rem; background: #edf7f4; }
.price-label { color: #335a55; font-size: .91rem; font-weight: 650; }
.price-amount { color: var(--accent-strong); font-size: clamp(1.65rem, 3.65vw, 2.65rem); line-height: 1.15; letter-spacing: -.038em; font-variant-numeric: tabular-nums; }
.price-amount.is-text { font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -.023em; }
.price-caption { color: #406562; font-size: .875rem; }
.source-note { margin: 0 clamp(1rem, 3.4vw, 2rem) 1.2rem; color: var(--muted); font-size: .94rem; }
.result-details { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: .88rem clamp(1rem, 3.4vw, 2rem); border-top: 1px solid var(--line); background: #fbfdfd; }
.detail { display: flex; align-items: baseline; gap: .65rem; min-width: 0; font-size: .9rem; }
.detail-label { color: var(--muted); }
.detail strong, .detail a { font-weight: 650; }
.text-results-card { overflow: hidden; }
.text-results-card table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.text-results-card th, .text-results-card td { padding: .8rem 1rem; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.text-results-card th:first-child, .text-results-card td:first-child { padding-left: clamp(.7rem, 3vw, 2rem); }
.text-results-card th:last-child, .text-results-card td:last-child { padding-right: clamp(.7rem, 3vw, 2rem); }
.text-results-card th { background: #f8fbfc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.text-results-card tr + tr td { border-top: 1px solid var(--line); }
.text-results-card tbody tr:hover { background: #f8fbfa; }
.text-results-card .text-number { width: clamp(6.25rem, 13vw, 9.5rem); }
.text-results-card .text-fee { width: clamp(6rem, 19vw, 12.5rem); text-align: end; }
td.text-fee { color: var(--accent-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.text-number .code-badge { padding: .16rem .45rem; font-size: .875rem; }
.result-link { display: inline; padding: 0; border: 0; background: none; color: var(--accent-strong); text-align: start; font-weight: 650; text-decoration: underline; text-decoration-color: #83aaa1; text-underline-offset: .22em; }
.result-link:hover { text-decoration-color: currentColor; text-decoration-thickness: .13em; }
.result-method { display: block; color: var(--muted); margin-top: .25rem; font-size: .875rem; }
.secondary { border: 1px solid #aabfc5; border-radius: .55rem; padding: .5rem .85rem; background: var(--surface); color: var(--accent-strong); font-weight: 650; }
.secondary:hover { background: var(--accent-tint); }
.back-to-results { margin-bottom: .75rem; }
.more-results { display: flex; justify-content: center; }
.more-results button { margin-top: .9rem; }
.empty-card { min-height: 10rem; padding: clamp(1rem, 3.4vw, 2rem); }
.empty-card h3 { font-size: 1.16rem; }
.empty-card p { margin-top: .45rem; color: var(--muted); overflow-wrap: anywhere; }
.page-footer { display: flex; align-items: start; justify-content: space-between; gap: .65rem 1.25rem; border-top: 1px solid #cfdde0; margin-top: 2rem; padding-top: .9rem; color: var(--muted); font-size: .875rem; }
.page-footer > div { display: flex; flex-wrap: wrap; gap: .12rem .65rem; }
.footer-label { color: var(--ink); font-weight: 650; }
.page-footer a { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .intro { align-items: start; flex-direction: column; gap: 1rem; margin-bottom: 1.35rem; }
  .edition { padding: .45rem .65rem; }
  .edition > div { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
  .result-main { grid-template-columns: minmax(0, 1fr) minmax(9rem, 34%); }
  .price { padding: .85rem; }
}

@media (max-width: 31rem) {
  .brand-secondary { display: none; }
  .privacy { font-size: .8rem; }
  .shortcut { display: none; }
  .search-row { gap: .45rem; }
  .search-input { padding-inline: .75rem .3rem; }
  .result-main { grid-template-columns: 1fr; }
  .text-results-card th, .text-results-card td { padding: .65rem .35rem; }
  .text-results-card .text-number { width: 5.6rem; }
  .text-results-card .text-fee { width: 5rem; }
  .page-footer { flex-direction: column; }
}

.brand { flex: none; color: white; text-decoration: none; }
.main-nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: .24rem .4rem; }
.main-nav a { color: #d9e8ed; padding: .45rem .68rem; border-radius: .38rem; text-decoration: none; font-size: .94rem; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: white; background: #284b58; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .55rem 1rem; color: var(--ink); background: white; translate: 0 -150%; }
.skip-link:focus { translate: 0; }
.result-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.price-caption { overflow-wrap: anywhere; }
.source-note h4 { margin: 0 0 .35rem; color: var(--ink); font-size: .96rem; }
.source-note p + p { margin-top: .36rem; }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-top: 1rem; }
.law-results { margin-top: 1rem; }
.law-results h3 { margin-bottom: .55rem; font-size: 1.02rem; }
.law-results-list { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.law-results-list li { padding: .82rem clamp(1rem, 3.4vw, 2rem); }
.law-results-list li + li { border-top: 1px solid var(--line); }
.law-results-list a { font-weight: 650; }
.law-results-list p { margin-top: .33rem; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.law-page .intro { align-items: start; }
.law-toc, .law-content, .law-footnotes { padding: clamp(1rem, 4vw, 2rem); }
.law-toc { margin-bottom: 1.15rem; }
.law-page h2 { font-size: 1.25rem; }
.law-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.8rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.law-content section, .law-content .law-block, .law-footnotes { margin-top: 1.5rem; }
.law-content p { margin-block: .52rem; }
.law-content > .law-block:first-child { margin-top: 0; }
.law-content > .law-block + .law-block { margin-top: .6rem; }
.law-page [id] { scroll-margin-top: 1rem; }
.law-page :target { background-color: #f5f2cf; }
.law-content .law-list { list-style: none; padding: 0; margin: .48rem 0 .65rem; }
.law-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .58rem; padding-inline-start: .35rem; }
.law-list li + li { margin-top: .28rem; }
.law-list-marker { min-width: 1.3rem; font-variant-numeric: tabular-nums; }
.law-content .law-table { overflow-x: auto; width: 100%; margin-block: .65rem; }
.law-table table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.law-table caption { font-weight: 700; text-align: start; padding-block: .35rem; }
.law-table th, .law-table td { padding: .42rem .62rem; border-bottom: 1px solid #dce6e9; vertical-align: top; text-align: start; }
.law-table th { background: #edf4f5; }
.law-table td.numeric, .law-table th.numeric { text-align: end; font-variant-numeric: tabular-nums; }
.law-table td.numeric:not([colspan]) { white-space: nowrap; }
.law-content .law-reference, .law-footnotes { color: var(--muted); }
.printed-index { margin-block: .85rem; }
.printed-index summary { cursor: pointer; font-weight: 650; }
.law-footnotes h2 { margin-bottom: .48rem; }

@media (max-width: 46rem) {
  .masthead-inner { flex-wrap: wrap; padding-block: .75rem; gap: .3rem .55rem; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav a { padding: .38rem .55rem; font-size: .88rem; }
  .law-toc ul { grid-template-columns: 1fr; }
}

.factor-panel { margin: 0 clamp(1rem, 3.4vw, 2rem) 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.factor-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem .9rem; }
.factor-header h4 { margin: 0; font-size: 1.04rem; }
.factor-class { padding: .12rem .62rem; border-radius: .42rem; color: var(--accent-strong); background: var(--accent-tint); font-size: .875rem; font-weight: 650; }
.factor-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .65rem 0 0; }
.factor-value { padding: .68rem .85rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8fbfb; }
.factor-value:only-child { grid-column: 1 / -1; }
.factor-value dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.factor-value dd { margin: 0; font-variant-numeric: tabular-nums; }
.factor-multiplier { color: var(--ink); font-size: 1.26rem; font-weight: 700; }
.factor-fee { color: var(--accent-strong); font-size: 1rem; font-weight: 600; }
.factor-special, .factor-condition, .factor-references { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.factor-condition { padding: .52rem .72rem; background: #edf4f5; border-radius: .38rem; }
.factor-references { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.factor-explanation { margin-top: 1.3rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: #f8fbfb; }
.factor-explanation summary { cursor: pointer; font-weight: 650; }
.factor-explanation p { margin-top: .5rem; color: var(--muted); }

@media (max-width: 32rem) {
  .factor-values { grid-template-columns: 1fr; gap: .4rem; }
  .factor-value { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .22rem .62rem; }
  .factor-value:only-child { grid-template-columns: 1fr auto; }
  .factor-value:only-child .factor-fee { grid-column: 2; text-align: end; }
  .factor-multiplier { font-size: 1.05rem; }
}
