/* Quarterwatt — site styles. No external resources: fonts are served from /assets/fonts. */

@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/stix-two-text-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/stix-two-text-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-text-greek-400-italic.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }

:root {
  color-scheme: light;
  --ink: #0f1c2e;          /* Ink of the logo kit: headings, primary text, dark bands */
  --ink-2: #3d4d66;        /* body text on white */
  --muted: #566277;        /* captions, axis text: 4.5:1 on white and on the wash */
  --paper: #ffffff;
  --wash: #f1f4f8;         /* quiet panels */
  --rule: #d8dee8;
  --link: #1c5cab;
  --amber: #e8710a;        /* Quarter Orange of the logo kit: the slice and small accents only, never text */
  --amber-wash: #fdf0e2;
  --ok: #1a7f4b;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #6250d6;
  --serif: "STIX Two Text", "STIX Two", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 68ch;
  --page: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--serif);
  font-size: 1.125rem; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
sub { font-size: 0.72em; line-height: 0; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--wash); padding: 0.08em 0.32em; border-radius: 3px; color: var(--ink); }
pre { background: var(--ink); color: #e8eef7; padding: 1.1rem 1.25rem; border-radius: 6px; overflow-x: auto;
  line-height: 1.55; margin: 0 0 1.2rem; tab-size: 4; }
pre code { background: none; padding: 0; color: inherit; font-size: 0.84rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem; }
.sans { font-family: var(--sans); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; padding: 0.5rem 0; }
.brand img { display: block; height: 42px; width: auto; }
.nav { display: flex; gap: 0.2rem; margin-left: auto; flex-wrap: wrap; font-family: var(--sans); font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 0.55rem 0.75rem; border-radius: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--amber); border-radius: 4px 4px 0 0; }
.nav .ext { border: 1px solid var(--rule); margin-left: 0.5rem; }

