/* ===========================================================================
   Hackerman — company report  (prototype v3, identity v0.5)

   Restyles the LIVE report markup (rp-*, ax-* classes, unchanged) in the v0.5
   language. Written against the first review:
   - "lack of a clear left margin": every block in the report, hero to
     references, starts on ONE left edge (--rp-left). The contents rail sits
     outside it.
   - "small font size": body copy is 18px / 1.7, never under 15px in figures.
   - "lack of visual breaks": figures, tables and the accordions are surfaces
     (white or warm cards) that interrupt the text column; the accordions start
     collapsed after their first item so secondary detail is a click away.
   - "lines and jail": no hairlines. Tables use tonal rows; the tree and the
     timeline use dotted connectors made of squares.
   =========================================================================== */
.rp-page {
  /* --rp-toc-w, --rp-gutter and --rp-body now live in site-r2.css :root (20 Nov),
     shared with the story page's reading layout */
  --rp-col: 760px;                      /* reading column                         */
  --rp-wide: 940px;                      /* figures may run past the column        */
  --rp-left: 0px;                        /* offset from the frame to the text edge */
  --rp-text: #2A2926;
  --rp-fs: 1.125rem;                     /* 18px */
  --rp-lh: 1.7;
  --rp-fig-fs: .9375rem;                 /* 15px */
  --rp-fine: .8125rem;                   /* 13px: captions only */
  --rp-dot: 3px;                         /* connector square    */
}
@media (min-width: 1100px) { .rp-page { --rp-left: calc(var(--rp-toc-w) + var(--rp-gutter)); } }

.rp .lp-wrap { max-width: min(var(--frame-max), 100% - 2 * var(--out)); margin: 0 auto; padding-inline: var(--pad); }
/* Every section (except the chapter grid, which places its own rail) hangs off the text edge */
.rp-hero > .lp-wrap, .rp-overview > .lp-wrap, .rp-stats > .lp-wrap, #limitations > .lp-wrap, .rp-refs > .lp-wrap, .rp-ask > .lp-wrap { padding-left: calc(var(--pad) + var(--rp-left)); }
.rp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Hero ----------------------------------------------------------------- */
.rp-hero { padding-block: clamp(40px, 6vw, 112px) clamp(28px, 3vw, 56px); }
.rp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.rp-breadcrumb a { text-decoration: none; } .rp-breadcrumb a:hover { color: var(--ink); }
.rp-caret { width: 10px; height: 10px; opacity: .6; }
.rp-breadcrumb [aria-current] { color: var(--ink); }
.rp-hero h1 { margin: clamp(18px, 2vw, 32px) 0 0; font: var(--w-head) var(--fs-display)/1.04 var(--font); letter-spacing: var(--tr-display); max-width: 14ch; }
.rp-hero h1 .accent { color: var(--orange); }
.rp-dek { margin: clamp(18px, 2vw, 32px) 0 0; max-width: 60ch; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink); }
.rp-meta { list-style: none; margin: clamp(20px, 2vw, 32px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-meta li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-s); background: var(--sunk); color: var(--ink-2); font-size: 14px; }
.rp-meta .rp-meta-lead { background: var(--orange-wash); color: var(--orange-ink); }

/* ---- Overview card -------------------------------------------------------- */
.rp-overview > .lp-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.rp-overview-head, .rp-overview-body, .rp-overview-mark { background: var(--raised); }
@media (min-width: 900px) {
  .rp-overview > .lp-wrap { grid-template-columns: minmax(0, 1fr) clamp(200px, 20vw, 300px); grid-template-rows: auto 1fr auto; column-gap: var(--gap); }
  .rp-overview-head { grid-area: 1 / 1; } .rp-overview-body { grid-area: 2 / 1; }
  .rp-overview-mark { grid-area: 1 / 2 / 3 / 3; } .rp-overview-note { grid-area: 3 / 1 / 4 / 3; }
}
.rp-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--card-pad) var(--card-pad) 0; border-radius: var(--r-l) var(--r-l) 0 0; }
.rp-overview-head h2 { margin: 0; font: var(--w-head) var(--fs-h3)/1.1 var(--font); letter-spacing: var(--tr-h3); }
.rp-external-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-s); background: var(--sunk); color: var(--ink); transition: background-color var(--dur-1); }
.rp-external-link:hover { background: var(--sunk-hover); }
.rp-overview-body { padding: 16px var(--card-pad) var(--card-pad); border-radius: 0 0 var(--r-l) var(--r-l); }
.rp-overview-text { margin: 0; font-size: var(--rp-fs); line-height: var(--rp-lh); color: var(--rp-text); max-width: 62ch; }
.rp-overview-mark { border-radius: var(--r-l); display: grid; place-items: center; min-height: 200px; margin-top: var(--gap); position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 900px) { .rp-overview-mark { margin-top: 0; } }
.rp-overview-mark::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 220px; mix-blend-mode: overlay; opacity: var(--grain-strength); pointer-events: none; }
.rp-overview-mark-logo { width: 46%; max-width: 150px; height: auto; position: relative; z-index: 1; }
.rp-overview-note { margin: 14px 0 0; font-size: var(--rp-fine); line-height: 1.5; color: var(--ink-3); }

