: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-secondary { color: #d2e2e8; font-weight: 500; margin-inline-start: .25rem; }
.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; }

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; }
  .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; }
}

.text-results-card .text-points {
  width: clamp(5rem, 12vw, 8rem);
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.result-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.valuation-detail {
  margin: 0 clamp(1rem, 3.4vw, 2rem) 1.25rem;
}
.valuation-detail h4 { margin: 0 0 .6rem; }
.valuation-table { border: 1px solid var(--line); border-radius: .65rem; }
.valuation-note { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.valuation-note + .page-footer { margin-top: .75rem; }
@media (max-width: 31rem) {
  .text-results-card .text-points { width: 3.35rem; }
  .valuation-table .text-points { width: 4rem; }
}
