/* OpenRepro — editorial, typography-led. Self-hosted fonts only; no scripts. */

/* ---------- fonts (SIL OFL; licenses in /fonts/) ---------- */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* modular scale, ratio 1.25 on an 18px base */
  --s-2: 0.72rem;   /* 12.96 labels */
  --s-1: 0.84rem;   /* 15.1 captions, UI */
  --s0: 1rem;       /* 18 body */
  --s1: 1.25rem;    /* 22.5 lede */
  --s2: 1.5625rem;  /* 28 h2 */
  --s3: 1.953rem;   /* 35 h1 */
  --s4: 2.441rem;   /* 44 */
  --s5: 3.052rem;   /* 55 display */

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2.5vw, 32px);
  --maxw: 1200px;

  --paper: #f6f3ec;
  --sheet: #fdfcf8;
  --ink: #1b1a17;
  --ink-2: #57534a;
  --ink-3: #6b675e;
  --rule: #d9d3c6;
  --rule-2: #e9e4d9;
  --accent: #28456a;
  --band: rgba(27, 26, 23, 0.07);
  --band-open: rgba(27, 26, 23, 0.03);

  --ok: #37704d;   --ok-soft: #dde9df;
  --early: #7f5f14; --early-soft: #efe5c8;
  --bad: #a04a30;  --bad-soft: #f0dcd3;
  --na: #6b675f;   --na-soft: #e6e1d6;
  color-scheme: light; /* light only, by CEO decision: no dark mode */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 18px; }
