/* SF Court Data — public interactive report */
:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --panel: #ffffff;
  --ink: #18212b;
  --text: #3f4854;
  --muted: #707b87;
  --faint: #9aa3ad;
  --line: #ded8ce;
  --line-soft: #ece7df;
  --blue: #315f86;
  --blue-2: #5c86a9;
  --rust: #ad573b;
  --moss: #52785b;
  --amber: #b18428;
  --purple: #6e5b91;
  --teal: #367e82;
  --slate: #68717c;
  --red-soft: #f7e5df;
  --green-soft: #e7f0e8;
  --max: 1180px;
  --shadow: 0 16px 40px rgba(42, 34, 24, .055);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.88), transparent 360px),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 38%, #f4f0e9 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { color: var(--ink); }
code { padding: 1px 5px; border-radius: 4px; background: #f1eee8; border: 1px solid var(--line-soft); font-size: .9em; }

.top-rule { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--rust), var(--amber)); z-index: 100; }
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px max(20px, calc((100vw - var(--max)) / 2));
  margin-top: 3px;
  border-bottom: 1px solid rgba(222,216,206,.8);
  background: rgba(247,244,239,.86);
  backdrop-filter: blur(12px);
}
.brand { color: var(--ink); font-weight: 850; letter-spacing: 0; text-decoration: none; }
.site-nav nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav nav a { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: 0; }
.site-nav nav a:hover, .site-nav nav a:focus { color: var(--ink); }

.report-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 60px; }
.report-header { padding: 58px 0 24px; border-bottom: 1px solid var(--line); }
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.eyebrow, .kicker { text-transform: uppercase; color: var(--rust); font-weight: 850; font-size: 11px; letter-spacing: 0; }
.source-link { font-size: 12px; font-weight: 700; color: var(--blue); }
h1 {
  max-width: 940px; margin: 0;
  color: var(--ink); font-size: 76px; line-height: 1;
  letter-spacing: 0; font-weight: 900;
}
.lede { max-width: 740px; margin: 18px 0 0; color: #49525d; font-size: 20px; line-height: 1.45; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.66); font-size: 12px; font-weight: 700;
}

.section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.section.compact { padding-top: 28px; }
.section-head { max-width: 850px; margin-bottom: 18px; }
.section-head h2 { margin: 3px 0 0; color: var(--ink); font-size: 36px; line-height: 1.08; letter-spacing: 0; font-weight: 875; }
.section-sub, .section-note { margin: 10px 0 0; color: var(--muted); max-width: 720px; font-size: 15px; line-height: 1.55; }
.two-col-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 28px; align-items: end; }
.section-note { margin: 0; font-size: 14px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 18px; min-width: 0;
}
.panel-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-title { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.25; font-weight: 850; letter-spacing: 0; }
.panel-meta { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.dashboard-grid { display: grid; gap: 16px; align-items: start; }
.dashboard-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.snapshot-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; align-items: stretch; }
.snapshot-grid.single { grid-template-columns: 1fr; }
.narrative-card { font-size: 16px; }
.narrative-card p { margin: 0 0 13px; }
.narrative-card p:last-child { margin-bottom: 0; }
.note-panel { background: #fbfaf7; }
.tight-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tight-list li + li { margin-top: 7px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px 0 10px; }
.kpi-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 0 16px; }
.kpi-card {
  padding: 15px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.78);
  cursor: default; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.kpi-card:hover, .kpi-card:focus { outline: none; transform: translateY(-1px); border-color: rgba(49,95,134,.45); box-shadow: 0 12px 32px rgba(49,95,134,.09); }
