/* PreTrainBench release page. Structure first, then print. Figures read only the variables. */

:root {
  --bg: #ffffff; --ink: #17181a; --ink-2: #474b50; --ink-3: #868b91; --rule: #e7e8ea; --wash: #f5f5f3;
  --accent: #a32a2f; --accent-wash: #fbf1f0; --ref: #b9bec4; --hl: #e0a100; --hl-ink: #8a6200;
  --font-head: "Zilla Slab", Georgia, serif; --font-body: "Inter", system-ui, sans-serif; --font-data: "Inter", system-ui, sans-serif;
  --w-title: 600; --w-head: 600; --body: 14.5px; --col: 700px; --wide: 800px;
  --ph-prep: #d9dbde; --ph-experiments: #dc9a7f; --ph-train: #2b2d31; --ph-finish: #8d9197;
}
/* Dark page, on screens only: when the system asks for it and the reader has not picked light, or when
   they picked dark with the button (theme.js). Print and the PDF stay light (theme.js marks them light).
   The selectors are kept as plain as the launch post's own (post.css), which loads this file and then
   sets its own dark colours; a heavier selector here would override them. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a; --ink: #ebe9e4; --ink-2: #b7b6b1; --ink-3: #85878c; --rule: #2e3034; --wash: #202226;
    --accent: #ea7a72; --accent-wash: #2d2020; --ref: #5d626a; --hl: #e0a100; --hl-ink: #f0c668;
    --ph-prep: #4b4f56; --ph-experiments: #dc9a7f; --ph-train: #cfd1d4; --ph-finish: #7d8188; color-scheme: dark;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #17181a; --ink: #ebe9e4; --ink-2: #b7b6b1; --ink-3: #85878c; --rule: #2e3034; --wash: #202226;
    --accent: #ea7a72; --accent-wash: #2d2020; --ref: #5d626a; --hl: #e0a100; --hl-ink: #f0c668;
    --ph-prep: #4b4f56; --ph-experiments: #dc9a7f; --ph-train: #cfd1d4; --ph-finish: #7d8188; color-scheme: dark;
  }
}
.theme-btn { all: unset; position: absolute; top: 18px; right: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-3); cursor: pointer; }
.theme-btn:hover { color: var(--ink); background: var(--wash); }
.theme-btn:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; }
@media print { .theme-btn { display: none; } }
html[data-pdf] .theme-btn { display: none; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--body); line-height: 1.68; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
sup { font-size: 0.66em; line-height: 0; vertical-align: 0.55em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
strong, b { font-weight: 600; }

.post { position: relative; max-width: var(--col); margin: 0 auto; padding: 72px 20px 160px; counter-reset: fig sec tab; }

/* Masthead */
.kicker { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.kicker span + span::before { content: "·"; margin-right: 14px; }
h1 { font-family: var(--font-head); font-weight: var(--w-title); font-size: 40px; line-height: 1.16; letter-spacing: -0.01em; margin-top: 14px; }
h1 .t2 { display: block; color: var(--ink-2); }
/* The logo beside the title: ../shared/logo-mark.svg. */
h1 .logo-mark { width: 0.92em; height: 0.92em; vertical-align: -0.1em; margin-right: 0.26em; color: var(--ink); }
.dek { margin-top: 18px; font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.authors { margin-top: 26px; font-size: 14.5px; line-height: 1.6; }
.affil { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.affil span { white-space: nowrap; }

/* Main result band and summary */
/* The header starts at the left edge of the opening picture and the wide figures under it, which
   are wider than the text column. The PDF's first page has its own layout. */
html:not([data-pdf]) .hero .mast { --w: min(var(--wide), 100vw - 32px); width: var(--w); margin-left: calc(50% - var(--w) / 2); }
.main-result { margin: 32px 0 0; padding: 15px 20px 16px; background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.main-result .lab { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.main-result p { margin-top: 5px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.tldr { margin: 34px 0 0; }
.tldr h2 { font-family: var(--font-head); font-size: 17px; font-weight: var(--w-head); margin-bottom: 10px; }
.tldr ol { list-style: none; counter-reset: t; display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); counter-increment: t; }
.tldr li::before { content: counter(t); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.tldr li strong { color: var(--ink); }

/* Sections */
.sec { counter-increment: sec; }
.sec > h2 { font-family: var(--font-head); font-weight: var(--w-head); font-size: 27px; line-height: 1.25; margin: 76px 0 18px; scroll-margin-top: 28px; display: flex; gap: 14px; align-items: baseline; }
.sec > h2 .num { font-size: 15px; font-weight: 500; color: var(--accent); font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sec h3 { font-family: var(--font-head); font-weight: var(--w-head); font-size: 19.5px; line-height: 1.35; margin: 40px 0 10px; }
.sec p { margin-top: 15px; }
.sec h2 + p, .sec h3 + p { margin-top: 0; }
.sec p.lead { font-size: 16.5px; line-height: 1.6; }
.sec ul.plain, .sec ol.plain { margin: 14px 0 0; padding-left: 22px; }
.sec ul.plain li, .sec ol.plain li { margin-top: 7px; padding-left: 2px; }
.sec ul.plain li::marker { color: var(--accent); }
blockquote.rule { margin: 18px 0; padding: 14px 18px; background: var(--wash); border-radius: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
blockquote.rule ul { margin: 0; padding-left: 18px; }
blockquote.rule li + li { margin-top: 4px; }
blockquote.rule cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
blockquote.pull { margin: 26px 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--font-head); font-size: 20px; line-height: 1.5; }
blockquote.pull cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 13px; color: var(--ink-3); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.card { background: var(--wash); border-radius: 10px; padding: 16px 16px 15px; }
.card b { display: block; font-family: var(--font-head); font-weight: var(--w-head); font-size: 21px; line-height: 1.2; color: var(--ink); }
.card b i { font-style: normal; }
.card > span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.card.key { background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.card.key b { color: var(--accent); }
.cards.stats .card b { font-size: 28px; }
.mini-h { margin: 30px 0 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* Input, process, output */
.ipo { display: grid; grid-template-columns: 1fr 22px 1.2fr 22px 1fr; gap: 0 6px; align-items: stretch; margin: 22px 0 10px; }
.ipo-col { display: flex; flex-direction: column; gap: 10px; }
.ipo-col .card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 13px 15px; }
.ipo-col .card b { font-size: 19px; }
.ipo-h { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ipo-arrow { align-self: center; text-align: center; color: var(--ink-3); font-size: 16px; padding-top: 22px; }

/* Sandbox diagram */
.sbx { font-size: 13px; line-height: 1.45; }
.sbx-zone { border: 1.5px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); border-radius: 12px; padding: 14px 16px 16px; }
.sbx-zone.ver { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-wash); }
.sbx-lab { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.sbx-zone.ver .sbx-lab { color: var(--accent); }
.sbx-row { display: grid; grid-template-columns: 1fr 86px 1.15fr 30px 1fr; align-items: center; }
.sbx-row.three { grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.sbx-box { background: var(--wash); border-radius: 8px; padding: 11px 13px; height: 100%; }
.sbx-zone.ver .sbx-box { background: var(--bg); }
.sbx-box b { display: block; font-family: var(--font-head); font-weight: var(--w-head); font-size: 16.5px; color: var(--ink); }
.sbx-box span { display: block; margin-top: 3px; color: var(--ink-2); }
.sbx-box.gate { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sbx-box.gate b { color: var(--accent); }
.sbx-arrow { text-align: center; color: var(--ink-3); font-size: 15px; }
.sbx-arrow i { display: block; font-style: normal; font-size: 11px; line-height: 1.2; }
.sbx-shared { margin-top: 10px; padding: 7px 13px; border-radius: 8px; background: var(--wash); color: var(--ink-2); text-align: center; }
.sbx-shared code { background: none; padding: 0; color: var(--ink); }
.sbx-hand { position: relative; margin: 0 auto; padding: 12px 0 12px 26px; width: fit-content; color: var(--ink-2); }
.sbx-hand::before { content: "↓"; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--accent); }
.sbx-hand span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Small pictures on the scoring cards */
.score-cards .card { display: flex; flex-direction: column; }
.score-cards .ic { width: 112px; height: auto; margin-bottom: 12px; }

/* The loop diagram: a ring of four stages. The stretch this work covers is drawn heavy, and the
   stretch that closes the loop is dashed. */
.loop { margin: 26px auto 10px; max-width: 520px; counter-increment: none; }
.loop svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-arc { fill: none; stroke-linecap: round; }
.lp-ptb { stroke: var(--accent); stroke-width: 3.2; }
.lp-post { stroke: var(--ink-3); stroke-width: 1.6; }
.lp-rest { stroke: var(--ink-3); stroke-width: 1.6; }
.lp-close { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 2 6; }
.lp-head { fill: var(--ink-3); }
.lp-h-ptb { fill: var(--accent); }
.lp-node { fill: var(--bg); stroke: var(--ink-3); stroke-width: 2; }
.lp-node.lp-on { fill: var(--accent); stroke: var(--accent); }
.lp-node.lp-next { stroke: var(--accent); }
.loop text { font-family: var(--font-body); }
.lp-stage { font-family: var(--font-head) !important; font-weight: var(--w-head); font-size: 17.5px; fill: var(--ink); }
.lp-bench { font-size: 12.5px; fill: var(--ink-3); }
.lp-b-ptb { fill: var(--accent); font-weight: 600; }
.lp-mid { font-size: 13.5px; font-weight: 600; fill: var(--accent); }

/* Figures */
.fig { margin: 34px 0 38px; counter-increment: fig; }
.fig-wide { --w: min(var(--wide), 100vw - 32px); width: var(--w); margin-left: calc(50% - var(--w) / 2); }
.fig-title { font-family: var(--font-head); font-weight: var(--w-head); font-size: 16.5px; margin-bottom: 12px; }
figcaption { margin-top: 14px; font-size: 13px; line-height: 1.58; color: var(--ink-2); max-width: var(--col); }
figcaption::before { content: "Figure " counter(fig) ". "; font-weight: 600; color: var(--ink); }
.fig.tab { counter-increment: tab; }
.fig.tab figcaption::before { content: "Table " counter(tab) ". "; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-data); font-size: 12.5px; fill: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.c-grid { stroke: var(--rule); stroke-width: 1; }
.c-axis { stroke: var(--ink-3); stroke-width: 1; }
.chart .c-tick { font-size: 12px; fill: var(--ink-3); }
.chart .c-axis-label { font-size: 12.5px; fill: var(--ink-2); }
.chart .c-exp { font-size: 9px; }
.chart .c-note { font-size: 12px; fill: var(--ink-3); }
.chart .c-name { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.chart .c-val { font-size: 13.5px; font-weight: 700; fill: var(--ink); }
.chart .c-strong { font-size: 13px; font-weight: 700; fill: var(--ink); }
.chart .c-muted { fill: var(--ink-3); }
.c-err { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.c-seed { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.c-ref-line { fill: none; stroke: var(--ref); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.c-ref-dot { fill: var(--ref); stroke: var(--bg); stroke-width: 1.5; }
.c-ref2-line { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 5.5; }
.c-ref2-dot { fill: var(--ink-3); stroke: var(--bg); stroke-width: 1.5; }
.chart .c-name-s { font-size: 11.5px; }
.chart .c-model { font-size: 10.5px; font-weight: 400; }
.c-run { stroke: var(--bg); stroke-width: 1.4; }
.c-arrow { stroke: var(--ink); stroke-width: 1.8; fill: none; }
.c-arrowhead { fill: var(--ink); }
.c-best { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.c-iso { stroke: var(--rule); stroke-width: 1.2; stroke-dasharray: 5 4; }

.legend { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* Timeline */
.tl { display: grid; gap: 9px; }
.tl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.tl-name b { font-size: 13px; font-weight: 600; }
.tl-bands { display: grid; gap: 3px; }
.tl-line { display: grid; grid-template-columns: minmax(0, 1fr) 38px; column-gap: 10px; align-items: center; }
.tl-band { position: relative; height: 9px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.ph { position: absolute; top: 0; bottom: 0; }
.ph-prep { background: var(--ph-prep); } .ph-experiments { background: var(--ph-experiments); } .ph-train { background: var(--ph-train); } .ph-finish { background: var(--ph-finish); }
.tl-score { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.tl-score-h { color: var(--ink-3); font-size: 11px; }
.tl-axis { position: relative; height: 16px; font-size: 11.5px; color: var(--ink-3); }
.tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-axis span:first-child { transform: none; } .tl-axis span:last-child { transform: translateX(-100%); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }
.tl-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; border-radius: 2px; }

/* Data mix */
.mix { display: grid; gap: 7px; }
.mix-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.mix-name { font-size: 13px; font-weight: 600; }
.mix-bar { display: flex; height: 20px; border-radius: 3px; overflow: hidden; }
.mix-bar i { display: grid; place-items: center; box-shadow: inset -1px 0 0 var(--bg); }
.mix-bar b { font-size: 10.5px; font-weight: 600; color: #fff; font-style: normal; }
.mix + .legend, .legend + .mix { margin-top: 0; }

/* Tables */
.table-scroll { overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.results th { text-align: left; font-weight: 600; font-size: 12.5px; padding: 9px 10px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.results td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.results tbody tr:last-child td { border-bottom: 0; }
.results .num { text-align: right; white-space: nowrap; }
.results small { color: var(--ink-3); font-size: 12px; }
.results .chip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.results .chip-ref { background: var(--ref); }
.results tr.is-ref td { color: var(--ink-3); border-top: 1px solid var(--ink-3); }
.results tr.is-agent td { background: var(--accent-wash); }
.results td.heat { background: color-mix(in srgb, var(--accent) calc(var(--a) * 22%), transparent); }
.results td.best { font-weight: 700; }
.results .nowrap { white-space: nowrap; }
.runs-table { font-size: 13.5px; }
.runs-table td:first-child { white-space: nowrap; }
.runs-table tbody tr:first-child td { border-bottom: 0; padding-bottom: 2px; }
.runs-table td.story { color: var(--ink-2); font-size: 13px; line-height: 1.5; padding-top: 0; padding-bottom: 10px; }
.runs-table tbody.first tr:first-child td { border-top: 1px solid var(--ink-3); }
.runs-table tbody:first-of-type tr:first-child td { border-top: 0; }
.runs-table tbody:last-child tr:last-child td { border-bottom: 0; }
table.plain { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 18px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
table.plain th { text-align: left; font-size: 12.5px; font-weight: 600; padding: 9px 10px 8px; border-bottom: 1px solid var(--ink); }
table.plain td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain td.num, table.plain th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.plain tr.us td { background: var(--accent-wash); font-weight: 500; }
details.more { margin: 26px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.more > summary { cursor: pointer; padding: 12px 0; font-size: 14.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.more > summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
details.more[open] > summary::after { content: "–"; }
details.more > summary::-webkit-details-marker { display: none; }
details.more .fig { margin-top: 6px; }

/* Residual diagram and lookup graphic */
.resid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.resid svg { width: 100%; height: auto; display: block; }
.resid text { font-family: var(--font-data); font-size: 12.5px; fill: var(--ink); }
.resid .cap { font-size: 11.5px; fill: var(--ink-3); }
.resid .ttl { font-weight: 600; font-size: 13px; }
.lookup { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: center; }
.lookup-h { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.lookup-bar { display: flex; height: 38px; border-radius: 3px; overflow: hidden; background: var(--accent-wash); }
.lookup-bar .net { width: 1.8%; min-width: 5px; background: var(--accent); }
.lookup-bar .idx { flex: 1; display: grid; place-items: center; font-size: 13.5px; color: var(--accent); font-weight: 500; }
.lookup-key { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.lookup-key i { display: inline-block; width: 4px; height: 12px; background: var(--accent); margin-right: 8px; vertical-align: -1px; }
.lookup-n { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-head); font-size: 34px; line-height: 1; }
.lookup-n .a { color: var(--ink-3); } .lookup-n .arrow { font-size: 22px; color: var(--ink-2); } .lookup-n .b { color: var(--accent); }
.lookup-sub { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.lookup-sub span:last-child { color: var(--accent); margin-left: 34px; }

.refs { margin-top: 14px; padding-left: 0; list-style: none; counter-reset: ref; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.refs li { counter-increment: ref; position: relative; padding-left: 34px; margin-top: 6px; }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; color: var(--accent); font-variant-numeric: tabular-nums; }
.cite { color: var(--accent); font-size: 0.82em; text-decoration: none; white-space: nowrap; }
.foot { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* The outline in the left margin is styled by ../shared/toc.css. */

/* The first page of the wide PDF: title and main result on the left, the leaderboard on the right,
   filling one 16:10 page. On the website the same blocks simply follow one another. */
html[data-pdf="wide"] .hero { display: grid; grid-template-columns: 0.88fr 1.12fr; column-gap: 60px; align-items: center; width: 1060px; margin-left: calc(50% - 530px); min-height: 704px; }
html[data-pdf="wide"] .hero h1 { font-size: 46px; margin-top: 16px; }
html[data-pdf="wide"] .hero .dek { font-size: 19px; }
html[data-pdf="wide"] .hero .main-result { margin-top: 28px; }
html[data-pdf="wide"] .hero .fig-wide { width: auto; margin: 0; }
html[data-pdf="wide"] .hero figcaption { font-size: 13px; }

/* The outline as it is placed on each page of the wide PDF (tools/blog_pdf.py). */
.toc-print { position: absolute; left: 24px; width: 183px; font-size: 12.5px; line-height: 1.4; }
.toc-print span { display: block; margin-bottom: 9px; padding-left: 11px; border-left: 2px solid transparent; color: #a3a7ac; }
.toc-print span.active { color: var(--ink); border-left-color: var(--accent); }

@media (max-width: 700px) {
  .post { padding-top: 40px; }
  h1 { font-size: 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .fig-pair, .lookup, .resid, .ipo, .sbx-row, .sbx-row.three { grid-template-columns: 1fr; }
  .ipo-arrow, .sbx-arrow { transform: rotate(90deg); padding: 4px 0; }
  .tl-row, .mix-row { grid-template-columns: 96px minmax(0, 1fr); }
  .loop-box { font-size: 13px; padding: 10px 2px; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  .toc { display: none !important; }
  .post { padding: 0; max-width: none; }
  .fig-wide { width: 100%; margin-left: 0; transform: none; }
  .fig, .cards, .main-result, blockquote, .loop, .ipo, .sbx, table.plain tr, .results tr, .tl-row, .mix-row { break-inside: avoid; }
  .sec > h2, .sec h3, .fig-title, .mini-h, .sec p.lead, .ipo-h, .sbx-lab { break-after: avoid; }
  details.more > summary::after { content: ""; }
  .table-scroll { overflow: visible; }
  .runs-table { font-size: 9pt; }
  .runs-table td.story { font-size: 8.5pt; }
  .runs-table tbody { break-inside: avoid; }
  #appendix { break-before: page; }
  body { font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sec > h2 { margin-top: 40px; }
  a { text-decoration: none; }
}
