/* Shared presentation for the five play cards. Loaded after their legacy styles.
   The section order, evidence, semantic colours and chart interactions stay local. */
:root {
  --pc-width: 1000px;
  --pc-gutter: 32px;
  --pc-toolbar: 64px;
  --bg: var(--bg-1);
  --surface: var(--bg-2);
  --card: var(--bg-2);
  --text-dim: var(--fg-2);
  --muted: #a2acb8;
  --dim: #909ba9;
  --hairline: var(--line-2);
  --hairline-strong: var(--line-3);
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: none;
}

html { scroll-snap-type: none; scroll-padding-top: 88px; scroll-behavior: auto; }
body { padding-top: var(--pc-toolbar); font-size: 17px; line-height: 1.65; }
body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: var(--pc-toolbar);
  background: var(--bg-1); border-bottom: 1px solid var(--hairline); z-index: 190;
}
button, select, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.hero, .section-divider, .slide, .narrative-bridge, .close-section,
.pc-orient-wrap, .state-filter-bar {
  width: calc(100% - var(--pc-gutter) * 2); max-width: var(--pc-width);
  margin-inline: auto; scroll-snap-align: none; scroll-margin-top: 88px;
}

/* One reserved toolbar, so sources and controls never cover a heading. */
.card-vintage {
  top: 10px; left: 24px; right: 168px; transform: none; max-width: none;
  height: 44px; padding: 0; border: 0; border-radius: 0; background: none;
  white-space: nowrap; overflow-x: auto; gap: 12px; scrollbar-width: thin;
  backdrop-filter: none; font-size: 10px;
}
.card-vintage > * { flex: 0 0 auto; }
.lang-toggle { top: 10px; right: 76px; height: 44px; border-color: var(--hairline-strong); }
.lang-toggle .lang-btn { min-width: 40px; min-height: 42px; padding: 0 10px; font-size: 12px; }
.toc-trigger { top: 10px; right: 20px; width: 44px; height: 44px; background: var(--bg-2); border-color: var(--hairline-strong); }
.toc-panel {
  width: min(360px, 100vw); right: -380px; height: 100dvh; padding: 80px 20px 24px;
  background: var(--bg-1); border-color: var(--hairline-strong); visibility: hidden;
}
.toc-panel.open { right: 0; visibility: visible; }
.toc-item { text-decoration: none; border-radius: 4px; min-height: 44px; }
.toc-item .toc-name { line-height: 1.35; }
.slide-nav { display: none; }
.progress-bar { height: 2px; }

