:root { color-scheme: light dark; --paper: #f0efdf; --surface: #faf9ed; --ink: #1d2420; --muted: #465347; --line: #a8af9d; --accent: #c4ed89; --mark: #ca6c1b; --lineplot: #1f4f6b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
header, main, footer { width: min(100% - 2rem, 72rem); margin-inline: auto; }
header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
a { color: inherit; text-underline-offset: .2em; }
main { padding-block: 2.4rem 3rem; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.12; letter-spacing: -.04em; margin: .4rem 0 1rem; overflow-wrap: anywhere; }
h2 { margin-top: 0; font-size: 1.15rem; }
.eyebrow { font-family: ui-monospace, monospace; color: var(--muted); margin-bottom: 0; }
.intro { max-width: 46rem; font-size: 1.12rem; }
section { padding: clamp(1rem, 3vw, 1.6rem); margin-block: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.controls { display: flex; flex-wrap: wrap; gap: .8rem; }
.field { min-width: min(100%, 14rem); }
.field.grow { flex: 1 1 18rem; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
input, select { display: block; width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--paper); color: var(--ink); font: 1rem/1.4 system-ui, sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.chips button { min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--accent); color: #17201c; font: 650 .9rem/1.3 system-ui, sans-serif; cursor: pointer; }
.chips button[aria-pressed="true"] { outline: 2px solid var(--mark); outline-offset: 1px; }
#finding { font-size: 1.08rem; max-width: 48rem; }
.chart { height: clamp(160px, 28vw, 240px); margin: .2rem 0 1rem; }
.chart svg { width: 100%; height: 100%; display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 650; margin-bottom: .4rem; }
th, td { text-align: left; padding: .45rem .55rem; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td.missing { color: var(--muted); }
aside { border-left: 3px solid var(--line); padding-left: 1rem; max-width: 46rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }
.skip { position: absolute; top: -10rem; left: 1rem; padding: .5rem; background: var(--surface); }
.skip:focus { top: .5rem; }
[hidden] { display: none !important; }
@media (max-width: 40rem) { main { padding-block: 1.4rem 2rem; } }
@media (prefers-color-scheme: dark) {
  :root { --paper: #17201c; --surface: #222d26; --ink: #f0efdf; --muted: #c3cfbc; --line: #64755d; --lineplot: #9ec4de; }
  .chips button { color: #17201c; }
}
