/* The site's styles. Every colour and font is a token from lb-brand, in src/tokens.css (a copy, made by `npm run sync-brand`,
   loaded before this file); how the brand looks is lb-brand's visual/web.md. Only how this site applies them lives here. */

:root {
  --k-writing: var(--kf-writing);
  --k-testing: var(--kf-testing);
  --k-reading: var(--kf-reading);
  --k-thinking: var(--kf-thinking);
  --k-tooling: var(--kf-tooling);
  --k-waiting: var(--kf-waiting);
  --k-idle: repeating-linear-gradient(135deg, var(--kf-idle) 0 3px, var(--hatch) 3px 4px);
  --k-paused: var(--kf-paused);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
}
/* Every number lines up where numbers stack. */
table, .lb, .tm, .ts-pies, .bc { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 500 0.88em var(--font-num); background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
h1 { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.2; margin: 0.2rem 0 0.6rem; }
h2, h3 { font-family: var(--font-head); font-weight: 600; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.muted { color: var(--muted); }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
img { max-width: 100%; }

.site { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.topnav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 22px 0 18px; border-bottom: 2px solid var(--text); }
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-right: auto; }
.brand { font: 800 22px/1 var(--font-head); color: var(--text); }
/* The tagline beside the name, set like an eyebrow. */
.tagline { font: 600 12px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.brand:hover { text-decoration: none; }
.topnav nav { display: flex; gap: 20px; }
.topnav nav a { font-weight: 600; font-size: 15px; color: var(--text-2); }
.topnav nav a:hover { color: var(--text); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.org { color: var(--muted); font-weight: 400; }
section { margin: 28px 0; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pill.preview { color: var(--bad); border-style: dashed; border-color: var(--bad); background: none; }
.callout { border-left: 3px solid var(--border); padding: 4px 12px; color: var(--text-2); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.prov { color: var(--muted); font-size: 0.78rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 48px; }
.prov a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }

/* ---------- the home page (lb-brand site.md; previews/home.html is the reference build) ---------- */
body[data-page="home"] section { margin: 0; }

/* The claim, and who's making it */
/* Against, then who (site.md): the claim across the page, then the photo beside the bio. */
.claim { padding: clamp(28px, 5vw, 48px) 0 clamp(36px, 6vw, 56px); display: grid; gap: 36px; }
.claim-text { container-type: inline-size; min-width: 0; }
/* Sized to the page so each line of the claim fits on one line (the longest is about 23.7em); on a narrow phone it wraps. */
.claim h1 { font: 800 clamp(1.35rem, 4.1cqi, 2.6rem)/1.15 var(--font-head); margin: 0; letter-spacing: -0.01em; }
.claim h1 .no { display: block; color: var(--text-2); }
.claim h1 .yes { display: block; margin-top: 0.4em; color: var(--text); text-wrap: balance; }
mark { background: var(--hi); color: var(--on-hi); padding: 0 0.14em; border-radius: 2px; }
.who { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; align-items: start; max-width: 50rem; scroll-margin-top: 16px; }
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
/* Until there's a photo (site.md: still open). */
.photo-todo { display: grid; place-items: center; text-align: center; padding: 10px; border: 1px dashed var(--muted); font-size: 12px; line-height: 1.35; color: var(--text-2); }
.bio { display: grid; gap: 10px; }
.bio p { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; }
.bio strong { font-weight: 600; }

/* Experiments and writing, side by side, experiments wider */
.feeds { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px 48px; padding: 28px 0 48px; border-top: 1px solid var(--border); }
.feed { display: grid; gap: 24px; align-content: start; min-width: 0; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.feed-head h2 { font: 600 1.3rem/1.2 var(--font-head); margin: 0; }
.feed-head a { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.feed h3 { font: 600 clamp(1.2rem, 2.6vw, 1.4rem)/1.25 var(--font-head); margin: 0; text-wrap: balance; }
.feed h3 a { color: var(--text); }
.feed h3 .pill { vertical-align: 3px; }
.entry { display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.entry p { margin: 0; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--text-2); }
.meta .pill { font-size: 12px; letter-spacing: 0.08em; padding: 4px 9px; border: 0; }
.flag { font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 8px; border: 1px dashed var(--bad); color: var(--bad); border-radius: 4px; }
.big { font: 700 1.6rem/1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--text); }
.post { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.feed > :is(.entry, .post):last-child { border-bottom: 0; padding-bottom: 0; }
.feed .post h3 { font-size: 1.1rem; }
.post p { margin: 0; font-size: 15px; color: var(--text-2); }
.post time { font: 500 12px/1.4 var(--font-num); color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { margin: 0; color: var(--muted); }

/* Footer: the tagline and provenance */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 20px 0 40px; border-top: 2px solid var(--text); }
.foot .tag { font: 600 1.05rem/1.3 var(--font-head); margin: 0; }
.foot .prov { font-size: 13px; color: var(--muted); margin: 0; padding: 0; border: 0; }
body[data-page="home"] .site { padding-bottom: 0; }

@media screen and (max-width: 760px) { .feeds { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 520px) { .who { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; } }

/* ---------- the experiments and writing indexes ---------- */
.exp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.exp-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.exp-card:hover { text-decoration: none; border-color: var(--accent); }
.exp-no { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.exp-card .pill { justify-self: end; align-self: start; }
.exp-title { grid-column: 1 / -1; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.exp-q { grid-column: 1 / -1; color: var(--text-2); }

/* ---------- a page: prose at a reading measure, blocks at full width ---------- */
.pr-k { margin: 0 0 2px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pr-flag { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bad); border: 1px dashed var(--bad); border-radius: 6px; padding: 1px 8px; vertical-align: 1px; }
.doc-head { padding: 28px 0 4px; max-width: 820px; }
.doc-sub { font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.35; color: var(--text-2); margin: 0 0 14px; max-width: 820px; }
.doc-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; }
.doc-body > :is(p, ul, ol, blockquote, h2, h3, h4, pre, hr, .table-wrap) { max-width: 75ch; }
.doc-body > :is(p, ul, ol) { color: var(--text-2); }
.doc-body > p { margin: 0 0 1em; }
.doc-body strong { color: var(--text); }
.doc-body > blockquote { margin: 0 0 1.2em; padding: 6px 14px; border-left: 3px solid var(--border); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text-2); font-size: 0.95rem; }
.doc-body > blockquote p { margin: 0.3em 0; }
.doc-body > h2 { font-size: 1.35rem; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-body > h3 { font-size: 1.05rem; margin: 34px 0 12px; }
.doc-body > :is(h2, h3) { position: relative; scroll-margin-top: 16px; }
.anchor { position: absolute; left: -1.1em; width: 1em; color: var(--border); font-weight: 400; opacity: 0; }
:is(h2, h3):hover > .anchor, .anchor:focus { opacity: 1; text-decoration: none; }
@media screen and (max-width: 760px) { .anchor { display: none; } }
.doc-body > .table-wrap table { border-collapse: collapse; font-size: 0.9rem; }
.doc-body > .table-wrap :is(th, td) { border-bottom: 1px solid var(--border); padding: 4px 10px 4px 0; text-align: left; vertical-align: top; }
/* A command stays whole when a cell wraps ("sed -n", not "sed -" then "n"). */
.doc-body > .table-wrap td code { white-space: nowrap; }
.block { margin: 20px 0 28px; }
.block-missing { margin: 16px 0; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: 0.85rem; }
.rs-note { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; max-width: 75ch; }
.rs-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.7rem; font-weight: 600; color: var(--text-2); white-space: nowrap; vertical-align: 1px; }
.rs-run { font-size: 0.72rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.nc-tag { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.build-id { font-family: var(--font-num); font-weight: 500; font-size: 0.78rem; color: var(--muted); background: none; padding: 0; }
.split-cap { font-size: 0.92rem; margin: 0 0 10px; }

/* ---------- swatches, legend, tooltip ---------- */
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; flex: none; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--text-2); }
.legend li, .legend span { display: flex; align-items: center; }
.tip { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; max-width: 320px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; box-shadow: 0 6px 24px var(--shadow); }
.tip-title { font-weight: 600; display: flex; align-items: center; }
.tip-sub { color: var(--muted); }

/* ---------- experiment: the setup box ---------- */
.setup { margin: 24px 0 32px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.setup-title { margin: 4px 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.setup-q { margin: 0 0 14px; color: var(--text-2); max-width: 75ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 0.9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.facts dd b { color: var(--text); }
@media screen and (max-width: 600px) {
  .setup { padding: 14px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 8px; }
}

/* ---------- agents: the leaderboard ---------- */
.lb { display: grid; gap: 4px; }
.lb-row { display: grid; grid-template-columns: 28px minmax(130px, 200px) minmax(0, 1fr) 96px 84px 72px; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.lb-row.win { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.lb-place { font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.lb-row.win .lb-place { background: var(--hi); color: var(--on-hi); border-radius: 6px; }
.lb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-plot { position: relative; height: 22px; }
.lb-bar { position: absolute; left: 0; top: 6px; height: 10px; background: var(--kf-thinking); border-radius: 0 4px 4px 0; z-index: 1; }
/* The winner reads by weight and its badge, not by a second colour. */
.lb-row.win .lb-bar { background: var(--text); }
.lb-range { position: absolute; top: 10px; height: 2px; background: var(--muted); z-index: 1; }
.lb-dot { position: absolute; top: 7px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-2); box-sizing: border-box; z-index: 1; }
.lb-val { position: absolute; top: 2px; margin-left: 10px; font-family: var(--font-num); font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; z-index: 2; background: var(--bg); padding: 0 3px; border-radius: 3px; }
.lb-row.win .lb-val { background: var(--surface); }
/* Near the right edge, the value sits on the bar's end instead, so it never leaves the page. */
.lb-val-l { transform: translateX(-100%); margin-left: -12px; top: -12px; }
.lb-axis { padding-top: 0; padding-bottom: 0; font-size: 0.72rem; color: var(--muted); }
.lb-axis .lb-plot { height: 14px; }
.lb-axis .lb-plot span { position: absolute; transform: translateX(-50%); }
.lb-axis .lb-plot span:first-child { transform: none; }
.lb-axis .n { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; white-space: normal; line-height: 1.2; align-self: end; }
.lb-row > .n { font-size: 0.88rem; white-space: normal; }
.lb-cov { display: block; font-size: 0.75rem; }
/* Why an agent's builds aren't clean, under its name. */
.lb-nc { display: block; white-space: normal; font-size: 0.75rem; color: var(--text-2); line-height: 1.3; margin-top: 2px; }
.lb-nc b { font-weight: 600; }
.lb-row.unfinished .lb-place { color: var(--muted); }
@media screen and (max-width: 760px) {
  /* Name on top with its figures; the bar underneath. */
  .lb-row { grid-template-columns: 22px minmax(0, 1fr) auto auto auto; column-gap: 10px; row-gap: 2px; }
  .lb-row .lb-plot { grid-column: 2 / -1; grid-row: 2; }
  .lb-row .lb-name { white-space: normal; }
  .lb-row > .n { font-size: 0.8rem; }
  .lb-axis { display: none; }
}

/* ---------- times: every build as a dot ---------- */
.tm { margin: 0; }
.tm-rows { display: grid; gap: 2px; }
.tm-row { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 4px 8px; }
.tm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-plot { position: relative; height: 26px; }
.tm-plot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.tm-grid { position: absolute; top: 4px; bottom: 4px; border-left: 1px dotted var(--border); }
.tm-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--text-2); background: var(--text-2); opacity: 0.85; z-index: 1; }
.tm-dot:hover, .tm-dot:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }
.tm-gate { background: var(--surface); border-color: var(--bad); }
.tm-dnf { background: var(--surface); border-style: dashed; border-color: var(--muted); }
.tm-other { background: var(--surface); border-color: var(--muted); }
.tm-med { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; background: var(--accent); border-radius: 2px; z-index: 2; }
.tm-v { font-family: var(--font-num); font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tm-axis { padding-top: 0; padding-bottom: 0; }
.tm-axis .tm-plot { height: 16px; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-axis .tm-plot::before { display: none; }
.tm-axis .tm-plot span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tm-axis .tm-plot span:first-child { transform: none; }
.tm-legend { margin-top: 10px; padding-left: 8px; }
.tm-legend .tm-key { position: static; margin: 0 6px 0 0; }
.tm-legend .tm-med.tm-key { display: inline-block; width: 3px; height: 12px; }
@media screen and (max-width: 760px) {
  .tm-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; padding: 4px 0; }
  .tm-row .tm-plot { grid-column: 1 / -1; grid-row: 2; }
  .tm-axis > span { display: none; }
  .tm-axis .tm-plot { grid-row: 1; }
  .tm-axis .tm-plot span.odd { display: none; }
  .tm-legend { padding-left: 0; }
}

/* ---------- builds: every build ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.data th { font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th.n { text-align: right; }
/* The row labels stay put while the build columns scroll sideways: the first column is pinned, on the page colour so nothing shows through. */
table.data :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
table.data thead th:first-child { z-index: 2; }
/* Once the table has scrolled, a rule marks the pinned column's edge. */
.table-wrap.is-scrolled table.data :is(th, td):first-child { box-shadow: inset -1px 0 var(--border); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
table.data td .muted { font-size: 0.8rem; margin-left: 6px; }
.bt td:first-child, .bt th:first-child { padding-left: 0; }
.bt-id code { font-size: 0.8rem; white-space: nowrap; }
.bt-agent { white-space: nowrap; }
.bt-mark { color: var(--accent); cursor: help; margin-left: 1px; font-weight: 700; }
.acs { display: flex; flex-wrap: wrap; gap: 3px; max-width: 26ch; }
.acs code { font-size: 0.75rem; white-space: nowrap; }
.acs .muted { margin: 0 !important; align-self: center; }
.bt-nc { min-width: 12rem; }
tr.bt-off td { color: var(--text-2); }

/* ---------- split: where one build's time went ---------- */
.split { margin: 0; max-width: 560px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.split-body { display: flex; align-items: center; gap: 20px; }
.split-donut { width: 140px; height: 140px; flex: none; }
.donut-arcs path { stroke: var(--surface); stroke-width: 1.2; }
.donut-arcs path:hover { opacity: 0.85; }
.donut-v { text-anchor: middle; font-family: var(--font-num); font-size: 12px; font-weight: 700; fill: var(--text); font-variant-numeric: tabular-nums; }
.donut-l { text-anchor: middle; font-size: 7px; fill: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
table.shares { border-collapse: collapse; font-size: 0.86rem; flex: 1; min-width: 0; }
table.shares td { padding: 3px 6px; border-bottom: 1px solid var(--border); }
table.shares td:first-child { white-space: nowrap; padding-left: 0; }
table.shares .n { color: var(--text-2); }
.split-k td { font-size: 0.78rem; color: var(--muted); border-bottom-style: dotted; }
.split-k td:first-child { padding-left: 16px; }
.split .rs-note { margin-top: 10px; }
@media screen and (max-width: 520px) {
  .split-body { flex-direction: column; align-items: stretch; }
  .split-donut { align-self: center; }
}

/* ---------- timeline: one build on its clock ---------- */
.timeline { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-plot { display: flex; flex-direction: column; gap: 2px; cursor: crosshair; }
.tl-spans { width: 100%; height: 26px; display: block; background: var(--slot-bg); border-radius: 3px; }
.tl-tickets { width: 100%; height: 6px; display: block; }
.band-a { fill: var(--text-2); opacity: 0.55; }
.band-b { fill: var(--muted); opacity: 0.3; }
.tl-axis { position: relative; height: 16px; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-axis span:first-child { transform: none; }
.timeline .legend { margin-top: 6px; }
@media screen and (max-width: 600px) { .tl-axis span.odd { display: none; } }

/* ---------- gallery ---------- */
.gallery { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.shot { margin: 0; }
.shot a { display: block; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.shot a:hover img { border-color: var(--accent); }
.shot figcaption { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; }
.lightbox { padding: 0; border: 0; background: none; max-width: min(96vw, 1400px); max-height: 96vh; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.82); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 48px); margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px 0; color: #e8e8e4; font-size: 0.9rem; }
.lbx-nav { display: flex; gap: 6px; }
.lbx-nav button { font: inherit; font-size: 1.1rem; line-height: 1; width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; }
.lbx-nav button:hover, .lbx-nav button:focus-visible { background: rgb(255 255 255 / 0.2); }

/* ---------- the experiment page, as the old race page drew it ---------- */
.doc-body > details { max-width: 75ch; margin: 0 0 1.2em; color: var(--text-2); }
.doc-body > details summary { cursor: pointer; font-weight: 600; color: var(--text); }
.doc-body > details > :not(summary) { font-size: 0.95rem; }
.doc-body a[href^="#how-"] { white-space: nowrap; font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.doc-body a[href^="#how-"]:hover { color: var(--text); }
.callout.warn { border-left-color: var(--bad); }
.ld-product { font-family: var(--font-num); font-weight: 500; }

/* header facts */
.rs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; padding-top: 18px; border-top: 1px solid var(--border); }
.rs-facts p, .rs-facts li { margin: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.rs-facts ul { margin: 0; padding-left: 18px; }
.rs-facts .pr-k { margin-bottom: 4px; }
@media screen and (max-width: 760px) { .rs-facts { grid-template-columns: minmax(0, 1fr); } }

/* leaderboard: speed, cost and test results beside the bar */
.lb-race .lb-row { grid-template-columns: 28px minmax(130px, 220px) minmax(0, 1fr) 84px 104px 110px; }
.lb-band { white-space: nowrap; }
.lb-race .lb-name { white-space: normal; }
.lb-race .lb-name > b, .lb-race .lb-name > .muted { white-space: nowrap; }
.lb-band { display: block; font-size: 0.75rem; }
.lb-reason { display: block; white-space: normal; font-size: 0.78rem; color: var(--text-2); margin-top: 2px; line-height: 1.35; }
.lb-name .rs-tag { display: table; margin: 2px 0 0; }
.rs-via { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name .rs-via.rs-served { white-space: normal; }
.rs-rescore { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bad); cursor: help; }
.lb-row.unfinished .lb-bar { background: repeating-linear-gradient(135deg, var(--slot-bg) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--border); }
.lb-row.unfinished .lb-dot { border-color: var(--muted); border-style: dashed; }
/* Failed agents, under a divider: placed among themselves, muted. */
.lb-sep { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.lb-sep::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.lb-row.unranked { color: var(--text-2); }
.lb-row.unranked .lb-place { color: var(--muted); }
.lb-row.unranked .lb-bar { background: var(--kf-tooling); }
.lb-foot { padding: 2px 8px 0 48px; font-size: 0.78rem; color: var(--text-2); line-height: 1.4; }
/* Expected speed comes from outside the builds: a secondary figure, its source in a note under the board. */
.lb-exp { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-exp-u { display: none; }
.lb-note { margin: 10px 0 0; padding: 0 8px 0 48px; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
/* A bar longer than the axis: cut by two slashes at the edge, its time on the bar. */
.lb-break { position: absolute; right: 4px; top: 3px; width: 8px; height: 16px; z-index: 1; background: linear-gradient(115deg, transparent 0 30%, var(--muted) 30% 40%, transparent 40% 60%, var(--muted) 60% 70%, transparent 70%); }
.lb-icons .lb-row { grid-template-columns: 28px minmax(130px, 220px) minmax(0, 1fr) 84px 104px 56px; }
/* No speed column: the same grid without it. */
.lb-race.lb-nospeed .lb-row { grid-template-columns: 28px minmax(130px, 220px) minmax(0, 1fr) 104px 110px; }
.lb-icons.lb-nospeed .lb-row { grid-template-columns: 28px minmax(130px, 220px) minmax(0, 1fr) 104px 56px; }
.lb-val-b { transform: translateX(-100%); margin-left: 1px; }
.lb-result { text-align: center; }
.lb-result .rs-rescore { text-align: center; }

/* Result icons: green pass, yellow minor failures only, red failed. The glyph is the page colour, so it holds 4:1 or more on the lighter dark-mode fills too. */
.ri { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.15em; cursor: help; line-height: 0; }
.ri svg { width: 100%; height: 100%; }
.ri path { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ri-pass circle { fill: var(--good); }
.ri-minor circle { fill: var(--warn); }
.ri-minor path { stroke: var(--lb-navy); }
.ri-fail circle { fill: var(--bad); }
.lb-result .ri { width: 20px; height: 20px; }
@media screen and (max-width: 760px) {
  .lb-race .lb-row, .lb-icons .lb-row { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .lb-foot, .lb-note { padding-left: 32px; }
  .lb-exp-u { display: inline; }
  .lb-race .lb-row .lb-plot { grid-column: 2 / -2; grid-row: 2; }
  .lb-race .lb-row .lb-speed { grid-column: -2 / -1; grid-row: 2; font-size: 0.8rem; text-align: right; }
  .lb-race.lb-nospeed .lb-row { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .lb-race.lb-nospeed .lb-row .lb-plot { grid-column: 2 / -1; }
}

/* pies: where the time went */
.ts-defs { position: absolute; }
.ts-pies { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; margin: 8px 0 12px; }
.ts-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ts-fig figcaption { font-size: 0.9rem; white-space: nowrap; }
.ts-pie { width: 140px; height: 140px; }
.ts-pie path, .ts-pie circle { stroke: var(--bg); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ts-pie path:hover, .ts-pie circle:hover { opacity: 0.85; }
.ts-none { display: flex; align-items: center; justify-content: center; box-sizing: border-box; border: 2px dashed var(--border); border-radius: 50%; padding: 14px; text-align: center; font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.ts-legend { margin-bottom: 6px; }
/* A caveat under a pie, e.g. its fitted parts were scaled to fit the clock. */
.ts-note { margin: 0; max-width: 170px; font-size: 0.72rem; line-height: 1.3; color: var(--muted); text-align: center; }
.ts-fig { align-self: flex-start; }
.ts-legend li { cursor: help; }
@media screen and (max-width: 760px) {
  .ts-pies { gap: 16px; justify-content: space-between; }
  .ts-pie { width: 96px; height: 96px; }
  .ts-fig figcaption { font-size: 0.8rem; white-space: normal; text-align: center; max-width: 104px; }
}

/* of-which tables: metrics down, builds across */
.mt th:first-child { text-align: left; }
.mt th.n { white-space: normal; vertical-align: bottom; min-width: 5.5rem; }
.mt td:first-child { white-space: nowrap; padding-left: 0; }
.mt th:first-child { padding-left: 0; }
.mt td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtt th.n { text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.mtt th.n .rs-tag, .mtt th.n .rs-run { display: inline-block; margin-top: 2px; }
.mtt tr.mt-part td:first-child { padding-left: 26px; color: var(--text-2); }
.mtt tr.mt-off td { color: var(--muted); }
.mtt tr.mt-row-total td { font-weight: 600; border-top: 2px solid var(--text); }
/* A group ("Reasoning", "Testing") leads its indented parts. */
.mtt tr.mt-row-part:not(.mt-nest):has(+ tr.mt-nest) td { font-weight: 600; color: var(--text); }
.mtt tr.mt-row-supplement td { font-size: 0.8rem; color: var(--muted); }
.mtt tr.mt-nest td { font-size: 0.78rem; color: var(--muted); padding-top: 4px; padding-bottom: 4px; }
.mtt tr.mt-nest td .muted { color: var(--muted); opacity: 0.85; }
.mtt tr.mt-nest td:first-child { padding-left: 26px; }
.mtt tr.mt-nest2 td:first-child { padding-left: 46px; }
.rs-nc { display: block; font-size: 0.7rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.rs-est { margin-left: 3px; font-size: 0.7rem; color: var(--muted); }
.sh-short { color: var(--muted); margin-left: 1px; cursor: help; }
.approx-sw { width: 9px; height: 9px; margin: 0 0 0 4px; background: repeating-linear-gradient(135deg, var(--kf-thinking) 0 2px, var(--slot-bg) 2px 4px); }
.rs-note > .approx-sw:first-child { margin: 0 6px 0 0; }
.block-table + .block-table { margin-top: -6px; }
/* Show figures, percentages or both: the toggles above a table that has both. A cell with no percentage keeps its figure. */
.mt-toggles { display: flex; justify-content: flex-end; margin: 0 0 6px; font-size: 0.75rem; }
.mt-toggles[hidden] { display: none; }
/* A segmented control: one pill, one segment lit. The radios stay in the page for the keyboard (arrows move between segments). */
.mt-toggles label { position: relative; display: inline-flex; align-items: center; padding: 2px 11px; border: 1px solid var(--border); margin-left: -1px; color: var(--text-2); font-weight: 600; cursor: pointer; user-select: none; }
.mt-toggles label:first-child { margin-left: 0; border-radius: 999px 0 0 999px; padding-left: 13px; }
.mt-toggles label:last-child { border-radius: 0 999px 999px 0; padding-right: 13px; }
.mt-toggles label:has(input:checked) { background: var(--surface-2); color: var(--text); }
.mt-toggles label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; }
.mt-toggles input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mt-hide-pct .mt-pct { display: none; }
.mt-hide-v td:has(.mt-pct) > .mt-v { display: none; }
.mt-hide-v td > .mt-v + .mt-pct { margin-left: 0; }
.mt-hide-v td > .mt-v + .mt-pct > .mt-sep { display: none; }
.mt-hide-v td > .mt-v + .mt-pct { color: var(--text); font-size: inherit; }
@media screen and (max-width: 600px) { .mt td:first-child { white-space: normal; min-width: 7.5rem; } }

/* test cards */
.tc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tc-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--surface); }
.tc-card p { margin: 0; }
.tc-name { font-size: 0.88rem; line-height: 1.4; }
.tc-big { font-family: var(--font-num); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 4px !important; }
.tc-meta { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-bar { display: block; height: 4px; margin-top: 10px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; background: var(--kf-testing); }
.tc-pay { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tc-found { font-size: 0.88rem; color: var(--text-2); }
.tc-found .tc-big { display: inline; margin: 0 4px 0 0 !important; color: var(--text); }

/* waste */
.wst-table td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wst-table td:first-child, .wst-table th:first-child { padding-left: 0; white-space: nowrap; }

/* ---------- a talk: 1280×720 slides, scaled to the window (deck.js sets --s and each slide's --k) ---------- */
body[data-page="deck"] { margin: 0; overflow: hidden; background: var(--surface-2); }
.deck { position: fixed; inset: 0; --s: 1; }
.slide { display: none; position: absolute; inset: 0; margin: 0; }
.slide.is-current, .deck.measure .slide { display: block; }
.deck.measure .slide:not(.is-current) { visibility: hidden; }
.slide-frame { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; overflow: hidden; background: var(--bg); transform: translate(-50%, -50%) scale(var(--s)); box-shadow: 0 2px 30px rgb(0 0 0 / 0.12); }
/* Shrunk by --k when it overflows, laid out wider by the same factor. */
.slide-content { --k: 1; position: absolute; left: 0; top: 0; box-sizing: border-box; width: calc(1280px / var(--k)); min-height: calc(720px / var(--k)); padding: 56px 72px; transform: scale(var(--k)); transform-origin: 0 0; font-size: 28px; line-height: 1.4; }
.deck.measure .slide-content { min-height: 0; }
.slide-content > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.slide-content > :is(p, ul, ol, blockquote) { max-width: 46ch; }
.slide-content > :is(p, ul, ol) { margin: 0 0 0.7em; }
.slide-content li + li { margin-top: 0.3em; }
.slide-content > h1 { font-size: 72px; line-height: 1.05; margin: 0 0 24px; }
.slide-content > h2 { font-size: 48px; line-height: 1.1; margin: 0 0 28px; padding: 0; border: 0; max-width: none; }
.slide-content > h3 { font-size: 34px; margin: 24px 0 12px; }
.slide-content .anchor { display: none; }
.slide-content > .table-wrap table { font-size: 24px; }
.slide-content > .table-wrap :is(th, td) { padding: 8px 24px 8px 0; }
.slide-content > p > img:only-child { display: block; max-height: 520px; margin: 0 auto; border-radius: 8px; border: 1px solid var(--border); }
.slide-content > .block { margin: 0 0 16px; }
/* No sideways scrolling on a slide: a wide table widens the content, and the slide shrinks to fit it. */
.slide-content .table-wrap { overflow: visible; }
/* Names are slide-sized: the model goes under the harness, whole, in a wider column than the page's 200px, which would cut it off. */
.slide-content .lb-row { grid-template-columns: 28px minmax(130px, 320px) minmax(0, 1fr) 96px 84px 72px; }
.slide-content .lb-nospeed .lb-row { grid-template-columns: 28px minmax(130px, 320px) minmax(0, 1fr) 84px 72px; }
.slide-content .lb-name { white-space: normal; }
.slide-content .lb-name > .muted { white-space: nowrap; }
.slide-content .lb-name > b { display: block; }
/* The title slide is the cover: navy, ecru ink, in both themes. */
.slide-content.slide-title { display: flex; flex-direction: column; justify-content: center; background: var(--lb-navy); color: var(--lb-ecru); }
.slide-content.slide-title > p { color: var(--lb-pale); font-size: 32px; }
.slide-notes { display: none; }

.deck-ui { position: fixed; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); opacity: 0.35; transition: opacity 0.2s; }
.deck-ui:hover, .deck-ui:focus-within { opacity: 1; }
.deck-ui a { color: var(--muted); margin-right: 8px; }
.deck-ui button { font: inherit; font-size: 1.1rem; line-height: 1; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.deck-num { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
:fullscreen .deck-ui { opacity: 0; }
:fullscreen .deck-ui:hover { opacity: 1; }

/* The presenter view: this slide, the next, the notes and a clock. */
body.presenting .deck, body.presenting .deck-ui { display: none; }
.presenter { position: fixed; inset: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 20px; padding: 20px; box-sizing: border-box; }
.presenter[hidden] { display: none; }
.pv-k { margin: 0 0 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pv-now, .pv-side { display: flex; flex-direction: column; min-height: 0; gap: 14px; }
.pv-slot { --s: 1; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; color: var(--muted); }
.pv-slot .slide-frame { box-shadow: none; outline: 1px solid var(--border); color: var(--text); }
.pv-meta { display: flex; justify-content: space-between; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pv-clock { cursor: pointer; font-weight: 700; }
.pv-notes { flex: 1; overflow: auto; font-size: 1.35rem; line-height: 1.5; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.pv-notes p { margin: 0 0 0.6em; }

/* Print: one slide per 1280×720 page, so the browser's "Save as PDF" gives the deck.
   The narrow-screen rules above are screen-only: Chrome tests print media against a default paper width, not the @page size. */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  body[data-page="deck"] { overflow: visible; background: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body[data-page="deck"] .deck { position: static; }
  body[data-page="deck"] .slide { display: block; position: relative; width: 1280px; height: 720px; break-after: page; overflow: hidden; }
  body[data-page="deck"] .slide:last-child { break-after: auto; }
  body[data-page="deck"] .slide-frame { left: 0; top: 0; transform: none; box-shadow: none; }
  /* Pages break on layout height, which a transform doesn't change: shrink with zoom instead, so a shrunk slide's layout fits the page. */
  body[data-page="deck"] .slide-content { transform: none; zoom: var(--k); }
  .deck-ui, .presenter, .slide-notes, .tip { display: none !important; }
}

/* ---------- compare: one metric across experiments; build: one build's facts ---------- */
.cmp td:first-child { white-space: nowrap; }
.cmp th .rs-tag { margin-left: 4px; }
.cmp-change { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.cmp-better { color: var(--good); }
.cmp-worse { color: var(--bad); }
.bc { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 18px 20px; max-width: 760px; }
.bc-head { margin: 0 0 14px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.bc-id { font-size: 0.78rem; color: var(--muted); margin-left: 6px; }
.bc-facts, .bc-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px; margin: 0 0 14px; }
.bc-tokens { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); padding-top: 12px; border-top: 1px solid var(--border); }
.bc-fact dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.bc-fact dd { margin: 2px 0 0; font-family: var(--font-num); font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-tokens .bc-fact dd { font-size: 0.95rem; }
.bc-sub { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-2); }
.bc-line { margin: 6px 0 0; font-size: 0.88rem; color: var(--text-2); }
.bc-line code { font-size: 0.78rem; }

/* ---------- long pages: code, and a contents list beside a backlog ---------- */
.doc-body pre { font-family: var(--font-num); overflow-x: auto; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; line-height: 1.5; }
.doc-body pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }
.toc { display: none; }
.toc-fold { margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.toc-fold summary { cursor: pointer; font-weight: 600; }
.toc-fold ol { list-style: none; margin: 8px 0 0; padding: 0; }
.toc-fold a { display: block; padding: 4px 0; color: var(--text-2); }
.toc-fold .toc-2 a { color: var(--text); font-weight: 600; margin-top: 4px; }
.toc-fold .toc-3 a { padding-left: 14px; }
.toc-fold code { font-size: 0.9em; }
@media screen and (min-width: 1180px) {
  .toc-fold { display: none; }
  .doc-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 40px; }
  .doc-toc > :not(.toc) { grid-column: 1; }
  .doc-toc > .toc { display: block; grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; font-size: 0.82rem; padding: 4px 0 4px 14px; border-left: 1px solid var(--border); }
  .toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 3px 0; color: var(--text-2); }
  .toc a:hover { color: var(--accent); text-decoration: none; }
  .toc .toc-2 a { color: var(--text); font-weight: 600; margin-top: 4px; }
  .toc .toc-3 a { padding-left: 12px; }
  .toc code { font-size: 0.9em; }
}
/* A backlog's criteria tables take the column's full width; wider ones scroll inside their box. */
.doc-toc .doc-body > .table-wrap { max-width: none; }
/* Headings below h3, as a backlog's tickets use them: h4 a sub-heading, h5 a scenario's name, never smaller than the text. */
.doc-body > h4 { font-size: 1rem; margin: 26px 0 8px; }
.doc-body > h5 { font-size: 0.95rem; margin: 20px 0 6px; color: var(--text-2); }
.doc-body > .table-wrap { margin: 0 0 1em; }
/* A backlog's tickets are its h3s: they lead their sub-headings clearly. */
.doc-toc .doc-body > h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--border); }
/* ```text is given word for word (a prompt, a raw file): its prose lines wrap, a table's rows keep their line and scroll. Code keeps its lines. */
.doc-body pre.raw code { display: block; white-space: normal; }
.doc-body pre.raw { line-height: 1.5; }
.doc-body pre.raw .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em; line-height: 1.5; }
.doc-body pre.raw :is(.ln-table, .ln-pre) { white-space: pre; overflow-wrap: normal; width: max-content; }
/* A list item's wrapped lines hang under its text, past the "- ". */
.doc-body pre.raw .ln-li { padding-left: 2ch; text-indent: -2ch; }
/* Text given word for word takes the column's full width, as tables do, so its lines (often hard-wrapped near 100 characters) fit before they wrap. */
.doc-body > pre.raw, .doc-body > figure.raw-card { max-width: none; }
.doc-body > figure.raw-card { margin: 0 0 1.2em; }
.raw-card figcaption { margin: 0 0 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.raw-card pre { margin: 0; }
