/* ============================================================
 * style.css — palette matches the paper figures:
 *   ink #333333 · grid #e2e2e2 · w/skill purple #7668d4
 *   tier weak #B4503A / mid #C08428 / strong #1F6A8C
 * ============================================================ */

:root {
  --ink: #333333;
  --ink-dark: #151A21;
  --muted: #6b675f;
  --grid: #e2e2e2;
  --purple: #7668d4;
  --purple-soft: #eeebfa;
  --weak: #B4503A;
  --mid: #C08428;
  --strong: #1F6A8C;
  --weak-bg: #f8ece8;
  --mid-bg: #faf1de;
  --strong-bg: #e8f1f6;
  --paper: #fdfcfa;
  --panel: #ffffff;
  --green: #2e7d57;
  --serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
  --sans: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--serif); color: var(--ink-dark); }

/* ---------- top nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(17, 20, 26, .78); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.nav-title { font-family: var(--serif); font-weight: 700; font-size: 15px; color: #fff; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
@media (max-width: 760px) { .nav-title { display: none; } .nav-wrap { justify-content: center; } }

/* ---------- hero: fullscreen background video ---------- */
.hero-video {
  position: relative; height: 100vh; min-height: 620px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #11141a;
}
.hero-video video#bgvid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: blur(2.5px) brightness(.55) saturate(1.1); transform: scale(1.03);
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(17,20,26,.72) 0%, rgba(17,20,26,.45) 45%, rgba(17,20,26,.82) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-video .venue {
  display: inline-block; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #cfc6ff;
  border: 1px solid rgba(207,198,255,.45); background: rgba(118,104,212,.18);
  padding: 3px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero-video h1 {
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.1; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero-video .subtitle {
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 28px);
  color: rgba(255,255,255,.85); margin-top: 12px;
}
.hero-video .subtitle .hl { color: #b3a6e3; font-style: italic; }
.hero-one-liner {
  max-width: 640px; margin: 22px auto 0; font-size: 17px; color: rgba(255,255,255,.8);
}
.hero-one-liner b { color: #fff; }
.authors {
  max-width: 720px; margin: 22px auto 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 6px 22px;
  font-family: var(--serif); font-size: 18.5px; color: rgba(255,255,255,.92);
}
.authors sup { font-size: 11px; color: rgba(255,255,255,.6); margin-left: 1px; }
.authors a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.authors a:hover { color: #cfc6ff; border-bottom-color: #cfc6ff; }
.author-note { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.author-note sup { font-size: 10px; }
.hero-links { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.hero-links .btn { display: inline-flex; align-items: center; gap: 8px; }
.bi { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-video .btn-solid { background: #fff; color: var(--ink-dark); border-color: #fff; }
.hero-mini-stats { margin-top: 30px; font-size: 13.5px; color: rgba(255,255,255,.62); letter-spacing: .02em; }
.vid-ctl {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(17,20,26,.5); color: #fff; font-size: 19px; cursor: pointer;
}
.vid-ctl:hover { background: rgba(17,20,26,.8); }
.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 3;
  color: rgba(255,255,255,.75); font-size: 30px; text-decoration: none;
}
.scroll-cue:hover { color: #fff; }

/* ---------- video section + abstract ---------- */
.video-panel { padding: 10px; }
.video-panel video { display: block; width: 100%; border-radius: 10px; background: #11141a; }
.abstract-text { font-size: 15.5px; color: #45464a; line-height: 1.8; text-align: left; }
.center-h { text-align: center; }
.abs-wrap { max-width: 900px; }
.abs-stack { display: flex; flex-direction: column; gap: 30px; margin-top: 10px; }
.abs-stack .abstract-text { max-width: 820px; margin: 0 auto; }
.abs-video { max-width: 820px; margin: 0 auto; width: 100%; }
.abs-video video { display: block; width: 100%; border-radius: 14px; background: #11141a;
  box-shadow: 0 10px 34px rgba(21,26,33,.18); }
.abs-video-cap { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.abstract-text b { color: var(--ink-dark); }

.btn {
  display: inline-block; padding: 9px 20px; border-radius: 8px;
  border: 1.5px solid var(--ink-dark); color: var(--ink-dark);
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  background: #fff; cursor: pointer; font-family: var(--sans);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.btn-solid { background: var(--ink-dark); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #f7f6f3; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.fig-tag {
  font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--purple); color: #fff; border-radius: 6px; padding: 3px 10px;
  vertical-align: middle; margin-right: 10px; position: relative; top: -3px;
}
.section-lede { max-width: none; color: #55565a; margin-bottom: 28px; }

.panel {
  background: var(--panel); border: 1px solid var(--grid); border-radius: 14px;
  padding: 18px 20px 20px; box-shadow: 0 1px 4px rgba(21,26,33,.05);
}
.panel-head {
  font-weight: 700; font-size: 15px; color: var(--ink-dark);
  margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  justify-content: space-between;
}
.hint { font-weight: 400; font-size: 12.5px; color: var(--muted); font-style: italic; }
.fig-img { width: 100%; height: auto; border-radius: 8px; display: block; }
.panel-note { font-size: 13.5px; color: #55565a; margin-top: 10px; }

/* ---------- fig1 layout ---------- */
.fig1-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; }
.fig1-grid > .panel, .fig3-grid > .panel, .fig2-stack > .panel, .results-strip > .panel { min-width: 0; }
@media (max-width: 900px) { .fig1-grid { grid-template-columns: 1fr; } }

#fig1a svg { width: 100%; height: auto; display: block; }
.tier-zone { cursor: pointer; transition: opacity .2s; outline: none; }
.tier-zone:focus-visible { stroke-opacity: .9 !important; stroke-width: 2.5; }
.tier-zone:hover { opacity: .85; }
.tier-zone.active { stroke-width: 2; }

.tier-detail {
  margin-top: 14px; border-radius: 10px; padding: 14px 16px;
  border-left: 4px solid var(--purple); background: var(--purple-soft);
  animation: fadeUp .25s ease;
}
.tier-detail h4 { font-size: 15px; margin-bottom: 4px; }
.tier-detail p { font-size: 13.5px; color: #45464a; }
.tier-detail .tier-models { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- fig1b (animated trace) ---------- */
.skillcard {
  background: #f6f5f2; border: 1px solid var(--grid); border-radius: 10px;
  font-family: var(--mono); font-size: 12.5px; padding: 10px 14px; margin-bottom: 14px;
}
.skillcard .fname { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.skillcard code { color: var(--purple); font-weight: 700; }
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .race { grid-template-columns: 1fr; } }
.racer { border: 1.5px solid var(--grid); border-radius: 10px; padding: 12px; min-width: 0; }
.racer.strong { border-color: var(--strong); }
.racer.weak { border-color: var(--weak); }
.racer-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.racer-head img { width: 22px; height: 22px; }
.trace-line {
  font-family: var(--mono); font-size: 11.5px; padding: 3px 6px; border-radius: 5px;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .35s, transform .35s, visibility .35s;
  display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
.trace-line.shown { opacity: 1; visibility: visible; transform: none; }
.trace-line .note-ok { color: var(--strong); font-weight: 700; }
.trace-line .note-bad { color: var(--weak); font-weight: 700; }
.mini-table { margin-top: 8px; border-collapse: collapse; width: 100%; font-size: 11.5px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.mini-table.shown { opacity: 1; visibility: visible; }
.mini-table th, .mini-table td { border: 1px solid var(--grid); padding: 2px 8px; font-family: var(--mono); }
.mini-table th { background: #f2f1ee; font-family: var(--sans); }
.mini-table .bad td { color: var(--weak); background: #fdf1ee; }
.verdict {
  margin-top: 10px; text-align: center; font-weight: 800; font-size: 13px;
  border-radius: 7px; padding: 5px; color: #fff; opacity: 0; visibility: hidden;
  transform: scale(.92); transition: opacity .35s, transform .35s, visibility .35s;
}
.verdict.shown { opacity: 1; visibility: visible; transform: none; }
.verdict.pass { background: var(--strong); }
.verdict.fail { background: var(--weak); }
.race-controls { margin-top: 14px; text-align: center; }

/* ---------- fig2 ---------- */
.fig2-stack { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.fig2-stack #fig2chart svg { max-width: 640px; margin: 0 auto; }
#fig2chart svg { width: 100%; height: auto; display: block; }

.round-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.round-dots { display: flex; gap: 4px; }
.round-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent;
  cursor: pointer; padding: 0; position: relative;
}
.round-dot::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px solid var(--muted); background: #fff;
}
.round-dot.done::after { background: var(--purple); border-color: var(--purple); }
.round-dot.current::after { box-shadow: 0 0 0 3px var(--purple-soft); background: var(--purple); border-color: var(--purple); }
.round-dot:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.round-panel .rewrite-block { animation: fadeUp .3s ease; }
.mode-chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--purple); padding: 2px 10px; border-radius: 99px; margin-bottom: 8px;
}
.diff { font-size: 13px; border-radius: 8px; overflow: hidden; border: 1px solid var(--grid); margin-bottom: 12px; }
.diff .before, .diff .after { padding: 8px 12px; }
.diff .before { background: #fdf1ee; color: #7c3a2b; border-bottom: 1px dashed var(--grid); }
.diff .after { background: #eef7f0; color: #23573e; }
.diff .tag { font-weight: 800; font-size: 10.5px; letter-spacing: .08em; margin-right: 8px; }
.round-outcome { font-size: 13.5px; color: #45464a; margin-bottom: 10px; }
.round-solved {
  font-size: 13px; font-weight: 600; color: var(--green);
  background: #eef7f0; border-left: 3px solid var(--green); padding: 8px 12px; border-radius: 6px;
}

/* ---------- case demo ---------- */
.case-panel { margin-top: 4px; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .case-cols { grid-template-columns: 1fr; } }
.case-col { border: 1.5px solid var(--grid); border-radius: 10px; overflow: hidden; }
.case-col.meta-col { border-color: var(--purple); }
.case-col-head {
  padding: 8px 14px; font-weight: 700; font-size: 13.5px;
  display: flex; justify-content: space-between; background: #f2f1ee;
}
.meta-col .case-col-head { background: var(--purple); color: #fff; }
.case-steps { padding: 10px 14px; min-height: 190px; }
.case-step {
  font-size: 12.5px; padding: 7px 10px; border-radius: 7px; margin-bottom: 7px;
  border: 1px solid var(--grid); background: #fafaf8;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .4s, transform .4s, visibility .4s;
}
.case-step.shown { opacity: 1; visibility: visible; transform: none; }
.case-step .step-mode { font-weight: 700; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.case-step.ok .step-mode { color: var(--green); }
.case-step.bad .step-mode { color: var(--weak); }
.case-marks { display: flex; gap: 6px; padding: 0 14px 12px; align-items: center; font-size: 12px; color: var(--muted); }
.mark {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; opacity: .25; transition: opacity .3s, transform .3s;
}
.mark.on { opacity: 1; transform: scale(1.08); }
.mark.ok { background: var(--green); }
.mark.bad { background: var(--weak); }
.case-controls { text-align: center; margin-top: 14px; }

/* ---------- fig3 ---------- */
.fig3-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 950px) { .fig3-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1.5px solid var(--ink-dark); border-radius: 8px; overflow: hidden; }
.seg-btn {
  border: 0; background: #fff; color: var(--ink-dark); font-weight: 600; font-size: 13px;
  padding: 6px 14px; cursor: pointer; font-family: var(--sans);
}
.seg-btn.active { background: var(--ink-dark); color: #fff; }
#fig3dumbbell svg { width: 100%; height: auto; display: block; }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #55565a; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid; background: #fff; display: inline-block; }
.dot-wo { border-color: var(--muted); }
.dot-w { border-color: var(--purple); }
.lgline { width: 26px; height: 0; display: inline-block; border-top: 3px solid var(--purple); border-radius: 2px; }
.lgline.solid { border-top: 3.5px solid #8465C9; }
.lgline.dashed { border-top: 2.5px dashed #8465C9; }
.swatch { width: 14px; height: 11px; display: inline-block; border-radius: 3px; }

.donut-wrap { display: flex; flex-direction: column; gap: 10px; }
.donut-detail-panel { margin-top: 20px; }
#fig3donut svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.donut-slice { cursor: pointer; transition: transform .18s ease, opacity .18s; transform-origin: center; }
.donut-slice:hover { opacity: .85; }
.donut-slice.active { filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.donut-detail { min-height: 120px; }
.dd-card { border-left: 4px solid; border-radius: 8px; background: #fafaf8; padding: 14px 18px; animation: fadeUp .25s ease;
  display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: 6px 24px; align-items: start; }
.dd-card h4, .dd-card .dd-src, .dd-card p { grid-column: 1; }
.dd-card .dd-tasks-wrap { grid-column: 2; grid-row: 1 / span 4; }
@media (max-width: 800px) { .dd-card { grid-template-columns: 1fr; } .dd-card .dd-tasks-wrap { grid-column: 1; grid-row: auto; } }
.dd-card h4 { font-size: 14.5px; margin-bottom: 4px; }
.dd-card .dd-src { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.dd-card p { font-size: 13px; color: #45464a; }
.dd-examples { margin: 8px 0 4px 18px; font-size: 12.5px; color: #45464a; }
.dd-examples li { margin-bottom: 4px; }
.dd-examples code { font-family: var(--mono); font-size: 11px; background: #efeeea; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.dd-tasks { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; max-height: 110px; overflow-y: auto; }
.dd-task { font-family: var(--mono); font-size: 10.5px; background: #efeeea; border-radius: 5px; padding: 2px 7px; color: #55565a; overflow-wrap: anywhere; }
.donut-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: #45464a; margin-top: 4px; }
.donut-legend .lg { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; padding: 2px 4px; border-radius: 6px; }
.donut-legend .lg:hover, .donut-legend .lg:focus-visible { background: #efeeea; outline: none; }
.donut-legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
*:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
svg [tabindex]:focus { outline: none; }
svg [tabindex]:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- fig4 ---------- */
.results-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 850px) { .results-strip { grid-template-columns: 1fr; } }
.results-strip .fig-img { max-height: 300px; object-fit: contain; }

/* ---------- takeaways ---------- */
.takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 750px) { .takeaways { grid-template-columns: 1fr; } }
.tk {
  background: #fff; border: 1px solid var(--grid); border-radius: 12px;
  padding: 16px 18px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start;
}
.tk-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--grid); padding: 44px 0 60px; background: #f7f6f3; }
.cite-head { font-weight: 700; margin-bottom: 8px; }
.bibtex {
  background: var(--ink-dark); color: #e8e8e8; font-family: var(--mono);
  font-size: 12.5px; padding: 16px 18px; border-radius: 10px; overflow-x: auto;
}
.foot-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- tooltip ---------- */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--ink-dark); color: #fff; font-size: 12.5px;
  padding: 8px 12px; border-radius: 8px; max-width: 260px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.tooltip b { color: #cfc6ff; }

/* charts keep a readable minimum width; small screens scroll horizontally */
#fig1a, #fig2chart, #fig3dumbbell { overflow-x: auto; }
#fig1a svg, #fig3dumbbell svg { min-width: 420px; }
#fig2chart svg { min-width: 420px; }

/* chart text */
svg text { font-family: var(--sans); }
.axis-label { font-size: 12px; fill: var(--muted); }

/* visually-hidden live status for animated demos */
.sr-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* fixed nav: keep anchors visible below it */
section[id], footer[id] { scroll-margin-top: 64px; }

/* ---------- round carousel: two-sided comparison ---------- */
.round-mode { font-weight: 400; color: var(--muted); font-size: 14px; }
.round-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .round-compare { grid-template-columns: 1fr; } }
.rc-col { border-radius: 12px; padding: 14px 18px 16px; }
.rc-nometa { background: #f6f4f1; border: 1.5px solid var(--grid); }
.rc-meta { background: var(--purple-soft); border: 1.5px solid var(--purple); }
.rc-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.rc-nometa .rc-head { color: var(--muted); }
.rc-meta .rc-head { color: var(--purple); }
.rc-mark {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.rc-mark.ok { background: var(--green); }
.rc-mark.bad { background: var(--weak); }
.rc-text { font-size: 14.5px; color: #3c3d42; line-height: 1.55; }



.takeaways-3 { grid-template-columns: 1fr 1fr 1fr; margin-top: 20px; }
@media (max-width: 900px) { .takeaways-3 { grid-template-columns: 1fr; } }

/* avoid single-word orphan lines in short text blocks */
.panel-note, .rc-text, .section-lede, .tk, .hero-one-liner, .round-outcome { text-wrap: balance; }

/* fig2 legend: centered pills */
.legend-fig2 { justify-content: center; gap: 12px; margin-top: 14px; }
.legend-fig2 .lg {
  background: #f3f2ee; border: 1px solid var(--grid); border-radius: 99px;
  padding: 5px 16px; font-size: 13px; color: #45464a;
}