/* ---------- sections ---------- */
main { display: block; }
.band { padding: 4.25rem 0; }
.band.tight { padding: 2.75rem 0; }
.band.wash { background: var(--wash); }
.band.ink { background: var(--ink); color: #c9d4e4; }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink a { color: #9cc4f5; }
.band > .wrap > h2 { margin-bottom: 1.1rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.page-head { padding: 3.25rem 0 2.25rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); max-width: 22ch; }
.page-head .lede { margin-top: 1rem; margin-bottom: 0; }
.cols { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.cols > * { min-width: 0; }
.cols.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cols.wide-left { grid-template-columns: 1fr; } }
.note { font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; color: var(--muted); max-width: 78ch; }
.flag { font-family: var(--sans); font-size: 0.92rem; line-height: 1.5; background: var(--amber-wash); border-left: 4px solid var(--amber);
  padding: 0.85rem 1.1rem; color: var(--ink); max-width: 78ch; margin: 0 0 1.5rem; }
.todo { background: #ffe9a8; color: #5a3d00; padding: 0 0.3em; font-family: var(--sans); font-weight: 600; }

/* ---------- buttons, forms ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 0.78rem 1.2rem; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #1f3552; border-color: #1f3552; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.86rem; white-space: nowrap; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
label, legend { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: var(--ink); }
select, input[type="number"], input[type="text"] { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #aab4c4; border-radius: 5px; padding: 0.5rem 0.65rem; min-height: 2.6rem; max-width: 100%; }
select:hover, input:hover { border-color: var(--ink-2); }
.controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; margin-bottom: 1.25rem; font-family: var(--sans); }
.controls .field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border-radius: 5px; padding: 0.75px; }
.seg button { font-family: var(--sans); font-size: 0.92rem; font-weight: 500; padding: 0.55rem 0.95rem; border: 1.5px solid var(--ink); margin: -0.75px; background: #fff; color: var(--ink); cursor: pointer; min-height: 2.6rem; flex: 0 1 auto; }
.seg button:first-child { border-radius: 5px 0 0 5px; }
.seg button:last-child { border-radius: 0 5px 5px 0; }
.seg button:focus-visible { position: relative; z-index: 1; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-family: var(--sans); font-size: 0.84rem; border: 1px solid #aab4c4; background: #fff; color: var(--ink-2); border-radius: 999px;
  padding: 0.3rem 0.7rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; background: var(--wash); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 1px solid #aab4c4; }
.chip[aria-pressed="true"] .dot { border-color: transparent; }
.zone-groups { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.zone-groups .glabel { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.9rem; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
th, td { padding: 0.5rem 0.8rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { color: var(--ink); font-weight: 600; background: var(--wash); border-bottom: 1px solid #c3ccd9; white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
td.r, th.r { text-align: right; }
td.na { color: var(--muted); }
caption { caption-side: top; text-align: left; font-family: var(--sans); font-size: 0.86rem; color: var(--muted); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); }
.pass { color: var(--ok); font-weight: 600; white-space: nowrap; }
.pass::before { content: "✓ "; }
table.plain thead th { position: static; }
table.defs td:first-child, table.defs th:first-child { white-space: nowrap; }
table.defs code { white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding: 3.75rem 0 3.25rem; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3.25rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.hero h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.hero .lede { margin-top: 1.3rem; }
.hero .status { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-top: 1.5rem; max-width: 52ch; }
.hero .status b { color: var(--ink); font-weight: 600; }
.figure { margin: 0; }
.figure figcaption, .cap { font-family: var(--sans); font-size: 0.84rem; line-height: 1.45; color: var(--muted); margin-top: 0.6rem; max-width: 78ch; }
.fig-title { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin: 0 0 0.15rem; max-width: none; }
.fig-sub { font-family: var(--sans); font-size: 0.86rem; color: var(--muted); margin: 0 0 0.7rem; max-width: none; }

/* ---------- charts ---------- */
.chart { position: relative; font-family: var(--sans); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text.tick { fill: var(--muted); font-size: 12px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart text.lab { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--sans); }
.chart text.val { fill: var(--ink-2); font-size: 11.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: #e6eaf0; stroke-width: 1; }
.chart .base { stroke: #8f9bb0; stroke-width: 1; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: #fff; border: 1px solid #b9c2d0; border-radius: 5px; box-shadow: 0 4px 14px rgba(16, 35, 63, 0.14);
  padding: 0.45rem 0.6rem; font-family: var(--sans); font-size: 0.82rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip b { color: var(--ink); font-weight: 600; }
.tip .row { display: flex; align-items: center; gap: 0.4rem; }
.tip .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.tip .v { margin-left: auto; padding-left: 0.9rem; color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-family: var(--sans); font-size: 0.84rem; color: var(--ink-2); margin: 0 0 0.5rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.legend i.box { height: 10px; width: 14px; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.heat-legend .steps { display: inline-flex; }
.heat-legend .steps span { display: inline-block; width: 34px; text-align: left; }
.heat-legend .steps i { display: block; height: 9px; margin-bottom: 2px; }
.heat rect.cell { stroke: #fff; stroke-width: 1; }
.heat rect.cell.hover { stroke: var(--ink); stroke-width: 1.5; }

/* ---------- home pieces ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 0.5rem; }
.facts div { padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--sans); font-size: 0.86rem; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.75rem; color: var(--ink); font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums; }
.facts dd small { font-family: var(--sans); font-size: 0.82rem; font-weight: 400; color: var(--muted); display: block; margin-top: 0.2rem; line-height: 1.35; }
.finding { border-top: 3px solid var(--ink); padding-top: 1rem; }
.finding h3 { margin-bottom: 0.5rem; }
.finding p { font-size: 1.02rem; }
.letter { max-width: 64ch; }
.letter p { font-size: 1.14rem; }
.sig { margin-top: 1.5rem; font-family: var(--serif); color: var(--ink); }
.sig b { font-size: 1.15rem; display: block; }
.sig span { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.linklist { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 0.98rem; }
.linklist li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.linklist li:first-child { border-top: 1px solid var(--rule); }
.linklist a { font-weight: 600; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.linklist span { display: block; color: var(--muted); font-size: 0.88rem; }
.cite-box { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--ink); padding: 1rem 1.25rem; font-size: 1rem; border-radius: 0 6px 6px 0; max-width: 78ch; }
.band.ink .cite-box { color: var(--ink-2); }
.band.ink .cite-box a { color: var(--link); }
.copyrow { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.7rem; font-family: var(--sans); font-size: 0.86rem; color: var(--muted); }
.out { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem 1.4rem; }
.out dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1.5rem; font-family: var(--sans); font-size: 0.95rem; }
.out dt { color: var(--ink-2); }
.out dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.out dt.total, .out dd.total { border-top: 1px solid var(--rule); padding-top: 0.6rem; }
.tool { border-top: 1px solid var(--rule); padding: 3rem 0; }
.tool:first-of-type { border-top: 0; }
.tool h2 { margin-bottom: 0.6rem; }
.toc { font-family: var(--sans); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; padding: 0; margin: 1.2rem 0 0; list-style: none; max-width: none; }
.toc li { margin: 0; }
details { border: 1px solid var(--rule); border-radius: 6px; padding: 0.2rem 1rem; background: #fff; margin: 1rem 0; }
summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0.6rem 0; }
details[open] { padding-bottom: 1rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid #2b3d57; background: var(--ink); color: #b9c6d9; font-family: var(--sans); font-size: 0.9rem; line-height: 1.55; padding: 2.75rem 0 2rem; margin-top: 0; }
.site-foot a { color: #dfe8f5; }
.site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h2 { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: #fff; margin: 0 0 0.6rem; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.3rem; }
.site-foot p { max-width: 46ch; }
.site-foot .logo { display: block; height: 38px; width: auto; margin: -0.3rem 0 0.9rem -0.25rem; }
.site-foot .legal { border-top: 1px solid #2b3d57; margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; color: #93a3bb; font-size: 0.84rem; }

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .band { padding: 3rem 0; }
  .wrap { padding: 0 1.1rem; }
  .site-head .wrap { gap: 0.25rem 1rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .nav { margin-left: -0.6rem; width: 100%; font-size: 0.9rem; }
  .nav a { padding: 0.5rem 0.6rem; }
  .nav .ext { margin-left: 0; }
  .lede { font-size: 1.16rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-head .nav, .site-foot, .actions, .controls, .skip { display: none !important; }
  body { font-size: 11pt; }
  .band { padding: 1.2rem 0; }
}

/* ---------- scientific apparatus ---------- */
.eq { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); background: var(--wash); border-left: 3px solid var(--rule);
  padding: 0.7rem 1.1rem; margin: 0.4rem 0 1.1rem; max-width: var(--measure); overflow-x: auto; white-space: nowrap; }
.eq var, p var, td var, li var { font-style: italic; font-family: var(--serif); }
.eq .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 0.2em; }
.eq .frac > span:first-child { border-bottom: 1px solid var(--ink); padding: 0 0.3em 0.1em; }
.eq .frac > span:last-child { padding: 0.1em 0.3em 0; }
.keyfacts { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 0 3rem; }
.keyfacts li { border-top: 1px solid var(--rule); padding: 0.9rem 0; margin: 0; font-size: 1.02rem; line-height: 1.5; }
.keyfacts b { color: var(--ink); }
.refs { list-style: none; padding: 0; max-width: 82ch; font-size: 0.98rem; line-height: 1.5; }
.refs li { padding-left: 1.6em; text-indent: -1.6em; margin-bottom: 0.6em; }
.stat { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); background: #fff; border: 1px solid var(--rule); border-radius: 5px; padding: 0.55rem 0.8rem; max-width: 78ch; margin: 0.8rem 0 0; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--ink); min-height: 2.6rem; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; accent-color: var(--ink); margin: 0; }
.chart circle.pt { stroke: #fff; stroke-width: 1.5; }
.chart text.axt { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.sheet td.r b { color: var(--ink); }
h2 .anchor, h3 .anchor { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; margin-left: 0.5rem; text-decoration: none; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 2.5rem 3rem; align-items: start; }
.two > * { min-width: 0; }
.table-scroll:focus-visible, pre:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.out dl { grid-template-columns: minmax(0, 1fr) auto; }

.refs a, .cite-box { overflow-wrap: anywhere; }
.eq { overflow-x: auto; }

/* ---------- v5: visual refinement ---------- */
::selection { background: #fbdcbc; color: var(--ink); }
p, li { text-wrap: pretty; }
a, .btn, .nav a, .chip, .seg button, select, input { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
tbody tr:hover > td, tbody tr:hover > th { background: #f7f9fc; }

/* the quarter-hour ruler: a long tick every hour, a short one every quarter */
.page-head, .hero { position: relative; }
.page-head { background: var(--wash); padding-bottom: 3rem; }
.page-head::after, .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #8f9bb0 0 1px, transparent 1px 40px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, #c3ccd9 0 1px, transparent 1px 10px) left bottom / 100% 6px no-repeat; }
.hero { padding-bottom: 4rem; }

/* section navigation that stays in view on long pages */
.subnav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule); }
.subnav .toc { margin: 0 0 0 -0.75rem; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 0.9rem; }
.subnav .toc::-webkit-scrollbar { display: none; }
.subnav .toc a { display: block; white-space: nowrap; text-decoration: none; color: var(--ink-2); padding: 0.85rem 0.75rem 0.75rem; border-bottom: 2px solid transparent; }
.subnav .toc a:hover { color: var(--ink); background: var(--wash); }
.subnav .toc a[aria-current] { color: var(--ink); border-bottom-color: var(--amber); }
.subnav .toc a:focus-visible { outline-offset: -3px; }
main [id] { scroll-margin-top: 3.75rem; }
.subnav.more .wrap { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent calc(100% - 1rem)); mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent calc(100% - 1rem)); }
.subnav .toc { padding-right: 1.5rem; }

/* figures sit on their own sheet */
.band .figure { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.4rem 1.1rem; }
.band .stat { margin-top: 1rem; }
@media (max-width: 640px) { .band .figure { padding: 0.9rem 0.8rem; border-radius: 6px; } }

.panel { background: var(--wash); border-radius: 8px; padding: 1.4rem 1.5rem 0.9rem; }
.panel h3 { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 0.7rem; }
.panel ol { margin: 0; font-size: 1rem; line-height: 1.5; max-width: none; }
.panel li { margin-bottom: 0.6em; }
.abstract p { max-width: 72ch; }
.keyfacts li { border-top: 2px solid var(--ink); }
.finding, .keyfacts li { position: relative; }
@media print { .subnav { display: none !important; } .band .figure { border: 0; padding: 0; } .page-head::after, .hero::after { display: none; } }
