/* Tracking the Frontier — editorial styles. One typeface, hairline rules, few boxes. */

/* ============ Tokens ============ */
:root {
  --bg: #f7f5ef;
  --surface: #fdfcf8;
  --tint: #efece3;
  --ink: #1a1916;
  --ink-2: #4a4740;
  --ink-3: #7c786e;
  --rule: #dcd7ca;
  --accent: #b9441a;
  --gov: #2f6587;
  --s-yes: #3c7a4c;
  --s-partial: #c08a1e;
  --s-no: #b0442c;
  --s-unknown: #bdb7aa;
  --up: #3c7a4c;
  --down: #b0442c;
  --hope: #3c7a4c;
  --caution: #b07b12;
  /* Categorical: timeline event types and lab colours (validated for colour-blind separation). */
  --ev-breakthrough: #2a78d6; --ev-release: #eb6834; --ev-deployment: #1baf7a; --ev-policy: #eda100; --ev-incident: #e87ba4;
  --lab-1: #2a78d6; --lab-2: #eb6834; --lab-3: #1baf7a; --lab-other: #9a958a;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121210; --surface: #1a1917; --tint: #232220;
    --ink: #ece8de; --ink-2: #bab5a9; --ink-3: #858075; --rule: #34322d;
    --accent: #ef7a45; --gov: #7eaacb;
    --s-yes: #6bb07c; --s-partial: #ddb052; --s-no: #e07158; --s-unknown: #4a463f;
    --up: #6bb07c; --down: #e07158; --hope: #6bb07c; --caution: #ddb052;
    --ev-breakthrough: #3987e5; --ev-release: #d95926; --ev-deployment: #199e70; --ev-policy: #c98500; --ev-incident: #d55181;
    --lab-1: #3987e5; --lab-2: #d95926; --lab-3: #199e70; --lab-other: #6f6b62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121210; --surface: #1a1917; --tint: #232220;
  --ink: #ece8de; --ink-2: #bab5a9; --ink-3: #858075; --rule: #34322d;
  --accent: #ef7a45; --gov: #7eaacb;
  --s-yes: #6bb07c; --s-partial: #ddb052; --s-no: #e07158; --s-unknown: #4a463f;
  --up: #6bb07c; --down: #e07158; --hope: #6bb07c; --caution: #ddb052;
  --ev-breakthrough: #3987e5; --ev-release: #d95926; --ev-deployment: #199e70; --ev-policy: #c98500; --ev-incident: #d55181;
  --lab-1: #3987e5; --lab-2: #d95926; --lab-3: #199e70; --lab-other: #6f6b62;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.link, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.empty { color: var(--ink-3); padding: 16px 0; font-size: 0.95rem; }

/* Reading level: show one of .lv-plain / .lv-expert */
:root:not([data-level="expert"]) .lv-expert,
:root[data-level="expert"] .lv-plain { display: none !important; }

/* Tabular figures only where numbers line up (global use widens punctuation in this face). */
.conf-dates, .countdown, .log-date, .policy-date, .chart-wrap text, .vval, .hbar-val { font-variant-numeric: tabular-nums; }

/* ============ Announcement + header ============ */
.announce { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 0.84rem; font-weight: 500; padding: 8px 16px; text-align: center; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.announce-cta { opacity: 0.7; }
.announce:hover .announce-cta { opacity: 1; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 24px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; flex: none; }
.brand path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.brand-sm { font-size: 0.95rem; margin-bottom: 6px; }
.controls { display: flex; align-items: center; gap: 8px; }
.site-nav { grid-column: 1 / -1; display: flex; gap: 22px; font-size: 0.92rem; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-nav { grid-column: 2; grid-row: 1; padding: 0; margin-left: 12px; }
  .controls { grid-column: 3; grid-row: 1; }
}
.level-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.level-toggle button { border: 0; background: none; color: var(--ink-2); cursor: pointer; font: 500 0.8rem var(--font); padding: 5px 10px; }
.level-toggle button + button { border-left: 1px solid var(--rule); }
.level-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--rule); background: none; border-radius: var(--radius); cursor: pointer; color: var(--ink-2); }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 420px) { .brand span { font-size: 0.92rem; } .level-toggle button { padding: 5px 7px; } }

