@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Report page: white sheet, near-black ink, one report blue, pale blue figure wash. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --mark-ring: transparent;
  --ink: #16181b;
  --ink-2: #4f555d;
  --ink-3: #6b717a;
  --rule: #dfe3e8;
  --rule-strong: #b9c0c9;
  --wash: #f2f6fc;
  --blue: #1c5cab;
  --blue-ink: #1a4f94;
  --bar-median: #1c5cab;
  --bar-p90: #6da7ec;
  --bar-track: #e4edf9;
  --focus: #1a73e8;
  --select: #cfe0fa;
  /* Stage colours, shared by every figure: a stage looks the same wherever it appears. */
  --s-untouched: #6da7ec; --on-untouched: #16181b;
  --s-reviewer: #1c5cab;  --on-reviewer: #ffffff;
  --s-approver: #c4dbf7;  --on-approver: #16181b;
  --s-merge: #0b2a52;     --on-merge: #ffffff;
  --s-author: #8b939d;
  --s-hold: #b9c0c9;
  --on-heat: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #121417;
    --ink: #eceef1;
    --ink-2: #b4bac3;
    --ink-3: #959ca6;
    --rule: #2a2f36;
    --rule-strong: #434a54;
    --mark-ring: #434a54;
    --wash: #171d26;
    --blue: #7fb0f0;
    --blue-ink: #9cc2f4;
    --bar-median: #5598e7;
    --bar-p90: #184f95;
    --bar-track: #1b2533;
    --focus: #8ab8f5;
    --select: #234a7d;
    --s-untouched: #2f6bb8; --on-untouched: #f3f6fa;
    --s-reviewer: #6aa6ee;  --on-reviewer: #0b1420;
    --s-approver: #1f3f69;  --on-approver: #eceef1;
    --s-merge: #d3e5fb;     --on-merge: #0b1420;
    --s-author: #6b737e;
    --s-hold: #4b535e;
    --on-heat: #0b1420;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121417;
  --ink: #eceef1;
  --ink-2: #b4bac3;
  --ink-3: #959ca6;
  --rule: #2a2f36;
  --rule-strong: #434a54;
  --mark-ring: #434a54;
  --wash: #171d26;
  --blue: #7fb0f0;
  --blue-ink: #9cc2f4;
  --bar-median: #5598e7;
  --bar-p90: #184f95;
  --bar-track: #1b2533;
  --focus: #8ab8f5;
  --select: #234a7d;
  --s-untouched: #2f6bb8; --on-untouched: #f3f6fa;
  --s-reviewer: #6aa6ee;  --on-reviewer: #0b1420;
  --s-approver: #1f3f69;  --on-approver: #eceef1;
  --s-merge: #d3e5fb;   --on-merge: #0b1420;
  --s-author: #6b737e;
  --s-hold: #4b535e;
  --on-heat: #0b1420;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 "Public Sans", system-ui, sans-serif;
  font-feature-settings: "kern";
}
::selection { background: var(--select); color: var(--ink); }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--page); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.wordmark { color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
/* Product mark: the favicon tile. It is near-black, so in dark mode a 1px ring
   in the rule colour keeps its edge visible against the page. */
.product-mark { display: block; flex-shrink: 0; width: 24px; height: 24px; border-radius: 22%; box-shadow: 0 0 0 1px var(--mark-ring); }
nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; }
nav a:hover { color: var(--ink); text-decoration: underline; }
.theme {
  font: inherit; font-size: 14px; color: var(--ink-2); background: transparent; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: 4px; padding: 3px 10px;
}
.theme:hover { color: var(--ink); border-color: var(--ink-3); }

/* Page grid */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px 64px; }
.loading, .load-error { color: var(--ink-2); padding: 64px 0; }
@media (scripting: none) { .loading { display: none; } }
section.part { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--rule); }
h1, h2, h3 { line-height: 1.15; font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: 28px; letter-spacing: -0.015em; margin-bottom: 12px; }
h3 { font-size: 19px; letter-spacing: -0.005em; }
.lede { max-width: 66ch; color: var(--ink-2); margin: 0 0 28px; }

/* Opening: title, byline, summary, findings beside Figure 1 */
.opening { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-top: 56px; align-items: start; }
h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 18px; }
.byline { color: var(--ink-3); font-size: 15px; margin: 0 0 24px; }
.byline a { color: inherit; }
.summary { font-size: 19px; line-height: 1.55; margin: 0 0 14px; max-width: 60ch; font-weight: 600; }
.plain { margin: 0 0 32px; max-width: 64ch; color: var(--ink); }
.findings-head { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); max-width: 64ch; }
.findings li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.findings strong { font-weight: 700; }