/* ---- Three numbers: dot-matrix values on white cards ---------------------- */
.rp-stats { padding-top: clamp(56px, 6vw, 112px); }
.rp-stats-heading { margin: 0 0 clamp(20px, 2vw, 32px); font: var(--w-head) var(--fs-h3)/1.15 var(--font); letter-spacing: var(--tr-h3); }
.rp-stats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 700px) { .rp-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rp-stat-card { background: var(--raised); border-radius: var(--r-l); padding: var(--card-pad); display: grid; gap: 12px; align-content: space-between; min-height: clamp(170px, 14vw, 230px); }
.rp-stat-index { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-stat-value { margin: 0; font: var(--w-head) clamp(44px, 1.6rem + 2.6vw, 76px)/1 var(--font); letter-spacing: -.035em; color: var(--ink); }
.rp-stat-caption { margin: 0; text-wrap: balance; font-size: var(--fs-small); color: var(--ink-2); }

/* ---- Chapters: rail + one reading column ---------------------------------- */
.rp-chapters { padding-top: clamp(56px, 6vw, 112px); }
.rp-chapters-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .rp-chapters-layout { grid-template-columns: var(--rp-toc-w) minmax(0, var(--rp-wide)); column-gap: var(--rp-gutter); } }
.rp-chapters-body { min-width: 0; }
.rp-chapters-body > * { max-width: var(--rp-col); }

/* Contents rail: a column of squares that fill as you read (no track line) */
.rp-toc { display: none; }
@media (min-width: 1100px) {
  .rp-toc { display: block; position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; max-height: calc(100vh - var(--nav-h) - 56px); overflow: auto; }
}
.rp-toc-track { display: none; }
.rp-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rp-toc-item a { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; font-size: 14px; line-height: 1.35; color: var(--ink-3); transition: color var(--dur-1), background-color var(--dur-2); }
.rp-toc-item a::before { content: ""; width: 6px; height: 6px; background: var(--line-strong); transition: background-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.rp-toc-item a:hover { color: var(--ink); background: var(--sunk); }
.rp-toc-item.is-read a::before { background: var(--ink); }
.rp-toc-item.is-active a { color: var(--ink); background: var(--raised); }
.rp-toc-item.is-active a::before { background: var(--orange); transform: scale(1.35); }

/* Phone/tablet chapter bar */
.rp-mtoc { position: sticky; top: var(--nav-h); z-index: 30; margin: 0 calc(-1 * var(--pad)) 8px; padding: 8px var(--pad); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); }
@media (min-width: 1100px) { .rp-mtoc { display: none; } }
.rp-mtoc-bar { width: 100%; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 0; border-radius: var(--r-m); background: var(--raised); color: var(--ink); font: var(--w-medium) 14px/1 var(--font); cursor: pointer; }
.rp-mtoc-icon { width: 8px; height: 8px; background: var(--orange); }
.rp-mtoc-label { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rp-mtoc-glyph { width: 10px; height: 10px; background: conic-gradient(from 90deg at 50% 50%, transparent 0 0); }
.rp-mtoc-glyph::before { content: ""; display: block; width: 3px; height: 3px; margin: 3px auto 0; background: currentColor; box-shadow: -4px -3px 0, 4px -3px 0; transition: transform var(--dur-2); }
.rp-mtoc.is-open .rp-mtoc-glyph::before { transform: rotate(180deg); }
.rp-mtoc-panel { display: none; margin-top: 6px; padding: 6px; border-radius: var(--r-m); background: var(--raised); max-height: 60vh; overflow: auto; }
.rp-mtoc.is-open .rp-mtoc-panel { display: block; }
.rp-mtoc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rp-mtoc-item a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-s); text-decoration: none; font-size: 15px; }
.rp-mtoc-item a:hover, .rp-mtoc-item.is-active a { background: var(--paper); }
.rp-mtoc-num { width: 22px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-progress { height: 3px; margin-top: 8px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.rp-progress-fill { height: 100%; width: 0; background: var(--orange); }

/* Chapter heads: "Chapter 1 · Industry trends" above, the claim as the headline */
.rp-chapter { padding-top: clamp(72px, 7vw, 136px); scroll-margin-top: calc(var(--nav-h) + 72px); }
.rp-chapter:first-child { padding-top: 0; }
@media (min-width: 1100px) { .rp-chapter { scroll-margin-top: calc(var(--nav-h) + 24px); } }
.rp-chapter-head { margin-bottom: clamp(24px, 2.4vw, 40px); }
.rp-chapter-numeral { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.rp-chapter-numeral::before { content: ""; width: 8px; height: 8px; background: var(--orange); }
.rp-chapter-numeral .rp-chapter-topic { color: var(--ink-3); }
.rp-chapter-head h2 { margin: 0; font: var(--w-head) clamp(2rem, 1.1rem + 2vw, 3.25rem)/1.08 var(--font); letter-spacing: var(--tr-h2); color: var(--ink); text-wrap: balance; }

/* Prose */
.rp-prose-group { margin-top: clamp(28px, 2.6vw, 44px); }
.rp-chapter-head + .rp-prose-group { margin-top: 0; }
.rp-prose-sub { margin: 0 0 14px; font: var(--w-head) clamp(1.25rem, 1rem + .6vw, 1.5rem)/1.3 var(--font); letter-spacing: -.012em; color: var(--ink); }
.rp-prose { margin: 0 0 1.1em; font-size: var(--rp-fs); line-height: var(--rp-lh); color: var(--rp-text); text-wrap: pretty; }
.rp-prose:last-child { margin-bottom: 0; }
.rp-prose strong, .rp-prose b { font-weight: var(--w-medium); color: var(--ink); }
.rp-prose a:not(.rp-cite), .rp-insight-text a:not(.rp-cite) { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }

/* Citations: a small square chip; the source shows on hover/focus */
.rp-cite { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; margin: 0 1px; padding: 0 3px; vertical-align: .18em; border-radius: 4px; background: var(--sunk); color: var(--ink-3); font-size: .78em; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color var(--dur-1), color var(--dur-1); }
.rp-cite:hover, .rp-cite:focus-visible { background: var(--orange); color: #fff; }
.rp-tip { position: fixed; z-index: 90; max-width: 340px; padding: 12px 14px; border-radius: var(--r-m); background: var(--action); color: #F2F1EE; font: var(--w-regular) 14px/1.5 var(--font); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out); overflow-wrap: anywhere; }
.rp-tip.is-on { opacity: 1; transform: none; }
.rp-tip b { display: block; margin-bottom: 4px; color: var(--orange); font-weight: var(--w-medium); }

/* Pull quote: big, Medium, an orange square leads it. No rule. */
.rp-pullquote { margin: clamp(36px, 3.4vw, 56px) 0 0; padding: 0; }
.rp-pullquote p { margin: 0; font: var(--w-head) clamp(1.5rem, 1rem + 1.2vw, 2.25rem)/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.rp-pullquote p::before { content: ""; display: inline-block; width: .32em; height: .32em; margin-right: .4em; vertical-align: .14em; background: var(--orange); }

/* ---- Figures: white cards that break the column --------------------------- */
.rp-chapters-body .rp-chart, .rp-chapters-body .rp-insights { max-width: var(--rp-wide); }
.rp-chart { margin: clamp(32px, 3vw, 52px) 0; padding: var(--card-pad); border-radius: var(--r-l); background: var(--raised); min-width: 0; }
@media (min-width: 1100px) { .rp-chapters-body .rp-chart { margin-left: calc(-1 * var(--card-pad)); } .rp-chapters-body .rp-insights { margin-left: calc(-1 * var(--card-pad)); } }
.rp-chart-title { margin: 0 0 clamp(16px, 1.6vw, 24px); font: var(--w-head) clamp(1.0625rem, .95rem + .35vw, 1.25rem)/1.3 var(--font); letter-spacing: -.01em; color: var(--ink); }
.rp-chart-note { margin: 18px 0 0; font-size: var(--rp-fine); line-height: 1.55; color: var(--ink-3); max-width: 70ch; }
.rp-chart-note--full { max-width: none; }
.rp-chart-legend { list-style: none; margin: -6px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.rp-chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.rp-chart-legend-dot { width: 9px; height: 9px; }
.rp-chart-legend-bar { width: 18px; height: 6px; }

/* Off-palette colours in the live markup, mapped onto the identity's data palette */
[style*="#22C55E"] { background: var(--d3) !important; }
[style*="#3B82F6"] { background: var(--d2) !important; }
[style*="#EAB308"] { background: var(--d4) !important; }
[style*="#9CA3AF"] { background: var(--ink-4) !important; }
[style*="#F9C2AD"] { background: var(--orange-200) !important; }

/* Tables: tonal rows on the white card, no rules */
.rp-verify-scroll { overflow-x: auto; margin: 0 calc(-1 * clamp(0px, 1vw, 8px)); padding: 0 clamp(0px, 1vw, 8px); }
.rp-verify-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: var(--rp-fig-fs); line-height: 1.5; color: var(--rp-text); table-layout: fixed; }
.rp-verify-table th { padding: 0 14px 4px; text-align: left; vertical-align: bottom; font: var(--w-regular) 14px/1.35 var(--font); color: var(--ink-3); }
.rp-verify-table td { padding: 13px 14px; vertical-align: top; background: var(--paper); text-wrap: pretty; }
.rp-verify-table td:first-child { border-radius: var(--r-s) 0 0 var(--r-s); color: var(--ink); }
.rp-verify-table td:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.rp-verify-table--no-first-bold td:first-child { color: var(--rp-text); }
.rp-verify-table strong { font-weight: var(--w-medium); color: var(--ink); }
.rp-verify-table tr:has(strong) td { background: var(--orange-wash); }
.rp-verify-table--stmt th:nth-child(2) { text-align: right; }
.rp-cell-label { color: var(--ink-3); font-size: 14px; }
.rp-cell-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-3); }
.rp-num { display: block; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rp-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .rp-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rp-verify-table { table-layout: auto; }
  .rp-verify-table--snapshot colgroup, .rp-verify-table--snapshot col { width: auto !important; }
  .rp-verify-table--snapshot tr { display: grid; margin-bottom: 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--paper); }
  .rp-verify-table--snapshot td { padding: 0; background: none; }
}

/* Claim ledger: verdict chips */
.rp-verify-claim { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rp-verify-dot { width: 8px; height: 8px; transform: translateY(-1px); }
.rp-verify-badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: 14px; line-height: 1.35; font-weight: var(--w-medium); }
.rp-verify-badge--confirmed { background: #DDF0E8; color: #1E6B52; }
.rp-verify-badge--company   { background: var(--blue-100); color: var(--blue-600); }
.rp-verify-badge--inference { background: #F7EBCB; color: #7A5A08; }
.rp-verify-badge--unknown   { background: var(--sunk); color: var(--ink-2); }

/* ---- Flow: five steps as tiles; the AI step lit --------------------------- */
.rp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; counter-reset: f; }
@media (min-width: 760px) { .rp-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rp-flow li { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r-m); background: var(--paper); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rp-flow li strong { font-weight: var(--w-medium); color: var(--ink); font-size: 15px; }
.rp-flow-num { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 6px; background: var(--raised); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-flow li.is-ai { background: var(--orange-wash); }
.rp-flow li.is-ai .rp-flow-num { background: var(--orange); color: #fff; }
.rp-flow-tag { justify-self: start; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--orange); color: #fff; font-style: normal; font-size: 14px; }
/* square "arrow" between tiles on wide screens */
@media (min-width: 760px) { .rp-flow li:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 26px; width: 6px; height: 6px; background: var(--line-strong); z-index: 1; } }

/* ---- Jobs tree: grid from the live build, dotted connectors --------------- */
.rp-tree-wrap { container-type: inline-size; }
.rp-tree { --root-w: 120px; --fork-w: 36px; --job-w: 190px; --pad: 22px; --r: 12px;
  --dl: radial-gradient(circle at center, var(--line-strong) 0 0); /* not used: kept simple */
  display: grid; grid-template-columns: var(--root-w) var(--fork-w) var(--job-w) var(--fork-w) minmax(0, 1fr); grid-template-rows: repeat(var(--leaves), auto); align-items: center; }
.rp-tree-branches { margin: 0; padding: 0; list-style: none; }
.rp-tree-branches, .rp-tree-branch { display: contents; }
.rp-tree > .rp-tree-box--self { grid-column: 1; }
.rp-tree-branch > .rp-tree-link { grid-column: 2; }
.rp-tree-branch > .rp-tree-box--job { grid-column: 3; }
.rp-tree-branch > .rp-tree-stub { grid-column: 4; }
.rp-tree-branch > .rp-tree-leaf { grid-column: 5; }
.rp-tree-branch > .rp-tree-link:nth-of-type(n + 2) { grid-column: 4; }
.rp-tree > .rp-tree-box--self, .rp-tree-branch > .rp-tree-link, .rp-tree-branch > .rp-tree-box--job, .rp-tree-branch > .rp-tree-stub, .rp-tree-branch > .rp-tree-leaf { grid-row: var(--r) / span var(--k, 1); }
.rp-tree-branch > .rp-tree-link, .rp-tree-branch > .rp-tree-stub { align-self: stretch; position: relative; }
.rp-tree-leaf { padding: 6px 0; }
/* connectors: dotted (square dots) instead of rules */
.rp-tree-link::before, .rp-tree-link--mid::after, .rp-tree-stub::before { content: ""; position: absolute; border: 0 dotted var(--line-strong); }
.rp-tree-link::before { left: 50%; right: 0; border-left-width: var(--rp-dot); }
.rp-tree-link--up::before { top: 50%; bottom: 0; border-top-width: var(--rp-dot); }
.rp-tree-link--down::before { top: 0; bottom: 50%; border-bottom-width: var(--rp-dot); }
.rp-tree-link--mid::before { top: 0; bottom: 0; }
.rp-tree-link--solo::before { left: 0; top: 50%; bottom: auto; border-left-width: 0; border-top-width: var(--rp-dot); }
.rp-tree-link--mid::after { left: 0; right: 0; top: 50%; border-top-width: var(--rp-dot); }
.rp-tree-stub::before { left: 0; width: 50%; top: 50%; border-top-width: var(--rp-dot); }
.rp-tree-box { padding: 14px 16px; border-radius: var(--r-m); background: var(--paper); }
.rp-tree-box--self { background: var(--lime); }
.rp-tree-box--job { background: var(--orange-wash); }
.rp-tag { display: inline-block; margin-bottom: 6px; color: var(--orange-ink); font-size: 14px; font-weight: var(--w-medium); }
.rp-tree-name { margin: 0; font-size: 15px; font-weight: var(--w-medium); line-height: 1.3; color: var(--ink); }
.rp-tree-meta, .rp-tree-note { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.rp-tree-name .rp-tree-meta { display: inline; margin: 0; font-weight: var(--w-regular); }
.rp-tree-box--self .rp-tree-meta { color: rgba(20, 20, 20, .66); }
@container (max-width: 640px) {
  .rp-tree { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .rp-tree > .rp-tree-box--self, .rp-tree-branch > .rp-tree-link, .rp-tree-branch > .rp-tree-box--job, .rp-tree-branch > .rp-tree-stub, .rp-tree-branch > .rp-tree-leaf { grid-column: 1; grid-row: auto; }
  .rp-tree-branch > .rp-tree-link:nth-of-type(n + 2) { grid-column: 1; }
  .rp-tree-link, .rp-tree-stub { display: none; }
  .rp-tree-box--job { margin-top: 18px; }
  .rp-tree-leaf { margin: 6px 0 0 14px; padding: 0 0 0 14px; border-left: var(--rp-dot) dotted var(--line-strong); }
}

/* ---- Which way they moved: squares on three stops -------------------------- */
.rp-moves-wrap { container-type: inline-size; }
.rp-moves { --name-w: 140px; --state-w: 140px; --g: 20px; display: grid; gap: 6px; }
.rp-moves-scale { position: relative; height: 1.6em; margin: 0 calc(var(--state-w) + var(--g)) 0 calc(var(--name-w) + var(--g)); }
.rp-moves-stop { position: absolute; left: calc(var(--x) * .84 + 8%); transform: translateX(-50%); white-space: nowrap; font-size: 14px; color: var(--ink-3); }
.rp-moves-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rp-moves-row { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr) var(--state-w); align-items: center; column-gap: var(--g); padding: 10px 14px; margin: 0 -14px; border-radius: var(--r-s); background: var(--paper); }
.rp-moves-row--self { background: var(--lime-wash); }
.rp-moves-name { margin: 0; font-size: 15px; font-weight: var(--w-medium); color: var(--ink); }
.rp-moves-state { margin: 0; font-size: 14px; color: var(--ink-3); }
.rp-moves-track { position: relative; height: 16px; }
/* the track: three faint stop squares, no line */
.rp-moves-track::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--line-strong), var(--line-strong)) 8% 50% / 4px 4px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 50% 50% / 4px 4px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 92% 50% / 4px 4px no-repeat; }
.rp-moves-seg { --seg: var(--line-strong); position: absolute; top: 50%; left: calc(var(--a) * .84 + 8%); width: calc((var(--b) - var(--a)) * .84); height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--seg) 0 4px, transparent 4px 7px); }
.rp-moves-row--self .rp-moves-seg { --seg: #6E9B1E; }
.rp-moves-mark { position: absolute; top: 50%; left: calc(var(--x) * .84 + 8%); width: 13px; height: 13px; transform: translate(-50%, -50%); }
.rp-moves-mark--from { background: var(--orange-200); }
.rp-moves-mark--now { background: var(--orange); }
@container (max-width: 560px) {
  .rp-moves-scale { margin: 0 14px; }
  .rp-moves-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .rp-moves-state { text-align: right; }
  .rp-moves-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- Insight accordions: a warm card of collapsible rows ------------------ */
.rp-insights { margin: clamp(32px, 3vw, 52px) 0; padding: var(--card-pad); border-radius: var(--r-l); background: var(--field); }
.rp-insights-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rp-insights-title { margin: 0; font: var(--w-head) clamp(1.125rem, 1rem + .4vw, 1.375rem)/1.3 var(--font); letter-spacing: -.01em; }
.rp-insights-all { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: var(--raised); color: var(--ink-2); font: var(--w-regular) 14px/1 var(--font); cursor: pointer; }
.rp-insights-all:hover { color: var(--ink); }
.rp-insights-body { display: grid; gap: 6px; }
.rp-insight { border-radius: var(--r-m); background: var(--raised); }
.rp-insight-head { margin: 0; }
.rp-insight-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 0; background: none; text-align: left; color: var(--ink); font: var(--w-medium) clamp(15px, .9rem + .2vw, 17px)/1.35 var(--font); cursor: pointer; border-radius: var(--r-m); }
.rp-insight-toggle:hover .rp-insight-glyph { color: var(--orange); }
/* plus / minus drawn in squares */
.rp-insight-glyph { position: relative; flex: none; width: 13px; height: 13px; color: var(--ink-3); transition: color var(--dur-1); }
.rp-insight-glyph::before { content: ""; position: absolute; left: 5px; top: 5px; width: 3px; height: 3px; background: currentColor;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor, 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: box-shadow var(--dur-2) var(--ease-out); }
.rp-insight.is-open .rp-insight-glyph { color: var(--orange); }
.rp-insight.is-open .rp-insight-glyph::before { box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor, 0 0 0 currentColor, 0 0 0 currentColor; }
.rp-insight-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.rp-insight.is-open .rp-insight-panel { grid-template-rows: 1fr; }
.rp-insight-panel-inner { overflow: hidden; }
.rp-insight-text { margin: 0; padding: 0 18px 18px; font-size: var(--rp-fig-fs); line-height: 1.65; color: var(--rp-text); max-width: 72ch; text-wrap: pretty; }

/* ---- Endgame ladder ------------------------------------------------------- */
.ax-ladder { display: grid; gap: 10px; }
.ax-rung { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 760px) { .ax-rung { grid-template-columns: 120px minmax(0, 1fr); align-items: start; } }
.ax-rung-label { padding-top: 14px; }
.ax-rung-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 600px) { .ax-rung-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ax-card { padding: 16px; border-radius: var(--r-m); background: var(--paper); display: grid; gap: 4px; align-content: start; }
.ax-card-name { margin: 0; font-size: 15px; font-weight: var(--w-medium); color: var(--ink); }
.ax-card-meta { margin: 0; font-size: 14px; color: var(--orange-ink); }
.ax-card-note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ax-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ax-chip::before { content: ""; width: 8px; height: 8px; background: var(--c, var(--ink-4)); }
.ax-chip--more { --c: var(--orange); color: var(--ink); }
.ax-chip--possible { --c: var(--orange-200); }
.ax-chip--less { --c: var(--line-strong); }
.ax-card .ax-card-tag { justify-self: start; margin-top: 8px; padding: 4px 9px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); }
.ax-card .ax-card-tag::before { display: none; }
.ax-rung:last-child .ax-card { background: var(--paper); }

/* ---- Timeline of calls: square markers, dotted spine ----------------------- */
.rp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rp-timeline-row { position: relative; display: grid; grid-template-columns: 14px 112px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: var(--r-s); background: var(--paper); }
.rp-timeline-marker { width: 9px; height: 9px; background: var(--orange); align-self: center; }
.rp-timeline-date { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: var(--w-medium); }
.rp-timeline-event { font-size: var(--rp-fig-fs); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.rp-timeline-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 560px) { .rp-timeline-row { grid-template-columns: 14px minmax(0, 1fr); } .rp-timeline-event { grid-column: 2; } }

/* ---- Limitations & references -------------------------------------------- */
#limitations { padding-top: clamp(40px, 4vw, 72px); }
#limitations .rp-chart { max-width: var(--rp-wide); margin: 0; }
.rp-refs { padding-top: clamp(56px, 6vw, 112px); }
.rp-refs > .lp-wrap > * { max-width: var(--rp-wide); }
.rp-refs-head h2 { margin: 0 0 clamp(18px, 2vw, 28px); font: var(--w-head) var(--fs-h3)/1.15 var(--font); letter-spacing: var(--tr-h3); }
.rp-refs-more { position: relative; padding: var(--card-pad); border-radius: var(--r-l); background: var(--raised); }
.rp-refs-more.is-clamped { max-height: 520px; overflow: hidden; }
.rp-refs-more.is-clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(rgba(255,255,255,0), var(--raised) 78%); pointer-events: none; border-radius: 0 0 var(--r-l) var(--r-l); }
.rp-refs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rp-ref { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-radius: var(--r-s); scroll-margin-top: calc(var(--nav-h) + 80px); transition: background-color var(--dur-3); }
.rp-ref:target, .rp-ref.is-flash { background: var(--orange-wash); }
.rp-ref-marker { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rp-ref-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.rp-ref-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .18em; }
.rp-refs-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-s); background: var(--action); color: var(--raised); font: var(--w-regular) 15px/1 var(--font); cursor: pointer; }
.rp-refs-toggle[hidden] { display: none; }
.rp-refs-toggle .lp-pill-fill { display: none; }
.rp-refs-toggle .rp-insight-glyph { color: var(--orange); }
.rp-refs-toggle[aria-expanded="true"] .rp-insight-glyph::before { box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor, 0 0 0 currentColor, 0 0 0 currentColor; }
.rp-refs-note { margin-top: clamp(28px, 3vw, 48px); display: grid; gap: 12px; padding: var(--card-pad); border-radius: var(--r-l); background: var(--sunk); }
.rp-refs-note p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; }
.rp-refs-note b { font-weight: var(--w-medium); color: var(--ink); }

