/* Public Sans (U.S. Web Design System), self-hosted so no visitor data goes to a font CDN. SIL OFL 1.1:
   /fonts/OFL-PublicSans.txt. One variable file per style covers every weight. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2"); }

:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #1d232a; --muted: #5d6670; --line: #dcd9d0; --accent: #0b5c8a;
  --accent-ink: #ffffff; --sig: #a3261b; --sig-bg: #fbe9e6; --rev: #8a5a00; --rev-bg: #fdf1d8; --info: #3c5a73;
  --info-bg: #e7eef4; --ok: #1f6b3a; --ok-bg: #e3f2e7; --hl: rgba(255, 196, 0, .35); --hl-line: #e0a100;
  --r: #b03030; --d: #2a5caa;
  --viz-1: #2a78d6; --viz-ring: #f7f6f2; --viz-hit: #eb6834;
  --s1: #2f6f9f; --s2: #c9822b; --s3: #5b8f4e; --s4: #8a5aa5; --s5: #b5524a; --s6: #7d8790;
  --c-unusual: #8a5a00; --c-unusual-bg: #fdf1d8; --c-completeness: #a3261b; --c-completeness-bg: #fbe9e6;
  --c-income: #2a5f86; --c-income-bg: #e4eef6; --c-wealth: #3f6b35; --c-wealth-bg: #e7f1e3;
  font: 16px/1.5 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --surface: #1c2024; --ink: #e8e6e1; --muted: #9aa3ab; --line: #31373d; --accent: #6db3e0;
    --accent-ink: #0d1114; --sig: #ff8a7a; --sig-bg: #3a1e1a; --rev: #f2c063; --rev-bg: #362a12; --info: #9fbbd2;
    --info-bg: #1d2a35; --ok: #7fd39a; --ok-bg: #18301f; --hl: rgba(255, 196, 0, .28); --hl-line: #ffc400;
    --r: #ff8a8a; --d: #8ab4ff;
    --viz-1: #3987e5; --viz-ring: #14171a; --viz-hit: #d95926;
    --s1: #6aa8d6; --s2: #e0a75a; --s3: #8cc07c; --s4: #b893d0; --s5: #e08a80; --s6: #a5afb8;
    --c-unusual: #f2c063; --c-unusual-bg: #362a12; --c-completeness: #ff8a7a; --c-completeness-bg: #3a1e1a;
    --c-income: #8fc1e6; --c-income-bg: #18283a; --c-wealth: #9fd28f; --c-wealth-bg: #1c2e18;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .4em 0 .3em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.02rem; margin: 1.2em 0 .4em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60rem; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-block; width: 28px; height: 28px; vertical-align: -7px; margin-right: 2px;
  transition: transform 200ms ease; }
.brand:hover .brand-mark { transform: rotate(-10deg); }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent); }
.cycle-form { margin-left: auto; }
.cycle-form label { display: flex; align-items: center; gap: 8px; }
/* Custom chevron so every dropdown has the arrow inset from the edge (the native one hugs the border) */
select { font: inherit; color: var(--ink); background-color: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 34px 6px 10px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6670' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
select::-ms-expand { display: none; }
select:disabled { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa3ab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 12px; padding-bottom: 32px; font-size: .9rem; color: var(--muted); }

.hero { padding: 12px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stats b { display: block; font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: .9rem; }
.note { background: var(--info-bg); color: var(--ink); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.card header { display: flex; flex-direction: column; margin-bottom: 6px; }
.card-title { font-weight: 700; font-size: 1.05rem; }
.flag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

.sev { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 1px 7px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; }
.sev-significant { color: var(--sig); background: var(--sig-bg); }
.sev-review { color: var(--rev); background: var(--rev-bg); }
.sev-info { color: var(--info); background: var(--info-bg); }
.badge { font-size: .8rem; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.badge-warn { color: var(--rev); background: var(--rev-bg); }
.badge-bad { color: var(--sig); background: var(--sig-bg); }
.badge-muted { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.party { font-weight: 700; }
.party-rep { color: var(--r); } .party-dem { color: var(--d); }

.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--bg); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.dim td { color: var(--muted); }
.tbl tr.hl td { background: var(--rev-bg); }
.scroll { overflow-x: auto; }
.compare td { white-space: nowrap; }

.search { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.search input, .search select { flex: 1 1 260px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background-color: var(--surface); color: var(--ink); font: inherit; }
.search select { padding-right: 34px; }
.search select { flex: 0 1 180px; }
button, .search button { font: inherit; }
.search button { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 4px; align-items: baseline; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .88rem; text-decoration: none; cursor: pointer; }
.chip.on, .chip.active { border-color: var(--hl-line); background: var(--hl); }
.crumbs { margin: 16px 0 0; font-size: .92rem; }

/* filing page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.viewer { position: sticky; top: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; }
.viewer-bar button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 6px; width: 34px; height: 30px; cursor: pointer; font-size: 1.1rem; }
.viewer-stage { position: relative; max-height: calc(100vh - 150px); overflow: auto; background: #fff; }
.viewer-stage canvas { display: block; width: 100%; }
.viewer-canvas { position: relative; }
.viewer-overlay { position: absolute; inset: 0; pointer-events: none; }
.hl-box { position: absolute; background: var(--hl); outline: 2px solid var(--hl-line); border-radius: 2px; }
.val { font: inherit; color: inherit; background: none; border: 0; padding: 0 2px; margin: 0 -2px; border-radius: 3px;
  cursor: pointer; text-align: inherit; border-bottom: 1px dotted var(--muted); }
.val:hover, .val.active { background: var(--hl); }
.val.low { border-bottom: 1px dashed var(--rev); }
.lowmark { display: inline-block; margin-left: 3px; font-size: .7rem; font-weight: 700; color: var(--rev);
  border: 1px solid var(--rev); border-radius: 50%; width: 14px; height: 14px; line-height: 12px; text-align: center; vertical-align: 1px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.biz { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.flag { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 12px; }
.flag-review { border-left-color: var(--rev); }
.flag-significant { border-left-color: var(--sig); }
.flag h3 { margin: 0 0 6px; }
.flag:target { box-shadow: 0 0 0 3px var(--hl); }
.evidence { display: flex; flex-wrap: wrap; gap: 6px; }
blockquote { margin: 8px 0 0; padding: 6px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: .92rem; }
blockquote cite { display: block; font-style: normal; font-size: .82rem; margin-top: 4px; }
.prov { font-size: .92rem; }
.prose { max-width: 60rem; }
.rule { border-top: 1px solid var(--line); padding-top: 4px; }
.rule code { color: var(--muted); font-size: .8rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }   /* not 1fr: a wide table would stretch the page */
  .viewer { position: static; order: -1; }
  .viewer-stage { max-height: 70vh; }
  .top-inner { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .cycle-form { margin-left: 0; }
  h1 { font-size: 1.5rem; }
}

/* home: race finder + compact side panel */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; margin-top: 8px; }
.finder h1 { margin-top: .6em; }
.finder-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 12px; align-items: end; }
.finder-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); }
.finder-form select { width: 100%; padding: 9px 36px 9px 12px; background-position: right 14px center; }
.finder-form button, .btn-secondary { font: inherit; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.finder-form button { border: 0; background: var(--accent); color: var(--accent-ink); }
.finder-form button:disabled { opacity: .45; cursor: default; }
.locate { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.locate p { margin: 0; flex: 1 1 260px; }
.btn-secondary { border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.btn-secondary:disabled { opacity: .5; cursor: progress; }
.locate-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.locate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.locate-grid h3 { font-size: .95rem; margin: .6em 0 .2em; }
.locate-grid ul { margin: 0; padding-left: 18px; }
.side { border-left: 1px solid var(--line); padding-left: 20px; margin-top: 18px; font-size: .9rem; }
.side-title { font-size: 1rem; margin: 0 0 8px; }
.mini-stats { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 12px; }
.mini-stats dt { color: var(--muted); }
.mini-stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 8px; }
  .side { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 8px; }
  .finder-form { grid-template-columns: 1fr; }
}

/* findings */
.cat { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.cat-unusual { color: var(--c-unusual); background: var(--c-unusual-bg); }
.cat-completeness { color: var(--c-completeness); background: var(--c-completeness-bg); }
.cat-income { color: var(--c-income); background: var(--c-income-bg); }
.cat-wealth { color: var(--c-wealth); background: var(--c-wealth-bg); }
.finding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.finding-review { border-left-color: var(--rev); }
.finding-significant { border-left-color: var(--sig); }
.finding:target { box-shadow: 0 0 0 3px var(--hl); }
.finding-meta { margin: 0 0 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.finding-head { font-size: 1.12rem; line-height: 1.35; margin: 2px 0 6px; }
.finding-why { margin: 0 0 8px; }
.finding-checks { background: var(--bg); border-radius: 8px; padding: 6px 12px; margin: 0 0 8px; font-size: .93rem; }
.finding-checks ul { margin: 4px 0 2px; padding-left: 18px; }
.finding-rule summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.finding-rule[open] summary { margin-bottom: 4px; }
.finding-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.finding-lines.big { gap: 10px; font-size: 1.02rem; }
.finding-lines.context { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .92rem; }
.finding-lines.context a { color: var(--muted); }
.standout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 8px 28px; }
.standout-grid h3 { margin: .6em 0 .5em; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cand-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cand-card header { margin-bottom: 8px; }

/* at a glance */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
/* each stat as wide as its figure ($152,243,420 doesn't fit a fixed column); they wrap instead of overlapping */
.glance-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.glance-stats div { display: flex; flex-direction: column; flex: 1 0 auto; min-width: 100px; }
.glance-stats b { white-space: nowrap; }
.glance-stats span { color: var(--muted); font-size: .8rem; }
.glance-stats b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.glance-stats small { color: var(--muted); font-size: .78rem; }
.sectors { margin-top: 12px; }
.sectors p { margin: 0 0 4px; }
.sector-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.sector-bar span { display: block; height: 100%; }
.sector-legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 3px; font-size: .9rem; }
.sector-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* per-candidate findings table */
.standout-table td { vertical-align: top; }
.standout-table td.who { min-width: 170px; }
.standout-table th { white-space: nowrap; }
.cell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .93rem; line-height: 1.35; }
.cell-list li { padding-left: 10px; border-left: 2px solid var(--line); }
.cell-list li.ctx a { color: var(--muted); }
.sig-dot { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%;
  background: var(--sig); color: var(--surface); font-size: .72rem; font-weight: 700; margin-right: 5px; vertical-align: 1px; }
@media (max-width: 900px) {
  .standout-table, .standout-table tbody, .standout-table tr, .standout-table td { display: block; width: 100%; }
  .standout-table thead { display: none; }
  .standout-table tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .standout-table td { border: 0; padding: 4px 10px; }
  .standout-table td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem;
    font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .standout-table td:has(> span.muted:only-child) { display: none; }
}

.contact-cta a { display: inline-block; font-size: 1.1rem; font-weight: 600; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* explore band: dot plot + spotlight */
.explore-band { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin: 16px 0 8px; }
.explore { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.explore-head h2 { margin: 0 0 2px; }
.explore-head p { margin: 0 0 10px; }
.explore-chart { min-height: 120px; }
.ex-h-icon { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); font-size: .85em; vertical-align: 2px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ex-chip { font: inherit; font-size: .88rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; transition: background 150ms, border-color 150ms; }
.ex-chip:hover { border-color: var(--accent); }
.ex-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-chip span { display: inline-block; transition: transform 200ms ease; }
.ex-chip:hover span, .ex-chip[aria-pressed="true"] span { transform: scale(1.18); }
.ex-measure-select { display: none; }
.ex-headline { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); font-size: .98rem; line-height: 1.4;
  animation: ex-pop 420ms cubic-bezier(.2,.7,.2,1); }
.ex-headline:empty { display: none; }
.ex-hl-icon { font-size: 1.6rem; line-height: 1; flex: none; }
.ex-headline b { font-weight: 800; }
.ex-x { font-size: 1.15em; color: var(--accent); }
.ex-ref-chip { white-space: nowrap; font-weight: 600; }
@keyframes ex-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 2px;
  font-size: .82rem; color: var(--muted); }
.ex-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.ex-toolbar select, .ex-find { font: inherit; font-size: .82rem; padding: 3px 8px; border: 1px solid var(--line);
  border-radius: 6px; background-color: var(--surface); color: var(--ink); }
.ex-toolbar select { padding-right: 28px; background-position: right 9px center; }
.ex-find { margin-left: auto; width: 170px; }
.ex-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 6px; font-size: .85rem; }
.ex-toggle { font: inherit; font-size: .85rem; padding: 0; border: 0; background: none; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ex-toggle::before { content: "▸"; display: inline-block; width: .8em; transition: transform 150ms ease; }
.ex-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.ex-toggle:hover, .ex-toggle[aria-expanded="true"] { color: var(--ink); }
.ex-panel { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .9rem; }
.ex-panel p { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .ex-toggle::before { transition: none; } }
.ex-source { margin-left: auto; }
@media (max-width: 560px) { .ex-find { margin-left: 0; width: 100%; } .ex-headline { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ex-headline { animation: none; } .ex-chip span { transition: none; } }
.ex-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ex-grid { stroke: var(--line); stroke-width: 1; }
.ex-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.ex-rowline { stroke: var(--line); stroke-width: 1; opacity: .6; }
.ex-tick, .ex-side { font-size: 11px; fill: var(--muted); }
.ex-side.muted { opacity: .8; }
.ex-label { font-size: 12.5px; fill: var(--ink); }
.ex-median { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ex-ref { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.ex-ref-label { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.ex-cref { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.ex-dot { fill: var(--viz-1); stroke: var(--viz-ring); stroke-width: 1.5; opacity: .85;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 500ms ease; }
.ex-dot.hover { fill: var(--ink); opacity: 1; }
.ex-dot.hit { fill: var(--viz-hit); opacity: 1; }
.ex-tip { position: absolute; z-index: 5; max-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); pointer-events: none; }

.spotlight { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spot-head h2 { margin: 0; font-size: 1.1rem; }
.spot-controls { display: flex; gap: 4px; }
.spot-controls button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 6px; min-width: 30px; height: 28px; cursor: pointer; }
.spot-controls .spot-all { padding: 0 8px; }
.spot-cards { position: relative; min-height: 220px; margin-top: 10px; }
.spot-card { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 4px;
  color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease; }
/* the outgoing card fades out first; the incoming one starts after it, so their text never overlaps */
.spot-card.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 380ms ease 240ms, transform 380ms ease 240ms; }
.spot-icon { font-size: 1.6rem; }
.spot-big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spot-text { font-size: 1rem; }
.spot-person { font-weight: 700; margin-top: 4px; color: var(--accent); }
.spot-sub { font-size: .85rem; }
.spot-card:hover .spot-person { text-decoration: underline; }
.spot-dots { display: flex; gap: 5px; justify-content: center; margin: 8px 0 0; }
.spot-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.spot-dots i.on { background: var(--accent); }
.spotlight.all .spot-cards { display: grid; gap: 10px; min-height: 0; }
.spotlight.all .spot-card { position: static; opacity: 1; transform: none; pointer-events: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; }
.spotlight.all .spot-big { font-size: 1.5rem; }
.spotlight.all .spot-dots { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ex-dot, .spot-card { transition: none; }
}
@media (max-width: 900px) {
  .explore-band { grid-template-columns: 1fr; }
}

.research { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 16px; }
.research-standout { border-left: 4px solid var(--rev); }
.research h2 { margin-top: .2em; }
.research-group h3 { font-size: .92rem; margin: .8em 0 .3em; color: var(--muted); }
.research ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* disclosure clarity */
.clarity { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 1px 8px; border-radius: 999px;
  white-space: nowrap; text-decoration: none; border: 1px solid transparent; }
.clarity-clear { color: var(--ok); background: var(--ok-bg); }
.clarity-some_gaps { color: var(--rev); background: var(--rev-bg); }
.clarity-hard { color: var(--sig); background: var(--sig-bg); }
.clarity-not_rated { color: var(--muted); border-color: var(--line); }
a.clarity:hover { border-color: currentColor; }
.clarity-detail { opacity: .8; }
h2 .clarity { font-size: 1rem; padding: 2px 10px; }
.lede { font-size: 1.05rem; max-width: 70ch; }
.clarity-bar { display: flex; gap: 3px; margin: 16px 0 10px; border-radius: 10px; overflow: hidden; min-height: 40px; }
.clarity-seg { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; min-width: max-content;
  border-radius: 0; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.clarity-seg b { font-size: 1.1rem; }
.clarity-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 14px;
  font-size: .88rem; color: var(--muted); }
.clarity-filters select { font: inherit; padding: 3px 30px 3px 8px; background-position: right 10px center; border: 1px solid var(--line); border-radius: 6px;
  background-color: var(--surface); color: var(--ink); margin-left: 4px; }
.clarity-section { margin: 22px 0; }
.clarity-section h2 { margin-bottom: 2px; }
.clarity-section > p { margin: 0 0 8px; }
.clarity-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); }
.clarity-list > li { border-top: 1px solid var(--line); }
.clarity-list > li:first-child { border-top: 0; }
.clarity-list > li.cl-target { background: var(--hl, var(--bg)); }
.clarity-list summary { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr auto; gap: 4px 14px;
  align-items: baseline; padding: 9px 14px; cursor: pointer; list-style: none; }
.clarity-list summary::-webkit-details-marker { display: none; }
.clarity-list summary::before { content: "▸"; position: absolute; margin-left: -11px; color: var(--muted);
  transition: transform 150ms ease; }
.clarity-list details[open] summary::before { transform: rotate(90deg); }
.cl-score { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.cl-items { list-style: none; margin: 0; padding: 0 14px 12px 14px; display: grid; gap: 4px; font-size: .9rem; }
.cl-items li { display: flex; gap: 8px; align-items: baseline; }
.cl-mark { flex: none; width: 1.3em; text-align: center; font-weight: 800; }
.cl-pass .cl-mark { color: var(--ok); }
.cl-gap .cl-mark { color: var(--sig); }
.cl-na, .cl-unknown { color: var(--muted); }
@media (max-width: 640px) {
  .clarity-list summary { grid-template-columns: 1fr auto; }
  .cl-office { grid-column: 1 / -1; grid-row: 2; }
  .clarity-seg { min-width: 0; flex-direction: column; gap: 0; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .clarity-list summary::before { transition: none; } }

.sample-banner { background: #5b3cc4; color: #fff; text-align: center; font-size: .85rem; font-weight: 600;
  padding: 5px 12px; position: sticky; top: 0; z-index: 50; }

/* overview: title row with an "About the data" popover; finder below the explore band */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin-top: 18px; }
.page-head h1 { margin: 0; }
.page-head + .lede { margin: 6px 0 4px; max-width: 75ch; }
.about-pop { position: relative; }
.about-btn { font: inherit; font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer; }
.about-btn:hover, .about-pop.open .about-btn { color: var(--ink); border-color: var(--accent); }
.about-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.about-panel::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* hover bridge */
.about-pop:hover .about-panel, .about-pop:focus-within .about-panel, .about-pop.open .about-panel { display: block; }
.about-panel p:last-child { margin-bottom: 0; }
.finder { margin: 32px 0 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; }
.finder h2 { margin: 0 0 2px; }
.finder > p.muted { margin: 0 0 12px; }
@media (max-width: 640px) { .about-panel { left: 0; right: auto; width: min(320px, calc(100vw - 32px)); } }

/* corrections */
.corrections { padding-left: 18px; }
.corrections li { margin: 6px 0; }
.corrections time { font-variant-numeric: tabular-nums; color: var(--muted); }
.corrections-example { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; margin: 14px 0;
  background: var(--surface); }
.corrections-example p { margin: 0 0 2px; }
.corrections-example .corrections { margin: 4px 0; color: var(--muted); }
.corrections-head { font-size: 1.1rem; margin-top: 1.4em; }

/* amendments: values carried from the original filing (not amended) link there */
.amend-note { margin: 8px 0 14px; }
a.val.from, .from-mark { text-decoration: underline dotted; text-underline-offset: 3px; color: inherit; }
a.val.from:hover { background: var(--hl); }

/* phones: a filing's tables scroll on their own instead of widening the page */
@media (max-width: 600px) {
  .data .tbl { display: block; overflow-x: auto; }
}

/* explore: person search — matches on top and labeled, everyone else dimmed */
.ex-searching .ex-dot:not(.hit) { fill-opacity: .15; stroke-opacity: .15; }
.ex-hit-label { font-size: 12px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--surface);
  stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.ex-find-results { margin: 6px 0 0; }

/* homepage "worth a look": candidates and officeholders as two lists you open */
.standout-group { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--surface); }
.standout-group > summary { cursor: pointer; padding: 10px 14px; list-style: revert; }
.standout-group[open] > summary { border-bottom: 1px solid var(--line); }
.standout-group > .scroll { padding: 0 6px 6px; }