/* Quiet cover, aligned to the same reading column as the chapters. */
.hero {
  min-height: 0; padding: 72px 0 48px; align-items: flex-start;
  justify-content: flex-start; text-align: left; overflow: hidden;
  border-bottom: 1px solid var(--hairline-strong);
}
.hero::before, .hero::after, .hero .badge::before, .hero .badge::after,
.hero h1::after, .hero .draft-badge::before, .hero .stat-row::before { display: none; }
.hero .hero-circuit {
  opacity: .07 !important; animation: none !important; filter: none;
  pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000);
}
.hero .badge { padding: 0; margin-bottom: 20px; font-size: 11px; letter-spacing: .13em; text-align: left; color: var(--muted); white-space: normal; }
.hero .draft-badge { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .1em; border-radius: 3px; margin-bottom: 24px; padding: 3px 9px; }
.hero h1 { font-size: clamp(36px, 4.7vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; max-width: 100%; margin-bottom: 24px; color: var(--text); background: none; text-shadow: none; -webkit-text-fill-color: currentColor; }
.hero h1 .kc { color: inherit; }
.hero h1.kinetic-ready .kc { animation: none; transform: none; filter: none; will-change: auto; }
.hero .subhead { max-width: 720px; font-size: 20px; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
.hero .stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%;
  gap: 0; margin: 36px 0 0; padding: 26px 0; border: 0; border-block: 1px solid var(--hairline-strong);
  background: none; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero .stat { min-width: 0; padding: 0 24px; border: 0; border-left: 1px solid var(--hairline-strong); text-align: left; }
.hero .stat:first-child { padding-left: 0; border-left: 0; }
.hero .stat .num {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.1;
  background: none; -webkit-text-fill-color: currentColor; color: var(--text); letter-spacing: -.035em;
}
.hero .stat .label { margin-top: 9px; font-family: var(--font-body); font-size: 11px; line-height: 1.45; letter-spacing: .06em; color: var(--muted); }
.reading-time { margin: 20px 0 0; font-size: 11px; letter-spacing: .06em; }
.hero-jumps { justify-content: flex-start; margin-top: 20px; gap: 8px; }
.hero-jumps a { border-radius: 4px; min-height: 38px; padding: 8px 12px; font-size: 11px; background: var(--bg-2); }
.hero-jumps a.hj-map { color: #8ab2d5; }
.hero .scroll-hint {
  position: relative; inset: auto; transform: none; margin-top: 28px;
  display: flex; align-items: center; gap: 10px; animation: none; font-size: 10px;
}
.scroll-hint::after { width: 24px; height: 1px; margin: 0; animation: none; }
.pc-orient-wrap { padding: 24px 0 0; }
.pc-orient { padding: 20px 24px; border-color: var(--hairline); border-radius: 6px; gap: 20px; background: var(--bg-2); }
.pc-orient-main { flex-basis: 500px; }
.pc-orient-cta { min-height: 40px; border-radius: 4px; }
.pc-orient-x { width: 36px; height: 36px; }

/* Chapter headings are part of the document, never a separate full-screen card. */
.section-divider {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 30%);
  column-gap: 40px; row-gap: 10px; align-items: start; justify-items: start;
  min-height: 0; margin-top: 72px; margin-bottom: 0; padding: 28px 0 24px;
  border: 0; border-top: 1px solid var(--hairline-strong); border-radius: 0;
  text-align: left; background: none; backdrop-filter: none;
  opacity: 1; transform: none; transition: none;
}
.section-divider .sn { grid-column: 1; margin: 0; font-size: 11px; letter-spacing: .12em; }
.section-divider .section-icon, .section-divider::before, .section-divider::after,
.section-divider .sn::before, .slide .text-area h3::before { display: none; }
.section-divider h2 { grid-column: 1; margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.section-divider p { grid-column: 1; margin: 0; max-width: 650px; font-size: 16px; line-height: 1.6; }
.section-divider .section-insight {
  grid-column: 2; grid-row: 2; align-self: end; margin: 0; max-width: 100%;
  font-size: clamp(22px, 2.5vw, 30px); line-height: 1.25; letter-spacing: -.03em;
  color: var(--text); overflow-wrap: break-word;
}
.section-divider .section-insight-label { grid-column: 2; grid-row: 3; margin: 0; font-size: 11px; line-height: 1.5; letter-spacing: .05em; }
.section-divider:not(:has(.section-insight)) { grid-template-columns: minmax(0, 1fr); }
.slide {
  min-height: 0; padding: 24px 0 40px; gap: 24px; align-items: stretch;
  justify-content: flex-start; position: relative;
}
.slide > * { min-width: 0; flex-shrink: 0; }
.slide + .slide { border-top: 1px solid var(--hairline); padding-top: 36px; }
.slide + .slide::before, .slide-divider { display: none; }
.slide .chart-area, .slide .text-area, .slide.visible .chart-area,
.slide.visible .text-area, .slide.exited .chart-area, .slide.exited .text-area {
  opacity: 1; transform: none; transition: none;
}
.slide .chart-area { width: 100%; max-width: none; min-height: 0; margin: 0; }
.slide .text-area { width: 100%; max-width: 760px; margin-inline: 0; text-align: left; }
.slide .text-area h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.02em; color: var(--text); margin-bottom: 16px; }
.slide .text-area p { font-size: 17px; line-height: 1.75; color: var(--text-dim); margin-bottom: 16px; }
.slide .dp { font-size: 1em; }
.slide .text-area a { color: #78cba0; text-underline-offset: 3px; }
.chart-source { max-width: none; font-size: 11px; line-height: 1.5; margin-top: 12px; }

/* Charts keep their plotting width on phones; only the figure scrolls. */
.pc-chart-scroll {
  width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  border: 1px solid var(--hairline); border-radius: 6px; background: var(--bg-2);
  padding: 24px; scrollbar-width: thin; scrollbar-color: var(--dim) var(--bg-2);
}
.pc-chart-scroll > .chart-area { min-width: 700px; }
.pc-chart-scroll svg { display: block; max-width: 100%; height: auto; margin-inline: auto; overflow: visible; }
.pc-chart-scroll .collapsible-body svg { margin: 16px 0; }
.pc-trade-question { margin: 0 0 8px; font: 600 18px/1.4 var(--font-display); color: var(--text); }
.pc-trade-contract { max-width: 760px; margin: 0 0 20px; color: var(--muted); font: 400 12px/1.6 var(--font-body); }
.pc-chart-scroll.pc-trade-frame { overflow: visible; }
.pc-trade-frame > .chart-area { min-width: 0; }
.pc-trade-plot { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pc-trade-plot > svg.pc-trade-bars { width: 760px; max-width: none; margin-inline: auto; }
.pc-trade-bars .pc-trade-value, .pc-trade-bars .pc-trade-rca { font: 500 11px var(--font-display); font-variant-numeric: tabular-nums; }
.pc-trade-label { font: 500 12px var(--font-body); }
.pc-trade-rca, .pc-trade-rca-head { fill: var(--text); }
.pc-trade-axis { color: var(--muted); font: 400 11px var(--font-body); }
.pc-trade-axis .domain { stroke: var(--hairline-strong); }
.pc-trade-data { margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.pc-trade-data summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--text); font: 500 13px var(--font-body); }
.pc-trade-data table { border-collapse: collapse; width: 100%; min-width: 640px; font: 400 12px/1.5 var(--font-body); }
.pc-trade-data caption { text-align: left; margin-bottom: 16px; color: var(--muted); }
.pc-trade-data th, .pc-trade-data td { border-bottom: 1px solid var(--hairline); padding: 10px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.pc-trade-data th:first-child { text-align: left; }
@media print {
  .pc-trade-data > :not(summary) { display: block !important; }
  .pc-trade-data table { display: table !important; }
}
.view-toggle { gap: 4px; margin-bottom: 20px; }
.view-btn { min-height: 36px; border-color: var(--hairline-strong); letter-spacing: .04em; }
.collapsible-header { min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.collapsible-body.open { max-height: none; overflow: visible; }
.map-link-btn { border-radius: 4px; min-height: 40px; font-size: 13px; }

.state-filter-bar {
  top: var(--pc-toolbar); padding: 12px 16px; gap: 12px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--hairline-strong); border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); backdrop-filter: none; z-index: 50;
}
.state-filter-bar label { font-size: 11px; }
.state-filter-bar select { min-height: 40px; max-width: 100%; font-size: 14px; border-color: var(--hairline-strong); background-color: var(--bg-1); }
.state-filter-bar .state-summary { font-size: 12px; flex: 1 1 180px; text-align: right; }
.pc-components { display: flow-root; }
.cat-slide { overflow: visible; padding-block: 24px; }
.cat-bg-img { display: none; }
.cat-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 352px; align-items: start;
  gap: 32px; width: 100%; max-width: none; padding: 32px;
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 6px;
  backdrop-filter: none; box-shadow: none;
}
.cat-text { min-width: 0; }
.cat-text h3 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.cat-text p { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin-bottom: 16px; }
.cat-text .tag, .tag { border-radius: 4px; font-size: 10px; letter-spacing: .06em; }
.tag-low { color: #f28a8a; }
.cat-chart { width: 100%; max-width: none; min-width: 0; padding: 16px; background: var(--bg-1); border: 1px solid var(--hairline); border-radius: 4px; }
.cat-chart svg { display: block; margin: 0 auto; max-width: 100%; height: auto; overflow: visible; }
.cat-chart .prod-lbl, .cat-chart .rel-lbl { font-size: 10px; }
.cat-chart .prod-val, .cat-chart .rel-val { font-size: 11px; }
.callout { padding: 16px 18px; margin-block: 20px; border-radius: 0 4px 4px 0; background: var(--green-soft); box-shadow: none; font-size: 15px; }
.callout-label { font-size: 10px; letter-spacing: .1em; margin-bottom: 8px; }
.callout-label::before { box-shadow: none; }
.narrative-bridge { min-height: 0; padding: 32px 0; text-align: left; justify-content: flex-start; }
.narrative-bridge p { max-width: 760px; font-size: 21px; line-height: 1.6; text-wrap: pretty; }
.narrative-bridge::before, .narrative-bridge::after { display: none; }

/* The newer evidence sections use the same type, rules and spacing. */
.fiscal-footprint { width: 100%; max-width: none; padding: 0; margin: 0; }
.fiscal-footprint h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.fiscal-footprint h4 {
  margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--hairline);
  max-width: none; font-size: 18px; line-height: 1.4; text-transform: none; letter-spacing: -.01em; color: var(--text);
}
.fiscal-headline { max-width: 760px; font-size: 17px; line-height: 1.75; }
.fiscal-note { max-width: 760px; font-size: 15px; line-height: 1.7; margin: 12px 0 18px; }
.mkt-dva { gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--hairline-strong); border-left: 3px solid var(--green); border-radius: 6px; margin: 0 0 32px; background: var(--bg-2); }
.mkt-dva-fig { font-size: 36px; line-height: 1.15; }
.mkt-dva-txt b { font-size: 17px; }
.mkt-dva-txt span { font-size: 13px; line-height: 1.6; }
.mkt-chart { width: 100%; max-width: 760px; margin: 20px 0; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--dim) var(--bg-2); }
.mkt-chart svg text[fill="#555568"], .mkt-chart svg text[fill="#8a8a9a"] { fill: var(--dim); }
.mkt-data { margin: 12px 0 24px; }
.mkt-data > summary { min-height: 40px; padding: 8px 0; font-size: 11px; max-width: 100%; }
.mkt-scroll { scrollbar-width: thin; scrollbar-color: var(--dim) var(--bg-2); }
.fiscal-row { gap: 16px; padding: 14px 0; flex-wrap: wrap; font-size: 16px; }
.fiscal-row span { flex: 1 1 180px; }
.fiscal-row i { font-size: 13px; }
.fiscal-states, .std-table, .fin-table, .lin-table { width: 100%; max-width: none; line-height: 1.6; }
.fiscal-states th, .fiscal-states td, .std-table th, .std-table td, .fin-table th, .fin-table td { padding: 12px 14px; vertical-align: top; font-size: 13px; border-bottom: 1px solid var(--hairline); }
.fiscal-states thead th, .std-table thead th, .fin-table thead th, .lin-table thead th { background: var(--bg-2); font-size: 11px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }
.fiscal-states caption, .lin-table caption { max-width: 760px; font-size: 13px; line-height: 1.65; padding-bottom: 20px; }
.fis-chip, .fis-rel { font-size: 10px; letter-spacing: .03em; border-radius: 4px; }
.fis-why, .fis-d-lead { font-size: 14px; line-height: 1.65; }
.fis-qual, .fis-basis, .fis-d-sub, .fis-instr { font-size: 12px; line-height: 1.6; }
.fis-st { min-height: 44px; padding: 10px 0; }
.fis-ledger td b, .fiscal-row b { font-variant-numeric: tabular-nums; }
.lin-wip, .lin-ladder, .lin-method { padding: 24px; border-radius: 6px; border: 1px solid var(--hairline); background: var(--bg-2); }
.lin-wip { max-width: 760px; margin: 0; }
.lin-wrap { max-width: none; }
.lin-wip h4 { font-size: 15px; margin-bottom: 10px; }
.lin-wip p { font-size: 14px; line-height: 1.65; }
.lin-table { table-layout: fixed; }
.lin-table th[scope="row"] { width: 19%; font-size: 14px; line-height: 1.4; padding: 18px 12px; }
.lin-table td { padding: 18px 12px; width: auto; max-width: none; }
.lin-table .lin-rowsub, .lin-table .lin-gloss { font-size: 11px; line-height: 1.5; }
.lin-empty { height: auto; min-height: 196px; padding: 8px 0 8px 10px; font-size: 12px; line-height: 1.55; }
.lin-empty .lin-why { font-size: 12px; line-height: 1.6; }
.lin-cell { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; margin: 0; padding: 8px; width: 100%; border-radius: 4px; }
.lin-chip { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.lin-rec { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-top: 20px; margin-top: 20px; }
.lin-makes { font-size: 15px; line-height: 1.65; }
.lin-basis, .lin-quote { font-size: 13px; line-height: 1.65; }
.lin-srcs { font-size: 12px; overflow-wrap: anywhere; }
.tk-grid { max-width: none; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-card { padding: 24px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--hairline); border-top: 2px solid var(--green); }
.tk-card:hover { transform: none; box-shadow: none; }
.tk-card h4 { font-size: 12px; line-height: 1.5; }
.tk-card p { font-size: 15px; line-height: 1.65; }
.close-section { min-height: 0; padding: 48px 0 64px; align-items: flex-start; text-align: left; border-top: 1px solid var(--hairline-strong); opacity: 1; transform: none; }
.close-section .close-stats { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hairline); border-radius: 6px; box-shadow: none; background: var(--bg-2); }
.close-section .close-stat { min-width: 0; padding: 20px; border: 0; }
.close-section .close-stat + .close-stat { border-left: 1px solid var(--hairline); }
.close-section .close-chart { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--dim) var(--bg-2); }
.close-section p { font-size: 18px; line-height: 1.75; }
.close-section .attribution { font-size: 12px; line-height: 1.7; margin-top: 24px; }