/* ---- Ask your own --------------------------------------------------------- */
.rp-ask { padding-top: clamp(64px, 7vw, 128px); }
.rp-ask__card { position: relative; overflow: hidden; border-radius: var(--r-xl); max-width: calc(var(--rp-wide) + 2 * var(--card-pad)); }
.grain > .rp-ask__cloud { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.rp-ask__txt { padding: clamp(32px, 4vw, 64px) var(--card-pad); display: grid; gap: 16px; max-width: 620px; }
.rp-ask__txt .ask { margin-top: 8px; }
@media (max-width: 640px) { .rp-hero h1 br { display: none; } }
@media (max-width: 760px) { .grain > .rp-ask__cloud { opacity: .3; } }

/* ---- Reveal on scroll (figures and cards, once) ---------------------------- */
.js-rp .rp-chart, .js-rp .rp-insights, .js-rp .rp-stat-card, .js-rp .rp-pullquote { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js-rp .is-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .js-rp .rp-chart, .js-rp .rp-insights, .js-rp .rp-stat-card, .js-rp .rp-pullquote { opacity: 1; transform: none; } }

/* ---- Bar charts drawn in squares (report.js) ------------------------------ */
.rp-chart-canvas { width: 100%; }
.rp-sq { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.rp-sq text { font-size: 14px; fill: var(--ink-2); }
.rp-sq .v { font-size: 14px; fill: var(--ink); font-weight: 500; }
.rp-sq .l { font-size: 14px; fill: var(--ink); }
.rp-sq .mk { font-size: 14px; fill: var(--ink-2); }
.rp-sq rect.s { transition: opacity 400ms var(--ease-out); }

/* ---- 19 Nov (report review) ------------------------------------------------
   (2) one left edge: figures and accordions no longer hang a card-padding past
       the text edge; every box starts exactly where the text starts.
   (3) the chapter body runs to the page margin on the right (the same edge as
       the overview and stat cards), so the right gap is the page margin, not a
       940px cap. Running text keeps its 760px measure; boxes take the full width. */
@media (min-width: 1100px) {
  .rp-chapters-layout { grid-template-columns: var(--rp-toc-w) minmax(0, 1fr); }
  .rp-chapters-body .rp-chart, .rp-chapters-body .rp-insights { margin-left: 0; }
}
.rp-chapters-body .rp-chart, .rp-chapters-body .rp-insights, #limitations .rp-chart, .rp-refs > .lp-wrap > * { max-width: none; }
/* the 760px measure moves from the chapter wrapper to its text, so boxes can widen */
.rp-chapters-body > .rp-chapter { max-width: none; }
.rp-chapter-head, .rp-pullquote, .rp-prose-group > * { max-width: var(--rp-col); }
/* (4) stat values are plain Satoshi (report.js no longer dot-matrixes them): the
   dots need home-sized numerals (~90px) to read cleanly, and these values are too
   long for that in a third of the column. */

/* ---- 19 Nov (b): the stat strip in the home page's styling (.proof) -----------
   One white card, three equal centred columns, dot-matrix values at the home size,
   descriptions at the home size and colour. The "/01" indexes are hidden (the home
   strip has none); the markup and its text are unchanged. */
.rp-stats-grid { gap: 36px; padding: clamp(32px, 3.4vw, 56px) var(--card-pad); border-radius: var(--r-xl); background: var(--raised); }
@media (min-width: 760px) { .rp-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
.rp-stat-card { background: none; padding: 0; border-radius: 0; min-height: 0; justify-items: center; text-align: center; align-content: start; gap: clamp(16px, 1.6vw, 24px); container-type: inline-size; }
.rp-stat-index { display: none; }
.rp-stat-value { font: var(--w-head) min(clamp(56px, 2rem + 4vw, 112px), 25cqi)/1 var(--font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-stat-caption { font-size: clamp(17px, .95rem + .3vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 24ch; text-wrap: balance; }

/* ---- 19 Nov (c): everything before the chapters runs page width -----------
   Hero, overview and stat strip start at the page margin (like the nav and the
   home page) instead of the text edge; chapters keep the contents rail on the
   left. In the chapters, running text now also runs to the right page margin
   (the 760px measure is released), so text and boxes share both edges. */
@media (min-width: 1100px) {
  .rp-hero > .lp-wrap, .rp-overview > .lp-wrap, .rp-stats > .lp-wrap { padding-left: var(--pad); }
}
.rp-chapter-head, .rp-pullquote, .rp-prose-group > * { max-width: none; }

/* ---- 19 Nov (e): the logo disclaimer becomes the logo card's caption ---------
   It sat as one long 13px line under both cards, reading as stray text between
   the overview and the stats. It is a credit for the logo, so it now sits under
   the logo card, on that card's edges, at the 14px floor. (The same sentence is
   repeated in the closing sources box; the live text is kept as is.) */
.rp-overview-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
@media (min-width: 900px) {
  .rp-overview > .lp-wrap { grid-template-rows: auto 1fr auto; }
  .rp-overview-note { grid-area: 3 / 2 / 4 / 3; padding-inline: 4px; }
  .rp-overview-body { grid-row: 2 / 4; }
}

/* ---- 19 Nov (f): a narrower report body, still on the right page margin -------
   The body (chapters, limitations, references, sources) is capped at --rp-body and
   pushed to the right margin, so its right edge stays on the page margin and the
   extra room opens up beside the contents rail. Below that width it simply fills. */
/* --rp-body (940px; 19 Nov 820 → 900, 20 Nov → 940) moved to site-r2.css :root, shared with the story */
@media (min-width: 1100px) {
  .rp-chapters-body { width: 100%; max-width: var(--rp-body); justify-self: end; }
  .rp-refs > .lp-wrap > *, #limitations .rp-chart { max-width: var(--rp-body); margin-left: auto; }
}

/* ---- 19 Nov (g): the references toggle is a secondary button, inside the box --
   Folded, it sits on the box's fade at the bottom-left; open, it follows the last
   reference. Same look as .btn--secondary (sunk ground, ink text, orange glyph). */
.rp-refs-more .rp-refs-toggle { position: relative; z-index: 2; margin: 20px 0 0; height: clamp(40px, 2.5vw, 48px); background: var(--sunk); color: var(--ink); transition: background-color var(--dur-2); }
.rp-refs-more .rp-refs-toggle:hover { background: var(--sunk-hover); }
.rp-refs-more.is-clamped .rp-refs-toggle { position: absolute; left: var(--card-pad); bottom: var(--card-pad); margin: 0; }
/* the fade turns solid behind the folded button, so no reference text shows through it */
.rp-refs-more.is-clamped::after { height: 240px; background: linear-gradient(rgba(255,255,255,0), var(--raised) 50%); }

/* ---- 19 Nov (h): hero after the stateofaidesign.com chapter hero --------------
   Their pattern: a label, a very large headline sitting low, a full-width image
   strip in two panels (one dithered mono, one colour), then a summary row. Ours:
   no orange wash (identity: orange never page-wide), so the headline stays on
   the warm page. The strip sits --edge from the window like the home field band:
   left, the beige field of hero squares (orange under the cursor); right, Harbor's
   report-thumbnail art on its soft black plate (the same art as its home card).
   19 Nov (i): the title, dek and meta are back in the identity type sizes
   (--fs-display, --fs-lede, as on the home hero) and above the strip. */
.rp-strip { margin-top: clamp(32px, 3.6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--edge); }
@media (min-width: 760px) { .rp-strip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.rp-strip > div { position: relative; overflow: hidden; border-radius: var(--r-xl); height: clamp(300px, 36vw, 600px); }
.rp-strip__field { background: var(--field); }
.grain > .rp-strip__field canvas, .rp-strip__field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rp-strip__art .tag { position: absolute; left: clamp(16px, 1.6vw, 24px); top: clamp(16px, 1.6vw, 24px); }
@media (max-width: 759px) { .rp-strip__field { display: none; } .rp-strip > div { height: 64vw; } }
/* meta tags may wrap on phones: let the long "Sources" tag grow instead of spilling */
.rp-meta li { height: auto; min-height: 30px; padding-block: 5px; line-height: 1.35; }
/* 19 Nov (i): type on the identity tokens, as on the home page: page title =
   display (same as the home hero), chapter titles = h2 (same as home section heads) */
.rp-hero h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); }
.rp-chapter-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }

/* ---- 20 Nov: company bio card, after Harbor's YC page ------------------------
   One white card. Left: the logo on YC's own tile (slate gradient, sampled from
   YC's logo image), the name, YC's one-line description, chips (status, city,
   batch; the live status carries a lime square) and the links YC lists, as
   secondary icon buttons. Right: the live paragraph and, under it, the logo
   disclaimer. Replaces the separate navy logo card. */
.rp-bio > .lp-wrap { display: block; }
.rp-bio__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 56px); padding: var(--card-pad); border-radius: var(--r-l); background: var(--raised); }
@media (min-width: 900px) { .rp-bio__card { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); } }
.rp-bio__id { display: grid; gap: 20px; align-content: start; justify-items: start; }
.rp-bio__logo { width: clamp(72px, 6vw, 96px); aspect-ratio: 1; border-radius: var(--r-m); display: grid; place-items: center; }
.rp-bio__logo img { width: 62%; height: auto; display: block; }
.rp-bio__name h2 { margin: 0; font: var(--w-head) var(--fs-h3)/1.15 var(--font); letter-spacing: var(--tr-h3); color: var(--ink); }
.rp-bio__tag { margin: 6px 0 0; font-size: var(--fs-body, 17px); line-height: 1.45; color: var(--ink-2); }
.rp-bio__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-bio__chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; border-radius: var(--r-s); background: var(--sunk); color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.rp-bio__chips li.is-live::before { content: ""; width: 8px; height: 8px; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(20,20,20,.14); }
.rp-bio__links { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-bio__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-s); background: var(--sunk); color: var(--ink); text-decoration: none; font-size: 15px; transition: background-color var(--dur-2), color var(--dur-2); }
.rp-bio__link:hover { background: var(--sunk-hover); }
.rp-bio__link svg { width: 18px; height: 18px; flex: none; }
.rp-bio__link:first-child svg { color: var(--orange); }
.rp-bio__body { display: grid; gap: 20px; align-content: space-between; }
.rp-bio__body .rp-overview-text { margin: 0; font-size: var(--rp-fs); line-height: var(--rp-lh); color: var(--rp-text); max-width: 68ch; }
.rp-bio__body .rp-overview-note { margin: 0; grid-area: auto; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 68ch; }

