/* DSA Files, Civic Electric design system. See DESIGN.md before editing. */
:root {
  --blue: #3155ff;
  --blue-dark: #1838c7;
  --lime: #ddff38;
  --pink: #ff8daf;
  --red: #ed2f28;
  --ink: #11121a;
  --ink-body: #292b35;
  --ink-muted: #606371;
  --white: #ffffff;
  --mist: #eef0f8;
  --paper: #f8f9fc;
  --border: #11121a;
  --border-soft: #c9ccda;
  --grid-line: #dfe1eb;
  --blue-tint: #e4e9ff;
  --on-ink-body: #cdd1e0;
  --on-ink-muted: #aeb3ca;
  --map-muted: #666a78;
  --focus: #ffbf00;
  --success: #176b40;
  --caution: #996000;
  --danger: #a8171d;
  --weather: #a8171d;
  --sds: #11121a;
  --nam: #32695d;
  --coalition: #7c5728;
  --dsoc: #3155ff;
  --dsa: #11121a;
  --content-max: 1480px;
  --gutter: 28px;
  --line: 2px;
  --radius-panel: 18px;
  --radius-control: 6px;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-lg: 9px 9px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink-body);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button, a, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Shared chrome */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: var(--line) solid var(--ink);
}
.site-header__inner {
  width: min(var(--content-max), 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.site-brand { display: block; width: fit-content; color: var(--ink); text-decoration: none; }
.site-brand__image { display: block; width: 180px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.site-header__action {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  text-decoration: none;
}
.site-header__action:hover { background: var(--lime); color: var(--ink); }
.site-footer { margin-top: 60px; background: var(--white); border-top: var(--line) solid var(--ink); }
.site-footer__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 42px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__inner div { display: flex; gap: 26px; }
.site-footer__inner strong { color: var(--ink); }
.site-footer__inner span { color: var(--ink-muted); }
.site-footer__inner a { color: var(--ink); font-weight: 800; text-decoration: none; }
.site-footer__inner a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; }
.site-footer__nav { display: flex; align-items: center; gap: 24px; }

/* Shared editorial primitives */
.shell { width: min(var(--content-max), 100%); margin: 0 auto; padding: 0 var(--gutter) 26px; }
.eyebrow, .section-label { margin: 0; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.text-btn, .filter-btn, .toggle {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--white);
  padding: 7px 10px;
  cursor: pointer;
  transition: background-color .12s, color .12s, transform .12s;
}
.text-btn:hover, .filter-btn:hover, .toggle:hover { background: var(--lime); }
.filter-btn[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.toggle { display: flex; align-items: center; gap: 7px; padding: 6px 9px; }
.toggle input { accent-color: var(--blue); }
.top-actions, .filters, .toggles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Home */
.home-hero-electric {
  position: relative;
  min-height: 690px;
  padding: 55px max(var(--gutter), calc((100vw - var(--content-max)) / 2 + var(--gutter))) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
  gap: 40px;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  border-bottom: var(--line) solid var(--ink);
}
.home-hero-electric__title p { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.home-hero-electric h1 { position: relative; z-index: 2; margin: 45px 0 0; font-size: clamp(90px, 13.5vw, 210px); line-height: .7; letter-spacing: -.085em; text-transform: uppercase; }
.home-hero-electric h1 span { color: var(--lime); -webkit-text-stroke: 2px var(--ink); text-shadow: 7px 7px 0 var(--ink); }
.home-hero-electric__side {
  position: relative;
  z-index: 3;
  align-self: end;
  padding: 24px;
  background: var(--white);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard-lg);
  transform: rotate(2deg);
}
.home-hero-electric__side p { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.home-hero-electric__side a { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 15px; border-top: var(--line) solid var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.home-spark { position: absolute; right: 11%; top: 10%; width: 300px; height: 300px; }
.home-spark i { position: absolute; left: 50%; top: 50%; width: 280px; height: 22px; background: var(--pink); border: var(--line) solid var(--ink); transform-origin: center; }
.home-spark i:nth-child(2) { transform: rotate(36deg); }
.home-spark i:nth-child(3) { transform: rotate(72deg); }
.home-spark i:nth-child(4) { transform: rotate(108deg); }
.home-spark i:nth-child(5) { transform: rotate(144deg); }
.home-bento { width: min(var(--content-max), 100%); margin: 0 auto; padding: 28px var(--gutter); display: grid; grid-template-columns: 1.5fr .75fr .75fr; grid-auto-rows: minmax(220px, auto); gap: 16px; }
.home-bento article { border: var(--line) solid var(--ink); border-radius: var(--radius-panel); padding: 26px; box-shadow: var(--shadow-hard); }
.home-lead-card { grid-row: span 2; background: var(--ink); color: var(--white); }
.home-lead-card__top { display: flex; justify-content: space-between; gap: 16px; color: var(--on-ink-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-lead-card h2 { max-width: 650px; margin: 100px 0 24px; color: var(--lime); font-size: clamp(58px, 8vw, 112px); line-height: .8; letter-spacing: -.075em; }
.home-lead-card p { max-width: 670px; color: var(--on-ink-body); font-size: 18px; line-height: 1.5; }
.home-lead-card a { display: flex; justify-content: space-between; margin-top: 50px; padding: 18px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.home-lead-card a:hover { background: var(--lime); color: var(--ink); }
.home-metric { display: flex; flex-direction: column; color: var(--ink); }
.home-metric strong { font-size: 96px; line-height: .9; letter-spacing: -.08em; }
.home-metric span { margin-top: auto; font-size: 17px; font-weight: 800; }
.home-metric small { margin-top: 7px; }
.home-metric--lime { background: var(--lime); }
.home-metric--pink { background: var(--pink); }
.home-route-card { grid-column: span 2; background: var(--white); }
.home-route-card > p, .home-promise > span { margin: 0 0 25px; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.home-route-map { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.home-route-map i { min-width: 54px; height: 54px; display: grid; place-items: center; border: var(--line) solid var(--ink); border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 900; }
.home-route-map i:last-child { background: var(--blue); color: var(--white); }
.home-route-map b { font-size: 20px; }
.home-route-card > span { display: block; margin-top: 25px; color: var(--ink-muted); font-size: 12px; }
.home-promise { grid-column: 1 / -1; display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 40px; background: var(--blue); color: var(--white); }
.home-promise h2 { margin: 0; font-size: 36px; line-height: 1.05; }
.home-promise ul { margin: 0; padding: 0; list-style: none; }
.home-promise li { padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / 35%); font-weight: 700; }
.home-about { width: min(920px, calc(100% - 2 * var(--gutter))); margin: 68px auto 30px; padding: 32px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard); }
.home-about h2 { margin: 10px 0 16px; color: var(--ink); font-size: clamp(32px, 4vw, 54px); line-height: .98; letter-spacing: -.05em; }
.home-about > p:last-child { max-width: 760px; margin: 0; color: var(--ink-muted); font-size: 17px; line-height: 1.6; }

/* Investigation shell */
.page-investigation { background: var(--paper); }
.topbar { min-height: 58px; border-bottom: var(--line) solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-investigation .hero { padding: 28px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; }
.page-investigation h1 { grid-column: 1 / -1; margin: 0; max-width: 1100px; color: var(--ink); font-size: clamp(38px, 5vw, 72px); font-weight: 800; letter-spacing: -.055em; line-height: .93; }
.hero-copy { max-width: 1020px; }
.dek { margin: 0; max-width: 990px; color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.sds-intro { margin-top: 14px; padding: 12px 14px; background: var(--white); border: var(--line) solid var(--ink); border-left: 8px solid var(--red); font-size: 13px; line-height: 1.55; }
.sds-intro strong { display: block; margin-bottom: 3px; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dateline { color: var(--ink-muted); font-size: 12px; text-align: right; }
.controls { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; align-items: center; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.control-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.control-label { margin-right: 3px; color: var(--ink-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stage { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 16px; height: min(730px, calc(100vh - 210px)); min-height: 610px; }
.chart-panel, .event-panel { min-height: 0; overflow: hidden; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow-hard); }
.chart-panel { position: relative; }
.chart-head { position: absolute; left: 16px; top: 13px; z-index: 5; display: flex; align-items: center; gap: 9px; }
.chart-head .tag { padding: 4px 8px; background: var(--lime); border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.chart-head .hint { color: var(--ink-muted); font-size: 12px; }
.chart-canvas { position: relative; width: 100%; height: 100%; min-width: 930px; min-height: 610px; overflow: hidden; background-image: linear-gradient(to right, transparent 24.8%, var(--grid-line) 25%, transparent 25.2%), linear-gradient(to right, transparent 49.8%, var(--grid-line) 50%, transparent 50.2%), linear-gradient(to right, transparent 74.8%, var(--grid-line) 75%, transparent 75.2%); background-size: 100% 100%; }
.era-label { position: absolute; top: 45px; color: var(--map-muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.era-60 { left: 7%; } .era-69 { left: 34%; } .era-71 { left: 58%; } .era-82 { right: 7%; }
.connectors { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.connector { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.connector.formal { stroke: var(--blue-dark); }
.connector.faction { stroke: var(--red); }
.connector.personnel { stroke: var(--caution); stroke-dasharray: 5 5; }
.connector.ideology { stroke: var(--red); stroke-dasharray: 2 6; }
.connector.hidden { display: none; }
.org { position: absolute; z-index: 3; width: 218px; padding: 13px; background: var(--white); border: 1px solid var(--border-soft); border-top: 6px solid var(--org); border-radius: 10px; cursor: pointer; text-align: left; transition: border-color .12s, background-color .12s, transform .12s; }
.org:hover { background: var(--mist); border-color: var(--ink); border-top-color: var(--org); transform: translateY(-2px); }
.org.active { border-color: var(--blue); border-top-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.org.outside { opacity: .24; filter: grayscale(1); }
.org h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.org .years { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 11px; }
.org .claim { margin: 8px 0 0; color: var(--ink-body); font-size: 12px; line-height: 1.4; }
.org-sds { --org: var(--sds); left: 3%; top: 29%; }
.org-weather { --org: var(--weather); left: 31%; top: 12%; width: 258px; }
.org-nam { --org: var(--nam); left: 50%; top: 57%; width: 230px; }
.org-coalition { --org: var(--coalition); left: 28%; top: 50%; width: 220px; }
.org-dsoc { --org: var(--dsoc); left: 28%; top: 74%; width: 238px; }
.org-dsa { --org: var(--dsa); right: 3%; top: 55%; width: 258px; }
.portraits { display: flex; align-items: center; min-height: 38px; margin-top: 11px; }
.portrait { position: relative; width: 38px; height: 38px; margin-left: -7px; padding: 0; overflow: hidden; background: var(--mist); border: var(--line) solid var(--white); border-radius: 50%; cursor: pointer; }
.portrait:first-child { margin-left: 0; }
.portrait img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.portrait:hover, .portrait:focus-visible { z-index: 2; border-color: var(--blue); }
.more-people { margin-left: 7px; color: var(--ink-muted); font-size: 11px; }
sup.cite { vertical-align: super; font-size: 10px; line-height: 1; }
sup.cite button { padding: 1px 2px; background: transparent; border: 0; color: var(--blue-dark); font-weight: 800; line-height: 1.2; cursor: pointer; text-decoration: underline; }
.edge-label { position: absolute; z-index: 4; max-width: 175px; padding: 5px 7px; background: var(--white); border: 1px solid var(--border-soft); border-radius: 4px; color: var(--ink-body); font-size: 10px; line-height: 1.25; text-align: left; cursor: pointer; }
.edge-label:hover { border-color: var(--blue); }
.edge-faction { left: 16%; top: 21%; max-width: 150px; }
.edge-personnel { left: 21%; top: 42%; max-width: 205px; }
.edge-coalition { left: 5%; top: 65%; max-width: 190px; }
.edge-cross { left: 50%; top: 84%; max-width: 225px; }
.edge-merger { left: 65%; top: 70%; max-width: 190px; }
.break-marker { position: absolute; z-index: 4; left: 58%; top: 25%; width: 172px; padding: 9px 10px; background: var(--pink); border: 1px solid var(--ink); border-left: 6px solid var(--red); font-size: 11px; line-height: 1.35; }
.break-marker strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-card { position: absolute; z-index: 4; right: 3%; top: 21%; width: 262px; padding: 11px 12px; background: var(--lime); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; text-align: left; }
.case-card:hover { transform: translateY(-2px); }
.case-card .kicker { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.case-card .money { display: block; margin: 3px 0 4px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.case-card p { margin: 0; font-size: 11px; line-height: 1.35; }
.legend { position: absolute; left: 16px; bottom: 12px; z-index: 5; display: flex; gap: 13px; flex-wrap: wrap; color: var(--ink-muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.line { display: inline-block; width: 23px; height: 0; border-top: 2px solid var(--blue-dark); }
.line.split { border-color: var(--red); } .line.people { border-color: var(--caution); border-style: dashed; } .line.reject { border-color: var(--red); border-style: dotted; }
.event-panel { display: flex; flex-direction: column; }
.event-head { padding: 13px 14px 10px; border-bottom: var(--line) solid var(--ink); }
.event-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.event-head h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.event-head p { margin: 5px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.35; }
.event-controls { display: flex; gap: 5px; }
.event-controls button { width: 31px; height: 31px; background: var(--white); border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; }
.event-controls button:hover { background: var(--lime); }
.timeline-wrap { position: relative; min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 34px; }
.event-list { overflow-y: auto; padding: 10px 10px 28px 14px; scrollbar-color: var(--blue) var(--mist); scrollbar-width: thin; }
.event { position: relative; width: 100%; padding: 8px 8px 12px 18px; background: var(--white); border: 0; border-left: 2px solid var(--border-soft); cursor: pointer; text-align: left; }
.event::before { content: ""; position: absolute; left: -6px; top: 13px; width: 9px; height: 9px; background: var(--white); border: 2px solid var(--ink-muted); border-radius: 50%; }
.event:hover { background: var(--mist); }
.event.active { background: var(--blue-tint); border-left-color: var(--blue); }
.event.active::before { background: var(--blue); border-color: var(--blue); }
.event .date { color: var(--ink-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.event .title { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.25; }
.badge { display: inline-block; margin-top: 5px; padding: 2px 6px; background: var(--mist); border-radius: 999px; color: var(--blue-dark); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge.attack { background: var(--danger); color: var(--white); } .badge.context { background: var(--white); border: 1px solid var(--border-soft); color: var(--ink-muted); } .badge.qualified { background: var(--caution); color: var(--white); }
.event p { display: none; margin: 6px 0 0; color: var(--ink-body); font-size: 11px; line-height: 1.4; }
.event.active p { display: block; }
.scrubber { display: flex; justify-content: center; align-items: center; background: var(--mist); border-left: 1px solid var(--border-soft); }
.scrubber input { appearance: auto; width: 20px; height: calc(100% - 28px); background: transparent; accent-color: var(--blue); cursor: ns-resize; direction: rtl; writing-mode: vertical-lr; }
.bottom-note { margin-top: 16px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--lime); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bottom-note p { margin: 0; font-size: 12px; line-height: 1.4; }
.bottom-note strong { color: var(--ink); font-weight: 800; }

/* Evidence drawers */
dialog { max-width: none; max-height: none; padding: 0; background: transparent; border: 0; }
dialog::backdrop { background: rgb(17 18 26 / 58%); }
.drawer { position: fixed; right: 0; top: 0; width: min(520px, 94vw); height: 100vh; display: flex; flex-direction: column; background: var(--white); border-left: var(--line) solid var(--ink); }
.drawer-head { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; background: var(--blue); border-bottom: var(--line) solid var(--ink); color: var(--white); }
.drawer-head .label { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.close { width: 34px; height: 34px; background: var(--lime); border: var(--line) solid var(--ink); border-radius: 50%; color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; }
.drawer-body { padding: 20px 22px 40px; overflow: auto; }
.person-hero { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.person-hero img { width: 112px; height: 112px; object-fit: cover; border: var(--line) solid var(--ink); filter: saturate(.8) contrast(1.04); }
.drawer h2 { margin: 0; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.drawer h3 { margin: 25px 0 8px; padding-bottom: 7px; color: var(--ink); border-bottom: var(--line) solid var(--ink); font-size: 15px; font-weight: 800; }
.drawer p { margin: 8px 0; font-size: 14px; line-height: 1.65; }
.role { margin-top: 6px; color: var(--ink-muted); font-size: 12px; }
.source-strip { margin: 11px 0; padding: 8px 10px; background: var(--mist); border-left: 6px solid var(--blue); font-size: 12px; line-height: 1.5; }
.source-strip .source-label { display: block; color: var(--ink-muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.source-strip a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
.source-list { display: grid; gap: 9px; }
.source-row { padding: 10px 11px; border: 1px solid var(--border-soft); border-radius: var(--radius-control); scroll-margin-top: 12px; }
.source-row.target { background: var(--blue-tint); border: var(--line) solid var(--blue); }
.source-row .n { margin-right: 5px; color: var(--blue-dark); font-weight: 800; }
.source-row a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.source-row p { margin: 5px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.45; }
.gloss { border-bottom: 1px dotted var(--ink-muted); cursor: help; }

/* Error page */
.legal-page { max-width: 920px; margin: 58px 0 100px; }
.legal-page__header { margin-bottom: 18px; padding: 40px; background: var(--blue); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard-lg); color: var(--white); }
.legal-page__header .eyebrow { color: var(--lime); }
.legal-page h1 { margin: 18px 0 22px; font-size: clamp(52px, 8vw, 104px); letter-spacing: -.07em; line-height: .84; }
.legal-page__summary { max-width: 740px; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.45; }
.legal-page__date { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 40%); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-page section { margin-top: 16px; padding: 26px 30px; background: var(--white); border: var(--line) solid var(--ink); }
.legal-page section h2 { margin: 0 0 10px; color: var(--ink); font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
.legal-page section p { margin: 0; max-width: 760px; color: var(--ink-body); font-size: 15px; line-height: 1.65; }
.legal-page section a { color: var(--blue-dark); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Ask the reviewed record */
.ask-page { max-width: 1120px; margin: 58px 0 100px; }
.ask-page__header { padding: 42px; background: var(--ink); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard-lg); color: var(--white); }
.ask-page__header .eyebrow { color: var(--lime); }
.ask-page__header h1 { max-width: 900px; margin: 18px 0 24px; font-size: clamp(58px, 9vw, 118px); letter-spacing: -.075em; line-height: .82; }
.ask-page__header > p:last-child { max-width: 760px; margin: 0; color: var(--on-ink-body); font-size: 18px; font-weight: 700; line-height: 1.5; }
.ask-panel { margin-top: 18px; padding: 30px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 30px; background: var(--white); border: var(--line) solid var(--ink); }
.ask-panel__intro h2 { margin: 12px 0; color: var(--ink); font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.ask-panel__intro > p:last-child { color: var(--ink-muted); font-size: 14px; }
.ask-form { display: flex; flex-direction: column; align-items: flex-start; }
.ask-form label { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ask-form textarea { width: 100%; min-height: 150px; padding: 14px; resize: vertical; background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius-control); color: var(--ink-body); font-size: 16px; line-height: 1.5; }
.ask-form > p { margin: 9px 0 18px; color: var(--ink-muted); font-size: 12px; }
.ask-form > p a { color: var(--blue-dark); font-weight: 700; }
.ask-form button:disabled { cursor: wait; opacity: .6; }
.ask-panel--unavailable { align-items: start; }
.ask-panel--unavailable > p { margin: 0; padding: 18px; background: var(--paper); border: 1px solid var(--border-soft); font-size: 16px; line-height: 1.65; }
.ask-panel--unavailable > p a { color: var(--blue-dark); font-weight: 800; }
.answer-panel { margin-top: 18px; padding: 30px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard); }
.answer-panel__heading { padding-bottom: 18px; border-bottom: var(--line) solid var(--ink); }
.answer-panel__heading h2 { margin: 8px 0 0; color: var(--ink); font-size: 30px; letter-spacing: -.035em; }
.answer-panel__text { max-width: 820px; margin-top: 22px; font-size: 17px; line-height: 1.7; }
.answer-panel__text p { white-space: pre-wrap; }
.answer-panel__text a { color: var(--blue-dark); font-weight: 800; text-decoration-thickness: 2px; }
.answer-panel__sources { max-width: 820px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.answer-panel__sources h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; }
.answer-panel__sources ol { margin: 0; padding-left: 26px; }
.answer-panel__sources li { padding: 8px 0; }
.answer-panel__sources a { display: block; color: var(--blue-dark); font-weight: 800; }
.answer-panel__sources span { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 12px; }
.ask-status, .ask-noscript { margin: 18px 0 0; padding: 13px 15px; background: var(--lime); border: var(--line) solid var(--ink); color: var(--ink); font-weight: 700; }
.ask-status:empty { display: none; }

/* Reviewed research library */
.research-index, .research-record { max-width: 980px; margin: 58px 0 100px; }
.research-header { padding: 38px 40px; background: var(--white); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard); }
.research-header h1 { max-width: 820px; margin: 16px 0 18px; color: var(--ink); font-size: clamp(44px, 7vw, 86px); letter-spacing: -.06em; line-height: .9; }
.research-header > p:last-child { max-width: 760px; margin-bottom: 0; font-size: 17px; line-height: 1.6; }
.research-list { margin-top: 18px; display: grid; gap: 14px; }
.research-card { padding: 26px 28px; background: var(--white); border: var(--line) solid var(--ink); }
.research-card h2 { margin: 10px 0; color: var(--ink); font-size: 28px; letter-spacing: -.03em; line-height: 1.05; }
.research-card p { max-width: 760px; margin: 0 0 16px; line-height: 1.65; }
.research-card a { color: var(--blue-dark); font-weight: 800; }
.research-empty { margin-top: 18px; padding: 26px 28px; background: var(--white); border: var(--line) solid var(--ink); }
.research-breadcrumbs { margin-bottom: 18px; font-size: 12px; font-weight: 800; }
.research-breadcrumbs ol { margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.research-breadcrumbs li:not(:last-child)::after { margin-left: 8px; content: "/"; color: var(--ink-muted); }
.research-breadcrumbs a { color: var(--blue-dark); }
.research-meta { margin: 18px 0 0; padding-top: 16px; display: flex; gap: 10px 24px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); color: var(--ink-muted); font-size: 12px; }
.research-meta strong { color: var(--ink); }
.research-section { margin-top: 18px; padding: 30px 34px; background: var(--white); border: var(--line) solid var(--ink); scroll-margin-top: 18px; }
.research-section:target { border-color: var(--blue); box-shadow: var(--shadow-hard); }
.research-section h2 { margin: 10px 0 18px; color: var(--ink); font-size: 32px; letter-spacing: -.035em; line-height: 1.05; }
.research-section__path, .research-section__mode { color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.research-section__body { max-width: 780px; font-size: 16px; line-height: 1.7; }
.research-section__body h3, .research-section__body h4 { color: var(--ink); }
.research-section__body a, .research-footnotes a { color: var(--blue-dark); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.research-section__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.research-section__body th, .research-section__body td { padding: 9px; border: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
.research-section__body blockquote { margin-left: 0; padding-left: 18px; border-left: 4px solid var(--pink); }
.research-evidence-types { margin: 14px 0 0; padding: 0; display: flex; gap: 7px; flex-wrap: wrap; list-style: none; }
.research-evidence-types li { padding: 4px 7px; background: var(--blue-tint); border: 1px solid var(--blue-dark); color: var(--ink); font-size: 11px; font-weight: 800; }
.research-footnotes { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.research-footnotes h3 { margin: 0 0 12px; color: var(--ink); font-size: 19px; }
.research-footnotes ol { padding-left: 26px; }
.research-footnotes li { margin: 10px 0; scroll-margin-top: 18px; }
.research-revision { overflow-wrap: anywhere; }

/* Brand assets */
.brand-page { max-width: 1180px; margin: 58px 0 100px; }
.brand-page__header { margin-bottom: 18px; padding: 42px; background: var(--blue); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard-lg); color: var(--white); }
.brand-page__header .eyebrow { color: var(--lime); }
.brand-page__header h1 { max-width: 860px; margin: 20px 0 24px; font-size: clamp(58px, 8vw, 112px); letter-spacing: -.075em; line-height: .82; }
.brand-page__header > p:last-child { max-width: 760px; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.45; }
.brand-section { margin-top: 16px; padding: 30px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 24px; background: var(--white); border: var(--line) solid var(--ink); }
.brand-section__intro h2, .brand-rules h2 { margin: 10px 0 12px; color: var(--ink); font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.brand-section__intro > p:last-child { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.brand-preview { min-height: 230px; margin: 0; padding: 34px; display: grid; place-items: center; overflow: hidden; border: var(--line) solid var(--ink); }
.brand-preview--light { background: var(--mist); }
.brand-preview--light img { width: min(100%, 680px); height: auto; }
.brand-preview--avatar { background: var(--blue); }
.brand-preview--avatar img { width: min(100%, 380px); height: auto; border: var(--line) solid var(--ink); }
.brand-preview--card { background: var(--mist); }
.brand-preview--card img { width: 100%; height: auto; border: 1px solid var(--border-soft); }
.brand-downloads { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.brand-downloads a { min-height: 76px; padding: 13px 14px; display: flex; flex-direction: column; justify-content: center; background: var(--mist); border: var(--line) solid var(--ink); color: var(--ink); text-decoration: none; }
.brand-downloads a:hover { background: var(--lime); }
.brand-downloads strong { font-size: 13px; letter-spacing: .08em; }
.brand-downloads span { margin-top: 4px; color: var(--ink-muted); font-size: 12px; }
.brand-downloads a:hover span { color: var(--ink); }
.brand-rules { margin-top: 16px; padding: 30px; background: var(--lime); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard); }
.brand-rules ul { margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; }
.brand-rules li { padding: 12px 0; border-top: 1px solid var(--ink); font-weight: 700; }

.error-page { max-width: 860px; margin: 70px 0 110px; padding: 42px; background: var(--blue); border: var(--line) solid var(--ink); box-shadow: var(--shadow-hard-lg); color: var(--white); }
.error-page .eyebrow { color: var(--lime); }
.error-page h1 { margin: 18px 0 0; font-size: clamp(50px, 8vw, 104px); letter-spacing: -.07em; line-height: .85; }
.error-page .dek { margin: 24px 0 30px; color: var(--white); font-size: 18px; }
.error-page .text-btn { display: inline-block; color: var(--ink); text-decoration: none; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) 300px; }
  .chart-panel { overflow-x: auto; }
  .chart-canvas { width: 930px; }
  .case-card, .org-dsa { right: 2%; }
}
@media (max-width: 850px) {
  :root { --gutter: 18px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; padding: 0 0 12px; gap: 18px; overflow-x: auto; }
  .home-hero-electric { grid-template-columns: 1fr; }
  .home-hero-electric h1 { font-size: 18vw; }
  .home-hero-electric__side { max-width: 420px; }
  .home-spark { opacity: .5; }
  .home-bento { grid-template-columns: 1fr 1fr; }
  .home-lead-card { grid-column: 1 / -1; }
  .home-route-card { grid-column: 1 / -1; }
  .home-promise { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; padding: 10px 0; }
  .top-actions { justify-content: flex-end; }
  .page-investigation .hero { grid-template-columns: 1fr; padding: 22px 0 18px; }
  .dateline { text-align: left; }
  .controls { align-items: flex-start; flex-direction: column; }
  .stage { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .chart-panel { height: 610px; }
  .event-panel { height: 520px; }
  .bottom-note { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .dek { font-size: 14px; }
  .brand-section { grid-template-columns: 1fr; }
  .ask-panel { grid-template-columns: 1fr; }
  .brand-downloads { grid-column: auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --radius-panel: 12px; }
  .site-header__inner { min-height: 70px; }
  .site-header__action { width: 36px; height: 36px; }
  .site-brand__image { width: 160px; }
  .site-footer__inner { padding-bottom: 40px; flex-direction: column; }
  .site-footer__inner div { flex-direction: column; gap: 7px; }
  .site-footer__nav { justify-content: flex-start; flex-wrap: wrap; }
  .home-hero-electric { min-height: 600px; padding-top: 40px; padding-bottom: 40px; }
  .home-hero-electric h1 { font-size: 23vw; }
  .home-hero-electric__side { margin-top: 55px; }
  .home-bento { grid-template-columns: 1fr; }
  .home-lead-card, .home-route-card, .home-promise { grid-column: auto; }
  .home-lead-card h2 { margin-top: 70px; }
  .home-metric { min-height: 210px; }
  .home-route-map { flex-wrap: wrap; }
  .home-promise { display: block; }
  .home-promise h2 { margin-bottom: 25px; }
  .home-about { padding: 24px; }
  .topbar { min-height: 70px; padding: 9px 0; }
  .top-actions { flex-wrap: nowrap; }
  .page-investigation .hero h1 { font-size: 42px; }
  .controls { gap: 6px; padding: 8px 0; }
  .control-group { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .control-label, .toggle, .filter-btn { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .person-hero { grid-template-columns: 82px 1fr; }
  .person-hero img { width: 82px; height: 82px; }
  .drawer-body { padding: 18px 16px 32px; }
  .error-page { padding: 28px 22px; }
  .legal-page { margin-top: 34px; }
  .legal-page__header { padding: 30px 22px; }
  .legal-page section { padding: 22px; }
  .brand-page { margin-top: 34px; }
  .brand-page__header { padding: 30px 22px; }
  .brand-section, .brand-rules { padding: 22px; }
  .brand-preview { min-height: 180px; padding: 22px; }
  .brand-rules ul { grid-template-columns: 1fr; }
  .ask-page { margin-top: 34px; }
  .ask-page__header, .ask-panel, .answer-panel { padding: 24px 22px; }
  .research-index, .research-record { margin-top: 34px; }
  .research-header, .research-card, .research-section { padding: 24px 22px; }
  .research-section__body { overflow-wrap: anywhere; }
  .research-section__body table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