/* Inline number that opens its PRs */
.num {
  font: inherit; font-weight: 700; color: var(--blue-ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; font-variant-numeric: tabular-nums;
}
.num:hover { text-decoration-style: solid; }
.num[aria-expanded="true"] { text-decoration-style: solid; text-decoration-thickness: 2px; }

/* Figures */
figure { margin: 0; }
.figure { background: var(--wash); padding: 24px 24px 18px; }
.figure h3 { margin-bottom: 4px; }
.figure .fig-sub { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
figcaption { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
figcaption b { color: var(--ink-2); font-weight: 700; }

/* Range bars: median solid, p90 extent lighter, both labeled */
.rows { display: grid; gap: 14px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; width: 100%;
  font: inherit; color: inherit; background: none; border: 0; padding: 6px 8px; margin: 0 -8px; text-align: left; cursor: pointer; border-radius: 4px;
}
.row:hover { background: color-mix(in srgb, var(--wash), var(--ink) 5%); }
.row-label { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.row-label .vals { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Two-up figures below the opening */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

.aside h3 { margin-bottom: 10px; }
.aside p { color: var(--ink-2); max-width: 52ch; margin: 0 0 14px; }

/* Stage colours. Swatches, bar segments, squares and blocks all take these. */
.st-untouched { --c: var(--s-untouched); --on: var(--on-untouched); }
.st-reviewer { --c: var(--s-reviewer); --on: var(--on-reviewer); }
.st-approver { --c: var(--s-approver); --on: var(--on-approver); }
.st-merge-pending { --c: var(--s-merge); --on: var(--on-merge); }
.st-author { --c: var(--s-author); --on: var(--ink); }
.st-on-hold { --c: transparent; --on: var(--ink); }
.swatch { width: 14px; height: 10px; display: inline-block; flex: none; background: var(--c); }
/* The palest stage and the parked one get an edge so they never vanish into the wash. */
.st-approver.swatch, .st-approver .dot, .seg.st-approver, .team-strip .st-approver { box-shadow: inset 0 0 0 1px var(--s-reviewer); }
.st-on-hold.swatch, .st-on-hold .dot { box-shadow: inset 0 0 0 1.5px var(--s-hold); }

/* Key findings: numbered, each led by its plain-language finding */
ol.findings { counter-reset: finding; }
ol.findings li { counter-increment: finding; position: relative; padding-left: 28px; }
ol.findings li::before { content: counter(finding); position: absolute; left: 0; top: 14px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.findings li { line-height: 1.55; }
.finding-head { display: block; font-size: 18px; line-height: 1.35; margin-bottom: 4px; text-wrap: balance; }
.see { font-size: 15px; white-space: nowrap; }

/* Figure 1: the journey strip */
.fig-stat { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 16px; text-wrap: balance; }
.strip { display: flex; gap: 2px; height: 48px; }
.seg {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; padding: 0 8px; border: 0; cursor: pointer; overflow: hidden;
  font: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--c); color: var(--on);
}
.seg:hover, .band:hover .dot, .qbar:hover { filter: brightness(0.92); }
.seg[aria-expanded="true"], .band[aria-expanded="true"], .qbar[aria-expanded="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.stage-key { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.stage-key li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.stage-key .swatch { position: relative; top: 1px; }
.stage-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stage-key small { display: block; color: var(--ink-3); font-size: 13px; }
.stage-key.state-key { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.stage-key.inline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; }
.team-strips { margin-top: 26px; display: grid; gap: 8px; }
.team-strips-head { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.team-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; font-size: 13.5px; }
.team-strip .name { font-weight: 600; grid-row: 1; }
.team-strip .pre { grid-row: 1; grid-column: 2; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.team-strip .bar { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 1px; height: 12px; }
.team-strip .bar span { flex: 1 1 0; background: var(--c); }

/* The technical layer: collapsed under each figure */
.how { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.how summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; width: fit-content; }
.how summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.how[open] summary { margin-bottom: 10px; }
.how p { margin: 0 0 10px; max-width: 70ch; }
.how ul { margin: 12px 0 0; padding-left: 20px; max-width: 72ch; }
.how li { margin-bottom: 4px; }
.how .rows { gap: 4px; }

/* Figure 2: one square per open PR */
.waffle { display: flex; gap: 16px; align-items: flex-end; }
.wg { flex: var(--c20) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wg-head { margin: 0; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.wg-head b { display: block; color: var(--ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.wg-head .short { display: none; }
.wg-bands { display: flex; gap: 4px; }
.band {
  flex: var(--c20) 1 0; min-width: 0; display: grid; grid-template-rows: repeat(20, auto); grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 2px; align-content: start; padding: 0; border: 0; background: none; cursor: pointer;
}
.dot { aspect-ratio: 1; background: var(--c); }
.pair.notes { margin-top: 32px; }

/* Figure 3: queues as blocks; area is PR-days */
.qplot { --gut: 40px; position: relative; height: 280px; margin: 26px 0 0 var(--gut); }
.qgrid span { position: absolute; left: calc(-1 * var(--gut)); right: 0; height: 0; font-size: 12px; line-height: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qgrid span::after { content: ""; position: absolute; left: var(--gut); right: 0; top: 0; border-top: 1px solid var(--rule); }
.qbars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; }
.qbar { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; cursor: pointer; background: var(--c); }
.qrank { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 4px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.qaxis { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 0 40px; }
#queues .figure { margin-bottom: 32px; }
td .swatch { margin-right: 7px; }

/* Figure 4: team × stage heatmap */
.heat-wrap { overflow-x: auto; }
table.heat { border-collapse: separate; border-spacing: 3px; min-width: 460px; }
.heat th, .heat td { border: 0; padding: 0 6px; }
.heat thead th { font-size: 13px; text-align: center; padding-bottom: 6px; white-space: normal; }
.heat th[scope="row"] { font-weight: 600; color: var(--ink); padding-right: 12px; }
.heat th small { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 13px; }
.heat td { text-align: center; height: 34px; min-width: 72px; font-weight: 600; color: var(--ink); }
.heat td .num { color: inherit; }
.heat td.h0 { color: var(--ink-3); font-weight: 400; box-shadow: inset 0 0 0 1px var(--rule); }
.heat td.h1 { background: color-mix(in srgb, var(--s-reviewer) 12%, var(--bar-track)); }
.heat td.h2 { background: color-mix(in srgb, var(--s-reviewer) 26%, var(--bar-track)); }
.heat td.h3 { background: color-mix(in srgb, var(--s-reviewer) 42%, var(--bar-track)); }
.heat td.h4 { background: color-mix(in srgb, var(--s-reviewer) 60%, var(--bar-track)); color: var(--on-heat); }
.heat td.h5 { background: color-mix(in srgb, var(--s-reviewer) 80%, var(--bar-track)); color: var(--on-heat); }
.heat td.h6 { background: var(--s-reviewer); color: var(--on-heat); }
.heat-scale { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.heat-scale i { display: block; width: 140px; height: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--s-reviewer) 12%, var(--bar-track)), var(--s-reviewer)); }
#teams .how .table-wrap { margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { text-align: left; caption-side: bottom; color: var(--ink-3); font-size: 13.5px; padding-top: 12px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top; }
thead th { font-size: 13.5px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); vertical-align: bottom; }
th:first-child, td:first-child { padding-left: 0; }
.l { text-align: left; }
td.na { color: var(--ink-3); }
td .who { display: block; color: var(--ink-3); font-size: 13px; }
.rank { color: var(--ink-3); width: 1%; }
.pd { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.pd-bar { width: 96px; height: 8px; background: var(--bar-track); flex: none; }
.pd-bar span { display: block; height: 100%; background: var(--bar-median); }
.examples a { margin-right: 8px; }
tr.group-sep td { color: var(--ink-3); font-size: 13px; padding-top: 22px; border-bottom: 1px solid var(--rule-strong); }

.show-all {
  font: inherit; font-size: 15px; color: var(--blue-ink); background: none; border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 6px 14px; margin-top: 16px; cursor: pointer;
}
.show-all:hover { border-color: var(--blue-ink); }

/* Brief */
.brief-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); max-width: 78ch; }
.brief-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cites { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.provenance { color: var(--ink-2); font-size: 14px; max-width: 78ch; margin: 0 0 16px; }

/* Evidence panel: the PRs behind a number, opened inline */
.evidence { margin-top: 20px; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 18px 20px 12px; background: var(--page); }
.evidence-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.evidence-head h3:focus { outline: none; }
.evidence .note { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.evidence td.title { white-space: normal; text-align: left; min-width: 240px; }
.evidence .close, .evidence .more {
  font: inherit; font-size: 14px; color: var(--blue-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.evidence .more { margin-top: 10px; }

/* Method */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.method h3 { margin-bottom: 8px; }
.method p, .method li { color: var(--ink-2); font-size: 16px; }
.method ul { margin: 0; padding-left: 20px; }
.method li { margin-bottom: 6px; }

/* Colophon */
.colophon { border-top: 1px solid var(--rule); }
.colophon-inner { max-width: 1160px; margin: 0 auto; padding: 24px 24px 40px; color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.colophon a { color: inherit; }
/* Maker signature: copyright left, wordmark right. The wordmark is two masks:
   "gurn" in ink and "3k" in link blue, since blue marks what's clickable. Both
   follow dark mode, and on hover the whole wordmark turns blue. */
.signature { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--rule); }
.product { display: inline-flex; align-items: center; gap: 8px; }
.product .product-mark { width: 18px; height: 18px; }
.maker { display: inline-flex; align-items: center; gap: 8px; }
.colophon .maker a { display: block; color: var(--ink); }
.colophon .maker a:hover { color: var(--blue-ink); }
.maker-mark { position: relative; display: block; width: 52px; height: 14px; }
/* Two layers in the brand kit's split: "gurn" in ink, "3k" in link blue. */
.maker-mark::before, .maker-mark::after { content: ""; position: absolute; inset: 0; }
.maker-mark::before { background: currentColor; -webkit-mask: url(gurn3k-gurn.svg) center / contain no-repeat; mask: url(gurn3k-gurn.svg) center / contain no-repeat; }
.maker-mark::after { background: var(--blue-ink); -webkit-mask: url(gurn3k-3k.svg) center / contain no-repeat; mask: url(gurn3k-3k.svg) center / contain no-repeat; }

@media (max-width: 900px) {
  .opening, .pair, .method { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Stacked, the proof follows the claim: Figure 1 moves up to sit right after
     the summary sentence, ahead of the explainer and the findings. */
  .opening { display: flex; flex-direction: column; gap: 0; }
  .opening > div { display: contents; }
  .opening > .figure { order: 1; margin: 18px 0 32px; }
  .opening .plain, .opening .findings-head, .opening .findings { order: 2; }
  .stage-key.state-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav a:not(.repo-link) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead-inner, main, .colophon-inner { padding-left: 16px; padding-right: 16px; }
  .masthead-inner { gap: 12px; }
  .wordmark { font-size: 14px; white-space: normal; line-height: 1.25; }
  nav { gap: 12px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .figure { padding: 18px 16px 14px; margin: 0 -16px; }
  .fig-stat { font-size: 19px; }
  .stage-key, .stage-key.state-key { grid-template-columns: minmax(0, 1fr); }
  .waffle { gap: 10px; }
  .wg { flex: var(--c40) 1 0; }
  .wg-head .long { display: none; }
  .wg-head .short { display: inline; }
  .wg-head b { font-size: 16px; }
  .wg-bands { gap: 3px; }
  .band { flex: var(--c40) 1 0; grid-template-rows: repeat(40, auto); gap: 1px; }
  .qplot { --gut: 32px; height: 220px; }
  .qbars { gap: 2px; }
  .qrank { font-size: 11px; }
  .qaxis { margin-left: 32px; }
  .summary { font-size: 17px; }
  h2 { font-size: 24px; }
  .evidence { padding: 14px 14px 10px; }
  /* Ranked queues restack as labeled rows so no number hides off-screen. */
  table.ranked thead { display: none; }
  table.ranked, table.ranked tbody, table.ranked tr, table.ranked td { display: block; width: 100%; }
  table.ranked tr { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.ranked td { border: 0; padding: 2px 0; text-align: left; white-space: normal; }
  table.ranked td.rank { grid-row: span 1; }
  table.ranked td.team { font-weight: 700; }
  table.ranked td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
  table.ranked td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13.5px; }
  table.ranked td[data-label] .who { display: none; }
  table.ranked caption { display: block; width: 100%; }
  table.ranked td.examples { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 2px 12px; }
  table.ranked td.examples::before { flex-basis: 100%; }
  table.ranked td.examples a { margin-right: 0; }
  table.ranked td .swatch { display: none; }
  /* Heatmap fits the phone: each team's name sits above its row of four cells. */
  table.heat, table.heat thead, table.heat tbody { display: block; min-width: 0; }
  table.heat tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
  table.heat thead th:first-child { display: none; }
  table.heat thead th { padding: 0 2px 4px; font-size: 12.5px; }
  table.heat th[scope="row"] { grid-column: 1 / -1; padding: 8px 0 2px; }
  table.heat td { min-width: 0; height: 36px; display: flex; align-items: center; justify-content: center; }
  table.ranked .pd { justify-content: flex-end; }
}
@media (forced-colors: active) {
  .seg, .dot, .qbar, .team-strip .bar span, .heat td, .pd-bar span, .swatch { forced-color-adjust: none; }
}
@media print {
  .masthead, .theme, .skip { display: none; }
  section.part { break-inside: avoid-page; }
}