/* ---- 20 Nov (b): less boxy between the hero strip and chapter 1 --------------
   Strip, bio card, stats card and snapshot card were four boxes in a row. The bio
   now sits open on the page (no card), so the run alternates box / open / box /
   open / box. Its paragraph starts on the chapter body's left edge (the body is
   --rp-body wide, pinned to the right margin), with the logo, name, chips and
   links in the column to the left, above the contents rail's column. */
.rp-bio__card { background: none; padding: 0; border-radius: 0; }
@media (min-width: 1100px) {
  .rp-bio__card { grid-template-columns: minmax(0, 1fr) minmax(0, var(--rp-body)); column-gap: 0; }
  .rp-bio__id { padding-right: clamp(24px, 2.4vw, 40px); }
}
.rp-bio__body .rp-overview-text { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.rp-bio { padding-top: clamp(8px, 1vw, 16px); }
.rp-stats { padding-top: clamp(64px, 6vw, 112px); }
@media (min-width: 1100px) { .rp-bio__id { padding-right: 20px; } .rp-bio__chips { gap: 4px; } }
@media (min-width: 1100px) { .rp-bio__chips li { padding-inline: 10px; } }
/* below 1440: the body column leaves too little room beside it (~180px at 1280), so the
   identity runs as one row above the paragraph instead of a column beside it */
@media (max-width: 1439px) {
  .rp-bio__card { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .rp-bio__id { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-right: 0; }
  .rp-bio__chips li { padding-inline: 12px; }
}

/* ---- 20 Nov (c): the Harbor art starts on the page grid ---------------------
   From 1100 up, the art panel's left edge sits on the chapter body's left edge
   (the line the bio paragraph and every chapter block start on) and runs to the
   window edge; the beige squares panel takes the rest. Its width is derived from
   the same values as the body (frame, out, pad, contents rail, gutter, --rp-body),
   in % of the strip, so it holds at any width without a scrollbar error. */
@media (min-width: 1100px) {
  .rp-strip {
    --V: calc(100% + 2 * var(--edge));                                   /* the viewport, from the strip */
    --frameW: min(var(--frame-max), var(--V) - 2 * var(--out));
    --bodyW: min(var(--rp-body), var(--frameW) - 2 * var(--pad) - var(--rp-toc-w) - var(--rp-gutter));
    --rightM: calc((var(--V) - var(--frameW)) / 2 + var(--pad));
    grid-template-columns: minmax(0, 1fr) calc(var(--bodyW) + var(--rightM) - var(--edge));
  }
}

/* ---- 20 Nov (d): social buttons removed; website button beside the name -----
   The chips and the YC link buttons read as one cluster. The links are gone; the
   live report's own website icon button sits right after "Harbor", centred on
   the name's line, at every width. */
.rp-bio__title { display: flex; align-items: center; gap: 12px; }
.rp-bio__title .rp-external-link { width: 36px; height: 36px; flex: none; }

/* ---- 20 Nov (f), trial: header row, then the text ------------------------------
   The logo sits on the left with the name, description and chips stacked to its
   right; the paragraph and disclaimer run underneath that header. One layout at
   every width (the side-column and one-row variants above are overridden). */
.rp-bio__card, .rp-bio__card:is(*) { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: clamp(24px, 2.6vw, 40px); }
.rp-bio__id, .rp-bio__id:is(*) { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(16px, 1.6vw, 24px); padding-right: 0; }
.rp-bio__meta { display: grid; gap: 12px; min-width: 0; }
.rp-bio__chips li, .rp-bio__chips li:is(*) { padding-inline: 12px; }
.rp-bio__body { align-content: start; }
@media (max-width: 559px) { .rp-bio__id, .rp-bio__id:is(*) { align-items: flex-start; } }
/* phones: the chips need the full width, so they drop under the logo + name row */
@media (max-width: 559px) {
  .rp-bio__id, .rp-bio__id:is(*) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 16px; }
  .rp-bio__meta { display: contents; }
  .rp-bio__chips { grid-column: 1 / -1; }
}
/* logo square matches the stack beside it (name + description + chips = 109px at
   every width): measured 86px at 1440 before, which read small next to it. Phones:
   the chips sit below, so the logo matches the name + description (~91px). */
.rp-bio__logo { width: 108px; flex: none; }
@media (max-width: 559px) { .rp-bio__logo { width: 88px; } }

/* 20 Nov (h), trial: a founders panel fills the space on the bio's right.
   (The grid shift, 20 Nov (g), was tried and undone.) From 1100 up the bio is two
   columns: header + paragraph + disclaimer on the left, "Founders" on the right,
   one white row per founder (initials square, name, role and previous company,
   with the live citation). Below 1100 the panel follows the disclaimer. The lines
   are parsed from the live snapshot's Founders row in build.js. */
@media (min-width: 1100px) {
  .rp-bio__card, .rp-bio__card:is(*) { grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 400px); column-gap: clamp(40px, 5vw, 96px); }
  .rp-bio__id { grid-area: 1 / 1; } .rp-bio__body { grid-area: 2 / 1; } .rp-bio__founders { grid-area: 1 / 2 / 3 / 3; }
}
.rp-bio__founders { display: grid; gap: 12px; align-content: start; }
.rp-bio__founders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-bio__founder { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-m); background: var(--raised); }
.rp-bio__ini { width: 48px; height: 48px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--sunk); color: var(--ink); font: var(--w-medium) 16px/1 var(--font); }
.rp-bio__founder b { display: block; font-weight: var(--w-medium); font-size: 17px; color: var(--ink); }
.rp-bio__founder span:not(.rp-bio__ini) { display: block; margin-top: 2px; font-size: 15px; color: var(--ink-2); }
/* founders, (h) cont.: YC photo + a short bio under each name, so the panel holds
   its own against the bio column. Photo 56px square (radius as the chips), bio at
   15px ink-2 under the name row. */