/* ============ Buttons, filters ============ */
.btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--ink); font: 500 0.9rem var(--font); text-decoration: none; color: var(--ink); background: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn:hover { opacity: 0.85; }
.text-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters { display: grid; gap: 10px; margin: 0 0 20px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.filter-label { font-size: 0.82rem; color: var(--ink-3); min-width: 4.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.chip { border: 0; background: none; padding: 2px 0; font: 0.9rem var(--font); color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: none; color: var(--ink-2); cursor: pointer; font: 500 0.88rem var(--font); padding: 6px 14px; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ============ Page structure ============ */
.page-head { padding: 56px 0 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; }
.page-head p { font-size: 1.12rem; color: var(--ink-2); margin-top: 14px; }
.section { padding-top: 56px; }
.section-head { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--ink); margin-bottom: 24px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15; }
.section-sub { color: var(--ink-2); max-width: 62ch; }
.see-all { font-size: 0.92rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.howto { font-size: 0.88rem; color: var(--ink-2); max-width: 70ch; }
.howto summary { cursor: pointer; color: var(--ink-3); list-style: none; display: inline; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: " +"; }
.howto[open] summary::after { content: " −"; }
.howto p { margin-top: 6px; }
.note { font-size: 0.84rem; color: var(--ink-3); margin-top: 10px; max-width: 75ch; }

/* ============ Home hero ============ */
.hero { padding: 72px 0 8px; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink-2); margin-top: 20px; max-width: 46ch; }

/* ============ Pace ============ */
.pace-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.pace-stat { padding: 20px 20px 20px 0; display: grid; gap: 6px; align-content: start; }
.pace-stat + .pace-stat { padding-left: 20px; border-left: 1px solid var(--rule); }
@media (max-width: 520px) { .pace-stat + .pace-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.pace-value { font-size: clamp(2.3rem, 5vw, 3.1rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.pace-label { font-weight: 500; font-size: 0.98rem; line-height: 1.3; }
.pace-desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.figure { position: relative; margin: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; }
.chart-head h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.chart-meta { font-size: 0.84rem; color: var(--ink-3); }

/* ============ Charts (shared) ============ */
.chart-wrap { min-height: 120px; }
.chart-wrap svg { display: block; overflow: visible; }
.chart-wrap .grid-line { stroke: var(--rule); stroke-width: 1; }
.chart-wrap .tick { font: 11px var(--font); fill: var(--ink-3); }
.chart-wrap .val { font: 600 12px var(--font); fill: var(--ink); }
.chart-wrap .hit { fill: transparent; cursor: pointer; }
.chart-wrap rect.hit:hover { fill: var(--ink); fill-opacity: 0.04; }
.chart-wrap circle.hit { cursor: default; }
.chart-wrap .dim, .vrow.dim { opacity: 0.25; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; color: var(--ink-2); margin-top: 10px; }
.chart-legend span { display: inline-flex; align-items: center; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; flex: none; }
.chart-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 180px; padding: 9px 11px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 0.8rem; }
.chart-tip ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.chart-tip li { display: flex; align-items: center; }
.chart-tip li b { margin-left: auto; padding-left: 14px; }
.tip-title { font-weight: 600; }
.tip-total, .tip-hint { opacity: 0.7; }
.tip-hint { margin-top: 5px; font-size: 0.74rem; }
.seg-breakthrough { fill: var(--ev-breakthrough); background: var(--ev-breakthrough); }
.seg-release { fill: var(--ev-release); background: var(--ev-release); }
.seg-deployment { fill: var(--ev-deployment); background: var(--ev-deployment); }
.seg-policy { fill: var(--ev-policy); background: var(--ev-policy); }
.seg-incident { fill: var(--ev-incident); background: var(--ev-incident); }
.dot { stroke: var(--bg); stroke-width: 2; }
.dot.lab-1 { fill: var(--lab-1); } .dot.lab-2 { fill: var(--lab-2); } .dot.lab-3 { fill: var(--lab-3); } .dot.lab-other { fill: var(--lab-other); }
.stem { stroke-width: 1.5; opacity: 0.4; }
.stem.lab-1 { stroke: var(--lab-1); } .stem.lab-2 { stroke: var(--lab-2); } .stem.lab-3 { stroke: var(--lab-3); } .stem.lab-other { stroke: var(--lab-other); }
.lab-bg-1 { background: var(--lab-1); } .lab-bg-2 { background: var(--lab-2); } .lab-bg-3 { background: var(--lab-3); } .lab-bg-other { background: var(--lab-other); }

/* ============ Vitals ============ */
.vitals-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .vitals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .vitals-grid { grid-template-columns: repeat(3, 1fr); } }
.vital { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
@media (min-width: 640px) and (max-width: 979px) { .vital:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--rule); } }
@media (min-width: 980px) { .vital:not(:nth-child(3n + 1)) { padding-left: 20px; border-left: 1px solid var(--rule); } }
.vital-label { font-size: 0.88rem; color: var(--ink-2); font-weight: 500; }
.vital-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.vital-value { font-size: 2.3rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.vital-unit { font-size: 0.9rem; color: var(--ink-3); }
.vital-delta { font-size: 0.84rem; color: var(--ink-2); }
.vital-delta.is-good { color: var(--up); }
.vital-delta.is-bad { color: var(--down); }
.spark { width: 100%; height: 34px; display: block; margin: 6px 0 2px; }
.spark .line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); }
.spark-range { font-size: 0.74rem; color: var(--ink-3); }
.vital-desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.vital-method { font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }
.quality { font-size: 0.72rem; font-weight: 500; padding: 0 5px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; vertical-align: 1px; }
.q-measured, .ev-RCT { color: var(--s-yes); }
.q-estimated, .ev-observational { color: var(--gov); }
.q-self-reported, .ev-anecdotal, .ev-vendor { color: var(--s-partial); }

/* ============ Explore (home) ============ */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.explore-item { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px 36px 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.explore-title { font-size: 0.86rem; color: var(--ink-3); }
.explore-big { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.explore-text { font-size: 0.92rem; color: var(--ink-2); max-width: 40ch; }
.explore-go { position: absolute; right: 8px; top: 22px; color: var(--accent); font-size: 1.1rem; transition: transform 0.15s; }
.explore-item:hover .explore-big { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.explore-item:hover .explore-go { transform: translateX(3px); }

/* ============ Blog lists ============ */
.post-list { display: grid; border-top: 1px solid var(--rule); }
.post { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.post-meta { font-size: 0.84rem; color: var(--ink-3); }
.post-title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.post-sum { color: var(--ink-2); max-width: 70ch; }
.post:hover .post-title { text-decoration: underline; text-underline-offset: 4px; }

/* ============ Subscribe ============ */
.subscribe { display: grid; gap: 14px 32px; align-items: end; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .subscribe { grid-template-columns: 1fr minmax(320px, 420px); } }
.subscribe h2 { font-size: 1.5rem; }
.subscribe p { color: var(--ink-2); margin-top: 4px; }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-form input { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 0.92rem var(--font); }
.sub-form small { flex-basis: 100%; color: var(--ink-3); font-size: 0.78rem; }
.sub-form small a { color: var(--ink-2); }

/* ============ Map ============ */
.domain-table { border-top: 1px solid var(--rule); }
.domain-row { display: grid; gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .domain-row { grid-template-columns: 15rem 1fr 18rem; } }
.domain-name h3 { font-size: 1.12rem; }
.domain-stage { font-size: 0.84rem; color: var(--ink-3); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.track { display: inline-flex; gap: 3px; margin-right: 6px; }
.track i { width: 14px; height: 5px; border-radius: 1px; background: var(--rule); }
.track i.on { background: var(--ink-2); }
.track i.now { background: var(--accent); }
.momentum.accelerating { color: var(--accent); }
.domain-body { display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink-2); }
.domain-you { color: var(--ink); }
.domain-facts { font-size: 0.86rem; }
.domain-facts b { font-weight: 600; color: var(--ink); }
.domain-latest { font-size: 0.88rem; color: var(--ink-2); border-left: 2px solid var(--accent); padding-left: 12px; align-self: start; }
.pipeline { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lane { border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 20px; }
.lane h3 { font-size: 1rem; }
.lane-desc { font-size: 0.84rem; color: var(--ink-3); margin: 2px 0 10px; }
.lane ul { list-style: none; margin: 0; padding: 0; }
.lane li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; display: grid; }
.lane li span { font-size: 0.8rem; color: var(--ink-3); }

/* ============ For you ============ */
.app-list { border-top: 1px solid var(--rule); }
.app { display: grid; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .app { grid-template-columns: 16rem 1fr 1fr; } .app-evidence { grid-column: 2 / -1; } }
.app h3 { font-size: 1.14rem; line-height: 1.25; }
.app-meta { font-size: 0.82rem; color: var(--ink-3); margin-top: 6px; }
.app-status { font-weight: 500; }
.st-now { color: var(--s-yes); } .st-rolling { color: var(--gov); } .st-limited { color: var(--s-partial); } .st-emerging { color: var(--ink-3); }
.app-gain, .app-catch { font-size: 0.94rem; line-height: 1.5; }
.app-catch { color: var(--ink-2); }
.app-gain b, .app-catch b { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; }
.app-gain b { color: var(--hope); }
.app-catch b { color: var(--caution); }
.app-evidence { font-size: 0.82rem; color: var(--ink-3); }
.balance { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--ink-3); }
.balance-bar { display: flex; width: 100px; height: 6px; gap: 2px; }
.balance-bar i { display: block; }
.b-hope { background: var(--hope); } .b-caution { background: var(--caution); }
.story-list { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.story { padding: 16px 0 22px; border-top: 2px solid var(--tone); display: grid; gap: 8px; align-content: start; }
.tone-hope { --tone: var(--hope); } .tone-caution { --tone: var(--caution); }
.story-top { font-size: 0.82rem; color: var(--ink-3); }
.tone-label { color: var(--tone); font-weight: 600; margin-right: 4px; }
.story h3 { font-size: 1.12rem; line-height: 1.3; }
.story-body { font-size: 0.93rem; color: var(--ink-2); }
.story-evidence { font-size: 0.84rem; color: var(--ink-3); font-style: italic; }
.tips { display: grid; gap: 24px; }
@media (min-width: 800px) { .tips { grid-template-columns: 1fr 1fr; } }
.tips h3 { font-size: 1.05rem; padding-bottom: 8px; border-bottom: 2px solid var(--hope); margin-bottom: 4px; }
.tips div + div h3 { border-bottom-color: var(--caution); }
.tips ol { margin: 0; padding-left: 20px; }
.tips li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; color: var(--ink-2); }

/* ============ Safety ============ */
.safety-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .safety-grid { grid-template-columns: 1fr 1.4fr; } }
.table-scroll { overflow-x: auto; }
.practice-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; min-width: 680px; }
.practice-table thead th { font-size: 0.78rem; font-weight: 500; color: var(--ink-3); text-align: center; padding: 0 4px 8px; vertical-align: bottom; line-height: 1.2; }
.practice-table tbody th, .practice-table tfoot th { text-align: left; font-weight: 500; padding: 8px 14px 8px 0; min-width: 200px; border-top: 1px solid var(--rule); }
.practice-table th small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-3); margin-top: 2px; max-width: 34ch; }
.practice-table td { border-top: 1px solid var(--rule); padding: 8px 3px; text-align: center; }
.cell { display: inline-block; width: 100%; max-width: 46px; height: 18px; border-radius: 2px; vertical-align: middle; }
.s-yes { background: var(--s-yes); } .s-partial { background: var(--s-partial); } .s-no { background: var(--s-no); }
.s-unknown { background: repeating-linear-gradient(45deg, var(--s-unknown) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--s-unknown); }
.practice-table .grade { font-weight: 600; font-size: 0.85rem; }
.legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 0.82rem; color: var(--ink-3); margin-top: 12px; }
.legend-row .cell { width: 14px; height: 10px; margin-right: 5px; }
.hbars { display: grid; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; gap: 10px; font-size: 0.9rem; }
.hbar-track { display: block; }
.hbar { display: block; height: 22px; background: var(--ink-2); border-radius: 0 2px 2px 0; }
.hbar.last { background: var(--accent); }
.hbar-val { font-weight: 600; text-align: right; }
.policy-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.policy-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.policy-date { font-size: 0.84rem; color: var(--ink-3); padding-top: 2px; }
.policy-title { font-weight: 500; }
.policy-desc { font-size: 0.9rem; color: var(--ink-2); margin-top: 3px; }
.policy-meta { font-size: 0.8rem; color: var(--ink-3); margin-top: 4px; }
.status.in-force { color: var(--s-yes); } .status.passed { color: var(--gov); } .status.proposed { color: var(--ink-3); }

