/* Version Control: one stylesheet for every page.
   One grotesk (Mona Sans) for words, one mono (Martian Mono, semi-condensed)
   for figures. Graphite grounds, colour only on data. Reserved meanings:
   amber = releases; cyan + filled circle = IND; rose + open diamond = LAB;
   filled square = link on record; empty square = not disclosed; short dash =
   not yet researched; saturated red = retracted or corrected, and nothing
   else. Nothing borrows these. */

:root {
  color-scheme: dark;
  --ground: #111110;
  --surface: #171716;
  --raised: #1d1d1b;
  --hover: #232321;
  --active: #2a2a27;
  --pop: #20201e;
  --border: #2c2b28;
  --rule: #242422;
  --control: #46443f;
  --control-strong: #6b685f;
  --text: #ebeae6;
  --muted: #aaa59b;
  --faint: #9a958b;
  --accent: #c98422;
  --accent-text: #e0a447;
  --ind: #3a9dc2;
  --ind-text: #5cb5d6;
  --lab: #d2668a;
  --lab-text: #e07c9d;
  --disc-yes: #ebeae6;
  --disc-no: #b5b0a6;
  --disc-nr: #7c776e;
  --cell0: #222220;
  --lv1: #6e4c19;
  --lv2: #8a5e1c;
  --lv3: #bf8126;
  --lv4: #f0b354;
  --mark-off: #46443e;
  --av-api: #8b867c;
  --shade: rgba(17, 17, 16, 0.74);
  --backdrop: rgba(6, 6, 5, 0.66);
  --focus: #f0b354;
  --alarm: #f2555a;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-panel: 6px;
  --r-ctl: 5px;
  --gap: 12px;
  --pad: 16px;
  --ctl-h: 32px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f1f1ee;
  --surface: #fafaf8;
  --raised: #f2f2ef;
  --hover: #ebebe7;
  --active: #e4e4df;
  --pop: #fdfdfc;
  --border: #dddcd6;
  --rule: #e7e6e1;
  --control: #bebcb4;
  --control-strong: #8e8a82;
  --text: #1a1a18;
  --muted: #56534d;
  --faint: #625e57;
  --accent: #b26a00;
  --accent-text: #965800;
  --ind: #0b7fa6;
  --ind-text: #0a6f91;
  --lab: #c2406a;
  --lab-text: #b0355e;
  --disc-yes: #1a1a18;
  --disc-no: #56534d;
  --disc-nr: #8b877e;
  --cell0: #e6e5df;
  --lv1: #e9bd6a;
  --lv2: #d39a35;
  --lv3: #a96a0c;
  --lv4: #6e4200;
  --mark-off: #cfcdc5;
  --av-api: #9a968d;
  --shade: rgba(250, 250, 248, 0.76);
  --backdrop: rgba(30, 30, 26, 0.38);
  --focus: #965800;
  --alarm: #c4161c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 14px/20px var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--control-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; overflow: visible; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.num, .num-t { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; font-size: 0.9em; letter-spacing: -0.01em; }
.num-t { font-size: 11px; }
.dash { color: var(--faint); }
.nw { white-space: nowrap; }
.unit { color: var(--muted); font-size: 13px; margin-left: 4px; }
.t-m { color: var(--muted); }
kbd {
  font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; line-height: 16px;
  padding: 0 5px; border: 1px solid var(--control); border-radius: 4px; color: var(--muted); background: var(--surface);
  white-space: nowrap;
}
html:not(.js) [data-open-palette], html:not(.js) [data-theme-toggle], html:not(.js) [data-open-help], html:not(.js) .tbl-toggle, html:not(.js) .pcollapse { display: none !important; }
/* without script: no skeleton bars, no figures waiting on the dataset, no stamp that never fills */
html:not(.js) .spec, html:not(.js) .sk, html:not(.js) .foot-stamp, html:not(.js) .js-only { display: none !important; }
.noscript { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--control-strong); border-radius: var(--r-ctl); color: var(--muted); max-width: 80ch; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--text); color: var(--ground); padding: 8px 12px; border-radius: var(--r-ctl); }
.skip:focus { top: 8px; }

/* ---------- skeletons ---------- */
.sk { display: inline-block; background: var(--active); border-radius: 3px; height: 12px; vertical-align: middle; }
.sk-v { width: 72px; height: 26px; }
.sk-line { height: 12px; }
.heat-sk { height: 300px; }
.ready .sk { display: none; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-h); padding: 0 12px;
  border: 1px solid var(--control); border-radius: var(--r-ctl); background: var(--surface);
  color: var(--text); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 500;
}
.btn:hover { background: var(--hover); border-color: var(--control-strong); }
.btn:active { background: var(--active); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-icon { width: var(--ctl-h); justify-content: center; padding: 0; font-weight: 600; }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--ground); }
.btn-primary:hover { background: var(--muted); border-color: var(--muted); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); background: var(--hover); border-color: transparent; }
.btn kbd { border-color: var(--control); }
.btn-primary kbd { color: var(--ground); border-color: var(--ground); background: transparent; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--control-strong); text-underline-offset: 3px; min-height: 24px; }
.link-btn:hover { text-decoration-color: currentColor; }

.seg { display: inline-flex; border: 1px solid var(--control); border-radius: var(--r-ctl); padding: 2px; gap: 2px; background: var(--surface); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button[aria-checked="true"] { background: var(--active); color: var(--text); font-weight: 600; }
.seg-sm button { height: 24px; font-size: 12.5px; padding: 0 8px; }

input[type="date"], select, input[type="text"], input[type="search"] {
  height: var(--ctl-h); border: 1px solid var(--control-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text); padding: 0 8px; font-size: 13px;
}
input[type="date"] { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; width: 138px; }
input::placeholder { color: var(--faint); opacity: 1; }
select { padding-right: 24px; }
.sel { display: inline-flex; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  height: 52px; padding: 0 24px; background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-height: 32px; }
.brand-name { font-weight: 650; font-stretch: 118%; letter-spacing: -0.01em; font-size: 15px; }
.mark rect { fill: var(--cell0); }
.mark .m1 { fill: var(--lv1); } .mark .m2 { fill: var(--lv2); } .mark .m3 { fill: var(--lv3); } .mark .m4 { fill: var(--lv4); }
.topnav { display: flex; gap: 2px; }
.topnav a { padding: 6px 10px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; font-size: 13.5px; }
.topnav a:hover { color: var(--text); background: var(--hover); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--active); font-weight: 600; }
.topact { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--ctl-h); min-width: 280px; padding: 0 6px 0 12px;
  border: 1px solid var(--control); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); font-size: 13px;
}
.search-btn:hover { border-color: var(--control-strong); color: var(--text); }