.rp-bio__founder { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px; }
.rp-bio__pic { width: 56px; height: 56px; border-radius: var(--r-s); object-fit: cover; display: block; background: var(--sunk); }
.rp-bio__founder p { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---- 20 Nov: type audit fixes (14px floor) -----------------------------------
   The audit (all pages, 1440 + 390) found text under the 14px floor only here:
   citation chips at .78em (11.7px; 10.1px inside smaller text) and chart notes at
   --rp-fine 13px. Both now sit on the floor token, --fs-label (14px). */
.rp-page { --rp-fine: var(--fs-label); }
.rp-cite { font-size: max(var(--fs-label), .78em); }

/* ---- 20 Nov: type onto the shared scale (audit follow-up) ------------------------
   Report prose goes one step up the scale (18px → --fs-h4, by request). Sub-heads
   inside chapters use --fs-h3, the size of "Three numbers that frame the pitch", so
   the steps read 46 (chapter) → 28 (sub-head) → 20 (text) at 1440. */
.rp-page { --rp-fs: var(--fs-h4); }
.rp-prose-sub { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); margin-bottom: 16px; }
.rp-pullquote p { font-size: var(--fs-h3); }                         /* 33px → h3 */
.rp-stat-caption { font-size: var(--fs-h4); }                        /* 19.5px → h4 */

