:root {
  color-scheme: light;
  --bg: oklch(0.965 0.006 120);
  --surface: oklch(0.995 0.002 120);
  --text: oklch(0.27 0.025 245);
  --muted: oklch(0.52 0.025 245);
  --border: oklch(0.88 0.012 120);
  --accent: oklch(0.52 0.105 130);
  --accent-soft: oklch(0.94 0.035 130);
  --amber: oklch(0.66 0.13 75);
  --amber-soft: oklch(0.95 0.045 75);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.5; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--text); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.masthead, main, footer { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; gap: 48px; align-items: end; padding: 54px 0 34px; border-bottom: 1px solid var(--border); }
.eyebrow, .section-kicker { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 8px; font-size: 2.5rem; font-weight: 720; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h2 { margin-bottom: 8px; font-size: 1.45rem; letter-spacing: -.015em; text-wrap: balance; }
.lede { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 1.03rem; }
.asof { min-width: 190px; display: grid; justify-items: end; color: var(--muted); font-size: .78rem; }
.asof strong { color: var(--text); font-size: 1.45rem; font-weight: 700; }
.page-status { margin-top: 6px; padding: 4px 9px; border: 1px solid var(--border); background: var(--surface); }
.page-status.error { color: #8d2525; }
.section-heading { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(320px, 1fr); gap: 48px; align-items: end; padding: 38px 0 18px; }
.section-heading > p { max-width: 680px; margin: 0; color: var(--muted); }
.national-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--surface); }
.national-metric { min-width: 0; padding: 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; transition: background-color 160ms ease, box-shadow 160ms ease; }
.national-metric:hover { background: var(--accent-soft); }
.national-metric:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--accent); outline-offset: -3px; }
.national-metric:nth-child(4n) { border-right: 0; }
.national-metric:nth-last-child(-n + 4) { border-bottom: 0; }
.national-metric-heading { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.national-metric-heading h3 { margin: 0; font-size: .87rem; font-weight: 700; }
.national-metric-heading span { flex: none; color: var(--accent); font-size: .68rem; font-weight: 700; }
.national-metric-unavailable .national-metric-heading span { color: oklch(0.48 0.11 75); }
.national-value { margin: 12px 0 7px; font-size: 1.28rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.national-metric-unavailable .national-value { color: var(--muted); }
.national-meta, .national-source { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; overflow-wrap: anywhere; }
.national-source { margin-top: 3px; }
.national-chart-link { display: inline-flex; margin-top: 12px; color: oklch(0.43 0.1 245); font-size: .74rem; font-weight: 750; }
.loading-copy { grid-column: 1 / -1; margin: 0; padding: 24px; color: var(--muted); }
.table-shell, .detail-panel, .chart-panel, .method-note, .research-chart { border: 1px solid var(--border); background: var(--surface); }
.table-shell { overflow-x: auto; }
table { width: 100%; min-width: 1280px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
thead th { color: var(--muted); background: oklch(0.975 0.005 120); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
tbody tr { transition: background-color 120ms ease; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover, tbody tr.selected { background: var(--accent-soft); }
.region-select { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.region-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.region-name { display: block; font-weight: 700; }
.derived { display: inline-block; margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 500; }
.system-role { display: block; font-size: .82rem; }
.share-line { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; }
.state, .evidence { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 3px; font-size: .75rem; font-weight: 700; }
.state-calibrating { color: oklch(0.45 0.11 75); background: var(--amber-soft); }
.evidence { color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.evidence-indicative { color: oklch(0.45 0.11 75); border-color: oklch(0.8 0.08 75); background: var(--amber-soft); }
.detail-layout { display: grid; grid-template-columns: minmax(320px, .7fr) minmax(520px, 1.3fr); gap: 20px; margin-top: 22px; }
.detail-panel, .chart-panel { align-self: start; }
.detail-panel, .chart-panel, .method-note { padding: 26px; }
.detail-meta { color: var(--muted); font-size: .8rem; }
.detail-role { display: grid; gap: 4px; margin: 16px 0 0; padding: 12px; background: var(--accent-soft); font-size: .82rem; }
.detail-role strong { color: var(--text); }
.detail-role span, .detail-role small { color: oklch(0.4 0.04 130); }
.metrics { margin: 28px 0; }
.metrics div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.metrics dt { color: var(--muted); }
.metrics dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.evidence-block p { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.evidence-source { display: inline-block; margin-top: 12px; color: oklch(0.47 0.1 245); font-size: .8rem; font-weight: 700; }
.formula-guide { margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--border); }
.formula-guide summary { color: var(--text); font-weight: 750; cursor: pointer; }
.formula-guide summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.formula-guide dl { margin: 16px 0 0; }
.formula-guide dl div { padding: 11px 0; border-bottom: 1px solid var(--border); }
.formula-guide dl div:last-child { border-bottom: 0; }
.formula-guide dt { margin-bottom: 3px; color: var(--text); font-size: .84rem; font-weight: 700; }
.formula-guide dd { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.formula-guide code { color: oklch(0.38 0.08 130); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 650; }
.formula-guide > p { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.panel-heading h3 { margin: 0 0 5px; font-size: 1rem; text-wrap: balance; }
.panel-heading p { max-width: 72ch; margin: 0; color: var(--muted); font-size: .8rem; }
.panel-heading > span { color: var(--muted); font-size: .76rem; }
.chart { width: 100%; height: 390px; }
.research-history { margin-bottom: 38px; }
.research-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.research-chart { min-width: 0; padding: 22px; scroll-margin-top: 18px; }
.research-chart-wide { margin-top: 18px; }
.chart-market { height: 400px; }
.chart-stat { flex: none; color: var(--text); font-size: .84rem; font-variant-numeric: tabular-nums; }
.chart-stat-stack { max-width: 280px; text-align: right; line-height: 1.55; }
.chart-method { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }
.chart-unavailable { display: grid; height: 100%; margin: 0; place-items: center; color: var(--muted); text-align: center; }
.product-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-switch button { min-height: 32px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); background: var(--surface); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.product-switch button:hover { color: var(--text); background: var(--accent-soft); }
.product-switch button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.product-switch button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#regional-detail { scroll-margin-top: 18px; }
.method-note { max-width: 900px; margin: 22px 0 52px auto; }
.method-note p:last-child { margin-bottom: 0; color: var(--muted); }
footer { padding: 22px 0 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: .76rem; }
@media (max-width: 900px) {
  .masthead { align-items: start; }
  .section-heading, .detail-layout { grid-template-columns: 1fr; }
  .research-chart-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; }
  .asof { justify-items: start; }
  .national-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .national-metric:nth-child(4n) { border-right: 1px solid var(--border); }
  .national-metric:nth-child(2n) { border-right: 0; }
  .national-metric:nth-last-child(-n + 4) { border-bottom: 1px solid var(--border); }
  .national-metric:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 620px) {
  .masthead, main, footer { width: min(100% - 28px, 1440px); }
  .masthead { display: block; padding-top: 34px; }
  .asof { margin-top: 24px; }
  .detail-panel, .chart-panel, .method-note { padding: 18px; }
  .research-chart { padding: 16px; }
  .panel-heading { flex-direction: column; gap: 10px; }
  .chart-stat-stack { max-width: none; text-align: left; }
  .chart { height: 360px; }
  .chart-market { height: 380px; }
  h1 { font-size: 2.1rem; }
  .table-shell { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 14px; border: 1px solid var(--border); background: var(--surface); }
  tbody tr:hover, tbody tr.selected { background: var(--accent-soft); }
  tbody th, tbody td { display: grid; gap: 2px; padding: 8px 4px; border: 0; white-space: normal; }
  tbody th { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  tbody td::before { content: attr(data-label); color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  tbody td:nth-of-type(4), tbody td:nth-of-type(5), tbody td:nth-of-type(6) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