.canvas { padding: 20px 24px 40px; max-width: 1760px; margin: 0 auto; outline: none; }
.titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
h1 { font-size: 22px; line-height: 28px; font-weight: 650; font-stretch: 112%; letter-spacing: -0.015em; }
.subline { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.fresh { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.stamp { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stamp p { margin: 0; }
.byline { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.byline a { color: var(--text); }
.fresh time { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; color: var(--text); }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.range-in { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.labchips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border-radius: 14px; border: 1px solid var(--control-strong); background: var(--active); font-size: 12.5px; font-weight: 500; }
.chip span { color: var(--muted); font-size: 15px; line-height: 1; }
.chip:hover span { color: var(--text); }
.fb-end { margin-left: auto; display: inline-flex; gap: 8px; }

/* ---------- measures ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); }
.kpi { padding: 14px 18px 12px; display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.k-l { color: var(--muted); font-size: 12.5px; line-height: 18px; }
.k-v { font-size: 26px; line-height: 34px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-v .num { font-size: 26px; font-weight: 450; letter-spacing: -0.02em; }
.k-v .unit { font-size: 13px; }
.k-name { display: inline-block; min-height: 26px; font-size: 20px; font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; text-decoration: none; }
.k-name:hover { text-decoration: underline; text-decoration-color: var(--control-strong); }
.k-s { color: var(--muted); font-size: 12.5px; line-height: 18px; margin-top: 2px; }
.k-s .num { color: var(--text); }
.k-spark { margin-top: 10px; height: 28px; }
.spark .sp-on { fill: var(--accent); }
.spark .sp-off { fill: var(--mark-off); }
.spark .sp-new { fill: var(--lv4); }
.spark .sp-base { stroke: var(--border); stroke-width: 1; }
.spark .sp-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.spark .sp-line-off { fill: none; stroke: var(--mark-off); stroke-width: 1.25; stroke-linejoin: round; }
.spark .sp-dot { fill: var(--accent-text); }

/* ---------- rows and panels ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: var(--gap); margin-top: var(--gap); align-items: stretch; }
.col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
/* availability fills the column beside the disclosure squares: its year rows share the height, so the row ends on one line */
.row-d .col > #p-access { flex: 1 1 auto; display: flex; flex-direction: column; }
#p-access > #access-body:not([hidden]) { flex: 1 1 auto; display: flex; flex-direction: column; }
#access-body .dt.av { flex: 1 1 auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); display: flex; flex-direction: column; min-width: 0; }
.ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t tools" "m tools"; column-gap: 16px; padding: 14px var(--pad) 10px; align-items: start; }
/* tablet: the tools (legend, toggles) wrap below the title instead of crushing it */
@media (max-width: 1100px) {
  .ph { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "m m" "tools tools"; row-gap: 6px; }
  .ptools { justify-content: flex-start; }
}
.ph h2 { grid-area: t; font-size: 15px; line-height: 22px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.005em; }
.ph h2:focus { outline: none; }
.pmeta { grid-area: m; color: var(--muted); font-size: 12.5px; line-height: 18px; max-width: 72ch; }
.ptools { grid-area: tools; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pbody { padding: 0 var(--pad) var(--pad); min-width: 0; }
.pcollapse { display: none; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; line-height: 16px; }
.legend-row { display: flex; margin-bottom: 8px; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg-item svg { display: inline-block; }
.lg-item b { color: var(--text); font-weight: 600; }
.lg-n { margin-left: auto; }

/* glyphs */
.g-dy { fill: var(--disc-yes); }
.g-dn { fill: none; stroke: var(--disc-no); stroke-width: 1.3; }
.g-dr { stroke: var(--disc-nr); stroke-width: 1.6; stroke-linecap: round; }
.g-ind { fill: var(--ind); }
.g-lab { fill: none; stroke: var(--lab); stroke-width: 1.4; stroke-linejoin: round; }
.dg, .pg { display: inline-block; vertical-align: -1px; flex: none; }
.hit { fill: transparent; }

/* provenance tags */
.prov { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; text-decoration: none; vertical-align: 1px; white-space: nowrap; }
.prov-ind { color: var(--ind-text); background: color-mix(in srgb, var(--ind) 16%, transparent); }
.prov-lab { color: var(--lab-text); border: 1px solid color-mix(in srgb, var(--lab) 70%, transparent); }
a.prov:hover { text-decoration: underline; }
.dmark { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dm-disclosed { color: var(--text); }
.dm-not_disclosed { color: var(--disc-no); }
.dm-not_researched { color: var(--faint); font-style: italic; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--control); color: var(--muted); font-size: 11px; white-space: nowrap; }

/* ---------- release grid ---------- */
.heat { min-height: 280px; }
.heat-grid { display: grid; grid-template-columns: 128px minmax(0, 1fr) 44px; }
.heat-labels, .heat-counts { display: flex; flex-direction: column; }
.hl-top, .hc-top { height: calc(var(--th) + var(--gap)); display: flex; align-items: flex-end; padding-bottom: calc(var(--gap) + 1px); font-size: 12px; color: var(--muted); line-height: 14px; }
.hc-top { justify-content: flex-end; color: var(--text); }
.hl {
  display: flex; align-items: center; border: 0; background: none; padding: 0 8px 0 0; margin: 0; text-align: left;
  font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 3px; min-height: 16px;
}
.hl:hover, .hl.hover { color: var(--text); }
.hl[aria-pressed="true"] { color: var(--text); font-weight: 650; }
.hl[aria-pressed="true"]::after { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); margin-left: 6px; flex: none; }
.hl.dim, .hc.dim { opacity: 0.45; }
.hc { display: flex; align-items: center; justify-content: flex-end; font-size: 11.5px; color: var(--muted); }
.heat-plot { position: relative; touch-action: pan-y; border-radius: 3px; cursor: crosshair; }
.heat-plot:focus-visible { outline-offset: 4px; }
.heat-svg .lv0 { fill: var(--cell0); }
.heat-svg .lv1, svg .lv1 { fill: var(--lv1); }
.heat-svg .lv2, svg .lv2 { fill: var(--lv2); }
.heat-svg .lv3, svg .lv3 { fill: var(--lv3); }
.heat-svg .lv4, svg .lv4 { fill: var(--lv4); }
svg .lv0 { fill: var(--cell0); }
svg .rv { fill: var(--cell0); stroke: var(--accent); stroke-width: 1; }
.heat-svg .h-agg rect { fill: var(--accent); }
.heat-svg .h-base { stroke: var(--border); }
.heat-svg .h-year { stroke: var(--border); stroke-width: 1; }
.heat-svg .h-axis { fill: var(--muted); font: 11px var(--mono); font-stretch: 87.5%; }
.heat-svg .h-max { fill: var(--faint); }
.heat-svg .h-row { transition: opacity 0.15s; }
.heat-svg .h-row.dim { opacity: 0.22; }
.heat-svg .h-shade rect { fill: var(--shade); pointer-events: none; }
.heat-svg .h-sel { fill: none; stroke: var(--accent-text); stroke-width: 1.5; display: none; pointer-events: none; }
.heat-svg .h-hand { fill: var(--accent-text); display: none; pointer-events: none; }
.heat-svg.has-sel .h-sel, .heat-svg.has-sel .h-hand { display: block; }
.heat-svg .h-cur { fill: none; stroke: var(--text); stroke-width: 1.5; display: none; pointer-events: none; }
.heat-svg.cur-on .h-cur { display: block; }

/* ---------- feed ---------- */
.feed { contain: size; }
.feed .ph { flex: none; }
.feed-list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
.fr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n tags" "m m" "r r"; column-gap: 8px;
  padding: 7px 8px; border-radius: 4px; text-decoration: none; min-height: 44px;
}
.fr:hover, .fr.hl-on { background: var(--active); }
.fr-name { grid-area: n; font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr time { grid-area: m; font-size: 11.5px; color: var(--muted); }
.fr-lab { grid-area: m; margin-left: 96px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-rev { grid-area: r; font-size: 12px; line-height: 17px; color: var(--muted); }
.m-rev { display: block; }
.fr-tags { grid-area: tags; display: inline-flex; gap: 6px; align-items: center; }
.fr-sc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.fr-more a { display: block; padding: 10px 8px; color: var(--muted); font-size: 13px; }
.feed-list .empty { padding: 12px 8px; color: var(--muted); }
/* a fade at the foot says the list scrolls; it lifts at the end */
.feed-list.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }

/* ---------- lab panels ---------- */
.labs { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap); }
.lab { background: var(--raised); border-radius: 5px; padding: 12px; border: 1px solid transparent; min-width: 0; }
.lab.hl-on { border-color: var(--control-strong); }
.lab.dim { opacity: 0.4; }
.lab-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lab-name { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 650; font-stretch: 106%; text-align: left; min-height: 24px; }
.lab-name:hover { text-decoration: underline; text-decoration-color: var(--control-strong); text-underline-offset: 3px; }
.lab-name[aria-pressed="true"]::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); margin-left: 7px; vertical-align: 2px; }
.lab-c { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lab-stats { display: flex; gap: 18px; margin: 6px 0 8px; }
.lab-stats dt { color: var(--muted); font-size: 11.5px; line-height: 16px; }
.lab-stats dd { font-size: 15px; line-height: 20px; white-space: nowrap; }
.lab-stats dd .unit { font-size: 11.5px; margin-left: 0; }
.lab-cad { margin-bottom: 8px; }
.lab-cad .c-on, svg .c-on { fill: var(--accent); }
.lab-cad .c-off { fill: var(--mark-off); }
.lab-cad .c-base { stroke: var(--border); }
.lab-cad .c-ax { fill: var(--faint); font: 11px var(--mono); font-stretch: 87.5%; }
.lab-disc { display: grid; gap: 3px; margin-bottom: 4px; }
.ld-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: center; height: 14px; }
.ld-l { font-size: 11.5px; color: var(--muted); }
.ld-g { display: flex; gap: 1px; overflow: hidden; }
.ld-c { display: inline-flex; width: 8px; height: 10px; align-items: center; cursor: default; }
.ld-n { text-align: right; font-size: 12px; color: var(--muted); }
.ld-n .num { color: var(--text); }
.nr-w { color: var(--faint); font-style: italic; font-size: 12px; }
.lab-note { color: var(--faint); font-size: 11.5px; line-height: 16px; margin: 2px 0 8px; }
.lab-sc-h { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.lab-sc .s-grid, svg .s-grid { stroke: var(--rule); }
svg .s-line { fill: none; stroke: var(--ind); stroke-width: 1.2; opacity: 0.55; }
svg .s-ind { fill: var(--ind); }
svg .s-lab { fill: none; stroke: var(--lab); stroke-width: 1.3; }
svg .off { opacity: 0.22; }
svg .s-v { fill: var(--ind-text); font: 600 11px var(--mono); font-stretch: 87.5%; }
.lab-none { color: var(--faint); font-size: 12px; font-style: italic; height: 44px; display: flex; align-items: center; }

/* ---------- findings ---------- */
/* one finding left: it runs as a strip under the lab panels, at its own height */
.row-b { grid-template-columns: minmax(0, 1fr); }
.findings-list { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding-top: 0; }
.findings .fd p { max-width: 90ch; }
.fd { padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.fd:first-child { border-top: 0; padding-top: 2px; }
.fd h3 { font-size: 14px; line-height: 20px; font-weight: 650; margin-bottom: 4px; }
.fd p { color: var(--muted); font-size: 13px; line-height: 19px; margin-bottom: 6px; }
.fd p .num { color: var(--text); font-size: 12px; }

/* ---------- scores ---------- */
.chart { position: relative; }
.sc-plot { outline-offset: 4px; }
svg .ax-grid { stroke: var(--rule); stroke-width: 1; }
svg .ax-base { stroke: var(--control); stroke-width: 1; }
svg .ax-t { fill: var(--muted); font: 11px var(--font); }
svg .sc-ind { fill: var(--ind); stroke: var(--surface); stroke-width: 1.5; }
svg .sc-lab { fill: var(--surface); stroke: var(--lab); stroke-width: 1.7; stroke-linejoin: round; }
svg .sc-pair { stroke: var(--muted); stroke-width: 1; }
svg .sc-best { fill: none; stroke: var(--faint); stroke-width: 1.25; stroke-dasharray: 3 3; }
svg .sc-out { fill: var(--ground); opacity: 0.55; }
svg .sc-ring { fill: none; stroke: var(--text); stroke-width: 1.5; pointer-events: none; display: none; }
svg .sc-ring.on { display: block; }
svg .num-t { fill: var(--text); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt caption { caption-side: top; text-align: left; color: var(--muted); font-size: 12.5px; padding-bottom: 8px; }
.dt th, .dt td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.dt thead th { color: var(--muted); font-weight: 500; font-size: 12px; border-bottom-color: var(--border); position: sticky; top: 0; background: var(--surface); }
.dt tbody th { font-weight: 550; }
.dt .n { text-align: right; }
.dt .cfg { color: var(--muted); font-size: 12px; max-width: 320px; }
.dt tr.off { opacity: 0.45; }
.dt .empty { color: var(--muted); }
.pairs th a { text-decoration: none; }
.pairs th a:hover { text-decoration: underline; }
.pairs td a { text-decoration: none; }
.pairs td a:hover { text-decoration: underline; }
.pr-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 17px; margin-top: 2px; }
.pr-diff { color: var(--text); }
.pr-note { color: var(--muted); font-size: 12.5px; line-height: 18px; margin-top: 10px; }
.sub-h { font-size: 13.5px; font-weight: 650; margin-top: 18px; }

/* ---------- disclosure squares ---------- */
.wf-grid { display: grid; grid-template-columns: var(--wf-label) repeat(var(--wf-cols), minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.wf-yh { color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.wf-yh .num { color: var(--text); margin-left: 4px; }
.wf-rh { font-size: 13px; font-weight: 550; padding-top: 2px; }
.wf-cell { min-width: 0; }
.wf-sq svg { cursor: pointer; }
.wf-n { margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wf-n b { color: var(--text); font-weight: 500; font-size: 13px; margin-right: 4px; }
.wf-nr { color: var(--faint); font-size: 12px; white-space: nowrap; }
.wf-nr .wf-short { display: none; }
/* narrow cells get the short form instead of clipped text */
@media (max-width: 720px) { .wf-nr .wf-long { display: none; } .wf-nr .wf-short { display: inline; } }
.wf-mh { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }

/* ---------- availability ---------- */
.av td, .av th { vertical-align: middle; }
.av th.num { font-weight: 450; }
svg .av-open_weights { fill: var(--disc-yes); }
svg .av-public_api { fill: var(--av-api); }
svg .av-public_service { fill: none; stroke: var(--muted); stroke-width: 1.2; }

/* ---------- tooltip and toast ---------- */
.tip {
  position: fixed; left: 0; top: 0; z-index: 60; max-width: 320px; padding: 9px 11px; pointer-events: none;
  background: var(--pop); border: 1px solid var(--control); border-radius: 6px; font-size: 12.5px; line-height: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.tip .t-h { font-weight: 650; font-size: 13px; }
.tip .t-s { color: var(--muted); }
.tip .t-row { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tip .t-m { color: var(--muted); margin-top: 3px; }
.tip .t-list { margin-top: 6px; }
.tip .t-list li { padding: 1px 0; }
.tip .t-list .num { color: var(--muted); margin-right: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 70; padding: 8px 14px; border-radius: 6px; background: var(--text); color: var(--ground); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- dialogs ---------- */
dialog.sheet { border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); padding: 0; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); max-width: calc(100vw - 24px); }
dialog.sheet::backdrop { background: var(--backdrop); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { font-size: 15px; font-weight: 650; font-stretch: 108%; }
.palette { width: 640px; margin-top: 11vh; }
.pal-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--border); }
.pal-head input { flex: 1; height: 40px; border: 0; background: transparent; font-size: 16px; padding: 0; outline: none; }
.pal-head input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* the input draws no ring of its own, so its row shows where focus is */
.pal-head:focus-within { box-shadow: inset 0 0 0 2px var(--focus); border-radius: 8px 8px 0 0; }
.pal-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px; }
.pal-g { padding: 10px 10px 4px; color: var(--faint); font-size: 12px; }
.pal-o { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 38px; padding: 6px 10px; border-radius: 5px; cursor: pointer; }
.pal-o[aria-selected="true"] { background: var(--active); }
.pal-t { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-m { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-k { justify-self: end; }
.pal-empty { padding: 18px 12px; color: var(--muted); }
.pal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pal-foot kbd { margin: 0 2px; }
.help { width: 560px; }
.help-body { padding: 4px 16px 18px; max-height: 70vh; overflow-y: auto; }
.help-body h3 { font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 14px 0 6px; }
.help-body dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); align-items: center; }
.help-body dt { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; }
.help-body dd { font-size: 13px; }
.compare { width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); }
.compare .sheet-head { flex-wrap: wrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.cmp-pick { display: flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 16px; }
.cmp-note { padding: 10px 16px 0; color: var(--muted); font-size: 12.5px; }
.cmp-body { padding: 8px 16px 20px; }
.cmp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cmp-col { min-width: 0; }
.cmp-col + .cmp-col { border-left: 1px solid var(--border); padding-left: 24px; }
.cmp-col h3 { font-size: 18px; font-weight: 650; font-stretch: 110%; margin-top: 6px; }
.cmp-sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; }
.cmp-col h4 { font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 16px 0 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
.cmp-big { font-size: 13px; }
.cmp-big .num { font-size: 20px; }
.cmp-big .unit { margin-right: 14px; }
svg .cmp-v { fill: var(--text); font: 11px var(--mono); font-stretch: 87.5%; }
svg .cmp-gap { fill: var(--accent); }
svg .cmp-over { fill: var(--accent-text); }
.cmp-disc div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 4px 0; font-size: 12.5px; align-items: start; }
.cmp-disc dt { color: var(--muted); }
.cmp-disc dd b { font-weight: 500; font-size: 13px; }
.cmp-strip { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 4px; }
.cmp-strip svg { width: 7px; height: 7px; }

/* ---------- footer ---------- */
.foot { background: var(--surface); margin-top: 24px; }
.foot-in { max-width: 1760px; margin: 0 auto; padding: 20px 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; color: var(--muted); font-size: 13px; line-height: 19px; }
.foot-what { max-width: 80ch; }
.foot-what b { color: var(--text); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.foot-links a { color: var(--text); text-decoration: none; padding: 3px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-stamp { grid-column: 1 / -1; color: var(--faint); }
/* tablet: the links take their own row, so the attribution keeps the full width */
@media (max-width: 1100px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}
.load-error { padding: 24px 0; color: var(--muted); }
.load-error p + p { margin-top: 6px; }

/* ---------- tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- widths ---------- */
@media (max-width: 1240px) {
  .row { grid-template-columns: minmax(0, 1fr) 320px; }
  .search-btn { min-width: 0; }
  .search-btn > span { display: none; }
}
@media (max-width: 1040px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .feed { contain: none; }
  .feed-list { max-height: 420px; flex: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border); }
  .topnav a { padding: 6px 8px; }
}
@media (max-width: 900px) {
  .brand-name { display: none; }
  .topbar { gap: 12px; }
  .btn-cmp kbd, .btn-help { display: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 16px; gap: 12px; height: 48px; }
  .topnav, .search-btn, .btn-help { display: none; }
  .brand-name { display: inline; }
  .btn-cmp, .btn-theme { height: 32px; padding: 0 10px; }
  .canvas { padding: 14px 16px 28px; }
  .titlerow { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
  h1 { font-size: 20px; line-height: 26px; }
  .filterbar { gap: 8px; }
  #presets { max-width: 100%; flex-wrap: wrap; }
  .range-in { width: 100%; }
  .range-in input { flex: 1; min-width: 0; width: auto; }
  .sel, .sel select { flex: 1; }
  .fb-end { margin-left: 0; width: 100%; }
  .fb-end .btn-primary { flex: 1; justify-content: center; height: 40px; }
  .fb-end .btn-quiet { height: 40px; }
  .fb-end kbd { display: none; }
  .kpi { padding: 12px 14px 10px; }
  .k-v .num { font-size: 22px; }
  .k-name { font-size: 16px; }
  .k-s { font-size: 12px; }
  .ph { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "m m" "tools tools"; row-gap: 6px; padding: 12px 14px 8px; }
  .ptools .legend { display: none; }
  .pcollapse {
    display: inline-flex; width: 32px; height: 32px; border: 1px solid var(--control); border-radius: var(--r-ctl); background: var(--surface);
    align-items: center; justify-content: center;
  }
  .pcollapse::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
  .pcollapse[aria-expanded="false"]::before { transform: translateY(2px) rotate(-135deg); }
  .pbody { padding: 0 14px 14px; }
  .heat-grid { grid-template-columns: 92px minmax(0, 1fr) 30px; }
  .hl { font-size: 12px; }
  .fr-lab { margin-left: 92px; }
  .ld-row { grid-template-columns: 76px minmax(0, 1fr) 48px; }
  .wf-grid { grid-template-columns: repeat(var(--wf-cols), minmax(0, 1fr)); gap: 10px 8px; }
  .wf-n { white-space: normal; font-size: 11.5px; line-height: 15px; }
  .wf-nr { font-size: 11.5px; }

  .wf-n b { display: block; }
  .tabbar {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(58px + env(safe-area-inset-bottom)); padding: 0 14px env(safe-area-inset-bottom);
    background: var(--surface);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none;
    color: var(--muted); font-size: 11px; text-decoration: none; min-height: 48px; min-width: 0;
  }
  .tabbar [aria-current="page"] { color: var(--text); font-weight: 650; }
  .tb-g { width: 18px; height: 18px; }
  .tb-g rect, .tb-g circle, .tb-g path { fill: none; stroke: currentColor; stroke-width: 1.5; }
  .tb-g .f { fill: currentColor; stroke: none; }
  .palette { margin-top: 8px; width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  .pal-o { grid-template-columns: minmax(0, 1fr) auto; }
  .pal-m { grid-column: 1; grid-row: 2; }
  .pal-k { display: none; }
  .compare { width: calc(100vw - 32px); max-width: calc(100vw - 32px); height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); margin: auto; }
  .cmp-pick { margin-left: 0; order: 3; width: 100%; }
  .cmp-pick .sel { flex: 1; }
  .cmp-pick select { width: 100%; }
  .cmp-cols { gap: 12px; }
  .cmp-col + .cmp-col { padding-left: 12px; }
  .cmp-col h3 { font-size: 15px; }
  .cmp-big .num { font-size: 16px; }
  .cmp-disc div { grid-template-columns: 1fr; gap: 0; }
  .foot-in { grid-template-columns: 1fr; padding: 18px 16px 24px; }
  .foot-links { justify-content: flex-start; }
  .help-body dl div { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .g-dy, .sp-on, .c-on, svg .s-ind, svg .sc-ind { fill: CanvasText; }
  .g-dn, svg .s-lab, svg .sc-lab { stroke: CanvasText; }
}

/* phones: dates and country fold behind one button */
.more-f { display: none; }
@media (max-width: 720px) {
  .more-f { display: inline-flex; height: 34px; }
  #presets { flex: 1 1 100%; }
  .filterbar:not(.open) .range-in, .filterbar:not(.open) .sel { display: none; }
  .filterbar .fb-end { width: auto; flex: 1; }
}

/* ================= explorer ================= */
.ex { --exh: max(440px, calc(100dvh - 212px)); padding-bottom: 20px; }
.ex .titlerow { margin-bottom: 12px; }
.ex-toolbar { margin-bottom: 12px; }
.ex-search { position: relative; display: inline-flex; }
.ex-search input { width: 340px; padding-right: 32px; }
.ex-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.x-filters { display: none; }
#ex-count b { color: var(--text); font-weight: 500; }
.ex-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.ex-layout.has-ins { grid-template-columns: minmax(0, 1fr) 448px; }
.ex-grid { overflow: hidden; position: relative; }
.ex-grid.more-right::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; pointer-events: none; z-index: 4; background: linear-gradient(to right, transparent, var(--surface)); }
.has-ins .grid { width: var(--gw-ins) !important; }
.has-ins .grid col.lo { visibility: collapse; }
.grid-scroll { height: var(--exh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.grid th, .grid td { padding: 0 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; font-weight: 400; }
.grid .n { text-align: right; }
.grid thead th, .grid thead td { position: sticky; background: var(--surface); z-index: 2; }
.grid .hrow th { top: 0; height: 36px; border-bottom: 0; padding: 0 6px; }
.grid .frow td { top: 36px; height: 42px; padding: 0 6px 6px; border-bottom: 1px solid var(--border); overflow: visible; }
.grid .stick { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--border); }
.grid thead .stick { z-index: 3; }
.grid tbody tr[data-i] { height: 40px; }
.grid tbody tr[data-i]:hover > * { background: var(--hover); cursor: pointer; }
.grid tbody tr.is-sel > * { background: var(--active); }
.grid tbody tr.is-sel > .stick { box-shadow: inset 2px 0 0 var(--text); }
.grid .spacer td { padding: 0; border: 0; }
.sortb { display: flex; align-items: center; gap: 4px; width: 100%; height: 30px; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.n .sortb { justify-content: flex-end; }
.sortb:hover { color: var(--text); background: var(--hover); }
th[aria-sort="ascending"] .sortb, th[aria-sort="descending"] .sortb { color: var(--text); font-weight: 650; }
th[aria-sort="ascending"] .sg::after { content: "↑"; }
th[aria-sort="descending"] .sg::after { content: "↓"; }
.fctl { display: block; }
.fctl-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.frow .fctl input, .frow .fctl select { width: 100%; height: 30px; font-size: 12.5px; padding: 0 6px; border-color: var(--control); }
.frow .fctl select { padding-right: 18px; }
.fctl.on input, .fctl.on select { border-color: var(--text); }
.rbtn { border: 0; background: none; padding: 0; font-size: 13.5px; font-weight: 600; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; text-align: left; height: 30px; }
.rv-n { margin-left: 6px; color: var(--faint); font-size: 11.5px; vertical-align: middle; }
.sv { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 13px; }
.sv .num { color: var(--text); }
.sv-t { font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; }
.sv-ind .sv-t { color: var(--ind-text); }
.sv-lab .sv-t { color: var(--lab-text); }
.dl { color: var(--muted); font-size: 11.5px; margin-right: 8px; }
.na { color: var(--faint); }
.dc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.dc-disclosed { color: var(--text); }
.dc-not_disclosed { color: var(--disc-no); }
.dc-not_researched { color: var(--faint); font-style: italic; }
.nc { color: var(--faint); font-style: italic; }
.g-empty { padding: 40px 24px !important; white-space: normal !important; }
.g-empty p { margin-bottom: 12px; color: var(--muted); }
.g-empty b { color: var(--text); font-weight: 600; }
.mlist { display: none; }

.inspector { max-height: var(--exh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
.ins-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ins-nav { display: flex; gap: 6px; margin-left: auto; }
.ins-nav kbd { margin-left: 2px; }
.ins-back { display: none; }
.ins-body { padding: 16px 18px 24px; }
.ins-out { padding: 8px 10px; border: 1px solid var(--control-strong); border-radius: 5px; color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.ins-kicker { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ins-body h2 { font-size: 22px; line-height: 28px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; margin-top: 2px; outline: none; }
.ins-var { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.ins-acts { margin: 10px 0 12px; display: flex; gap: 8px; }
.ins-sum { font-size: 13.5px; line-height: 20px; }
.ins-corr { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--control-strong); border-radius: 5px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.ins-corr b { color: var(--text); }
.ins-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.ins-facts dt { color: var(--muted); font-size: 12px; }
.ins-facts dd { font-size: 13px; }
.ins-h3 { font-size: 13px; font-weight: 650; margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.ins-bench { margin-bottom: 10px; }
.ib-name { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.ib-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; padding: 6px 0; }
.ib-v { font-size: 18px; }
.ib-src { color: var(--muted); font-size: 12px; line-height: 16px; }
.ib-cfg { grid-column: 1 / -1; font-size: 12px; line-height: 17px; color: var(--muted); }
.ib-cfg span { color: var(--text); font-weight: 600; margin-right: 4px; }
.ib-delta { font-size: 12.5px; line-height: 22px; color: var(--muted); padding: 4px 0; }
.ib-delta > .num:first-child { color: var(--text); font-size: 13px; }
.ib-refused { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border: 1px solid var(--control-strong); border-radius: 5px; margin-top: 6px; }
.ins-disc div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ins-disc dt { color: var(--muted); font-size: 12.5px; }
.ins-links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: 12.5px; }
.arch { color: var(--muted); }
.ins-src li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ins-src a { font-weight: 550; }
.src-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.ins-foot { margin-top: 18px; color: var(--muted); font-size: 12px; }
.ins-foot code { color: var(--text); }
.fsheet { width: 420px; }
.fsheet-body { padding: 8px 16px; max-height: 64dvh; overflow-y: auto; }
.fsheet-body .fctl { display: grid; gap: 4px; padding: 8px 0; }
.fsheet-body .fctl-l { position: static; width: auto; height: auto; clip: auto; font-size: 13px; color: var(--muted); }
.fsheet-body .fctl select, .fsheet-body .fctl input { width: 100%; height: 40px; font-size: 15px; }
.fs-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.fs-foot .btn { height: 40px; }

@media (max-width: 1100px) {
  .ex-layout.has-ins { grid-template-columns: minmax(0, 1fr); }
  .inspector { position: fixed; top: 52px; right: 0; bottom: 0; width: min(480px, 100vw); max-height: none; z-index: 35; border-radius: 0; border-width: 0 0 0 1px; box-shadow: -12px 0 32px rgba(0, 0, 0, 0.22); }
}
@media (max-width: 720px) {
  .ex { --exh: auto; }
  .ex-search { flex: 1 1 100%; }
  .x-filters { flex: 1; justify-content: center; }
  .ex-toolbar .fb-end { flex: 2; }
  .m-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; padding: 4px 2px 8px; border-bottom: 1px solid var(--rule); }
  .ex-search input { width: 100%; height: 40px; font-size: 15px; }
  .ex-search kbd { display: none; }
  .ex-toolbar .range-in { display: none; }
  .x-filters { display: inline-flex; height: 40px; }

  .ex-toolbar .fb-end .btn { flex: 1; justify-content: center; height: 36px; }
  .grid-scroll { display: none; }
  .ex-grid { background: none; border: 0; }
  .mlist { display: block; }
  .mlist li { border-bottom: 1px solid var(--rule); }
  .mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n d" "m m" "x s"; gap: 3px 10px; width: 100%; padding: 10px 2px; border: 0; background: none; text-align: left; min-height: 56px; }
  .mrow.is-sel { background: var(--active); }
  .m-name { grid-area: n; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-date { grid-area: d; color: var(--muted); font-size: 11.5px; align-self: center; }
  .m-meta { grid-area: m; color: var(--muted); font-size: 13px; }
  .m-disc { grid-area: x; display: inline-flex; gap: 4px; align-items: center; }
  .m-sc { grid-area: s; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; justify-self: end; }
  .m-sc .sv { margin-right: 0; margin-left: 6px; }
  .inspector { inset: 0; top: 0; width: 100vw; z-index: 45; border: 0; box-shadow: none; }
  .ins-back { display: inline-flex; }
  .ins-x { display: none; }
  .ins-nav kbd { display: none; }
  .ins-head { padding: 8px 12px; }
  .ins-body { padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); }
  body.ins-open { overflow: hidden; }
  .fsheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 10px 10px 0 0; }
}

/* ================= reading pages: methodology, about, data, changes ================= */
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1280px; margin: 0 auto; padding-top: 12px; }
.toc { position: sticky; top: 72px; align-self: start; max-height: calc(100dvh - 96px); overflow-y: auto; scrollbar-width: thin; }
.toc summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; min-height: 24px; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.toc details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.toc ol a { display: block; padding: 6px 8px 6px 10px; margin-left: -10px; color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 19px; border-radius: 4px; }
.toc ol a:hover { color: var(--text); background: var(--hover); }
.toc ol a[aria-current="location"] { color: var(--text); font-weight: 600; background: var(--active); }
.doc-head { padding-bottom: 26px; max-width: 70ch; }
.doc-head h1 { font-size: 30px; line-height: 36px; }
.doc-head p { font-size: 16px; line-height: 26px; margin-top: 12px; }
.lede { font-size: 18px !important; line-height: 28px !important; }
.lede-2 { color: var(--muted); }
.doc-sec { padding: 28px 0 30px; border-top: 1px solid var(--border); max-width: 70ch; }
.doc-sec.rule { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.doc-sec.rule .rule-text { max-width: 68ch; }
.doc-sec h2 { font-size: 20px; line-height: 28px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: 12px; scroll-margin-top: 72px; }
.doc-sec h3 { font-size: 15px; line-height: 22px; font-weight: 650; font-stretch: 106%; margin: 26px 0 8px; scroll-margin-top: 72px; }
.doc-sec p, .doc-sec li { font-size: 16px; line-height: 26px; }
.doc-sec p + p, .doc-sec p + ul, .doc-sec ul + p, .doc-sec table + p, .doc-sec p + table, .doc-sec blockquote + p, .doc-sec p + blockquote, .doc-sec .cite-acts + pre { margin-top: 14px; }
.doc-sec ul { list-style: none; padding: 0; margin-top: 12px; }
.doc-sec ul li { position: relative; padding-left: 18px; }
.doc-sec ul li + li { margin-top: 10px; }
.doc-sec ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 1px; background: var(--control-strong); }
.doc-sec strong { font-weight: 650; }
.doc-sec a { text-decoration-color: var(--control-strong); }
.doc-sec a:hover { text-decoration-color: currentColor; }
.doc-sec .prov, .doc-sec .dmark, .doc-sec .nc { font-size: 13px; vertical-align: 1px; }
.doc-sec blockquote { margin: 14px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); font-size: 14px; line-height: 22px; color: var(--muted); }
.doc-sec blockquote + blockquote { margin-top: 10px; }
.cite-box { color: var(--text) !important; font-size: 15px !important; }
.cite-acts { display: flex; gap: 8px; margin-top: 10px; }
.cite-bibtex { margin: 14px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); font: 13px/19px var(--mono); font-stretch: 87.5%; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.file-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-top: 14px; font-size: 14px; line-height: 21px; scrollbar-width: thin; }
.file-table th, .file-table td { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--rule); }
.file-table thead th { color: var(--muted); font-weight: 500; font-size: 13px; border-bottom-color: var(--border); white-space: nowrap; }
.file-table td:first-child { white-space: nowrap; font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; }
.pg-method .file-table td:first-child { font-family: var(--font); font-stretch: 100%; font-size: 14px; white-space: normal; min-width: 10em; width: 10em; }
.doc-list li { font-size: 15px; line-height: 23px; }
.doc-list .num { color: var(--muted); }
.rule-note { align-self: start; position: sticky; top: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 14px 16px; }
.doc-sec .rule-note p, .doc-sec .rule-note li { font-size: 13px; line-height: 19px; }
.rn-h { color: var(--muted); font-size: 13px !important; line-height: 18px !important; margin-bottom: 8px; }
.rn-big { font-size: 15px !important; color: var(--muted); }
.rn-big .num { font-size: 24px; color: var(--text); margin-right: 4px; }
.rn-list { margin: 8px 0; list-style: none; padding: 0; }
.rn-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 5px 0; font-size: 13px; line-height: 19px; border-top: 1px solid var(--rule); }
.rn-list li::before { display: none; }
.rn-list li .t-m { flex-basis: 100%; font-size: 13px; }
.rn-ref a { font-weight: 550; }
.rn-s { color: var(--muted); font-size: 13px !important; line-height: 19px !important; }
.rn-s b { color: var(--text); font-weight: 500; }
.rn-strip { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px 0; }
.doc-grid-about { grid-template-columns: 220px minmax(0, 1fr); }
.rec-card { position: sticky; top: 72px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); padding: 14px 16px; }
.rec-card dl { display: grid; gap: 10px; }
.rec-card dt { color: var(--muted); font-size: 13px; }
.rec-card dd { font-size: 15px; }
.rec-card dd .num { font-size: 18px; }
.pg-about .doc-head p { max-width: 68ch; }
.corr-item { padding: 12px 0 12px 14px; border-left: 2px solid var(--alarm); }
.corr-item + .corr-item { margin-top: 10px; }
.corr-item p { font-size: 16px !important; line-height: 25px !important; }
.corr-item .corr-h { font-weight: 600; }
.corr-item .corr-tag { color: var(--alarm); font-size: 13px; font-weight: 650; margin-right: 6px; }
@media (max-width: 1040px) {
  .doc-grid, .doc-grid-about { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .toc { position: static; max-height: none; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); }
  .toc summary { margin: 0; }
  .toc details[open] ol { margin-top: 6px; }
  .toc-empty { display: none; }
  .doc-sec.rule { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rule-note, .rec-card { position: static; }
}
@media (max-width: 720px) {
  .toc ol a { min-height: 36px; display: flex; align-items: center; }
  .doc-head h1 { font-size: 24px; line-height: 30px; }
  .lede { font-size: 17px !important; line-height: 26px !important; }
  .doc-sec p, .doc-sec li { font-size: 15.5px; line-height: 25px; }
}
@media (max-width: 600px) {
  .file-table, .file-table thead, .file-table tbody, .file-table th, .file-table td, .file-table tr { display: block; }
  .file-table thead tr { position: absolute; top: -9999px; left: -9999px; }
  .file-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .file-table td { border: 0; padding: 4px 0; white-space: normal; width: auto; }
  .pg-method .file-table td:first-child { width: auto; min-width: 0; font-weight: 600; }
}

/* ================= overview: the record before it begins ================= */

/* ================= retractions and corrections (the one use of red) ================= */
.tag-rev { white-space: normal; height: auto; min-height: 18px; max-width: 100%; line-height: 15px; padding: 1px 6px; }
.tag-retracted { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--alarm); color: var(--alarm); font-size: 11px; font-weight: 650; white-space: nowrap; }
.ins-corr { border-color: var(--alarm) !important; }
.ins-corr b { color: var(--alarm) !important; }
.ins-retracted { margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--alarm); border-radius: 5px; font-size: 12.5px; line-height: 18px; }
.ins-retracted b { color: var(--alarm); }

/* ================= story: one canvas that morphs as the reader scrolls ================= */
.pg-story { --bar: 52px; --tab: 0px; --gh: calc(100svh - var(--bar) - var(--tab)); --gut: clamp(16px, 3vw, 40px); --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
.story { display: block; outline: none; }
.scrolly { position: relative; }
.graphic { display: none; position: sticky; top: var(--bar); height: var(--gh); z-index: 1; pointer-events: none; }
.story-js .graphic { display: block; }
.graphic canvas, .graphic .ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.graphic .ov { overflow: visible; }
.graphic .load-error { position: absolute; left: var(--gut); right: var(--gut); bottom: 40px; color: var(--muted); max-width: 60ch; }
.hit { position: absolute; pointer-events: auto; touch-action: pan-y; border-radius: 6px; }
.hit:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.ovg { opacity: 0; transition: opacity 320ms var(--ease-out); }
.ovg.on { opacity: 1; }
.ovg .call { transform: translateY(5px); transition: transform 420ms var(--ease-out); }
.ovg.on .call { transform: none; }
.ov text { font-family: var(--font); fill: var(--text); }
.ov .ax-t { font-size: 11.5px; font-variant-numeric: tabular-nums; fill: var(--muted); }
.ov .ax-l { stroke: var(--control-strong); stroke-width: 1; }
.ov .ax-g { stroke: var(--rule); stroke-width: 1; }
.ov .row-l { font-size: 12.5px; fill: var(--muted); }
.ov .lead { stroke: var(--muted); stroke-width: 1; fill: none; }
.ov .ring { stroke: var(--text); stroke-width: 1.5; fill: none; }
.ov .c-h { font-size: 13px; font-weight: 600; }
.ov .c-b { font-size: 12.5px; fill: var(--muted); }
.ov .c-big { font: 500 20px var(--mono); font-stretch: 87.5%; letter-spacing: -0.02em; }
.ov .hd-t { font-size: 13.5px; font-weight: 650; }
.ov .hd-s { font-size: 12px; fill: var(--muted); }
.ov .climb { stroke: var(--ind); stroke-width: 2; fill: none; stroke-linejoin: round; }
.ov .bracket { stroke: var(--muted); stroke-width: 1.25; fill: none; }
.ov .band { fill: var(--accent); opacity: 0.14; }
.ov .dumb { stroke: var(--control-strong); stroke-width: 2; }
.ov .c-gap { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ov .ax-em { fill: var(--text); }
.ov .lg-dy { fill: var(--disc-yes); }
.ov .lg-dn { fill: none; stroke: var(--disc-no); stroke-width: 1.2; }
.ov .lg-dr { stroke: var(--disc-nr); stroke-width: 1.6; stroke-linecap: round; }
.ov .lg-ind { fill: var(--ind); }
.ov .lg-lab { fill: var(--surface); stroke: var(--lab); stroke-width: 1.8; stroke-linejoin: round; }
.stip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 300px; padding: 9px 11px; pointer-events: none; background: var(--pop); border: 1px solid var(--control); border-radius: 6px; font-size: 12.5px; line-height: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); opacity: 0; transition: opacity 140ms var(--ease-out); }
.stip.on { opacity: 1; }
.stip .t-h { font-weight: 650; font-size: 13px; }
.stip .t-s, .stip .t-m { color: var(--muted); }
.stip .t-open a { pointer-events: auto; color: var(--text); }
.stip .t-row { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.g-src { position: absolute; left: var(--gut); right: var(--gut); bottom: 10px; color: var(--faint); font-size: 13px; line-height: 16px; pointer-events: none; text-align: right; }

.steps { position: relative; z-index: 2; padding: 20px 0 32px; }
.story-js .steps { margin-top: calc(-1 * var(--gh)); padding-bottom: 52svh; pointer-events: none; }
.story-js .steps .step { pointer-events: auto; }
.hero-step { position: relative; z-index: 4; max-width: 1440px; margin: 0 auto; padding: 22px var(--gut) 24px; }
.story-js .hero-step { min-height: var(--gh); pointer-events: none; }
.hero-step > * { pointer-events: auto; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h act" "c act"; column-gap: 40px; align-items: end; }
.hero-head { grid-area: h; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
.hero-count { grid-area: c; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; color: var(--accent-text); margin-top: 6px; font-weight: 500; }
.hero-act { grid-area: act; display: flex; gap: 8px; align-self: end; }
.step { position: relative; z-index: 3; max-width: 70ch; margin: 0 auto 16px; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); transition: border-color 200ms var(--ease-out); }
.story-js .step { width: min(400px, 30vw); max-width: none; margin: 0 0 72svh max(var(--gut), calc((100% - 1440px) / 2 + var(--gut))); }
.story-js .step:last-child { margin-bottom: 0; }
.step.is-active { border-color: var(--control-strong); }
.step h2 { font-size: 18px; line-height: 24px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: 10px; text-wrap: balance; }
.step p { font-size: 14px; line-height: 21px; }
.step p + p { margin-top: 9px; }
.step p b { font-weight: 600; }
.live { position: absolute; }

/* the finding after the scroll */
.sfind { position: relative; z-index: 3; max-width: 1440px; margin: 0 auto; padding: 48px var(--gut) 0; background: var(--ground); scroll-margin-top: var(--bar); }
.sfind-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: center; padding: 24px 28px; }
.sfind-t h2 { font-size: 24px; line-height: 31px; font-weight: 650; font-stretch: 110%; letter-spacing: -0.015em; text-wrap: balance; max-width: 30ch; }
.sfind-note { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 12px; max-width: 68ch; }
.sfind .fig { margin: 0; }
.fig-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig-svg text { font-family: var(--font); }
.fig-svg .f-bar { fill: var(--accent); }
.fig-svg .f-bar-part { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.fig-svg .f-v { font: 500 12px var(--mono); font-stretch: 87.5%; fill: var(--text); }
.fig-svg .f-ax { font-size: 11.5px; fill: var(--muted); }
.fig-svg .f-base { stroke: var(--control-strong); stroke-width: 1; }
.fig-svg .f-grid { stroke: var(--rule); stroke-width: 1; }
.fig-svg .f-mark { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 3 2; }
.fig-svg .f-ind { stroke: var(--ind); stroke-width: 2; fill: none; stroke-linejoin: round; }
.fig-svg .f-ind-2 { stroke-dasharray: 4 3; }
.fig-svg .f-lab { font-size: 11.5px; fill: var(--muted); }
.fig-svg .f-name { font-size: 12px; fill: var(--text); }
.fig-svg .f-link { stroke: var(--control-strong); stroke-width: 1.5; }
.fig-svg .f-dot-ind { fill: var(--ind); }
.fig-svg .f-dot-lab { fill: var(--surface); stroke: var(--lab); stroke-width: 1.6; stroke-linejoin: round; }
.fig-svg .f-dot-0 { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.fig-svg .f-dot-1 { fill: var(--text); }
/* the text version: not a visible section. Screen readers read it in
   place; a page without script shows it, since there is no chart to read. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html:not(.js) .nfallback.visually-hidden { position: relative !important; width: auto; height: auto; margin: 0 auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; max-width: 1440px; padding: 24px var(--gut) 0; }
html:not(.js) .nfb { padding: 10px 0; max-width: 72ch; }
html:not(.js) .nfb h3 { font-size: 15px; font-weight: 650; }
html:not(.js) .nfb p { color: var(--muted); }
html:not(.js) .nfallback .dt { margin: 14px 0; max-width: 72ch; }

/* the close */
.sclose { position: relative; z-index: 3; max-width: 1440px; margin: 0 auto; padding: 40px var(--gut) 32px; }
.endstance { font-size: 17px; line-height: 26px; max-width: 72ch; }
.endstance b { font-weight: 650; }
.readmore-h { font-size: 15px; font-weight: 650; margin: 26px 0 10px; }
.enddoors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.enddoor { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); text-decoration: none; }
.enddoor:hover { border-color: var(--control-strong); background: var(--hover); }
.enddoor b { font-weight: 650; }
.enddoor span { color: var(--muted); font-size: 13px; }
.protonote { color: var(--faint); font-size: 13px; margin-top: 18px; }

@media (max-width: 1100px) {
  .sfind-in { grid-template-columns: minmax(0, 1fr); }
  .sfind .fig { max-width: 440px; }
}
@media (max-width: 899px) {
  .pg-story { --bar: 52px; }
  .hero-text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "c" "act"; }
  .hero-act { margin-top: 12px; }
  .story-js .graphic { z-index: 3; }
  .story-js .step { z-index: 1; width: auto; margin: 0 var(--gut) 46svh; }
  .story-js .step:first-of-type { margin-top: 58svh; }
  .enddoors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-src { display: none; }
}
@media (max-width: 720px) {
  .pg-story { --bar: 48px; --tab: calc(58px + env(safe-area-inset-bottom)); }
  .hero-act .btn { height: 36px; }
  .sfind { padding-top: 36px; }
  .sfind-in { padding: 18px 16px; }
  .sfind-t h2 { font-size: 20px; line-height: 27px; }
}
/* phones and tablets: a step's text dissolves as it slides under the pinned
   graphic, so no line is ever seen half-sliced at the graphic's edge */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .story-js .step > * { animation: under linear both; animation-timeline: view(block 59% 0%); animation-range: exit 0% exit 100%; }
  }
}
@keyframes under { 0% { opacity: 1; } 14% { opacity: 0.15; } 100% { opacity: 0; } }

/* ================= reading pages and the story: surfaces by fill, not by line ================= */
.pg-doc .doc-sec { border-top: 0; padding-top: 34px; }
.pg-doc .doc-head { padding-bottom: 8px; }
.pg-doc .doc-head h1 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1.08; font-stretch: 112%; letter-spacing: -0.02em; }
.pg-doc .rule-note, .pg-doc .rec-card, .pg-doc .spec { border: 0; }
.pg-doc .doc-sec blockquote, .pg-doc .cite-bibtex { border: 0; }
.pg-doc .file-table { font-size: 15px; line-height: 22px; }
.pg-doc .file-table thead th { font-size: 13px; }
.pg-doc .doc-list li { font-size: 16px; line-height: 25px; }
.pg-doc .rn-list li { border-top: 0; padding: 4px 0; }
.pg-story .step, .pg-story .panel, .pg-story .enddoor { border: 0; }
.pg-story .step.is-active { background: var(--raised); }

.pg-story .step p { font-size: 16px; line-height: 24px; }
.pg-story .nfb p, .pg-story .nfallback > p { font-size: 16px; line-height: 24px; }
.pg-story .sfind-note { font-size: 16px; line-height: 24px; }
.pg-story .protonote, .pg-story .enddoor span { font-size: 14px; }
@media (max-width: 899px) {
  .story-js .steps { z-index: auto; }
}
@media (max-width: 720px) {
  .pg-doc .doc-head h1 { font-size: 30px; line-height: 36px; }
}
.pg-story .num, .pg-doc .num { font-family: var(--font); font-stretch: 100%; font-size: 1em; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ================= specimens: the record beside the text that describes it ================= */
.specs { display: grid; gap: var(--gap); align-self: start; position: sticky; top: 72px; }
.spec { background: var(--surface); border-radius: var(--r-panel); padding: 14px 16px 16px; min-height: 200px; min-width: 0; }
.spec .rn-h { color: var(--muted); }
.spec .rn-big { font-size: 15px; color: var(--muted); margin-top: 2px; }
.spec .rn-big .num { font-size: 22px; color: var(--text); margin-right: 4px; font-weight: 500; }
.spec dl { display: grid; gap: 10px; margin-top: 4px; }
.spec dt { color: var(--muted); font-size: 13px; line-height: 18px; }
.spec dd { font-size: 15px; line-height: 21px; }
.spec .rn-s { margin-top: 6px; }
.spec .rn-big-list li { font-size: 14px; line-height: 20px; padding: 7px 0; }
.spec .rn-big-list .num { font-size: 17px; margin-right: 3px; }
.spec-svg { display: block; width: 100%; height: auto; margin: 6px 0 2px; overflow: visible; }
.spec-svg .sb { fill: var(--accent); }
.spec-svg .sb-part { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.spec-svg .sb-base { stroke: var(--control-strong); stroke-width: 1; }
.spec-svg .sb-mark { stroke: var(--text); stroke-width: 1.5; }
.spec-svg .sv-n { font: 500 12px var(--font); font-variant-numeric: tabular-nums; fill: var(--text); }
.spec-svg .sv-l { font: 11.5px var(--font); fill: var(--muted); }
.spec-tbl { overflow-x: auto; margin-top: 6px; }
.spec .dt { font-size: 13px; }
.spec .dt th, .spec .dt td { padding: 5px 10px 5px 0; white-space: nowrap; }
.spec .dt a { text-decoration: none; }
.spec .dt a:hover { text-decoration: underline; }
.spec-json { margin: 6px 0 0; max-height: 300px; overflow: auto; font: 11.5px/17px var(--mono); font-stretch: 87.5%; color: var(--muted); white-space: pre; scrollbar-width: thin; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: var(--gap); margin-top: 28px; }
.pg-404 .doc-head { max-width: 70ch; }
@media (max-width: 1040px) {
  .specs { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .spec { min-height: 0; }
}
@media (max-width: 720px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
}
.pg-doc .prov, .pg-doc .dmark, .pg-doc .doc-sec .nc { font-size: 14px; }
.pg-doc .prov { font-family: var(--font); font-stretch: 100%; }
.pg-doc .toc summary { font-size: 13px; }
.pg-story .sd .dt thead th { font-size: 13px; }

code, pre, kbd, samp { font-family: var(--mono); font-stretch: 87.5%; }
.file-table code { font-size: 13px; }
.file-table code a { text-decoration-color: var(--control-strong); }
.pg-story .find { min-height: 236px; }
.pg-story .sd .dt { display: block; overflow-x: auto; max-width: 100%; }
.sd-scroll { overflow: visible; }

/* specimens settle as they enter the page: bars grow to their count and the
   strip of glyphs fills in, so the eye sees each figure counted. The figure
   is readable before, during and after; reduced motion shows it settled. */
@media (prefers-reduced-motion: no-preference) {
  .spec-svg .sb, .spec-svg .sb-part { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 520ms cubic-bezier(0.23, 1, 0.32, 1); transition-delay: calc(var(--i, 0) * 45ms); }
  .js .spec:not(.in) .spec-svg .sb, .js .spec:not(.in) .spec-svg .sb-part { transform: scaleY(0.18); }
  .rn-strip svg { transition: opacity 360ms ease-out; transition-delay: calc(var(--i, 0) * 2ms); }
  .js .spec:not(.in) .rn-strip svg { opacity: 0.35; }
  .spec-svg .g-ind, .spec-svg .g-lab { transform-box: fill-box; transform-origin: center; transition: transform 380ms cubic-bezier(0.23, 1, 0.32, 1); transition-delay: calc(var(--i, 0) * 6ms); }
  .js .spec:not(.in) .spec-svg .g-ind, .js .spec:not(.in) .spec-svg .g-lab { transform: scale(0.4); }
}

@media (prefers-reduced-motion: no-preference) {
  .spec .rn-list li, .spec .dt tbody tr, .spec dl > div { transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1); }
  .spec .rn-list li:nth-child(2), .spec .dt tbody tr:nth-child(2), .spec dl > div:nth-child(2) { transition-delay: 50ms; }
  .spec .rn-list li:nth-child(3), .spec .dt tbody tr:nth-child(3), .spec dl > div:nth-child(3) { transition-delay: 100ms; }
  .spec .rn-list li:nth-child(n+4), .spec .dt tbody tr:nth-child(n+4), .spec dl > div:nth-child(n+4) { transition-delay: 150ms; }
  .js .spec:not(.in) .rn-list li, .js .spec:not(.in) .dt tbody tr, .js .spec:not(.in) dl > div { transform: translateY(6px); }
}
@media (max-width: 1040px) {
  .pg-doc .doc-sec, .pg-doc .doc-head, .doc-sec.rule .rule-text { max-width: none; }
}
.spec .dt .ell { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
.spec .dt th, .spec .dt td { font-size: 13px; }