/* ---- 20 Nov: one reading layout for report and story ---------------------------
   The contents rail takes all the room beside the body (at least --rp-toc-w), so
   chapter names fit on one line; the body is --rp-body wide (or what is left) on
   the right margin. Same rule on the story (.read, site-r2.css). */
@media (min-width: 1100px) {
  .rp-chapters-layout { grid-template-columns: minmax(var(--rp-toc-w), 1fr) minmax(0, var(--rp-body)); column-gap: var(--rp-gutter); }
  .rp-chapters-body { max-width: none; justify-self: stretch; }
}
/* body text = the company bio's text style (shared tokens in site-r2.css) */
.rp-prose, .rp-bio__body .rp-overview-text { font-size: var(--read-fs); line-height: var(--read-lh); color: var(--read-ink); }
/* pull quote fill on scroll (report.js): each word mixes light grey → ink by its --f */
.rp-pullquote p.is-fill .fw { color: color-mix(in srgb, var(--ink) calc(var(--f, 0) * 100%), var(--ink-4)); }

/* 20 Nov (b): in-text source markers at a fixed 14px (the floor). At .78em they
   had grown to ~17px with the larger body text. */
.rp-cite { font-size: var(--fs-label); }
/* the "Three numbers that frame the pitch." title gets the pull quote's lead square */
.rp-stats-heading::before { content: ""; display: inline-block; width: .32em; height: .32em; margin-right: .4em; vertical-align: .14em; background: var(--orange); }