/* ============ Research ============ */
.research-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .research-grid { grid-template-columns: 1fr 300px; align-items: start; } .research-side { position: sticky; top: 120px; } }
.paper-list { border-top: 1px solid var(--rule); }
.paper { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 5px; }
.paper-meta { font-size: 0.82rem; color: var(--ink-3); }
.venue { color: var(--accent); font-weight: 500; }
.paper h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.paper-authors { font-size: 0.84rem; color: var(--ink-3); }
.paper-authors a { color: var(--accent); }
.paper-sum { font-size: 0.93rem; color: var(--ink-2); }
.research-side h3 { font-size: 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.research-side .chips { margin: 10px 0 4px; font-size: 0.86rem; }
.conf-list { list-style: none; margin: 0 0 16px; padding: 0; }
.conf-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 0.86rem; }
.conf-short { font-weight: 600; font-size: 0.98rem; text-decoration: none; }
.conf-short:hover { text-decoration: underline; }
.conf-dates { text-align: right; color: var(--ink-2); }
.conf-where { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.8rem; }
.countdown { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 500; }
.countdown.soon { color: var(--accent); }
.countdown.past { color: var(--ink-3); font-weight: 400; }
.lab-dir { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.lab-dir li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.lab-dir a { font-weight: 600; text-decoration: none; }
.lab-dir a:hover { text-decoration: underline; }

/* ============ Timeline ============ */
.log-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.major-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.major-toggle input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.vbars { display: grid; gap: 4px; }
.vrow { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 2.5rem; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; }
.vrow:hover .vlabel { color: var(--ink); text-decoration: underline; }
.vlabel { font-size: 0.88rem; color: var(--ink-2); }
.vbar { display: flex; gap: 2px; height: 16px; border-radius: 0 3px 3px 0; overflow: hidden; min-width: 4px; }
.vbar i { display: block; min-width: 2px; }
.vval { font-weight: 600; font-size: 0.88rem; text-align: right; }
@media (max-width: 520px) { .vrow { grid-template-columns: 1fr 2rem; } .vlabel { grid-column: 1 / -1; } }
.log-active { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--ink-2); margin: 16px 0 0; }
.log-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 28px; }
.log-group h3 { font-size: 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; gap: 8px; align-items: baseline; }
.log-group h3 span { font-weight: 400; font-size: 0.82rem; color: var(--ink-3); }
.log-group ol { list-style: none; margin: 0; padding: 0; }
.log-item { display: grid; grid-template-columns: 4rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; }
.log-item.major .log-body { font-weight: 500; }
.log-date { font-size: 0.84rem; color: var(--ink-3); padding-top: 1px; }
.log-body { display: grid; gap: 3px; }
.log-tags { font-size: 0.78rem; color: var(--ink-3); font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.type-tag { display: inline-flex; align-items: center; }
.log-more { padding-top: 4px; }

/* ============ About, glossary, prose ============ */
.prose { display: grid; gap: 14px; color: var(--ink-2); max-width: 66ch; }
.prose h2 { color: var(--ink); font-size: 1.3rem; margin-top: 14px; }
.prose h3 { color: var(--ink); font-size: 1.05rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.glossary div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 3px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.legal-meta { font-size: 0.88rem; color: var(--ink-3); }

/* ============ Citations & sources ============ */
sup.cite { font-size: 0.66em; line-height: 0; margin-left: 2px; white-space: nowrap; font-weight: 500; }
sup.cite a { color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
sup.cite a::before { content: "["; } sup.cite a::after { content: "]"; }
sup.cite a:hover { text-decoration: underline; }
.page-sources { margin-top: 72px; padding-top: 14px; border-top: 1px solid var(--ink); }
.page-sources h2 { font-size: 1.05rem; margin-bottom: 12px; }
.page-sources > .muted { font-size: 0.82rem; margin-top: 14px; }
.page-sources > .muted a { color: var(--accent); }
.ref-list { margin: 0; padding-left: 2rem; display: grid; gap: 6px; font-size: 0.84rem; color: var(--ink-2); }
.ref-list li { scroll-margin-top: 120px; }
.ref-list li::marker { color: var(--ink-3); }
.ref-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ref-list li:target { background: var(--tint); }
.ref-tier { display: inline-block; min-width: 2.4rem; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.sources-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .sources-grid { grid-template-columns: 1fr 320px; align-items: start; } .cite-box { position: sticky; top: 120px; } }
#all-sources h3 { font-size: 1rem; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
#all-sources h3:first-child { margin-top: 0; }
.cite-box h3 { font-size: 1rem; margin-bottom: 10px; }
.cite-text { white-space: pre-wrap; word-break: break-word; font: 0.8rem/1.5 ui-monospace, Menlo, monospace; background: var(--tint); color: var(--ink); padding: 12px; border-radius: var(--radius); margin: 12px 0; }

/* ============ Footer ============ */
.site-footer { margin-top: 72px; border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer-inner .muted { font-size: 0.86rem; max-width: 44ch; }
.footer-inner .muted a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--ink-2); align-content: start; max-width: 520px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ============ Blog article ============ */
.article { max-width: 680px; margin: 0 auto; padding: 56px 0 8px; }
.article-meta { font-size: 0.86rem; color: var(--ink-3); margin-bottom: 18px; }
.article-meta a { color: inherit; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; }
.article-dek { font-size: 1.2rem; color: var(--ink-2); margin-top: 16px; line-height: 1.5; }
.article-body { margin-top: 36px; font-size: 1.06rem; line-height: 1.7; display: grid; gap: 18px; }
.article-body h2 { font-size: 1.35rem; margin-top: 18px; }
.article-body a { color: var(--accent); }
.article-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.article-body .stat-list { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--rule); }
.article-body .stat-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.article-body .stat-list b { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.article-notes { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--ink); }
.article-notes h2 { font-size: 1rem; margin-bottom: 10px; }
.article-notes ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.85rem; color: var(--ink-2); }
.article-notes a { color: var(--ink); overflow-wrap: anywhere; }
.article-notes li:target { background: var(--tint); }

/* ============ Zoomable charts ============ */
.zc { position: relative; }
.zc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; font-size: 0.82rem; }
.zc-presets, .zc-nav { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.zc-presets button, .zc-nav button { border: 0; background: none; color: var(--ink-2); cursor: pointer; font: 500 0.8rem var(--font); padding: 4px 10px; }
.zc-presets button + button, .zc-nav button + button { border-left: 1px solid var(--rule); }
.zc-presets button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.zc-presets button:hover, .zc-nav button:hover { color: var(--ink); }
.zc-range { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.zc-hint { color: var(--ink-3); margin-left: auto; }
@media (max-width: 720px) { .zc-hint { display: none; } }
.zc-plot { cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.zc-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 2px; }
.zc-brush { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 1; }
.dot.pt-frontier { fill: var(--ink); }
.dot.pt-other { fill: var(--bg); stroke: var(--ink-3); stroke-width: 1.2; }
.stem.pt-frontier, .stem.pt-other { stroke: var(--ink-3); }
.record-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.fit-line { fill: none; stroke: var(--gov); stroke-width: 1.5; stroke-dasharray: 5 4; }
.whisker { stroke: var(--ink-3); stroke-width: 1.2; opacity: 0.6; }
.sw-frontier { background: var(--ink); border-radius: 50%; }
.sw-other { background: transparent; border: 1.2px solid var(--ink-3); border-radius: 50%; }
.sw-record { background: var(--accent); height: 2px; width: 14px; border-radius: 0; }
.sw-fit { background: repeating-linear-gradient(90deg, var(--gov) 0 4px, transparent 4px 7px); height: 2px; width: 14px; border-radius: 0; }
.compute-toggle { margin-bottom: 14px; }
.mini-grid { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mini { margin: 0; }
.mini h3 { font-size: 1rem; }
.mini figcaption { margin-bottom: 10px; }
.mini figcaption .muted { font-size: 0.82rem; }
.mini .hbar-row { grid-template-columns: 4.5rem 1fr 3.5rem; }
.chart-wrap .val { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