.kpi-value { color: var(--ink); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kpi-label { margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1.25; }
.kpi-note { margin-top: 7px; color: var(--faint); font-size: 11px; line-height: 1.3; }

.viz { min-width: 0; }
.bar-list { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(92px, 170px) 1fr minmax(70px, auto); gap: 10px; align-items: center; }
.bar-row.compact { grid-template-columns: minmax(86px, 150px) 1fr minmax(54px, auto); gap: 8px; }
.bar-label { color: var(--ink); font-size: 12px; font-weight: 760; line-height: 1.25; overflow-wrap: anywhere; }
.bar-track { position: relative; height: 18px; border-radius: 5px; background: #f0ece5; overflow: hidden; }
.bar-track.thin { height: 11px; border-radius: 999px; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit; min-width: 2px;
  background: var(--blue); cursor: default; transition: opacity .16s, transform .16s, filter .16s;
}
.bar-value { color: var(--text); font-size: 12px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.has-hover .interactive { opacity: 1; }
.has-hover.is-inspecting .interactive:not(.is-hovered):not(.linked-hover) { opacity: .42; }
.interactive:focus { outline: 2px solid rgba(49,95,134,.45); outline-offset: 2px; }
.bar-fill.is-hovered, .segment.is-hovered { filter: saturate(1.25) contrast(1.05); }

.stacked-bar { display: flex; width: 100%; height: 34px; border-radius: 8px; overflow: hidden; background: #eee9df; border: 1px solid var(--line-soft); }
.segment { min-width: 2px; cursor: default; transition: opacity .16s, filter .16s; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: default; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.linked-hover { color: var(--ink); }

.dot-chart { display: grid; gap: 14px; padding-top: 3px; }
.dot-row { display: grid; grid-template-columns: minmax(70px, 120px) 1fr 45px; gap: 10px; align-items: center; }
.dot-track { position: relative; height: 20px; border-bottom: 1px solid var(--line-soft); }
.dot-track::before, .dot-track::after { content: ""; position: absolute; top: 0; bottom: -1px; width: 1px; background: var(--line-soft); }
.dot-track::before { left: 0; } .dot-track::after { right: 0; }
.dot { position: absolute; top: 50%; width: 13px; height: 13px; margin-left: -6.5px; margin-top: -6.5px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); cursor: default; }
.dot.secondary { background: var(--rust); }
.axis-caption { display: flex; justify-content: space-between; margin-top: 4px; color: var(--faint); font-size: 10px; font-weight: 700; }

.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.insight-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); padding: 13px; cursor: pointer; text-align: left; transition: border-color .16s, transform .16s, box-shadow .16s; }
.insight-card:hover, .insight-card:focus { outline: none; transform: translateY(-1px); border-color: rgba(49,95,134,.45); box-shadow: 0 10px 24px rgba(49,95,134,.08); }
.insight-card span { display: block; color: var(--rust); text-transform: uppercase; letter-spacing: 0; font-size: 10px; font-weight: 850; }
.insight-card strong { display: block; margin-top: 3px; font-size: 16px; line-height: 1.1; }
.insight-card small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.3; }

.explorer-panel { padding: 0; overflow: hidden; }
.explorer-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: #fffefa; }
.search-wrap { display: grid; gap: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0; font-size: 10px; font-weight: 850; }
.search-wrap input { width: min(360px, 72vw); min-height: 38px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; outline: none; }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,95,134,.12); }
.table-count { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 13px; font-variant-numeric: tabular-nums; }
th { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0; font-weight: 850; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text); vertical-align: middle; }
th.num, td.num { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sortable:focus { color: var(--ink); }
th.sorted-asc::after { content: " ▲"; } th.sorted-desc::after { content: " ▼"; }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover, .data-table tbody tr:focus { background: #f7f3eb; outline: none; }
.data-table tbody tr.selected { background: #edf3f7; }
.cell-bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 74px; }
.cell-mini-track { width: 38px; height: 6px; background: #eee9df; border-radius: 999px; overflow: hidden; }
.cell-mini-fill { height: 100%; background: var(--blue); border-radius: inherit; }

.crime-detail { margin-top: 16px; }
.detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: start; }
.detail-title { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: 0; line-height: 1.05; }
.detail-sub { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.detail-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 15px; }
.detail-stat { padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffefa; }
.detail-stat strong { display: block; font-size: 20px; line-height: 1; letter-spacing: 0; }
.detail-stat span { display: block; margin-top: 5px; color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 850; letter-spacing: 0; }

.outcome-summary { display: grid; gap: 10px; align-content: start; }
.summary-punch { padding: 13px; border-radius: 8px; border: 1px solid var(--line-soft); background: #fffefa; }
.summary-punch strong { display: block; font-size: 34px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.summary-punch span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.leaderboard-panel { margin-top: 18px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.tab-btn { border: 1px solid var(--line); border-radius: 999px; background: #fffefa; padding: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.tab-btn:hover, .tab-btn:focus, .tab-btn.active { outline: none; color: var(--ink); border-color: var(--blue); background: #eef4f8; }
.leader-list { display: grid; gap: 9px; }
.leader-row { display: grid; grid-template-columns: minmax(190px, 1fr) 110px minmax(180px, 300px); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.leader-row:last-child { border-bottom: 0; }
.leader-label { color: var(--ink); font-size: 13px; font-weight: 760; line-height: 1.25; }
.leader-meta { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }

.graph-layout { grid-template-columns: minmax(0, 1.75fr) minmax(290px, .75fr); align-items: stretch; }
.graph-panel { overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto; }
.charge-graph-viz {
  min-height: 500px; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(49,95,134,.08), transparent 270px),
    linear-gradient(180deg, #fffefa 0%, #fbf8f1 100%);
}
.charge-graph-svg { display: block; width: 100%; height: auto; min-height: 500px; }
.graph-cursor-glow { fill: rgba(49,95,134,.08); opacity: 0; pointer-events: none; transition: opacity .14s; }
.graph-cursor-glow.is-visible { opacity: 1; }
.graph-link { stroke: rgba(104,113,124,.34); stroke-linecap: round; cursor: pointer; transition: stroke .16s, opacity .16s, stroke-width .16s; }
.graph-link:hover, .graph-link:focus, .graph-link.is-hovered { outline: none; stroke: rgba(49,95,134,.7); opacity: 1; }
.graph-link.is-active { stroke: rgba(49,95,134,.72); opacity: 1; }
.graph-link.is-dim { opacity: .09; }
.graph-node { cursor: grab; outline: none; transition: opacity .16s; }
.graph-node.is-dim { opacity: .28; }
.graph-node.is-dragging { cursor: grabbing; }
.graph-node-halo { fill: rgba(255,255,255,.78); opacity: .72; filter: url(#nodeGlow); transition: opacity .16s, transform .16s; }
.graph-node-dot { stroke: #fffdf8; stroke-width: 2.5; transition: filter .16s, opacity .16s, transform .16s; }
.graph-node-ring { fill: none; stroke: rgba(24,33,43,.72); stroke-width: 3; transform: rotate(-90deg); transition: stroke .16s; }
.graph-node-code { fill: #fff; font-size: 8.4px; font-weight: 900; letter-spacing: -.02em; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.38); }
.graph-node:hover .graph-node-dot, .graph-node:focus .graph-node-dot, .graph-node.is-hovered .graph-node-dot, .graph-node.is-selected .graph-node-dot { filter: saturate(1.2) contrast(1.08); }
.graph-node:hover .graph-node-halo, .graph-node:focus .graph-node-halo, .graph-node.is-hovered .graph-node-halo, .graph-node.is-proximate .graph-node-halo, .graph-node.is-related .graph-node-halo, .graph-node.is-selected .graph-node-halo { opacity: 1; transform: scale(1.08); }
.graph-node.is-selected .graph-node-ring { stroke: var(--ink); stroke-width: 4; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 13px; }
.graph-ring-note span:first-child { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; display: inline-block; background: transparent; }
.graph-detail-panel { align-self: stretch; background: #fffefa; }
.graph-detail-kicker { color: var(--rust); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.graph-detail-title { margin: 5px 0 0; color: var(--ink); font-size: 24px; line-height: 1.04; letter-spacing: -.045em; }
.graph-outcome-bars { display: grid; gap: 9px; margin: 16px 0; }
.graph-outcome-row { display: grid; grid-template-columns: 88px 1fr 44px; gap: 9px; align-items: center; }
.graph-outcome-row span { color: var(--muted); font-size: 11px; font-weight: 850; }
.graph-outcome-row strong { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.graph-side-block { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.graph-side-block h4 { margin: 0 0 8px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.graph-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.graph-link-list li { display: grid; gap: 2px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.graph-link-list strong { font-size: 12px; line-height: 1.25; }
.graph-link-list span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.muted-block { opacity: .9; }

.signal-list { display: grid; gap: 9px; }
.signal-row { padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffefa; cursor: default; }
.signal-row strong { display: block; font-size: 13px; }
.signal-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mini-note { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.maturity-panel { margin-top: 16px; }
.svg-chart { width: 100%; overflow: visible; }
.svg-chart text { font-family: inherit; }
.svg-axis { stroke: var(--line); stroke-width: 1; }
.svg-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 3; }
.svg-label { fill: var(--muted); font-size: 11px; font-weight: 700; }
.svg-line { fill: none; stroke-width: 2.5; }
.svg-point { cursor: default; stroke: #fff; stroke-width: 2; transition: opacity .16s, r .16s; }
.svg-point.is-hovered { r: 6; }

.findings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.finding-card {
  position: relative; display: grid; gap: 9px; align-content: start;
  padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
  box-shadow: 0 10px 28px rgba(42, 34, 24, .035);
}
.finding-card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px;
  border-radius: 8px 8px 0 0; background: linear-gradient(90deg, var(--blue), var(--rust));
}
.finding-card h3 { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.25; font-weight: 850; letter-spacing: 0; }
.finding-card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.finding-card p strong { color: var(--ink); font-weight: 850; white-space: nowrap; }
.appendix { border-bottom: 0; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.note-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.note-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 14px; }
.note-card p { margin: 0; color: var(--muted); font-size: 13px; }

.tooltip {
  position: fixed; z-index: 200; pointer-events: none; max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px; border: 1px solid rgba(24,33,43,.16); border-radius: 8px;
  background: rgba(29, 33, 38, .96); color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tooltip.show { opacity: 1; transform: translateY(0); }
.tooltip-title { font-weight: 850; font-size: 13px; line-height: 1.25; }
.tooltip-body { margin-top: 5px; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.35; }
.tooltip-caveat { margin-top: 6px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.3; }

@media (min-width: 981px) {
  #charging .dashboard-grid.three,
  #outcomes .dashboard-grid.two,
  #court-load .dashboard-grid.two { align-items: stretch; }
  #charging .dashboard-grid.three > .panel {
    height: 100%;
  }
  #outcomes .dashboard-grid.two > .panel,
  #court-load .dashboard-grid.two > .panel {
    display: grid; grid-template-rows: auto 1fr auto;
  }
  #outcomes #dispositionChart {
    height: 100%; align-content: space-between;
  }
  #outcomes .outcome-summary .bar-list {
    align-content: center;
  }
  #court-load #hearingChart {
    height: 100%; align-content: space-between;
  }
}

@media (max-width: 980px) {
  .site-nav { align-items: flex-start; flex-direction: column; gap: 8px; padding: 11px 12px; }
  .site-nav nav {
    display: flex; width: 100%; gap: 14px; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  .site-nav nav a { flex: 0 0 auto; }
  .report-shell { width: min(100% - 24px, var(--max)); }
  h1 { font-size: 58px; }
  .section-head h2 { font-size: 32px; }
  .kpi-value { font-size: 30px; }
  .kpi-grid, .kpi-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid.two, .dashboard-grid.three, .dashboard-grid.graph-layout, .snapshot-grid, .detail-grid, .two-col-head { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .insight-grid, .findings-grid, .notes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .report-shell { width: calc(100% - 20px); }
  .report-header { padding-top: 36px; }
  .eyebrow-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  h1 { font-size: 42px; }
  .lede { font-size: 17px; }
  .section-head h2 { font-size: 28px; }
  .section { padding: 34px 0; }
  .panel { padding: 14px; border-radius: 8px; }
  .kpi-value { font-size: 28px; }
  .kpi-grid, .kpi-grid.small, .insight-grid, .findings-grid, .notes-grid, .detail-stats { grid-template-columns: 1fr; }
  .bar-row, .bar-row.compact { grid-template-columns: 1fr; gap: 5px; }
  .bar-value { text-align: left; }
  .dot-row { grid-template-columns: 84px 1fr 42px; }
  .leader-row { grid-template-columns: 1fr; gap: 6px; }
  .leader-meta { text-align: left; }
  .graph-detail-panel { order: -1; }
  .graph-panel .panel-header { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 10px; }
  .charge-graph-viz {
    position: relative; min-height: 430px; overflow-x: auto; overflow-y: hidden;
    border-radius: 8px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    box-shadow: inset -28px 0 24px -28px rgba(24,33,43,.24), inset 28px 0 24px -28px rgba(24,33,43,.12);
  }
  .charge-graph-viz::after {
    content: "Swipe to explore →"; position: sticky; left: 10px; bottom: 10px; z-index: 2;
    display: inline-flex; margin: -34px 0 10px 10px; padding: 6px 9px;
    border: 1px solid rgba(222,216,206,.9); border-radius: 999px;
    background: rgba(255,253,248,.88); color: var(--muted); font-size: 11px; font-weight: 850;
    backdrop-filter: blur(8px); pointer-events: none;
  }
  .charge-graph-svg { width: 780px; max-width: none; min-width: 780px; min-height: 430px; }
  .graph-node-code { font-size: 7.5px; }
  .graph-legend { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .graph-legend .legend-item { flex: 0 0 auto; }
  .graph-outcome-row { grid-template-columns: 1fr; gap: 5px; }
  .graph-outcome-row strong { text-align: left; }
  .explorer-toolbar { align-items: flex-start; flex-direction: column; }
  .search-wrap input { width: calc(100vw - 62px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