@media (min-width: 1380px) {
  body { padding-right: 244px; }
  .toc-trigger { display: none; }
  .lang-toggle { right: 24px; }
  .card-vintage { right: 132px; }
  .toc-panel, .toc-panel.open {
    top: 88px; right: 20px; width: 200px; height: calc(100dvh - 112px);
    padding: 0 0 0 16px; visibility: visible; border-left: 1px solid var(--hairline);
    background: none; backdrop-filter: none; transition: none; z-index: 100;
  }
  .toc-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; padding: 10px 8px; margin-bottom: 3px; }
  .toc-item .toc-num { grid-row: 1; align-self: start; font-size: 10px; color: var(--dim); }
  .toc-item .toc-name { font-size: 12px; font-weight: 500; }
  .toc-item .toc-stat { grid-column: 2; margin: 0; white-space: normal; font-size: 10px; }
  .toc-item.active { background: var(--green-soft); box-shadow: inset 2px 0 var(--green); }
  .toc-item.active .toc-num { color: var(--green); }
}
@media (max-width: 900px) {
  .cat-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .cat-chart { max-width: 400px; }
  .section-divider { column-gap: 24px; }
  .hero .stat { padding-inline: 16px; }
}
@media (max-width: 600px) {
  :root { --pc-gutter: 20px; }
  .hero { padding-top: 36px; padding-bottom: 32px; }
  .hero h1 { font-size: 36px; }
  .hero .badge { font-size: 10px; padding: 0; }
  .hero .subhead { font-size: 18px; }
  .hero .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin-top: 28px; }
  .hero .stat, .hero .stat:first-child { padding: 20px 12px; border-left: 0; }
  .hero .stat:nth-child(even) { border-left: 1px solid var(--hairline); }
  .hero .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .hero .stat .num { font-size: 30px; }
  .hero .stat .label { font-size: 10px; }
  .hero-jumps .hj-label { text-align: left; }
  .hero-jumps a { min-height: 44px; }
  .pc-orient { padding: 18px; }
  .pc-orient-actions { width: 100%; justify-content: space-between; }
  .section-divider { grid-template-columns: minmax(0, 1fr); margin-top: 48px; row-gap: 12px; padding-top: 24px; }
  .section-divider .section-insight { grid-column: 1; grid-row: auto; margin-top: 12px; font-size: 26px; }
  .section-divider .section-insight-label { grid-column: 1; grid-row: auto; }
  .slide { padding-block: 16px 32px; gap: 24px; }
  .slide .text-area h3 { font-size: 22px; }
  .slide .text-area p { font-size: 16px; line-height: 1.7; }
  .pc-chart-scroll { padding: 16px; }
  .cat-row { padding: 20px; }
  .cat-text h3 { font-size: 22px; }
  .cat-text p { font-size: 16px; }
  .cat-chart { padding: 12px; }
  .state-filter-bar { gap: 8px; padding: 10px; }
  .state-filter-bar .state-summary { text-align: left; flex-basis: 100%; }
  .state-filter-bar .state-summary:empty { display: none; }
  .mkt-dva { padding: 20px; gap: 16px; align-items: flex-start; }
  .mkt-dva-fig { font-size: 32px; white-space: normal; }
  .fiscal-footprint h4 { font-size: 18px; margin-top: 32px; }
  .fiscal-row { gap: 6px 16px; }
  .fiscal-row span { flex-basis: 100%; }
  .fiscal-states th, .fiscal-states td { padding: 10px; }
  .lin-table { table-layout: auto; }
  .lin-table th[scope="row"] { width: auto; padding: 16px 0; font-size: 16px; }
  .lin-table td { padding: 14px 0; }
  .lin-cell { height: auto; min-height: 0; }
  .lin-empty { min-height: 0; }
  .lin-rec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lin-ladder, .lin-wip, .lin-method { padding: 18px; }
  .tk-grid { grid-template-columns: minmax(0, 1fr); }
  .close-section p { font-size: 17px; }
  .close-section .close-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close-section .close-stat { padding: 16px; border: 0 !important; }
  .close-section .close-stat:nth-child(even) { border-left: 1px solid var(--hairline) !important; }
  .close-section .close-stat:nth-child(n+3) { border-top: 1px solid var(--hairline) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Category landscapes: distinct targets, full names and persistent selection. */
.pc-chart-scroll.pc-landscape-frame { container-type: inline-size; overflow: visible; }
.pc-chart-scroll > #chart-quadrant.pc-landscape { min-width: 0; }
.pc-landscape { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pc-landscape-plot { min-width: 0; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; }
.pc-landscape-plot > svg { max-width: none; width: 100%; min-width: 640px; }
.pc-landscape-plot > svg > text { font-size: 11px; }
.pc-landscape-plot > svg > text[fill="#555568"] { fill: var(--dim); }
.pc-landscape-guide { fill: none; stroke: var(--dim); stroke-width: 1; opacity: .55; pointer-events: none; }
.pc-landscape-guide.is-selected { stroke: var(--text); stroke-width: 1.5; opacity: 1; }
.pc-landscape-node { cursor: pointer; }
.pc-landscape-hit { fill: transparent; stroke: transparent; stroke-width: 2; }
.pc-landscape-bubble { fill: var(--node-colour); stroke: var(--bg-2); stroke-width: 2; }
.pc-landscape-number { fill: var(--bg-1); font: 700 11px var(--font-display); pointer-events: none; }
.pc-landscape-node.is-muted .pc-landscape-bubble { fill: color-mix(in srgb, var(--node-colour) 42%, var(--bg-2)); }
.pc-landscape-node.is-muted .pc-landscape-number { fill: var(--text); }
.pc-landscape-node:hover .pc-landscape-hit, .pc-landscape-node.is-selected .pc-landscape-hit { stroke: var(--node-colour); }
.pc-landscape-aside { min-width: 0; }
.pc-landscape-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 8px; font: 600 11px var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.pc-landscape-clear { border: 0; background: transparent; color: var(--text); font: 500 12px var(--font-body); min-height: 36px; padding: 4px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pc-landscape-clear:disabled { color: var(--dim); cursor: default; text-decoration: none; }
.pc-landscape-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.pc-landscape-option { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font: 400 13px/1.4 var(--font-body); cursor: pointer; }
.pc-landscape-option:hover { background: var(--bg-1); border-color: var(--hairline-strong); }
.pc-landscape-option[aria-pressed="true"] { background: var(--bg-1); border-color: var(--node-colour); }
.pc-landscape-index { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--node-colour); border-radius: 50%; color: var(--node-colour); font: 600 11px var(--font-display); }
.pc-landscape-name { min-width: 0; }
.pc-landscape-value { color: var(--muted); font: 500 12px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-landscape-hint, .pc-landscape-note, .pc-landscape-key { font: 400 12px/1.6 var(--font-body); color: var(--muted); }
.pc-landscape-hint { margin-top: 12px; }
.pc-landscape-details { padding: 20px 24px; border: 1px solid var(--hairline-strong); border-radius: 4px; background: var(--bg-1); }
.pc-landscape-title { font: 600 17px/1.4 var(--font-display); color: var(--text); margin: 0 0 20px; }
.pc-landscape-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.pc-landscape-metrics dt { font: 400 11px/1.4 var(--font-body); color: var(--muted); margin-bottom: 6px; }
.pc-landscape-metrics dd { font: 500 18px/1.3 var(--font-display); color: var(--text); margin: 0; }
.pc-landscape-key { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.pc-landscape-key p, .pc-landscape-note { margin: 0; }
.pc-landscape-key .pc-landscape-scale { width: auto; max-width: 100%; margin: 0; }
.pc-landscape-scale text { fill: var(--muted); }
.pc-landscape-scale circle { stroke: var(--dim); }
@container (min-width: 880px) {
  .pc-landscape { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  .pc-landscape-plot { align-self: start; }
  .pc-landscape-plot > svg { min-width: 0; }
  .pc-landscape-details, .pc-landscape-key, .pc-landscape-note { grid-column: 1 / -1; }
}
@container (max-width: 480px) {
  .pc-landscape-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-landscape-details { padding: 16px; }
}