@media (max-width: 760px) { html { font-size: 17px; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: var(--s0); line-height: 1.55;
  font-optical-sizing: auto; font-kerning: normal; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a { transition: color 0.12s ease, text-decoration-color 0.12s ease, text-decoration-thickness 0.12s ease; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 8px 12px; font-family: var(--sans); font-size: var(--s-1); }
.skip:focus { left: 16px; top: 8px; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.main { grid-column: 1 / span 8; min-width: 0; }
.side { grid-column: 10 / span 3; min-width: 0; }
.full { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 900px) { .main, .side { grid-column: 1 / -1; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--s3); line-height: 1.12; }
h2 { font-size: var(--s2); line-height: 1.18; }
h3 { font-size: var(--s1); line-height: 1.25; }
h4 { font-size: var(--s0); line-height: 1.3; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
.display { font-size: clamp(2.1rem, 4.6vw, var(--s4)); line-height: 1.08; letter-spacing: -0.018em; max-width: 18ch; font-weight: 450; }
.lede, .dek { font-size: var(--s1); line-height: 1.4; max-width: 50ch; color: var(--ink); }
.eyebrow { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.9rem; }
.small, .meta { font-family: var(--sans); font-size: var(--s-1); line-height: 1.45; color: var(--ink-2); }
.meta a { text-decoration-color: var(--rule); }
.sans { font-family: var(--sans); }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.6rem 0 0.5rem; }
.prose > :first-child { margin-top: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }

/* ---------- masthead and footer ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.015em; text-decoration: none; }
.wordmark svg { width: 22px; height: 22px; flex: none; position: relative; top: 1px; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; gap: 1.4em; flex-wrap: wrap; font-family: var(--sans); font-size: var(--s-1); font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a { transition: color 0.12s ease; }
@media (max-width: 600px) {
  .masthead .wrap { padding-top: 14px; padding-bottom: 0; gap: 10px 20px; }
  .nav { width: 100%; border-top: 1px solid var(--rule-2); padding: 8px 0 10px; gap: 1.2em; }
}
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--accent); }

.colophon { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 2.6rem 0 3.2rem; }
.colophon .grid { row-gap: 1.4rem; }
.colophon p { margin: 0 0 0.6em; }
.colophon .oneliner { font-size: var(--s0); max-width: 44ch; }
.colophon .meta { max-width: 44ch; }
.colophon .links { font-family: var(--sans); font-size: var(--s-1); display: grid; grid-template-columns: repeat(2, max-content); gap: 0.35em 2.4rem; }
.colophon .links a { text-decoration: none; color: var(--ink-2); }
.colophon .links a:hover { color: var(--ink); text-decoration: underline; }
.colophon .side { grid-column: 9 / span 4; }
@media (max-width: 900px) { .colophon .side { grid-column: 1 / -1; } }
.colophon .side .bigdial { margin-bottom: 1.6rem; }
.colophon .sign { font-family: var(--sans); font-size: var(--s-2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.2rem; }

/* ---------- sections ---------- */
.hero { padding: clamp(2.2rem, 5vw, 4rem) 0 2.2rem; }
.hero .grid { row-gap: 2rem; align-items: center; }
.hero-copy { grid-column: 1 / span 6; min-width: 0; }
.hero-chart { grid-column: 7 / span 6; min-width: 0; }
.hero .dek { margin-top: 1.4rem; }
.hero .display { max-width: 16ch; }
.hero-counts { margin: 1.3rem 0 0; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hero-copy, .hero-chart { grid-column: 1 / -1; } .hero .display { max-width: 18ch; } }

/* the hero's miniature of the ledger chart: label-free, same data as the chart below */
.minichart { margin: 0; position: relative; }
.minichart .mini-rows { list-style: none; margin: 0; padding: 0; max-width: none; position: relative; }
.minichart li { margin: 0; border-top: 1px solid var(--rule-2); position: relative; z-index: 1; }
.minichart li:last-child { border-bottom: 1px solid var(--rule-2); }
.minichart li a { display: block; }
.minichart li .lc-strip { display: block; }
.minichart figcaption { margin-top: 0.7rem; font-size: var(--s-2); }
.minichart figcaption a { text-decoration-color: var(--rule); }
@media (max-width: 900px) { .minichart { max-width: 36rem; } }
.pagehead { padding: clamp(2rem, 5vw, 3.6rem) 0 1.6rem; }
.pagehead .lede { margin-top: 1.1rem; }
.section { padding: 2.6rem 0 0; }
.section + .section { margin-top: 1.2rem; }
/* audience paths: three columns separated by rules, not cards */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.paths > div { min-width: 0; padding-right: var(--gap); }
.paths > div + div { border-left: 1px solid var(--rule-2); padding-left: var(--gap); }
.paths h2 { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.7rem; }
.paths p { font-family: var(--sans); font-size: var(--s-1); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin-bottom: 0.7em; }
.paths p a { color: var(--ink); }
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; row-gap: 0; }
  .paths > div { padding: 1rem 0; border-top: 1px solid var(--rule-2); }
  .paths > div + div { border-left: 0; padding-left: 0; }
  .paths > div:first-child { border-top: 0; padding-top: 0; }
  .paths p { max-width: var(--measure); }
}
/* findings so far */
.findings-list { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 var(--gap); border-top: 1px solid var(--rule); }
.findings-list li { margin: 0; padding: 1.1rem 0 0.9rem; border-bottom: 1px solid var(--rule-2); }
.findings-list li > p:first-child { max-width: 44ch; margin-bottom: 0.5em; }
.findings-list .meta { margin: 0; }
.findings > .wrap > .meta { margin-top: 0.9rem; }
/* end-of-page browsing on paper pages */
.browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem var(--gap); border-top: 1px solid var(--rule); padding-top: 1.3rem; }
.browse h2 { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.7rem; }
.browse .related li { margin-bottom: 0.6rem; line-height: 1.35; }
.browse .related a { text-decoration-color: var(--rule); font-weight: 500; }
.browse .related .meta { font-size: var(--s-2); }
.section > .wrap > .rule, .rule { border-top: 1px solid var(--rule); margin-bottom: 2.2rem; }
.crumbs { font-family: var(--sans); font-size: var(--s-1); color: var(--ink-2); padding-top: 1.3rem; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 0.5em; color: var(--ink-3); }

