:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #59636e;
  --brand: #145c4f;
  --brand-dark: #0e443b;
  --accent: #e9f5f1;
  --surface: #fff;
  --line: #d8e0de;
  --danger: #a52a2a;
  --max: 70rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f9f8; overflow-wrap: anywhere; }
a { color: var(--brand-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #f3a712; outline-offset: 3px; }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, main, .footer-inner { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1rem; }
.brand { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 1.15rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: 0; }
main { padding-block: 1.25rem 4rem; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero { padding: clamp(2rem, 8vw, 5rem) 0; max-width: 48rem; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(2rem, 8vw, 3.6rem); margin: 0 0 1rem; letter-spacing: -.03em; }
h2 { margin-top: 2.5rem; }
.lead { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--muted); }
.button { display: inline-block; border: 0; border-radius: .5rem; padding: .8rem 1.15rem; background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand); }
.card, form, .result { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 4vw, 2rem); box-shadow: 0 .25rem 1rem rgb(20 60 50 / 6%); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.field { margin-bottom: 1.25rem; }
label, legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.hint { display: block; color: var(--muted); font-size: .9rem; }
input, select { width: 100%; min-height: 2.75rem; border: 1px solid #8b9895; border-radius: .35rem; padding: .55rem .7rem; background: #fff; color: var(--ink); font: inherit; }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.error-summary { border-left: .3rem solid var(--danger); background: #fff1f1; padding: .8rem 1rem; color: #711; margin-bottom: 1rem; }
.field-error { color: var(--danger); font-size: .9rem; margin: .25rem 0 0; }
.result { margin-top: 1.5rem; border-top: .35rem solid var(--brand); }
.result[hidden] { display: none; }
.metric { font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 800; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.notice { background: #fff8df; border: 1px solid #ead487; padding: .8rem 1rem; border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .65rem .4rem; vertical-align: top; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; }
.table-scroll table { min-width: 64rem; background: var(--surface); }
.table-scroll:focus-visible { outline: 3px solid #f3a712; outline-offset: 3px; }
details { border-top: 1px solid var(--line); padding: .8rem 0; }
summary { cursor: pointer; font-weight: 700; }
.prose { max-width: 48rem; }
footer { background: #eaf0ee; padding-block: 2rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; }
.skip { position: absolute; left: -9999px; top: .5rem; background: #fff; padding: .5rem; z-index: 10; }
.skip:focus { left: .5rem; }
.analytics-consent { position: fixed; z-index: 100; inset: auto 0 0; padding: .75rem; background: rgb(23 32 42 / 92%); }
.analytics-consent__inner { width: min(100%, var(--max)); margin-inline: auto; padding: 1rem; border-radius: .75rem; background: var(--surface); box-shadow: 0 -.25rem 1.5rem rgb(0 0 0 / 20%); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.analytics-consent h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.analytics-consent p { margin: 0; }
.analytics-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: .6rem; }
.analytics-consent__actions .button { width: 100%; }
@media (max-width: 35rem) { nav { width: 100%; } nav ul { justify-content: space-between; } th, td { display: block; width: 100%; } th { padding-bottom: 0; border: 0; } }
@media (max-width: 35rem) { .table-scroll th, .table-scroll td { display: table-cell; width: auto; padding: .65rem; border-bottom: 1px solid var(--line); } }
@media (max-width: 42rem) { .analytics-consent__inner { grid-template-columns: 1fr; } .analytics-consent__actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 22rem) { .analytics-consent__actions { grid-template-columns: 1fr; } }
@media print { header, footer, .button { display: none; } body { background: #fff; } .card, form, .result { box-shadow: none; } }