/* 20 Nov: interactive source tooltip (report.js). Clickable while open; long
   references scroll inside it; an invisible bridge covers the 10px gap to the marker
   so the pointer can cross it; links read as links on the dark ground. */
.rp-tip__in { max-height: min(320px, 60vh); overflow-y: auto; overscroll-behavior: contain; }   /* scroll inside, so the bridge below is not clipped */
.rp-tip.is-on { pointer-events: auto; }
.rp-tip::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; top: 100%; }
.rp-tip.is-below::after { top: auto; bottom: 100%; }
.rp-tip .rp-ref-text { display: block; }
.rp-tip a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .2em; }
.rp-tip a:hover, .rp-tip a:focus-visible { color: var(--orange); text-decoration-color: currentColor; }
/* the reference text inside the tooltip is light on the dark ground (it was inheriting
   the dark body ink of the reference list) */
.rp-tip .rp-ref-text { color: #D9D7D2; margin: 0; }

/* ---- 20 Nov: report visual fixes ----------------------------------------------- */
/* (1) "How a patient's number becomes trial evidence" runs vertically: one row per
   step (number, step, what happens, the AI tag), square connectors between rows */
@media (min-width: 760px) {
  .rp-flow { grid-template-columns: minmax(0, 1fr); }
  .rp-flow li { grid-template-columns: 24px minmax(0, 220px) minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 14px 16px; }
  .rp-flow-num { margin-bottom: 0; }
  .rp-flow-tag { margin-top: 0; justify-self: end; }
  .rp-flow li:not(:last-child)::after { right: auto; left: calc(16px + 12px - 3px); top: 100%; }
}
/* (2) table row labels in Medium, where the first column is a row label (the live
   markup marks the tables where it is not: --no-first-bold); their notes stay Regular */
.rp-verify-table:not(.rp-verify-table--no-first-bold) td:first-child { font-weight: var(--w-medium); }
.rp-verify-table td:first-child .rp-cell-sub { font-weight: var(--w-regular); }
/* (3) "Who else does Harbor's jobs": job boxes no longer touch between rows; the
   Harbor and job columns are wider, the rival boxes slightly narrower */
.rp-tree { --root-w: 160px; --job-w: 230px; }
.rp-tree-branch > .rp-tree-box--job { margin-block: 6px; }
/* (4, 5) bar charts: y-axis labels and faint dotted guides (report.js vbar) */
.rp-sq .ax { font-size: 14px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-sq .gd { fill: var(--line-strong); opacity: .7; }
/* (6) "Our calls, with dates" as a horizontal timeline: a dotted track with a marker
   per call, the date above it and the call below; phones keep the vertical list */
@media (min-width: 760px) {
  .rp-timeline--calls { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); padding-top: 34px; }
  .rp-timeline--calls::before { content: ""; position: absolute; left: 0; right: 0; top: 50px; border-top: var(--rp-dot) dotted var(--line-strong); }
  .rp-timeline--calls .rp-timeline-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 12px; align-items: start; padding: 0; background: none; border-radius: 0; }
  .rp-timeline--calls .rp-timeline-date { grid-row: 1; margin-top: -34px; }
  .rp-timeline--calls .rp-timeline-marker { grid-row: 2; position: relative; z-index: 1; width: 12px; height: 12px; align-self: start; margin-top: -4px; box-shadow: 0 0 0 4px var(--raised); }
  .rp-timeline--calls .rp-timeline-event { grid-row: 3; padding: 14px 16px; border-radius: var(--r-m); background: var(--paper); height: 100%; box-sizing: border-box; }
}
/* timeline: the spare height goes to the call box only, so every marker sits on the
   track and the boxes share a bottom edge */
