/* BreadBowl-Embed v1.3 release post — matches breadbowl.ai (paper/beige, Manrope + Newsreader).
   The first part is the launch post's stylesheet (/blog/breadbowl-embed/assets/blog.css), cut down
   to the rules this page and lab.js (the x-ray) still use. Custom property names are shared with
   figs.css and lab.css: do not rename them. */

@font-face {
  font-family: "Manrope BB";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope BB";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader BB";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations"), url("fonts/newsreader-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader BB";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-standard-italic.woff2") format("woff2-variations"), url("fonts/newsreader-latin-standard-italic.woff2") format("woff2");
}

:root {
  --font-sans: "Manrope BB", "Manrope Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader BB", "Newsreader Variable", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  /* Colors come from the site theme (/theme/tokens.css, light + dark); fallbacks keep the
     page readable in light mode if that file is missing. */
  --beige: var(--bb-bg, #f1e8dc);
  --paper: var(--bb-surface, #faf6ef);
  --paper-2: var(--bb-surface-2, #f5efe5);
  --paper-deep: var(--bb-surface-3, #e0e6e1);
  --ink: var(--bb-fg, #292724);
  --ink-2: var(--bb-fg-2, #4a453f);
  --body: var(--bb-body, #34302b);
  --muted: var(--bb-muted, #6e675f);
  --faint: var(--bb-faint, #8f877d);
  --line: var(--bb-line, rgba(var(--ink-rgb), 0.14));
  --line-2: var(--bb-line-2, rgba(var(--ink-rgb), 0.08));
  --accent: var(--bb-accent, #6f8993);
  --ink-rgb: var(--bb-ink-rgb, 41, 39, 36);
  --paper-rgb: var(--bb-surface-rgb, 250, 246, 239);
  --glass-rgb: var(--bb-glass-rgb, 255, 255, 255);
  --rt-rgb: var(--bb-rt-rgb, 31, 106, 165);
  --val-rgb: var(--bb-val-rgb, 47, 143, 106);
  --cost-rgb: var(--bb-cost-rgb, 207, 106, 61);

  /* Data roles (validated: routing/value pair ΔE 16.7 normal, 16.1 CVD on paper) */
  --rt: var(--bb-rt, #1f6aa5);
  --rt-ink: var(--bb-rt-ink, #1b5687);
  --rt-soft: var(--bb-rt-soft, #dde8f1);
  --rt-wash: rgba(var(--rt-rgb), 0.1);
  --val: var(--bb-val, #2f8f6a);
  --val-ink: var(--bb-val-ink, #22694e);
  --val-soft: var(--bb-val-soft, #dcede4);
  --val-wash: rgba(var(--val-rgb), 0.12);
  --cost: var(--bb-cost, #cf6a3d);
  --cost-ink: var(--bb-cost-ink, #a24d26);
  --cost-soft: var(--bb-cost-soft, #f5e1d6);
  --hl: var(--bb-hl, #ecd38f);
  --hl-ink: var(--bb-hl-ink, #80600f);
  --hl-soft: var(--bb-hl-soft, #f4e8c6);
  --neutral-mark: var(--bb-neutral-mark, #a59c90);

  --radius: 20px;
  --shadow: var(--bb-shadow, 0 18px 60px rgba(77, 63, 46, 0.07));
  --text-w: 700px;
  --wide-w: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--beige); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--body);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.62;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--bb-selection, #c6d7dc); color: var(--ink); }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ nav */
.bb-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bb-nav, rgba(241, 232, 220, 0.9));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-family: var(--font-sans);
}
.bb-nav-inner { width: min(100% - 48px, 1280px); height: 64px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bb-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.bb-logo-tile { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--bb-tile, #dce6e7); }
.bb-logo-tile img { width: 24px; height: 24px; }
.bb-nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.bb-nav-links a { text-decoration: none; transition: color 160ms ease; }
.bb-nav-links a:hover { color: var(--ink); }
.bb-nav-cta { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--ink); color: var(--paper) !important; font-size: 12px; font-weight: 650; }
.bb-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--rt); }

/* ------------------------------------------------------------------ layout */
main { padding-top: 64px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--text-w)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide-w)); margin-inline: auto; }
section.chapter { padding: 40px 0 24px; }
.chapter + .chapter { border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ type */
.eyebrow {
  margin: 0 0 18px; color: var(--muted);
  font: 500 10.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
}
.eyebrow b { color: var(--ink); font-weight: 600; }
.nw { white-space: nowrap; }
@media (max-width: 520px) {
  .hero-eyebrow b { display: block; margin-bottom: 4px; }
  .hero-eyebrow b + .sep { display: none; }
}
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); font-weight: 600; margin: 0; }
h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.052em; }
h1 .l { display: block; text-wrap: balance; }
h1 em, h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 430; color: var(--accent);
  letter-spacing: -0.03em; font-size: 1.06em;
}
h2 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.05; letter-spacing: -0.042em; margin: 8px 0 26px; }
h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.025em; margin: 44px 0 8px; }
p { margin: 0 0 1.05em; }
.wrap > p, .wrap > ul, .wrap > ol { max-width: 680px; }
strong { color: var(--ink); font-weight: 650; }
em { font-style: italic; }
.lede { font-size: clamp(21px, 2.1vw, 25px); line-height: 1.5; color: var(--ink-2); margin-top: 28px; }
.small, .note { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
code, kbd { font-family: var(--font-mono); font-size: 0.82em; background: rgba(var(--ink-rgb), 0.06); border-radius: 5px; padding: 0.08em 0.36em; color: var(--ink); }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin: 0.35em 0; }
li::marker { color: var(--faint); }
a.inline, .wrap p a, .wrap li a, .note a, figcaption a { text-decoration: underline; text-decoration-color: rgba(var(--ink-rgb), 0.3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap p a:hover, .wrap li a:hover { text-decoration-color: var(--ink); }
.rt { color: var(--rt-ink); font-weight: 600; }
.val { color: var(--val-ink); font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 24px; }
.hero-head { text-align: center; }
.hero-head .lede { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-head .meta, .hero-head .actions { justify-content: center; }
.hero-head figure { text-align: left; }
.hero .meta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-family: var(--font-sans); font-size: 13.5px; color: var(--muted); }
.hero .meta .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--bb-tile, #dce6e7), var(--paper-2)); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--bb-on-tile, #59727d); border: 1px solid var(--line); }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  font: 650 13px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(var(--paper-rgb), 0.7); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--bb-invert-hover, #3a3631); border-color: var(--bb-invert-hover, #3a3631); }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn .tag { font: 500 10px var(--font-mono); color: var(--faint); letter-spacing: 0.04em; }
.btn-primary .tag { color: color-mix(in oklab, var(--paper) 62%, var(--ink)); }

/* ------------------------------------------------------------------ figures */
figure { margin: 36px auto; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 30px);
}
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-head .t { font: 600 15px/1.3 var(--font-sans); color: var(--ink); letter-spacing: -0.01em; }
figcaption { margin: 14px auto 0; max-width: 760px; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
figcaption b { color: var(--ink-2); font-weight: 650; }
.real-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--val-soft); color: var(--val-ink); font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.real-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--val); }
.illus-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.06); color: var(--muted); font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* chips / toggles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--glass-rgb), 0.35);
  font: 600 12.5px/1.25 var(--font-sans); color: var(--ink-2); cursor: pointer; text-align: left;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.chip:hover { border-color: rgba(var(--ink-rgb), 0.32); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--glass-rgb), 0.4); }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font: 650 12px/1 var(--font-sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg[hidden], .chip[hidden] { display: none !important; }

/* ------------------------------------------------------------------ TL;DR */
.tldr { margin: 34px 0 10px; padding: 24px 26px; border-radius: 18px; background: rgba(var(--paper-rgb), 0.66); border: 1px solid var(--line); }
.tldr .eyebrow { margin-bottom: 12px; }
.tldr ul { margin: 0; padding-left: 1.1em; font-size: 18.5px; line-height: 1.55; }
.tldr li { margin: 0.45em 0; }

/* ------------------------------------------------------------------ legend, tokens, slot chips, tooltip (lab.js) */
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 600 11.5px/1 var(--font-sans); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .lv { background: var(--val); }
.legend .lc { background: var(--cost); }
.tok { border-radius: 4px; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pane { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(var(--glass-rgb), 0.32); min-width: 0; }
.pane h4 { font: 600 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; }
.slotbar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.sb {
  position: relative; min-height: 40px; padding: 5px 4px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  cursor: pointer; text-align: center; overflow: hidden;
}
.sb .n { display: block; font: 600 9px/1 var(--font-mono); color: var(--faint); }
.sb .w { display: block; margin-top: 4px; font: 650 11px/1.15 var(--font-sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rt); transform-origin: 0 50%; transform: scaleX(var(--m, 0)); transition: transform 260ms ease; }
.sb.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.toks { font-family: var(--font-serif); font-size: 18.5px; line-height: 1.8; color: var(--ink-2); word-break: break-word; }
.toks .tok[data-pct]::after { content: attr(data-pct); position: relative; top: -0.75em; margin-left: 1px; font: 700 9px/1 var(--font-sans); color: var(--ink); }
.insp-note { margin-top: 12px; font: 500 12.5px/1.55 var(--font-sans); color: var(--muted); min-height: 40px; }
.insp-note b { color: var(--ink); }
.tip {
  position: fixed; z-index: 80; pointer-events: none; max-width: 280px; padding: 9px 11px; border-radius: 10px;
  background: var(--bb-invert, #24221f); color: var(--bb-on-invert, #f6f1e8); font: 500 12px/1.45 var(--font-sans); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease;
}
.tip.show { opacity: 1; transform: translateY(0); }
.tip b { color: inherit; font-weight: 700; }
.tip .k { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }

/* ------------------------------------------------------------------ tables */
details.tableview { margin-top: 14px; font-family: var(--font-sans); font-size: 13px; color: var(--muted); }
details.tableview summary { cursor: pointer; font-weight: 650; color: var(--ink-2); width: fit-content; }
details.tableview > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
details.tableview table { margin-top: 10px; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
details.tableview th, details.tableview td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
details.tableview th:first-child, details.tableview td:first-child { text-align: left; }
details.tableview th { font: 600 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ------------------------------------------------------------------ callouts, code, links, footer */
.callout { margin: 28px 0; padding: 18px 20px 18px 22px; border-left: 3px solid var(--rt); background: color-mix(in oklab, var(--rt-soft) 35%, transparent); border-radius: 0 14px 14px 0; font-size: 18.5px; line-height: 1.6; }
.callout.honest { border-left-color: var(--cost); background: color-mix(in oklab, var(--cost-soft) 45%, transparent); }
.callout .t { display: block; margin-bottom: 6px; font: 650 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
.pull { margin: 40px 0; font: 600 clamp(26px, 3vw, 36px)/1.22 var(--font-sans); letter-spacing: -0.03em; color: var(--ink); }
.pull em { font-family: var(--font-serif); font-style: italic; font-weight: 430; color: var(--accent); }
/* code blocks are paper cards that follow the theme (tokens only, so the no-JS media fallback works too) */
pre.code {
  position: relative; margin: 22px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); overflow-x: auto;
  font: 13.5px/1.65 var(--font-mono); tab-size: 4; padding-top: 44px;
}
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
pre.code .c { color: var(--muted); }
pre.code .s { color: var(--val-ink); }
pre.code .k { color: var(--rt-ink); }
pre.code .f { color: var(--hl-ink); }
.copy { position: absolute; top: 10px; right: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.04); color: var(--ink-2); border-radius: 8px; padding: 5px 9px; font: 600 11px/1 var(--font-sans); cursor: pointer; }
.copy:hover { background: rgba(var(--ink-rgb), 0.1); }
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.link-card { display: block; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card .k { font: 600 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.link-card b { display: block; margin-top: 8px; font: 650 16px/1.3 var(--font-sans); color: var(--ink); }
.link-card span { display: block; margin-top: 6px; font: 500 12.5px/1.5 var(--font-sans); color: var(--muted); word-break: break-word; }
.bb-footer { margin-top: 60px; background: var(--paper-deep); border-top: 1px solid var(--line); font-family: var(--font-sans); }
.bb-footer .inner { width: min(100% - 48px, 1280px); margin-inline: auto; min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; font-size: 12px; color: var(--muted); }
.bb-footer .inner > p { margin: 0; text-align: center; }
.bb-footer .links { display: flex; justify-content: flex-end; gap: 22px; }
.bb-footer a { text-decoration: none; color: var(--ink); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 18.5px; line-height: 1.6; }
  h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1.02; }
  h1 .l + .l { margin-top: 6px; }
  .bb-nav-inner { width: min(100% - 32px, 1280px); }
  .bb-nav-links .hide-sm { display: none; }
  .slotbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bb-footer .inner { grid-template-columns: 1fr; padding-block: 24px; }
  .bb-footer .inner > p { text-align: left; }
  .bb-footer .links { justify-content: flex-start; }
  .tldr { padding: 20px 18px; }
  .tldr ul { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .bb-nav, .copy { display: none !important; }
  main { padding-top: 0; }
}

/* ------------------------------------------------------------------ site chrome + dark theme */
.bb-crumbs { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.bb-crumb-sep { color: var(--faint); font: 500 14px/1 var(--font-sans); }
.bb-crumb { color: var(--muted); font: 500 13.5px/1 var(--font-sans); text-decoration: none; transition: color 160ms ease; }
.bb-crumb:hover { color: var(--ink); }
.bb-theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.bb-theme-toggle:hover { background: rgba(var(--ink-rgb), 0.06); color: var(--ink); }
.bb-theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"] .bb-theme-toggle .i-sun, :root:not([data-theme="dark"]) .bb-theme-toggle .i-moon { display: none; }
.bb-nav-links { gap: 22px; }
.bb-nav-inner, .bb-footer .inner { width: min(100% - 64px, 1136px); }
.bb-nav-cta:hover { background: var(--bb-invert-hover, #3a3631); }
[data-theme="dark"] .bb-logo-tile img { filter: invert(0.94); }
.bb-footer { background: transparent; }
.bb-footer .inner { grid-template-columns: 1fr auto; min-height: 0; padding-block: 44px; align-items: start; font-size: 14px; }
.bb-footer .brandcol p { margin: 14px 0 0; color: var(--muted); font-size: 14px; text-align: left; }
.bb-footer .links { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 44px; justify-content: end; }
.bb-footer .links a { color: var(--muted); transition: color 160ms ease; }
.bb-footer .links a:hover { color: var(--ink); }
.bb-footer .inner.bottom { grid-template-columns: 1fr auto; align-items: center; padding-block: 22px; border-top: 1px solid var(--line-2); font-size: 13px; }
.bb-footer .inner.bottom p { margin: 0; text-align: left; color: var(--muted); }
.bb-footer .inner.bottom p a { color: var(--muted); }
.bb-theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.bb-theme-switch button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.bb-theme-switch button:hover { color: var(--ink); }
.bb-theme-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.08); }
.bb-theme-switch svg { width: 15px; height: 15px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
[data-theme="dark"] .chip[aria-pressed="true"], [data-theme="dark"] .seg button[aria-pressed="true"] { color: var(--bb-on-invert, #171614); }
@media (max-width: 760px) {
  .bb-nav-inner, .bb-footer .inner { width: min(100% - 32px, 1136px); }
  .bb-crumb-sep, .bb-crumb { display: none; }
  .bb-footer .inner { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .bb-footer .links { grid-template-columns: repeat(3, auto); justify-content: start; }
  .bb-footer .inner.bottom { grid-template-columns: 1fr; gap: 14px; }
  .bb-footer .bb-theme-switch { justify-self: start; }
}

/* ==================================================================================
   v1.3 RELEASE POST
   Components of this page only. Colors come from the theme tokens above. The code card is a
   paper card like pre.code: light in the light theme, dark in the dark theme, inked with the
   routing, value and highlight inks, so it follows the system even without JavaScript.
   ================================================================================== */

/* ------------------------------------------------------------------ progressive enhancement */
.js .nojs-only { display: none !important; }
html:not(.js) .js-only { display: none !important; }
html:not(.js) .copy { display: none; }
.fallback-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.note.caveat { padding-left: 14px; border-left: 2px solid var(--line); }

/* significance markers in tables and the hero */
.sig { margin-left: 2px; font-size: 0.68em; vertical-align: 0.14em; font-family: var(--font-sans); }
.sig.dn { color: var(--cost); }
.sig.up { color: var(--rt); }
details.tableview tr.us th, details.tableview tr.us td { color: var(--ink); font-weight: 650; background: color-mix(in oklab, var(--rt-soft) 40%, transparent); }
details.tableview tbody th { font: 500 13px/1.4 var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.fig-table { width: 100%; border-collapse: collapse; font: 500 13px/1.45 var(--font-sans); color: var(--ink-2); }
.fig-table th, .fig-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.fig-table thead th { font: 600 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom-color: var(--line); }
.fig-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------------ hero */
.hero-head .lede { margin-top: 26px; }
.spec-row {
  list-style: none; margin: 26px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px;
  font: 500 12px/1.6 var(--font-mono); color: var(--ink-2); letter-spacing: 0.01em;
}
.spec-row li { margin: 0; white-space: nowrap; }
.spec-row li + li::before { content: "·"; margin: 0 11px; color: var(--faint); }
.spec-row .rt, .spec-row .val { font-weight: 500; }

/* hero figure: two lanes, the rerank replayed at a tenth of real speed */
.hero-viz { margin-top: 40px; }
.hp .card { padding: clamp(18px, 2.6vw, 30px) clamp(18px, 2.8vw, 34px) 14px; }
.hp-lane { padding: 0 0 22px; }
.hp-lane + .hp-lane { padding-top: 22px; border-top: 1px solid var(--line); }
.hp-title { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-family: var(--font-sans); }
.hp-title b { font: 650 15px/1.3 var(--font-sans); color: var(--ink); letter-spacing: -0.01em; }
.hp-title span { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.hp-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "steps out" "strip out"; gap: 14px 30px; align-items: center; }
.hp-steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hp-steps li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 66px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); font-family: var(--font-sans); }
.hp-steps li + li::before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-52%); font: 500 14px/1 var(--font-sans); color: var(--faint); }
.hp-steps b { font: 650 13.5px/1.25 var(--font-sans); color: var(--ink); }
.hp-steps small + small { margin-top: 0; }
.hp-steps small { margin-top: 3px; font: 500 11.5px/1.3 var(--font-sans); color: var(--muted); }
.hp-two .hp-rr { border-color: rgba(var(--cost-rgb), 0.5); background: rgba(var(--cost-rgb), 0.09); }
.hp-two .hp-rr small { color: var(--cost-ink); }
.hp-one .hp-enc { border-color: rgba(var(--ink-rgb), 0.3); background: var(--paper); }
.hp-one .hp-ix { border-color: rgba(var(--rt-rgb), 0.45); background: var(--rt-wash); }
.hp-one .hp-st { border-color: rgba(var(--rt-rgb), 0.3); background: linear-gradient(90deg, var(--rt-wash), var(--val-wash)); }
.hp-one .hp-rr { border-color: rgba(var(--val-rgb), 0.6); background: var(--val-wash); }
.hp-one .hp-rr small { color: var(--val-ink); font-weight: 650; }
.hp-steps .rt { color: var(--rt-ink); font-weight: 650; }
.hp-steps .val { color: var(--val-ink); font-weight: 650; }
/* one cell per candidate: filled in turn in the cross-encoder lane, all at once in v1.3's */
.hp-strip { grid-area: strip; display: grid; grid-template-columns: repeat(72, minmax(0, 1fr)); gap: 3px; }
.hp-strip i { display: block; height: 14px; border-radius: 2px; background: var(--cost); }
.hp-one .hp-strip i { background: var(--val); }
.hp-anim .hp-strip i:not(.on) { background: rgba(var(--ink-rgb), 0.08); }
.hp-out { grid-area: out; font-family: var(--font-sans); min-width: 0; }
.hp-time { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hp-ms { display: inline-block; transform-origin: left bottom; font: 700 clamp(30px, 3.4vw, 42px)/1 var(--font-sans); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.hp-one .hp-ms { color: var(--val-ink); }
.hp-time span { display: block; flex-basis: 100%; font: 500 12.5px/1.3 var(--font-sans); color: var(--muted); white-space: nowrap; }
.hp-nd { margin: 14px 0 0; font: 600 14px/1.3 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.hp-one .hp-nd { color: var(--ink); font-weight: 700; }
.hp-k { display: block; margin-bottom: 4px; font: 500 10px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hp-one.done .hp-ms { animation: hp-pop 520ms ease-out; }
@keyframes hp-pop { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.hp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hp-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font: 500 12px/1.5 var(--font-sans); color: var(--muted); }
.hp-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.hp-legend .sig { margin: 0; font-size: 10px; vertical-align: 0; }
.hp-cell { display: inline-block; width: 7px; height: 12px; border-radius: 2px; background: var(--neutral-mark); }

/* ------------------------------------------------------------------ 02 flow: encode, find, rerank */
.fl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.fl-steps button { min-height: 32px; }
.fl-stage { display: grid; }
.fl-panel { grid-area: 1 / 1; align-self: center; min-width: 0; visibility: hidden; opacity: 0; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.fl-panel.active { visibility: visible; opacity: 1; transition: opacity 300ms ease; }
.fl-row { display: flex; align-items: stretch; gap: 8px; }
.fl-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.fl-k { font: 600 10px/1.35 var(--font-mono); text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); }
.fl-arr { position: relative; flex: 0 0 18px; align-self: center; height: 1px; background: var(--line); }
.fl-arr::after { content: ""; position: absolute; right: -2px; top: -4px; border: 4.5px solid transparent; border-left: 5px solid var(--faint); border-right: 0; }
.fl-text { margin: 0; font: 400 16px/1.5 var(--font-serif); color: var(--faint); }
.fl-text .w { transition: color 250ms ease; }
.fl-text .w.on { color: var(--ink); }
.fl-bb b { font: 650 14px/1.2 var(--font-sans); color: var(--ink); }
.fl-layers { display: grid; gap: 4px; margin-top: auto; }
.fl-layers i { height: 3px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.08); transition: background 250ms ease; }
.fl-layers i.on { background: rgba(var(--ink-rgb), 0.3); }
.fl-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.fl-slot { display: grid; grid-template-rows: 1fr 1fr; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.fl-slot i { display: block; opacity: 0; transition: opacity 250ms ease; }
.fl-slot i.r { background: var(--rt); }
.fl-slot i.v { background: var(--val); }
.fl-slot.on i { opacity: 0.32; }
.fl-slot.r-only { grid-template-rows: 1fr; height: 12px; }
.fl-slots.mini { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 1px; }
.fl-slots.mini .fl-slot { height: 6px; border: 0; border-radius: 2px; background: rgba(var(--ink-rgb), 0.06); }
.fl-key { margin-top: -2px; font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
.fl-store { align-items: flex-start; }
.fl-stack { display: grid; gap: 6px; width: 100%; max-width: 120px; margin-top: auto; }
.fl-stack i { height: 6px; border-radius: 3px; background: rgba(var(--ink-rgb), 0.07); transition: background 300ms ease; }
.fl-stack i.on { background: linear-gradient(90deg, rgba(var(--rt-rgb), 0.55) 50%, rgba(var(--val-rgb), 0.55) 50%); }
.fl-node small { font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
.fl-idx { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; overflow: hidden; border-radius: 6px; }
.fl-idx i { height: 16px; border-radius: 4px; border: 1px solid var(--line-2); background-image: radial-gradient(circle, rgba(var(--ink-rgb), 0.22) 1px, transparent 1.4px); background-size: 25% 50%; transition: border-color 250ms ease, background-color 250ms ease; }
.fl-idx i.hit { border-color: var(--rt); background-color: rgba(var(--rt-rgb), 0.12); }
.fl-scan { position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; background: linear-gradient(90deg, transparent, rgba(var(--rt-rgb), 0.16), transparent); opacity: 0; pointer-events: none; }
.fl-idx.go .fl-scan { animation: fl-scan 900ms ease-in-out 1; }
@keyframes fl-scan { 0% { left: -35%; opacity: 1; } 100% { left: 100%; opacity: 1; } }
.fl-cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fl-cands li { margin: 0; padding: 4px; border: 1px solid var(--line-2); border-radius: 6px; opacity: 0.3; transition: opacity 300ms ease, border-color 300ms ease; }
.fl-cands li.on { opacity: 1; border-color: var(--line); }
.fl-rr { display: grid; gap: 6px; max-width: 760px; margin: 0 auto; }
.fl-k-b { text-align: right; }
.fl-attn { width: 100%; height: auto; overflow: visible; }
.fl-attn .fl-r { fill: rgba(var(--rt-rgb), 0.6); }
.fl-attn .fl-v { fill: var(--val); }
.fl-attn .fl-v.dim { opacity: 0.25; }
.fl-attn .fl-v.read { opacity: 0.1; transition: opacity 600ms ease 900ms; }
.fl-panel.go .fl-attn .fl-v.read { opacity: calc(var(--a) * 0.85); }
.fl-link { fill: none; stroke: var(--rt); stroke-opacity: calc(0.08 + var(--w) * 0.4); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms ease; }
.fl-panel.go .fl-link { stroke-dashoffset: 0; }
.fl-score { margin-top: 8px; }
.fl-score-k { margin: 0 0 8px; }
.fl-sbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(var(--ink-rgb), 0.07); }
.fl-sbar span { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 600ms ease; }
.fl-sbar .r { background: var(--rt); transition-delay: 1200ms; }
.fl-sbar .v { background: var(--val); transition-delay: 1700ms; }
.fl-panel.go .fl-sbar span { clip-path: inset(0 0 0 0); }
.fl-slab { display: flex; margin-top: 7px; font: 600 11.5px/1.3 var(--font-sans); }
.fl-slab span { padding-right: 6px; }
.fl-slab .r { color: var(--rt-ink); }
.fl-slab .v { color: var(--val-ink); }
.fl-say { min-height: 44px; margin: 16px 0 0; font: 500 14px/1.55 var(--font-sans); color: var(--ink-2); }
@media (min-width: 761px) {
  /* Step 3: the score sits beside the diagram, so all three steps need about the same height. */
  .fl-rr { max-width: none; grid-template-columns: minmax(0, 1fr) clamp(220px, 27%, 290px); column-gap: clamp(24px, 4vw, 48px); align-items: center; }
  .fl-rr > .fl-k, .fl-rr > .fl-attn { grid-column: 1; }
  .fl-rr > .fl-score { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
.fl-rr .fl-slab .v { display: flex; justify-content: flex-end; min-width: 0; padding-right: 0; white-space: nowrap; }

/* ------------------------------------------------------------------ 02 code card: the rerank step in six lines */
.cc { margin-top: 48px; margin-bottom: 44px; }
.cc-card {
  --cc-text: var(--ink-2); --cc-dim: var(--muted); --cc-faint: var(--faint); --cc-rule: rgba(var(--ink-rgb), 0.09);
  --cc-r: var(--rt-ink); --cc-v: var(--val-ink); --cc-n: var(--hl-ink);
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--cc-text);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 38px) clamp(18px, 2.4vw, 26px);
}
.cc-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--rt), var(--val)); opacity: 0.85; }
.cc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--cc-rule); }
.cc-head .t { font: 600 15px/1.3 var(--font-sans); color: var(--ink); letter-spacing: -0.01em; }
.cc-key { display: inline-flex; gap: 18px; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cc-dim); }
.cc-key span { display: inline-flex; align-items: center; gap: 7px; }
.cc-key span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.cc-key .r::before { background: var(--rt); }
.cc-key .v::before { background: var(--val); }
.cc-card code { font-family: var(--font-mono); font-size: inherit; background: none; padding: 0; border-radius: 0; color: inherit; }
.cc-c { margin: 0 0 8px; padding: 0 12px 0 calc(3ch + 32px); font: 14px/1.6 var(--font-mono); color: var(--cc-dim); white-space: pre-wrap; }
.cc-lines { list-style: none; margin: 0; padding: 0; counter-reset: cc; }
.cc-lines li {
  counter-increment: cc; display: grid; grid-template-columns: 3ch 70ch minmax(0, 1fr); column-gap: 20px; align-items: baseline;
  margin: 0; padding: 12px; border-radius: 10px; font: 15px/1.6 var(--font-mono); cursor: default; outline: none;
  transition: background-color 140ms ease, opacity 160ms ease;
}
.cc-lines li::before { content: counter(cc); text-align: right; color: var(--cc-faint); font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.cc-code { display: block; white-space: pre; color: var(--cc-text); }
.cc-code .r { color: var(--cc-r); }
.cc-code .v { color: var(--cc-v); }
.cc-code .n { color: var(--cc-n); }
.cc-code .p { color: var(--cc-dim); }
.cc-code b { font-weight: 700; }
.cc-code b.s { color: var(--ink); }
.cc-note { margin: 0; padding-left: 18px; border-left: 1px solid var(--cc-rule); font: 500 14px/1.55 var(--font-sans); color: var(--cc-dim); transition: color 140ms ease, border-color 140ms ease; }
.cc-note b { display: inline-block; min-width: 3.4ch; margin-right: 8px; font: 700 13px/1 var(--font-mono); }
.cc-note b.r { color: var(--cc-r); }
.cc-note b.v { color: var(--cc-v); }
.cc-note b.s { color: var(--ink); }
.cc-lines li:hover, .cc-lines li:focus-visible { background: rgba(var(--ink-rgb), 0.06); }
.cc-lines li:hover .cc-note, .cc-lines li:focus-visible .cc-note { color: var(--ink); border-left-color: rgba(var(--ink-rgb), 0.4); }
.cc-lines li:hover::before, .cc-lines li:focus-visible::before { color: var(--cc-dim); }
.cc-lines li:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.55); }
@media (hover: hover) {
  .cc-lines:hover li:not(:hover), .cc-lines:has(li:focus-visible) li:not(:focus-visible) { opacity: 0.5; }
}
.cc-foot { margin: 16px 0 0; padding: 14px 12px 0; border-top: 1px solid var(--cc-rule); font: 500 12px/1.6 var(--font-mono); color: var(--cc-dim); }
@media (max-width: 1100px) {
  .cc-lines li { font-size: 14px; column-gap: 16px; }
  .cc-c { font-size: 13px; padding-left: calc(3ch + 28px); }
}
@media (max-width: 960px) {
  /* annotations go under their lines; long lines wrap with a hanging indent */
  .cc-lines li { grid-template-columns: 2ch minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 12px 10px; font-size: 13px; border-radius: 0; border-top: 1px solid var(--cc-rule); }
  .cc-lines li:first-child { border-top: 0; }
  .cc-card .cc-code { white-space: pre-wrap; overflow-wrap: break-word; padding-left: 2ch; text-indent: -2ch; }
  .cc-note { grid-column: 2; padding-left: 0; border-left: 0; font-size: 14px; }
  .cc-c { padding: 0 10px 0 calc(2ch + 22px); font-size: 12.5px; }
  .cc-foot { padding-inline: 10px; }
}

/* ------------------------------------------------------------------ 02 latency: one bar, to scale */
.lat { margin: 34px auto 40px; }
.lat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font: 500 10.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.lat-head b { font: 650 24px/1 var(--font-sans); letter-spacing: -0.025em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.lat-bar { display: flex; gap: 2px; height: 18px; }
.lat-bar i { display: block; flex-basis: 0; min-width: 5px; border-radius: 3px; }
.lat-bar .enc, .lat-key .enc::before { background: var(--neutral-mark); }
.lat-bar .ret, .lat-key .ret::before { background: var(--rt); }
.lat-bar .rr, .lat-key .rr::before { background: var(--val); }
.lat-key { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 13.5px/1.4 var(--font-sans); color: var(--ink-2); }
.lat-key li { margin: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lat-key li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lat-key .enc { margin-right: auto; }
.lat-key b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.lat-key .rr b { color: var(--val-ink); }
.lat > * { max-width: 680px; }
.lat figcaption { margin: 10px 0 0; }

/* ------------------------------------------------------------------ 05 forest plot: v1.3 minus the control */
.fp { font-family: var(--font-sans); }
.fp-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line-2); }
.fp-row:last-child { border-bottom: 0; }
.fp-row > span:first-child { font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.fp-track { position: relative; height: 18px; }
.fp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.fp-zero { position: absolute; left: var(--x); top: -8px; bottom: -8px; width: 1px; background: rgba(var(--ink-rgb), 0.35); }
.fp-ci { position: absolute; left: var(--a); width: calc(var(--b) - var(--a)); top: calc(50% - 1px); height: 2px; border-radius: 1px; background: var(--neutral-mark); }
.fp-dot { position: absolute; left: var(--x); top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--neutral-mark); background: var(--paper); }
.fp-sig .fp-ci { background: var(--val); }
.fp-sig .fp-dot { border-color: var(--val); background: var(--val); }
.fp-v { text-align: right; font: 700 14px/1.15 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.fp-v small { display: block; font: 500 12.5px/1.3 var(--font-sans); color: var(--muted); }
.fp-sig .fp-v small { color: var(--val-ink); font-weight: 650; }
.fp-axis { padding: 0 2px 2px; border-bottom: 0; }
.fp-axis .fp-track { height: 12px; }
.fp-axis .fp-track::before { display: none; }
.fp-axis i { position: absolute; left: var(--x); transform: translateX(-50%); font: 500 10.5px/1 var(--font-mono); font-style: normal; color: var(--faint); }

/* ------------------------------------------------------------------ 05 limits, 06 spec sheet, end */
.callout.limits { margin-top: 34px; }
.callout.limits ul { margin: 0; }
.callout.limits li { margin: 0.45em 0; }
.specs { margin: 40px 0 10px; }
.specs .specs-title { margin: 0 0 12px; font: 600 10.5px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.specs dl { margin: 0; border-top: 1px solid var(--line); }
.specs dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 2px 20px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { font: 500 12.5px/1.6 var(--font-mono); color: var(--muted); }
.specs dd { margin: 0; font: 500 13.5px/1.6 var(--font-mono); color: var(--ink); }
.specs sup, .wrap p sup { font-size: 0.7em; line-height: 0; }
.chapter.end { padding-top: 56px; }
.more-card { margin-top: 34px; }

/* ------------------------------------------------------------------ responsive: hero, flow, forest plot */
@media (max-width: 980px) {
  .hp-body { grid-template-columns: minmax(0, 1fr) 168px; gap: 14px 20px; }
}
@media (max-width: 760px) {
  .spec-row { gap: 6px; font-size: 11.5px; }
  .spec-row li { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; }
  .spec-row li + li::before { content: none; }
  .hp-title span { display: block; }
  .hp-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "strip" "out"; gap: 12px; }
  .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; counter-reset: hp; }
  .hp-steps li { min-height: 0; padding: 8px 10px 8px 32px; counter-increment: hp; }
  .hp-steps li + li::before { content: none; }
  .hp-steps li::after { content: counter(hp); position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.08); font: 700 10px/16px var(--font-sans); text-align: center; color: var(--muted); }
  .hp-strip { grid-template-columns: repeat(36, minmax(0, 1fr)); gap: 2px; }
  .hp-strip i { height: 9px; }
  .hp-out { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 14px; }
  .hp-nd { margin: 0; text-align: right; }
  .hp-ms { font-size: 32px; }
  .fl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fl-arr { display: none; }
  .fl-node { padding: 11px; gap: 8px; border-radius: 12px; }
  .fl-text { font-size: 14.5px; }
  .fl-slots { gap: 4px; }
  .fl-slot { height: 18px; border-radius: 5px; }
  .fl-slot.r-only { height: 10px; }
  .fl-idx i { height: 14px; }
  .fl-k-b { text-align: left; }
  .fp-row { grid-template-columns: minmax(0, 1fr) 60px; gap: 6px 10px; }
  .fp-row > span:first-child { grid-column: 1 / -1; }
  .fp-axis > span:first-child { display: none; }
  .callout.limits { font-size: 17px; }
  .lat-key .enc { margin-right: 0; }
  .lat-head b { font-size: 21px; }
  .specs dl > div { grid-template-columns: minmax(0, 1fr); }
  .specs dd { font-size: 13px; }
  .fig-table { font-size: 12.5px; }
  .fig-table th, .fig-table td { padding: 8px 6px; }
}