/* on-page contents (methods) */
.toc { font-family: var(--sans); font-size: var(--s-1); line-height: 1.45; }
.toc .meta { font-size: var(--s-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; max-width: none; }
.toc li { margin: 0 0 0.3em; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.pagehead .toc { align-self: end; padding-bottom: 0.3rem; }
@media (max-width: 900px) { .pagehead .toc { margin-top: 0.6rem; border-top: 1px solid var(--rule-2); padding-top: 0.8rem; } .toc ol { columns: 2; column-gap: var(--gap); } }

/* marginal notes (Tufte-style on wide screens, inline notes on phones) */
.side .note, .note { font-family: var(--sans); font-size: var(--s-1); line-height: 1.5; color: var(--ink-2); }
.side .note { border-top: 1px solid var(--rule); padding-top: 0.7rem; margin-top: 0.4rem; }
.side .note + .note { margin-top: 1.4rem; }
.note p { max-width: 36ch; margin-bottom: 0.6em; }
.note strong { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .side { margin-top: 1.4rem; }
  .side .note { border-top: 0; border-left: 2px solid var(--rule); padding: 0 0 0 0.9rem; margin-top: 0; }
  .side .note + .note { margin-top: 1rem; }
  .side .note p { max-width: var(--measure); }
}

/* numbered steps as a typographic list, not cards */
.steps { list-style: none; margin: 0; padding: 0; max-width: none; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 1rem; padding: 1.3rem 0; border-top: 1px solid var(--rule); margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--s-1); color: var(--ink-3); padding-top: 0.45rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin-bottom: 0.4em; }

/* definition rows (methods outcomes) */
.defs { margin: 0; padding: 0; }
.defs > div { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 0.4rem 1.6rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.defs dt { font-family: var(--sans); font-weight: 600; font-size: var(--s-1); }
.defs dd { margin: 0; max-width: var(--measure); }
@media (max-width: 760px) { .defs > div { grid-template-columns: 1fr; } }

/* ---------- outcome stamps and the held dial ---------- */
.stamp { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.stamp svg { width: 1.05em; height: 1.05em; flex: none; }
.stamp.ok { color: var(--ok); } .stamp.early { color: var(--early); } .stamp.mid { color: var(--ink); } .stamp.bad { color: var(--bad); } .stamp.na { color: var(--na); }
.stamp.big { font-size: var(--s-1); letter-spacing: 0.1em; }
.stamp.big svg { width: 1.3em; height: 1.3em; }
.dial .ring { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.45; }
.dial .seg-ok { fill: var(--ok); } .dial .seg-early { fill: var(--early); }
.verdict { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.verdict::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.verdict.ok { color: var(--ok); } .verdict.ok::before { background: currentColor; }
.verdict.early { color: var(--early); } .verdict.early::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.verdict.bad { color: var(--bad); }
.verdict.na { color: var(--na); } .verdict.na::before { border-style: dashed; }

/* the answer block on paper pages */
.pagehead.paper h1 { font-size: var(--s4); line-height: 1.08; }
@media (max-width: 760px) { .pagehead.paper h1 { font-size: var(--s3); } }
.answer { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.answer h2 { font-size: var(--s2); }
.answer .plain { font-size: var(--s1); line-height: 1.38; max-width: 40ch; margin: 1rem 0 1.2rem; }
.answer .plain strong { font-weight: 500; font-style: italic; }
.summary { font-size: var(--s0); }
.summary p { max-width: var(--measure); }

/* ---------- ledger chart ---------- */
.chart { margin: 0; }
.chart figcaption h2 { margin-bottom: 0.5rem; }
.chart figcaption p { margin-bottom: 1.4rem; }
.lc-rows { list-style: none; margin: 0; padding: 0; max-width: none; }
.lc-row, .lc-axis { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); align-items: center; border-top: 1px solid var(--rule-2); margin: 0; }
.lc-axis { border-top: 0; align-items: end; padding-bottom: 0.2rem; }
.lc-axis .lc-label { font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); line-height: 1.4; max-width: 30ch; padding-bottom: 0.4rem; }
.lc-row:last-child { border-bottom: 1px solid var(--rule-2); }
.lc-label { padding: 0.75rem 0; min-width: 0; }
.lc-label a { text-decoration: none; font-weight: 500; line-height: 1.25; display: block; }
.lc-label a:hover { color: var(--ink); }
.lc-label a:hover { text-decoration: underline; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; align-items: center; margin-top: 0.35rem; font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); }
.lc-strip { display: block; width: 100%; overflow: visible; }
.lc-row.quiet .lc-label { font-family: var(--sans); font-size: var(--s-1); color: var(--ink-2); font-style: normal; }
.lc-row.quiet .lc-label strong { font-weight: 600; color: var(--ink); }
.lc-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 1rem 0 0; padding: 0; list-style: none; max-width: none; font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); }
.lc-legend li { display: inline-flex; align-items: center; gap: 0.5em; margin: 0; }
.lc-legend svg { width: 26px; height: 14px; flex: none; }
.chart details.marks { margin-top: 0.6rem; }
.chart details.marks .lc-legend { margin-top: 0.6rem; display: grid; gap: 0.4rem; }
.chart details { margin-top: 1.2rem; font-family: var(--sans); font-size: var(--s-1); }
.chart summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.chart summary:hover { color: var(--ink); }
.chart details table { margin-top: 0.8rem; }
/* the single-strip variant on paper pages: full width, caption above, larger points */
.chart.single figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1.2rem; align-items: baseline; margin-bottom: 0.3rem; }
.chart.single figcaption .lc-label { font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); padding: 0; max-width: none; }
.chart.single figcaption .lc-meta { margin: 0; }
.lc-axis.single { display: block; }
.chart.single .lc-row { display: block; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); padding: 0.2rem 0; }
.annot, .annot-lead { display: none; }
.nt-glyph { display: none; }
@media (min-width: 761px) { .annot { display: block; } .annot-lead { display: block; } }
.annot { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); font-style: italic; }
.annot-lead { stroke: var(--ink-3); stroke-width: 1; }
@media (max-width: 760px) {
  .lc-row, .lc-axis { grid-template-columns: 1fr; row-gap: 0; }
  .lc-axis .lc-label { display: none; }
  .lc-axis { position: sticky; top: 0; z-index: 2; background: var(--paper); padding-top: 0.2rem; }
  .lc-label { padding-bottom: 0.1rem; }
  .lc-strip { margin-bottom: 0.4rem; }
  .nt-word { display: none; }
  .nt-glyph { display: block; }
}
/* SVG parts */
.pt-ok { fill: var(--ok); } .pt-early { fill: var(--early); } .pt-bad { fill: var(--bad); } .pt-na { fill: none; stroke: var(--na); stroke-width: 1.5; stroke-dasharray: 2 2; }
.pt-other { opacity: 0.72; }
.ring-early { fill: none; stroke: var(--early); stroke-width: 1.5; }
.link-early { stroke: var(--early); stroke-width: 0.75; opacity: 0.32; }
.tail { stroke-width: 1.5; opacity: 0.8; }
.tail-ok { stroke: var(--ok); } .tail-early { stroke: var(--early); } .tail-bad { stroke: var(--bad); }
.band { fill: var(--band); } .band-open { fill: var(--band-open); }
.zero { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.tick { stroke: var(--rule); stroke-width: 1; }
.tick-lbl { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
.tick-lbl.strong { fill: var(--ink); font-weight: 600; }
.bandlbl { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }
.gridline { stroke: var(--rule-2); stroke-width: 1; }
.empty-strip { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.offscale { font-family: var(--mono); font-size: 12px; }
.offscale.ok { fill: var(--ok); } .offscale.early { fill: var(--early); } .offscale.bad { fill: var(--bad); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--s-1); line-height: 1.4; }
caption { text-align: left; font-family: var(--serif); font-size: var(--s0); padding: 0 0 0.8rem; }
th { text-align: left; font-size: var(--s-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0.5rem 0.7rem 0.5rem 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
td { padding: 0.8rem 0.7rem 0.8rem 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
th.n, td.n { text-align: right; white-space: nowrap; }
td.n { font-family: var(--sans); font-variant-numeric: tabular-nums; }
td.n .unit { font-family: var(--sans); color: var(--ink-3); font-size: 0.85em; margin-left: 0.3em; }
.ledger th:first-child { width: 34%; }
.ledger td.title { padding-right: 1.4rem; }
.ledger td.title a { font-family: var(--serif); font-size: var(--s0); font-weight: 500; text-decoration: none; line-height: 1.3; }
.ledger td.title a:hover { text-decoration: underline; }
.ledger .cite { display: block; color: var(--ink-2); margin-top: 0.25rem; font-size: var(--s-2); }
.ledger .cite.field { color: var(--ink-3); margin-top: 0.15rem; }
.ledger .lnote { display: block; color: var(--ink-2); margin-top: 0.35rem; font-size: var(--s-2); max-width: 28ch; }
.ledger tr.quiet td { color: var(--ink-2); padding: 0.9rem 0; }
.ledger th.strip, .ledger td.strip { width: 19%; min-width: 9rem; }
.ledger td.strip { padding: 0.55rem 1.2rem 0.6rem 0; vertical-align: top; }
.ledger td.strip .lc-strip { overflow: visible; }
.ledger td.held { white-space: normal; min-width: 7rem; }
.claims .pl { font-family: var(--sans); font-size: var(--s-2); text-decoration: none; color: var(--ink-3); margin-left: 0.4em; opacity: 0; }
.claims tr:hover .pl, .claims .pl:focus-visible, .claims tr:target .pl { opacity: 1; }
.claims tr:target td { background: var(--band-open); }
.cite { font-family: var(--sans); font-size: var(--s-1); max-width: var(--measure); }
.cite-text { line-height: 1.5; border-left: 2px solid var(--rule); padding-left: 0.9rem; margin: 0 0 0.8rem; max-width: var(--measure); }
.cite details { margin-top: 0.4rem; }
.cite summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.cite summary:hover { color: var(--ink); }
.cite pre { margin: 0.8rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; line-height: 1.45; border-left: 2px solid var(--rule); padding-left: 0.9rem; }
.cite p.mono { font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
.ledger tr.quiet strong { color: var(--ink); font-weight: 600; }
.claims td.claim { font-family: var(--serif); font-size: var(--s0); line-height: 1.35; min-width: 24ch; max-width: 52ch; }
.claims th:first-child { width: 42%; }
.claims .loc { display: block; font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); margin-top: 0.3rem; }
.claims td.crit { white-space: nowrap; }
.claims .flag { display: inline-block; font-size: var(--s-2); color: var(--bad); border: 1px solid currentColor; padding: 0 0.4em; border-radius: 2px; margin-left: 0.4em; vertical-align: 0.1em; }
@media (max-width: 760px) {
  .reflow, .reflow thead, .reflow tbody, .reflow tr, .reflow td, .reflow th { display: block; width: 100%; }
  .reflow thead { position: absolute; left: -9999px; }
  .reflow tr { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-2); }
  .reflow td { border: 0; padding: 0.2rem 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 0.8em; text-align: left; white-space: normal; }
  .reflow td::before { content: attr(data-l); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.15em; font-family: var(--sans); }
  .reflow td.title, .reflow td.claim { display: block; padding-bottom: 0.4rem; }
  .reflow td.title::before, .reflow td.claim::before { content: none; }
  .reflow td.n, .reflow td.crit { text-align: left; }
  .reflow td.wide { display: block; } .reflow td.wide::before { content: none; }
  .reflow td > * { justify-self: start; }
  .ledger.reflow tr { display: flex; flex-direction: column; }
  .ledger.reflow td.title { order: -2; }
  .ledger.reflow td.strip { order: -1; display: block; width: 100%; min-width: 0; padding: 0.1rem 0 0.4rem; }
  .ledger.reflow td.strip::before { content: none; }
  .ledger.reflow td.strip .lc-strip { width: 100%; }
  .claims .pl { opacity: 1; }
}

/* ---------- facts, seal, run block ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem var(--gap); margin: 0; padding: 0; }
.facts > div { border-top: 1px solid var(--rule); padding-top: 0.6rem; min-width: 0; }
.facts dt { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.3rem; }
.facts dd { margin: 0; font-family: var(--sans); font-size: var(--s-1); line-height: 1.45; overflow-wrap: anywhere; }
.facts dd .mono { font-size: 0.9em; }
.facts dd a { text-decoration-color: var(--rule); }
.seal { border: 1px solid var(--ink); padding: 1rem 1.1rem 1.1rem; max-width: 34rem; }
.seal .eyebrow { margin-bottom: 0.6rem; }
.seal .hash { display: grid; grid-template-columns: repeat(4, max-content); gap: 0.25rem 0.9rem; font-family: var(--mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; margin: 0; }
.seal .hash span { white-space: nowrap; }
.seal p.meta { margin: 0.7rem 0 0; }
@media (max-width: 420px) { .seal .hash { grid-template-columns: repeat(2, max-content); } }
.devs { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.devs li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--rule-2); margin: 0; }
.devs .impact { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.25rem; }
.devs .impact.material { color: var(--bad); }
.notice { border-left: 2px solid var(--accent); padding: 0.1rem 0 0.1rem 1.1rem; margin: 1.6rem 0; font-family: var(--sans); font-size: var(--s-1); color: var(--ink-2); max-width: var(--measure); }
.notice p { margin: 0; }
.lead-copy p { font-size: var(--s0); }

/* ---------- papers index, guides ---------- */
.index-group { border-top: 1px solid var(--rule); padding: 1.3rem 0 0.4rem; }
.index-group h2 { font-family: var(--sans); font-size: var(--s-2); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.8rem; }
.index-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.index-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1.4rem; align-items: baseline; padding: 0.7rem 0; border-top: 1px solid var(--rule-2); margin: 0; }
.index-list li:first-child { border-top: 0; }
.index-list a { text-decoration: none; font-weight: 500; font-size: var(--s0); line-height: 1.3; }
.index-list a:hover { text-decoration: underline; }
.index-list .cite { display: block; font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); margin-top: 0.2rem; }
.index-list .right { text-align: right; font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); display: grid; gap: 0.3rem; justify-items: end; }
@media (max-width: 600px) { .index-list li { grid-template-columns: 1fr; } .index-list .right { text-align: left; justify-items: start; } }
.guide-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.guide-list li { padding: 1.2rem 0; border-top: 1px solid var(--rule-2); margin: 0; max-width: var(--measure); }
.guide-list a { text-decoration: none; font-size: var(--s1); font-weight: 500; line-height: 1.25; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 0.4rem 0 0; }
.related { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 0.5rem; }

/* ---------- counts strip ---------- */
.counts { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin: 1.6rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); list-style: none; max-width: none; }
.counts li { margin: 0; display: grid; gap: 0.1rem; align-content: start; }
@media (max-width: 760px) {
  .counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem var(--gap); }
  .counts .l { max-width: none; }
}
.counts .n { font-family: var(--serif); font-size: var(--s2); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counts .l { font-family: var(--sans); font-size: var(--s-2); color: var(--ink-2); max-width: 16ch; line-height: 1.35; }
.counts li.quiet .n { color: var(--ink-3); font-style: italic; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(3rem, 8vw, 6rem) 0 1rem; }
.notfound h1 { margin: 0 0 0.8rem; }
.notfound .lede { margin: 0; }
.notfound .side { align-self: center; grid-column: 8 / span 5; }
@media (max-width: 900px) { .notfound .side { grid-column: 1 / -1; } }
@media (max-width: 900px) { .notfound .side { margin-top: 2rem; } }

/* ---------- the signature dial ---------- */
.bigdial { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; max-width: 28rem; }
.bigdial .meta { max-width: 22ch; }
.bigdial-ring { position: relative; width: 96px; height: 96px; }
.bigdial-ring .dial { width: 96px; height: 96px; display: block; }
.bigdial-ring .dial .ring { stroke-width: 0.9; opacity: 0.4; }
.bigdial-ring .dial .hole { fill: var(--paper); }
.bigdial-n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bigdial p { margin: 0; }
.bigdial.pending { display: block; }
.bigdial.pending .meta { max-width: 30ch; }
.bigdial strong { color: var(--ink); font-weight: 600; }

/* ---------- print ---------- */
@media print { .masthead, .skip, .colophon .links { display: none; } body { background: #fff; color: #000; } }

/* late fixes */
.defs .stamp { white-space: normal; }
.ledger td time { white-space: nowrap; }
.devs li { grid-template-columns: 5.2rem minmax(0, 1fr); }
.devs li span, td, dd, .lc-label, .note p { overflow-wrap: anywhere; }
.ledger td { overflow-wrap: break-word; hyphens: manual; }

/* Spacing utilities (inline styles are blocked by the page CSP) */
.sp1 { margin-bottom:0 !important }
.sp2 { margin-bottom:0.5rem !important }
.sp3 { margin-bottom:1.2rem !important }
.sp4 { margin-bottom:1rem !important }
.sp5 { margin-top:0.9rem !important }
.sp6 { margin-top:1.2rem !important }
.sp7 { margin-top:1.4rem !important }
.sp8 { margin-top:1rem !important }
.sp9 { margin-top:1rem; max-width:var(--measure) !important }
.sp10 { margin-top:2rem !important }
.sp11 { margin:2.6rem 0 0.5rem !important }

/* ---------- plain file lists (/bundles/) ---------- */
ul.plain { list-style: none; padding: 0; margin: 1.6rem 0 0; max-width: var(--measure); font-family: var(--sans); font-size: var(--s-1); }
ul.plain li { padding: 0.7rem 0; border-top: 1px solid var(--rule-2); margin: 0; overflow-wrap: anywhere; }
ul.plain li:last-child { border-bottom: 1px solid var(--rule-2); }
ul.plain code { display: block; margin-top: 0.25rem; font-size: 0.76rem; color: var(--ink-2); letter-spacing: 0.02em; }

/* ---------- badge (paper page section and /badge/) ---------- */
.badge-img { display: inline-block; vertical-align: middle; height: 20px; width: auto; }
.snippet { margin: 0.3rem 0 1.2rem; max-width: var(--measure); white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.8rem; line-height: 1.45; border-left: 2px solid var(--rule); padding-left: 0.9rem; color: var(--ink-2); }
.snippet code { font-size: inherit; }
.badge-defs > div { grid-template-columns: minmax(0, 17rem) 1fr; align-items: start; }
.badge-defs dt svg { display: block; height: 20px; width: auto; max-width: 100%; }
.badge-defs dd { font-family: var(--sans); font-size: var(--s-1); line-height: 1.5; color: var(--ink-2); }
.badge-defs dd strong { color: var(--ink); font-weight: 600; }