@media (min-width: 760px) {
  .rp-timeline--calls .rp-timeline-row { grid-template-rows: auto auto 1fr; }
  .rp-timeline--calls .rp-timeline-marker { margin-top: 0; }
}
/* the contract line's label keeps a card-coloured halo, so it stays legible where it
   crosses a bar on narrow screens */
.rp-sq .mk { paint-order: stroke; stroke: var(--raised); stroke-width: 5px; stroke-linejoin: round; }

/* 20 Nov (e): the patient-number flow uses the square-dot stroke of the timeline and
   the jobs tree (--rp-dot, dotted, --line-strong): a vertical run from each step's
   number to the next, in an 18px gap between cards. All widths (phones had none). */
.rp-flow { gap: 18px; }
.rp-flow li:not(:last-child)::after { content: ""; position: absolute; top: 100%; right: auto; left: calc(16px + 12px - var(--rp-dot) / 2); width: 0; height: 18px; background: none; border-left: var(--rp-dot) dotted var(--line-strong); z-index: 1; }
@media (min-width: 760px) { .rp-flow li:not(:last-child)::after { top: 100%; right: auto; left: calc(16px + 12px - var(--rp-dot) / 2); width: 0; height: 18px; background: none; } }
/* 20 Nov (f): each call's square sits centred over its card, and its date centred over
   the square */
@media (min-width: 760px) {
  .rp-timeline--calls .rp-timeline-marker { justify-self: center; }
  .rp-timeline--calls .rp-timeline-date { justify-self: center; text-align: center; }
}

/* ---- 20 Nov (h) ------------------------------------------------------------------
   (1) hero: one art panel, full width (the beige squares panel is gone); the art takes
   the old left panel's colours: beige ground, grey dither, the Harbor mark in orange */
.rp-strip, .rp-strip:is(*) { grid-template-columns: minmax(0, 1fr); }
.rp-strip__art { background: var(--field); }
@media (max-width: 759px) { .rp-strip > div { height: 64vw; } }
/* (2) equal space between chapters: whatever a chapter ends on (a figure, a paragraph,
   a pull quote, accordions) adds no margin of its own, so the gap is the chapter's top
   padding everywhere */
.rp-chapter > :last-child, .rp-chapter > :last-child > :last-child { margin-bottom: 0; }
/* (4) fewer text styles in the report body. Inside figures, tables and accordions every
   piece of text is one size, --fs-meta (15px); weight and colour carry the hierarchy (was
   14 / 15 / 17px). Figure and accordion-group titles share --fs-h4 (were 20 and 21.8px).
   Chapter labels are eyebrow size (15). Citation markers stay 14 (as asked). Charts drawn
   in SVG keep their own 14px labels. */
.rp-chapters-body :is(figure, .rp-insights), #limitations figure { font-size: var(--fs-meta); }
.rp-chapters-body :is(figure, .rp-insights) :not(svg, svg *, .rp-chart-title, .rp-insights-title, .rp-cite),
#limitations figure :not(svg, svg *, .rp-chart-title, .rp-cite) { font-size: inherit; }
.rp-chart-title, .rp-insights-title { font-size: var(--fs-h4); }
.rp-chapter-numeral, .rp-chapter-topic { font-size: var(--fs-meta); }
.rp-insights-all { display: none; }

/* ---- 20 Nov (i) ------------------------------------------------------------------
   (1) Research gaps and references now sit inside the chapters body (build.js), so the
   contents rail stays sticky through them; they space like chapters */
#limitations.rp-tail, #references.rp-tail { padding-top: clamp(72px, 7vw, 136px); }
.rp-tail #limitations-x, .rp-tail .rp-chart { max-width: none; margin: 0; }
/* (2) the limitations block's "Research gaps" title uses the references heading style */
.rp-tail .rp-refs-head h2 { margin: 0 0 clamp(18px, 2vw, 28px); font: var(--w-head) var(--fs-h3)/1.15 var(--font); letter-spacing: var(--tr-h3); }
/* (3) the hero strip is the Ask Hackerman box's background: beige field, drifting grey
   squares that turn orange under the cursor, the Harbor mark in orange squares centred */
.rp-strip__hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--field); }
.grain > .rp-strip__cloud, .rp-strip__cloud { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.rp-strip__mark { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(120px, 16%, 220px); transform: translate(-50%, -50%); pointer-events: none; }
.rp-strip__mark svg { display: block; width: 100%; height: auto; }

/* 20 Nov (j): a bigger Harbor mark in the hero strip (was 120–220px, 16%) */
.rp-strip__mark { width: clamp(160px, 24%, 320px); }
/* the patient-number flow's descriptions sit closer to the step names (step column
   220 → 180px; the longest name, "Trial database (EDC)", is ~150px) */
@media (min-width: 760px) { .rp-flow li { grid-template-columns: 24px minmax(0, 180px) minmax(0, 1fr) auto; } }

/* 20 Nov (k): "Research gaps" and "References & Citations" get the lead square of
   "Three numbers that frame the pitch." (orange, .32em, inline) */
.rp-tail .rp-refs-head h2::before { content: ""; display: inline-block; width: .32em; height: .32em; margin-right: .4em; vertical-align: .14em; background: var(--orange); }
/* 20 Nov (l): the hero strip at page width (.lp-wrap, the hero text's edges); its
   space above the tags is restored (the old wrapper set it) */
.rp-hero .rp-strip { margin-top: clamp(32px, 3.6vw, 64px); }
/* 20 Nov (m): the hero strip is Harbor's report-thumbnail art (soft black plate, grey
   dither, neon-orange mark, as on its home card), at page width */
.rp-strip__art, .rp-strip__art:is(*) { background: var(--plate); border-radius: var(--r-xl); }

/* 20 Nov (n): vertical bars are solid (report.js vbar); they grow up from the baseline */
.rp-sq rect.bar { transform-box: fill-box; transform-origin: bottom; transition: transform 900ms var(--ease-out); }
.rp-sq rect.bar.is-low { transform: scaleY(0); }
.rp-sq rect.bar.is-low.is-up { transform: none; }
