/* ThinkMorph-SSL project page ------------------------------------------------ */

@property --p {            /* wipe progress for the pretext strip */
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  color-scheme: light;

  --bg: #faf9f6;            /* paper white, close to the PDF page */
  --surface: #ffffff;
  --sunken: #efede8;
  --ink: #151515;
  --ink-2: #4a4945;
  --ink-3: #75746d;
  --rule: #e4e2db;
  --rule-2: #d2d0c7;
  --grid: #ecebe5;

  /* brand: ThinkMorph teal + indigo, the paper's LeadRed for generated / restored images */
  --brand: #13898a;         /* ThinkMorph teal, close to the paper's AdviseTeal */
  --brand-ink: #0e6f70;
  --brand-soft: #e2f1f0;
  --indigo: #4e4596;        /* ThinkMorph indigo */
  --periwinkle: #6169b3;    /* ThinkMorph wordmark */
  --wordmark: "Carlito", Calibri, "Segoe UI", sans-serif;
  --indigo-ink: #3f3784;
  --indigo-soft: #eceaf6;
  --rose: #e0679a;          /* soft rose: restored / generated images and the project-lead mark */
  --rose-ink: #b9457a;
  --rose-soft: #fde8f1;
  --gain: #2e7d4f;          /* gains, green as in the paper's tables */
  --blue: #13898a;          /* legacy name, now the brand teal */
  --blue-soft: #e2f1f0;
  --amber: #c27c0e;
  --gray-mark: #9b998f;
  --teal: #008080;          /* equal-advising mark, as in the paper */

  --serif: var(--sans);    /* one family: Geist (+ Geist Mono); Carlito only in the wordmark */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(20, 20, 20, .04), 0 8px 24px -12px rgba(20, 20, 20, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
sup { font-size: .62em; line-height: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 19px/1 var(--wordmark); color: var(--periwinkle); }
.brand-tail { color: var(--brand); }
.brand-mark { width: 28px; height: 28px; display: block; }
.toc { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 6px 11px; border-radius: 999px;
  font: 500 13.5px/1 var(--sans); color: var(--ink-2); text-decoration: none;
}
.toc a:hover { color: var(--ink); background: var(--sunken); }
.toc a.is-active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 0; }
.eyebrow {
  margin: 0 0 18px; font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.title {
  margin: 0; font: 700 clamp(34px, 4.8vw, 62px)/1 var(--wordmark);
  letter-spacing: -.005em; color: var(--periwinkle);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 .16em;
}
.title-tail { color: var(--brand); }
.subtitle {
  margin: 20px 0 30px; max-width: 32ch;
  font: 600 clamp(25px, 3.1vw, 40px)/1.2 var(--sans); color: var(--ink); letter-spacing: -.028em;
  text-wrap: balance;
}
.authors, .affils { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.authors { gap: 6px 20px; font: 500 17.5px/1.5 var(--sans); max-width: 1120px; color: #3a3935; }
.authors li { white-space: nowrap; }
.authors sup { color: var(--ink-3); font-weight: 500; margin-left: 1px; }
.affils { gap: 3px 20px; margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 1120px; }
.affils sup { color: var(--ink-3); margin-right: 2px; }
.mk { font-weight: 800; margin-left: 1px; font-size: 1.02em; }
.mk-lead { color: var(--rose); }
.mk-eq { color: var(--ink); }
.mk-adv { color: var(--teal); }
.authors .mk { position: relative; top: -.32em; font-size: .82em; }
.marks-legend { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 14px 0 0; font-size: 15px; color: var(--ink-3); }
.marks-legend .mk { margin-right: 3px; }

.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface);
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-solid:hover { background: #000; }
.btn-ghost { background: transparent; }
.btn.is-soon { color: var(--ink-3); border-style: dashed; cursor: default; background: transparent; }
.btn.is-soon::after { content: "soon"; font: 500 10.5px/1 var(--mono); letter-spacing: .04em; padding: 3px 6px; border-radius: 999px; background: var(--sunken); color: var(--ink-3); }
.corpus-link { display: inline-block; margin-top: 18px; font: 500 13px/1.4 var(--mono); color: var(--brand-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.corpus-link:hover { color: var(--ink); }
.btn-solid.is-soon { color: var(--ink-3); border-color: var(--rule-2); }

/* pretext strip */
.strip-wrap { margin-top: 56px; padding: 30px 0 40px; background: var(--surface); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
}
.tile { position: relative; margin: 0; cursor: pointer; }
.tile-frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--sunken);
  --p: 0;
  transition: --p 1.15s cubic-bezier(.65, 0, .35, 1);
}
.tile.is-restored .tile-frame { --p: 1; }
.tile-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-frame .after { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.tile-frame .scan {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  left: calc(var(--p) * 100%); background: #fff; box-shadow: 0 0 0 1px rgba(224, 103, 154, .9), 0 0 18px rgba(224, 103, 154, .9);
  opacity: calc(1 - abs(var(--p) * 2 - 1));   /* visible mid-wipe only */
}
@supports not (opacity: calc(1 - abs(0.5))) { .tile-frame .scan { display: none; } }
.tile-label { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; font: 500 13px/1.2 var(--sans); color: var(--ink); }
.tile-label .n { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.tile-state {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 5px; background: rgba(15, 15, 15, .72); color: #e8e6e0;
}
.tile-state::before { content: "corrupted"; }
.tile.is-restored .tile-state::before { content: "restored"; }
.tile.is-restored .tile-state { background: var(--rose); color: #fff; }

.strip-caption { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-top: 26px; }
.strip-caption p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.strip-caption em { color: var(--ink); font-style: normal; border-bottom: 1.5px solid var(--rose); }
.trace-formula { display: flex; align-items: center; gap: 6px; font: 500 15px/1 var(--mono); }
.tok { padding: 6px 9px; border-radius: 7px; background: var(--sunken); color: var(--ink); border: 1px solid var(--rule-2); }
.tok-img { background: var(--indigo-soft); border-color: #d3d0ea; }
.tok-gen { background: var(--rose); border-color: var(--rose); color: #fff; }
.trace-formula .arr { color: var(--ink-3); }
.strip-toggle {
  justify-self: end; font: 500 13px/1 var(--sans); padding: 9px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule-2); cursor: pointer;
}
.strip-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* ── sections ────────────────────────────────────────────────────────────── */
.sec { padding: 104px 0; }
.sec-alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 36px; }
.sec-no { font: 500 13px/1 var(--mono); color: var(--rose); padding-top: 14px; letter-spacing: .04em; }
.sec-no::before { content: "§ "; color: var(--ink-3); }
.sec-head h2 {
  margin: 0; font: 600 clamp(30px, 3.4vw, 44px)/1.1 var(--sans); letter-spacing: -.03em;
}
.sec-tag { margin: 10px 0 0; max-width: 60ch; font: 400 clamp(17px, 1.5vw, 19px)/1.4 var(--sans); color: var(--ink-3); letter-spacing: -.01em; }
.sec-head h2 em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.sec-sub { margin-top: 84px; }
.sec-sub > h3, .side-grid h3, .explorer-head h3 {
  margin: 0 0 12px; font: 600 22px/1.25 var(--sans); letter-spacing: -.025em;
}
.prose p, .prose-narrow { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose-narrow { margin: 0 0 30px; color: var(--ink-2); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink); }
.prose strong { font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.idea-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.abstract { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.abstract summary {
  cursor: pointer; padding: 14px 0; list-style: none; font: 500 14px/1 var(--sans); color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::before { content: "+"; font: 500 16px/1 var(--mono); width: 14px; color: var(--brand); }
.abstract[open] summary::before { content: "−"; }
.abstract p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 18px; }

/* key numbers */
.keynums { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.keynums-title { margin: 0 0 8px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.keynum { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.keynum:first-of-type { border-top: 0; }
.keynum .lv { font: 600 13px/1 var(--mono); color: var(--ink-2); }
.keynum .bar { position: relative; height: 26px; }
.keynum .bar svg { width: 100%; height: 100%; overflow: visible; }
.keynum .val { text-align: right; font: 600 28px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.keynum .val small { display: block; margin-top: 4px; font: 600 12px/1 var(--mono); color: var(--gain); letter-spacing: 0; }
.keynum .from { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.keynums-foot { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* figures */
.fig { margin: 72px 0 0; }
.fig img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.fig figcaption { margin-top: 14px; max-width: 92ch; font-size: 14px; color: var(--ink-2); }
.fig figcaption strong { color: var(--ink); font-weight: 600; }
.zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.fig-zoom img { border: 1px solid var(--rule); }

/* ── charts ──────────────────────────────────────────────────────────────── */
.chart-card {
  margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 22px 18px; box-shadow: var(--shadow); min-width: 0;
}
.sec-alt .chart-card { background: var(--surface); }
.chart-card-flat { box-shadow: none; padding: 16px 18px 12px; margin-top: 18px; }
.chart-title { font: 600 14.5px/1.35 var(--sans); margin: 0 0 12px; }
.chart-sub { font: 400 12.5px/1 var(--mono); color: var(--ink-3); margin-left: 6px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--ink-2); }
.chart text.ax, .chart text.tick { font: 400 11.5px var(--mono); fill: var(--ink-3); }
.chart .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--rule-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .lbl { font: 500 12.5px var(--sans); fill: var(--ink); }
.chart .lbl-muted { font: 400 12px var(--sans); fill: var(--ink-3); }
.chart .val { font: 500 12px var(--mono); fill: var(--ink-2); }
.chart .val-strong { font: 600 12px var(--mono); fill: var(--ink); }
.chart .grp { font: 600 11px var(--mono); fill: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.chart .hit { fill: transparent; cursor: default; }
.chart .row:hover .hit, .chart .row:focus .hit { fill: rgba(21, 21, 21, .04); }
.chart .row:focus { outline: none; }
.chart .row:focus-visible .hit { stroke: var(--blue); stroke-width: 1.5; }
.chart-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.charts-2 { align-items: stretch; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 12.5px; color: var(--ink-2); }
.legend .sw { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .sw i.dot { border-radius: 50%; width: 10px; height: 10px; }
.legend .sw i.ring { border-radius: 50%; width: 10px; height: 10px; background: transparent !important; border: 2px solid; }
.legend .sw i.line { width: 18px; height: 0; border-radius: 0; border-top: 2px solid; background: none !important; }
.legend .sw i.line.dash { border-top-style: dashed; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }

.data-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.data-table summary { cursor: pointer; font: 500 12px/1 var(--mono); color: var(--ink-3); padding: 6px 0; }
.data-table table { border-collapse: collapse; font: 400 12.5px/1.4 var(--mono); margin-top: 6px; }
.data-table th, .data-table td { padding: 4px 12px 4px 0; text-align: left; border-bottom: 1px solid var(--grid); }
.data-table th { color: var(--ink-3); font-weight: 500; }

.tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--ink); color: #f4f2ed; border-radius: 9px; padding: 9px 11px;
  font: 400 12.5px/1.45 var(--sans); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  max-width: 260px; transform: translate(-50%, calc(-100% - 12px));
}
.tooltip b { font-weight: 600; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .tt-row span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #cfcdc6; }
.tooltip .tt-row span:last-child { font-family: var(--mono); }
.tooltip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tooltip .tt-head { font-weight: 600; margin-bottom: 4px; }
.tooltip .tt-foot { margin-top: 4px; padding-top: 4px; border-top: 1px solid #3a3a3a; color: #cfcdc6; font-family: var(--mono); }

/* ── method ──────────────────────────────────────────────────────────────── */
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage { position: relative; padding: 26px 28px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--rule); overflow: hidden; }
.stage-tag { margin: 0 0 8px; font: 500 14px/1.3 var(--sans); color: var(--ink-3); }
.stage h3 { margin: 0 0 10px; font: 600 21px/1.25 var(--sans); letter-spacing: -.025em; }
.stage p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.eq {
  padding: 14px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
  overflow-x: auto; overflow-y: hidden;
}
.eq .katex-display { margin: 0; }
.eq .katex { font-size: 1.16em; }

.explorer { margin-top: 84px; }
.explorer-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.explorer-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.explorer-head p { margin: 0; color: var(--ink-3); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-1 { background: var(--blue); }
.dot-2 { background: var(--indigo); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--sunken); border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs button {
  border: 0; background: transparent; padding: 8px 13px; border-radius: 8px; cursor: pointer;
  font: 500 13.5px/1 var(--sans); color: var(--ink-2); white-space: nowrap;
}
.tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--rule); }
.tabs button .lvl { font: 600 10.5px/1 var(--mono); color: var(--ink-3); margin-right: 6px; }
.tabs-grouped .tab-group-label { align-self: center; padding: 0 4px 0 8px; font: 600 10.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .05em; }
.tabs-small { margin-bottom: 12px; }
.tabs-small button { padding: 7px 11px; font-size: 12.5px; }

.ex-sub { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.pager { display: flex; gap: 4px; }
.pager button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--surface);
  font: 500 12.5px/1 var(--mono); cursor: pointer; color: var(--ink-2);
}
.pager button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ex-source { font: 400 12.5px/1 var(--mono); color: var(--ink-3); }

/* Stage-1 trace: I_c | T0 | I0 | T1 */
.ptrace {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.step { position: relative; padding: 16px 18px 18px; border-left: 1px solid var(--rule); min-width: 0; }
.step:first-child { border-left: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.step-tok { font: 600 12px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--sunken); color: var(--ink); }
.step-tok.gen { background: var(--rose); color: #fff; }
.step-tok.in { background: var(--ink); color: var(--surface); }
.step-name { font: 400 11.5px/1.2 var(--mono); color: var(--ink-3); text-align: right; }
.step img { width: 100%; height: auto; border-radius: 8px; background: var(--sunken); }
.step .noprompt { margin: 10px 0 0; font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); }
.step .noprompt s { color: var(--ink-3); }
.thought { margin: 0; font: 400 14px/1.6 var(--sans); color: var(--ink); max-height: 380px; overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.gen-tag { display: inline-block; margin-bottom: 8px; font: 500 11px/1 var(--mono); color: var(--rose-ink); }
.step-arrow { position: absolute; left: -9px; top: 22px; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; font: 600 10px/1 var(--mono); color: var(--ink-3); }

/* Stage-2 trace */
.itrace { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.iq { padding: 20px 24px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.iq-text .k { font: 600 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 8px; }
.iq-text p { margin: 0; font: 400 16px/1.55 var(--sans); }
.iq-imgs { display: grid; gap: 8px; }
.iq-imgs.n1 { grid-template-columns: 1fr; }
.iq-imgs.n4 { grid-template-columns: repeat(4, 1fr); }
.iq-imgs.n5 { grid-template-columns: repeat(5, 1fr); }
.iq-imgs figure, .isteps figure { margin: 0; }
.iq-imgs img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 8px; background: var(--sunken); }
.iq-imgs.n4 img, .iq-imgs.n5 img { height: 140px; object-fit: cover; }
.cap { margin-top: 5px; font: 400 11px/1.2 var(--mono); color: var(--ink-3); }
.isteps { padding: 8px 24px 22px; }
.istep { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; position: relative; padding-top: 16px; }
.istep::before { content: ""; position: absolute; left: 22px; top: 0; bottom: -16px; width: 1px; background: var(--rule); }
.istep:last-child::before { bottom: 50%; }
.istep .rail { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; }
.istep .rail span { font: 600 11.5px/1 var(--mono); padding: 5px 6px; border-radius: 6px; background: var(--sunken); color: var(--ink); min-width: 36px; text-align: center; }
.istep.is-gen .rail span { background: var(--rose); color: #fff; }
.istep.is-ans .rail span { background: var(--ink); color: var(--surface); }
.istep .lab { font: 500 11.5px/1 var(--mono); color: var(--ink-3); margin: 3px 0 7px; }
.istep .thought { max-height: none; overflow: visible; font-size: 15px; max-width: 80ch; }
.istep img { max-height: 340px; width: auto; max-width: 100%; border-radius: 8px; background: var(--sunken); }
.istep .gens { display: flex; flex-wrap: wrap; gap: 12px; }
.ans { display: inline-block; font: 600 14px/1.3 var(--mono); padding: 6px 10px; border-radius: 8px; background: var(--indigo-soft); color: var(--indigo-ink); }

/* ── data ────────────────────────────────────────────────────────────────── */
.corpora { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.corpus { position: relative; padding: 28px 30px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.corpus-kicker { margin: 0 0 10px; font: 500 14px/1.3 var(--sans); color: var(--ink-3); }
.corpus h3 { margin: 0; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; }
.corpus-big { margin: 18px 0 14px; font: 400 15px/1 var(--sans); color: var(--ink-3); }
.corpus-big .num { font: 600 50px/1 var(--sans); color: var(--ink); letter-spacing: -.03em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.corpus > p { color: var(--ink-2); font-size: 15px; margin: 0; }
.corpus > .corpus-kicker { margin: 0 0 10px; }
.corpus > .corpus-big { margin: 18px 0 14px; }
.facts { margin: 18px 0 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.facts dt { font: 500 12px/1.5 var(--mono); color: var(--ink-3); }
.facts dd { margin: 0; font-size: 14px; color: var(--ink); }

/* ── results ─────────────────────────────────────────────────────────────── */
.table-block { margin-top: 28px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.rtable { width: 100%; border-collapse: collapse; font: 400 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; min-width: 760px; }
.rtable th, .rtable td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.rtable th:first-child, .rtable td:first-child { text-align: left; font-family: var(--sans); padding-left: 18px; }
.rtable thead th { font: 500 11.5px/1.25 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--rule-2); vertical-align: bottom; }
.rtable thead tr.lv th { color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--rule); text-align: center; }
.rtable td.avg, .rtable th.avg { background: rgba(21, 21, 21, .025); font-weight: 600; }
.rtable tr.grp td { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 14px; padding-bottom: 6px; }
.rtable tbody tr.m td { border-bottom: 1px solid var(--grid); }
.rtable tbody tr.m:hover td { background: rgba(21, 21, 21, .03); }
.rtable tr.ref td:first-child::after { content: "reference"; margin-left: 8px; font: 500 10px/1 var(--mono); color: var(--ink-3); padding: 2px 5px; border: 1px solid var(--rule-2); border-radius: 4px; }
.rtable tr.ours td { background: var(--brand-soft); font-weight: 600; color: var(--ink); border-bottom: 0; }
.rtable tr.ours td:first-child { color: var(--brand-ink); }
.rtable tr.delta td { color: var(--gain); font-weight: 600; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.rtable td.top { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.table-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }

.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.callout { padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--bg); }
.callout h4 { margin: 0 0 6px; font: 600 14px/1.3 var(--sans); }
.callout p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.ablation-top { margin-top: 0; align-items: start; }

/* ── cite + footer ───────────────────────────────────────────────────────── */
.sec-cite { padding-bottom: 80px; }
.bib { position: relative; background: var(--ink); color: #e9e7e1; border-radius: var(--radius); padding: 22px 24px; overflow: auto; }
.bib pre { margin: 0; font: 400 13px/1.65 var(--mono); }
.copy {
  position: absolute; right: 14px; top: 14px; border: 1px solid #45443f; background: #222; color: #e9e7e1;
  border-radius: 8px; padding: 6px 11px; font: 500 12px/1 var(--mono); cursor: pointer;
}
.copy:hover { border-color: #9a988f; }
.footer { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-size: 13px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(12, 12, 12, .86); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.lightbox-close {
  position: fixed; right: 18px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .idea-grid { grid-template-columns: 1fr; gap: 32px; }
  .ptrace { grid-template-columns: 1fr 1fr; }
  .ptrace .step:nth-child(3) { border-left: 0; }
  .ptrace .step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .strip { grid-template-columns: repeat(7, 150px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .tile { scroll-snap-align: start; }
  .strip-caption { grid-template-columns: 1fr; gap: 14px; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 40px; }
  .grid-2, .stages, .corpora, .callouts { grid-template-columns: 1fr; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-no { padding-top: 0; }
  .ptrace { grid-template-columns: 1fr; }
  .ptrace .step { border-left: 0; border-top: 1px solid var(--rule); }
  .ptrace .step:first-child { border-top: 0; }
  .step-arrow { display: none; }
  .iq { grid-template-columns: 1fr; }
  .iq-imgs.n4, .iq-imgs.n5 { grid-template-columns: repeat(3, 1fr); }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .corpus-big .num { font-size: 44px; }
  .istep { grid-template-columns: 44px minmax(0, 1fr); }
  .istep::before { left: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-frame { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  .topbar, .strip-toggle, .copy { display: none; }
  .strip-wrap { background: none; color: var(--ink); }
}

/* paper figures and tables (2026-11) */
.keynum { grid-template-columns: 34px 1fr auto; }
.keynum .name { font-size: 14.5px; color: var(--ink-2); }
.table-title { margin: 0 0 10px; font: 600 14.5px/1.35 var(--sans); }
.rtable.stable { min-width: 0; }
.rtable.stable tbody td { border-bottom: 1px solid var(--grid); }
.rtable.stable tbody tr:last-child td { border-bottom: 0; }
.rtable .d { margin-left: 6px; font-size: 11px; color: var(--ink-3); }
.tables-2 { align-items: start; }
.side-grid { align-items: center; gap: 48px; }
.side-grid .fig, .fig.fig-side { margin: 0; }

/* brand mark in the title */
.title-mark { height: .92em; width: auto; flex: none; }
.title-word { white-space: nowrap; }

/* author links (as on thinkmorph.github.io) */
.authors a { color: inherit; text-decoration: none; transition: color .15s; }
.authors a:hover, .authors a:focus-visible { color: var(--ink); }


/* results table views */
.rtable-all, .rtable-l2, .rtable-l3 { min-width: 640px; }


/* Motivation without the key-number card */
.idea .prose { max-width: 820px; }

/* compact tables: columns hug their content */
.table-scroll { width: fit-content; max-width: 100%; }
.rtable, .rtable-all, .rtable-l2, .rtable-l3 { width: auto; min-width: 0; }
.rtable th, .rtable td { padding: 5px 14px; }
.rtable th:first-child, .rtable td:first-child { padding-left: 14px; padding-right: 22px; }
.rtable thead th { padding-top: 8px; padding-bottom: 6px; }
.rtable tr.grp td { padding-top: 9px; padding-bottom: 3px; }
.table-pair { display: grid; grid-template-columns: auto auto; width: fit-content; max-width: 100%; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-pair > div { padding: 12px 4px 4px; }
.table-pair > div + div { border-left: 1px solid var(--rule); }
.table-pair .table-title { padding: 0 14px; margin: 0 0 2px; font-size: 13.5px; }
.table-pair .tp-scroll { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
@media (max-width: 760px) {
  .table-pair { grid-template-columns: minmax(0, 1fr); }
  .table-pair > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

/* paper title on one line where it fits */
.subtitle { max-width: none; }

/* author block: Geist like the rest of the page, lighter ink */
.authors { color: #55534e; }
.authors sup { color: #8b8983; }
.affils { color: #6c6a64; }
.affils sup { color: #9a9892; }

/* legend text in the colour of its mark */
.marks-legend .lg-lead { color: var(--rose); }
.marks-legend .lg-eq { color: var(--ink); }
.marks-legend .lg-adv { color: var(--teal); }
@media (max-width: 560px) {
  .stage { padding: 22px 18px; }
  .eq { padding: 12px 10px; }
  .eq .katex { font-size: .94em; }
}
@media (max-width: 380px) { .eq .katex { font-size: .88em; } }

/* trace explorer tabs: full width, larger labels; Stage 2 puts L3 on its own row */
.explorer .tabs { width: 100%; gap: 4px; }
.explorer .tabs button { flex: 1 1 auto; padding: 10px 14px; font-size: 15.5px; }
.explorer .tabs-grouped .tab-group-label { flex: 0 0 auto; font-size: 12px; padding: 0 4px 0 10px; }
.explorer .tabs .tab-break { flex-basis: 100%; height: 0; }

/* ── v2 round 1 (2026-11-24) ── */
/* each stage card carries its corpus */
.stage .stage-data { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.stage .stage-data .num { display: block; margin-bottom: 4px; font: 600 34px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage .stage-data a { color: var(--ink); text-decoration-color: var(--rule-2); }
.stage .stage-data a:hover { text-decoration-color: currentColor; }
.fig.fig-mid { max-width: 880px; margin-left: auto; margin-right: auto; }
/* results table: full width of the column, larger type (as in the preview) */
#tbl-results { width: 100%; }
#tbl-results .rtable { width: 100%; font-size: 15px; }
#tbl-results .rtable th, #tbl-results .rtable td { padding: 7px 16px; }
#tbl-results .rtable thead th { font-size: 13px; padding-top: 10px; padding-bottom: 8px; }
#tbl-results .rtable td:first-child { font-size: 15px; padding-left: 18px; }
#tbl-results .rtable tr.grp td { font-size: 11.5px; padding-top: 12px; padding-bottom: 4px; }
/* smaller order-and-instructions figure */
.fig.fig-small { max-width: 420px; justify-self: center; }

/* ── v2 round 2: Method as Stage 1 / Stage 2 / Data blocks ── */
.stage-block { margin-top: 64px; }
.stage-block:first-of-type, .sec-head + .stage-block { margin-top: 8px; }
.stage-block > h3 { margin: 0 0 10px; font: 600 24px/1.25 var(--sans); letter-spacing: -.025em; }
.stage-block > .prose-narrow { margin-bottom: 0; }
.stage-block .prose-narrow a { color: var(--ink); text-decoration-color: var(--rule-2); }
.stage-block .prose-narrow a:hover { text-decoration-color: currentColor; }
.stage-block .explorer { margin-top: 24px; }
.stage-block > .fig { margin-top: 24px; }
.stage-block > .fig + .explorer { margin-top: 28px; }
/* no frame on the corpus figure */
.fig.fig-plain img { border: 0; }

/* ── v2 round 3: results table ── */
/* tabs as wide as the table, same type size */
#tbl-tabs { display: flex; width: 100%; gap: 4px; margin-bottom: 12px; }
#tbl-tabs button { flex: 1 1 0; padding: 10px 12px; font-size: 15px; }
/* no blanket bold; best bold, second underlined (open models only) */
#tbl-results .rtable td.avg, #tbl-results .rtable th.avg { font-weight: 400; }
#tbl-results .rtable td.best { font-weight: 700; color: var(--ink); }
#tbl-results .rtable td.second { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* our rows keep the original green; weight 400 so the best / second marks show */
#tbl-results .rtable tr.ours td { font-weight: 400; }
#tbl-results .rtable tr.ours td:first-child { font-weight: 600; }
#tbl-results .rtable tr.ours td.best { font-weight: 700; }
.tbl-note { margin: 10px 2px 0; font-size: 13px; color: var(--ink-3); }

/* ── Motivation art (the mark's pixels drifting out) ── */
.idea-art .ma-svg { display: block; width: 100%; height: auto; overflow: visible; }
.idea-art .px { transform-box: fill-box; transform-origin: center; opacity: var(--o); animation: ma-wave 7s ease-in-out var(--d) infinite both; }
@keyframes ma-wave {
  0%   { opacity: 0; transform: scale(.35); }
  22%  { opacity: var(--o); transform: scale(1); }
  70%  { opacity: var(--o); transform: scale(1); }
  100% { opacity: 0; transform: scale(.35); }
}
@media (prefers-reduced-motion: reduce) { .idea-art .px { animation: none; opacity: var(--o); } }
#tbl-results .rtable tr.delta td, #tbl-results .rtable tr.delta td.avg { font-weight: 600; }

/* ── v2 round 4 ── */
/* Motivation keeps the live layout; the art sits in the free space on the right, reaching into the page margin,
   its mark centred near the first lines of the paragraph, slightly transparent */
.idea { position: relative; }
.idea-art {
  --ov: clamp(0px, calc((100vw - 1124px) / 2 - 24px), 80px);                      /* overhang into the page margin */
  --w: clamp(0px, calc(min(1124px, 100vw - 56px) + var(--ov) - 836px), 390px);   /* stays 16px clear of the text column */
  position: absolute; right: calc(-1 * var(--ov)); top: 36px; width: var(--w);
  transform: translateY(-34.6%); opacity: .85; pointer-events: none;
}
@media (max-width: 1100px) { .idea-art { display: none; } }
/* results tabs: larger labels; each tab as wide as its label needs, together as wide as the table */
#tbl-tabs button { flex: 1 1 auto; padding: 12px 14px; font-size: 17px; }
/* body paragraphs at the size, colour and width of the Motivation paragraph */
.prose-narrow { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 820px; }
/* stage headings: the stage number in teal */
.stage-block > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 25px; }
.stage-block > h3 .stage-no { color: var(--brand); }
.stage-block > h3 .stage-dot { color: var(--ink-3); font-weight: 400; }
.stage-block + .stage-block { margin-top: 88px; }
@media (max-width: 560px) { .stage-block > h3 { font-size: 22px; flex-wrap: wrap; row-gap: 2px; } }

/* ── v2 round 5 ── */

/* ── v2 round 6: Stage 2 examples in the Stage 1 trace layout ── */
.ptrace-q.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* six cells (two generated images): the question and T1 cells span both rows, I1 and T2 sit under T0 and I0 */
.ptrace-q.n6 > .step:first-child, .ptrace-q.n6 > .step:nth-child(4) { grid-row: span 2; }
.ptrace-q.n6 > .step:nth-child(n+5) { border-top: 1px solid var(--rule); }
.ptrace-q.n6 > .step:nth-child(5) .step-arrow { display: none; }
.ptrace-q .q-imgs { display: grid; gap: 6px; }
.ptrace-q .q-imgs.n4, .ptrace-q .q-imgs.n5 { grid-template-columns: 1fr 1fr; }
.ptrace-q .q-imgs figure { margin: 0; min-width: 0; }
.ptrace-q .q-imgs img, .ptrace-q .q-gen { display: block; width: auto; height: auto; max-width: 100%; max-height: 260px; margin: 0 auto; }
.ptrace-q .q-imgs.n4 img { width: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; }
.ptrace-q .q-imgs.n5 img { width: 100%; max-height: none; }
.ptrace-q .q-imgs figcaption { margin-top: 3px; font: 400 11px/1.2 var(--mono); color: var(--ink-3); }
.ptrace-q .q-text { margin: 10px 0 0; font: 400 14px/1.6 var(--sans); color: var(--ink); max-height: 300px; overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.ptrace-q .q-ans { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-2); }
@media (max-width: 1020px) {
  .ptrace-q.n5, .ptrace-q.n6 { grid-template-columns: 1fr 1fr; }
  .ptrace-q > .step:nth-child(odd) { border-left: 0; }
  .ptrace-q > .step:nth-child(odd) .step-arrow { display: none; }
  .ptrace-q > .step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ptrace-q.n6 > .step:first-child, .ptrace-q.n6 > .step:nth-child(4) { grid-row: auto; }
}
@media (max-width: 760px) {
  .ptrace-q.n5, .ptrace-q.n6 { grid-template-columns: 1fr; }
  .ptrace-q > .step { border-left: 0; }
  .ptrace-q .step-arrow { display: none; }
}

/* ── v2 round 7 ── */
/* top navigation: larger labels, the current section underlined instead of a pill */
.toc { gap: 28px; }
.toc a { padding: 7px 0 5px; border-radius: 0; font-size: 16px; border-bottom: 2px solid transparent; }
.toc a:hover { background: none; color: var(--ink); }
.toc a.is-active { background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--brand); }
/* example selectors: underlined "Example N" tabs on the left, the image source on the right (Stage 1) */
.explorer .ex-sub { justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 16px; }
.pager { gap: 22px; }
.pager button { width: auto; height: auto; padding: 6px 0 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; font: 500 15.5px/1.2 var(--sans); color: var(--ink-3); }
.pager button:hover { color: var(--ink); }
.pager button[aria-pressed="true"] { background: none; color: var(--ink); border-bottom-color: var(--brand); }
/* Stage 2: level tabs on top, the level's pipelines as underlined tabs below */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.subtabs button { padding: 6px 0 5px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  font: 500 16.5px/1.2 var(--sans); color: var(--ink-2); }
.subtabs button:hover { color: var(--ink); }
.subtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.ptrace-q .q-src { margin: 10px 0 0; font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); }
/* results: the delta row has no background */
#tbl-results .rtable tr.delta td, #tbl-results .rtable tr.delta td.avg { background: transparent; }

/* ── v2 round 8 ── */
/* section titles a little larger (44 -> 50 px at full width) */
.sec-head h2 { font-size: clamp(33px, 3.8vw, 50px); }

/* ── v2 round 9 ── */
/* results table: the model column takes 30%, the score columns share the rest evenly, scores centred */
#tbl-results .rtable { table-layout: fixed; min-width: 720px; }
#tbl-results .rtable col.c-model { width: 30%; }
#tbl-results .rtable th:not(:first-child), #tbl-results .rtable td:not(:first-child) { text-align: center; }
/* stage headings: a teal dot, then the title in ink, larger */
.stage-block > h3 { font-size: 30px; gap: 12px; }
.stage-block > h3::before { content: ""; flex: none; width: .32em; height: .32em; border-radius: 50%; background: var(--brand); }
.stage-block > h3 .stage-no { color: var(--brand); }
@media (max-width: 560px) { .stage-block > h3 { font-size: 24px; } }

/* ── v2 round 11 ── */
/* the Stage 2 pipelines figure spans the full column, aligned on both sides with the examples below */

/* ── v2 round 12 ── */
/* Method: more air between the section title, the stage headings, their text and the material below */
.sec-head + .stage-block { margin-top: 28px; }
.stage-block + .stage-block { margin-top: 104px; }
.stage-block > h3 { margin-bottom: 20px; }
.stage-block .explorer, .stage-block > .fig, .stage-block > .fig + .explorer { margin-top: 40px; }
.prose-narrow { line-height: 1.65; }

/* ── Analysis: smaller figures without frames, centred: the ablation figure in the column,
   the two side figures in their half of each text + figure row ── */
#analysis .fig-zoom img { border: 0; }
#analysis .wrap > .fig { max-width: 900px; margin-left: auto; margin-right: auto; }
#analysis .side-grid .fig { justify-self: center; width: 100%; }
#analysis .side-grid .fig.fig-small { max-width: 360px; }   /* order figure, a little smaller */
#analysis .side-grid .fig:not(.fig-small) { max-width: 480px; }
/* the Analysis lead sentence is body text, like the Results one; the ablation figure follows it closely */
#analysis .wrap > .prose-narrow + .fig { margin-top: 40px; }
