/* 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. */
: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;
  --sec-people: #5f87ad; --sec-business: #d08a2e; --sec-groups: #8a64b0; --sec-unions: #b8524a; --sec-tribes: #3f8a4a;
  --sec-parties: #2a8a8a; --sec-candidates: #a5885a; --sec-own: #8d939a;
  --viz-1: #2a78d6; --viz-ring: #f7f6f2; --viz-hit: #eb6834;
  --c-gifts: #8a5a00; --c-gifts-bg: #fdf1d8; --c-timeliness: #a3261b; --c-timeliness-bg: #fbe9e6;
  --c-travel: #2a5f86; --c-travel-bg: #e4eef6; --c-lobbying: #6b3f8f; --c-lobbying-bg: #f1e8f7; --c-behested: #1f6b5a; --c-behested-bg: #e2f2ee; --c-amendments: #3f6b35; --c-amendments-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;
    --sec-people: #7fa6cc; --sec-business: #e3a14d; --sec-groups: #a888cc; --sec-unions: #d77a72; --sec-tribes: #66b073;
    --sec-parties: #4fb0b0; --sec-candidates: #c4a878; --sec-own: #9aa1a8;
    --viz-1: #3987e5; --viz-ring: #14171a; --viz-hit: #d95926;
    --c-gifts: #f2c063; --c-gifts-bg: #362a12; --c-timeliness: #ff8a7a; --c-timeliness-bg: #3a1e1a;
    --c-travel: #8fc1e6; --c-travel-bg: #18283a; --c-lobbying: #cfa6ec; --c-lobbying-bg: #2c1f38; --c-behested: #7fd3bf; --c-behested-bg: #17302a; --c-amendments: #9fd28f; --c-amendments-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); }
.top nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.subnav { display: flex; gap: 4px; margin: 14px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none; }
.subnav a { padding: 8px 12px; color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-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; }
.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; }
.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); }
.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; }
.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; }
.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; }

/* statement 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; }
.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; }
.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; }
.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; }
  .top nav { gap: 12px; font-size: .95rem; }
  .subnav a { padding: 8px 9px; }
  .cycle-form { margin-left: 0; }
  h1 { font-size: 1.5rem; }
}

/* compact side panel */
.side { border-left: 1px solid var(--line); padding-left: 20px; margin-top: 18px; font-size: .9rem; }
@media (max-width: 900px) {
  .side { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 8px; }
}

/* findings */
.cat { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.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; }
.lede { font-size: 1.05rem; max-width: 70ch; }
/* corrections */
.corrections { padding-left: 18px; }
.corrections li { margin: 6px 0; }
.corrections time { font-variant-numeric: tabular-nums; color: var(--muted); }
/* phones: a statement's tables scroll on their own instead of widening the page */
@media (max-width: 600px) {
  .data .tbl { display: block; overflow-x: auto; }
}

/* statement page: campaign money */
.campaign { margin-bottom: 14px; }
.campaign h3 { margin: 6px 0; font-size: 1rem; }

/* holdings */
.h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.h-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.h-stat b { display: block; font-size: 1.55rem; line-height: 1.15; overflow-wrap: anywhere; }
.h-stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 420px) {
  .top nav { gap: 10px; font-size: .9rem; }
}

/* --- California pages ------------------------------------------------------------------------------------------ */
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.party { display: inline-block; min-width: 1.6em; padding: 0 5px; border-radius: 4px; font-size: .78rem; font-weight: 600;
  text-align: center; color: #fff; background: var(--muted); vertical-align: 1px; }
.party-dem { background: var(--d); } .party-rep { background: var(--r); }
.party-grn { background: #3f7d3a; } .party-lib { background: #b08a1e; } .party-pf { background: #7a3f8f; }
.party-ai { background: #8a5a00; } .party-npp { background: #6b747c; }
.sched { margin-top: 26px; }
.sched h2 .muted { font-weight: 400; }
.sched details { margin: 6px 0; }
.sched pre { white-space: pre-wrap; background: var(--bg); padding: 8px; border-radius: 6px; max-height: 24rem; overflow: auto; }
.chip.pg { font-size: .78rem; padding: 1px 7px; white-space: nowrap; max-width: 100%; }
.evidence .chip.pg { white-space: normal; flex-wrap: wrap; }   /* a long source name wraps instead of widening the page */
button.chip.pg, a.chip.pg { cursor: pointer; }
.cat-gifts { color: var(--c-gifts); background: var(--c-gifts-bg); }
.cat-timeliness { color: var(--c-timeliness); background: var(--c-timeliness-bg); }
.cat-travel, .cat-campaign { color: var(--c-travel); background: var(--c-travel-bg); }
.cat-behested { color: var(--c-behested); background: var(--c-behested-bg); }
.cat-lobbying { color: var(--c-lobbying); background: var(--c-lobbying-bg); }
.cat-amendments { color: var(--c-amendments); background: var(--c-amendments-bg); }
.campaign { margin-top: 28px; }

/* home: explore chart (one dot per person) + 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); }
@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-ref { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.ex-cref { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.ex-ref-label { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.ex-ref-chip { white-space: nowrap; font-weight: 600; }
.ex-median { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.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; }
}

/* home: title row with an "About the data" popover */
.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; }
@media (max-width: 640px) { .about-panel { left: 0; right: auto; width: min(320px, calc(100vw - 32px)); } }

.side-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.more-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.more-card h2 { font-size: 1rem; margin: 0 0 8px; }
.more-item { padding: 8px 0; border-top: 1px solid var(--line); }
.more-item:first-of-type { border-top: 0; padding-top: 0; }
.more-item p { margin: 2px 0; }
.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; }

/* lobbying: report items under a finding, and the person page section */
.lobby-giver { margin: 6px 0; }
.lobby-items { margin: 2px 0 6px; padding-left: 18px; }
.lobby-items li { margin: 2px 0; }

/* donors */
.pbar { display: inline-flex; width: 96px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line);
  vertical-align: middle; }
.pbar i { display: block; height: 100%; }
.pb-d { background: var(--d); } .pb-r { background: var(--r); } .pb-o { background: var(--muted); opacity: .6; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 14px; font-size: .92rem; }
.filters select { font: inherit; padding: 3px 28px 3px 8px; border: 1px solid var(--line); border-radius: 6px;
  background-color: var(--surface); color: var(--ink); }
/* phones: every data table scrolls on its own instead of widening the page */
@media (max-width: 600px) {
  .tbl { display: block; overflow-x: auto; }
  .hide-sm { display: none; }
}

/* where the money comes from: 100% bars by kind of donor */
.mix { margin: 6px 0; }
.mix-label { font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.mix-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--line); }
.mix-bar i { display: flex; align-items: center; justify-content: center; height: 100%; font-style: normal;
  font-size: .75rem; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); min-width: 0; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.mix-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mix-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sec-people { background: var(--sec-people); } .sec-business { background: var(--sec-business); }
.sec-groups { background: var(--sec-groups); } .sec-unions { background: var(--sec-unions); }
.sec-tribes { background: var(--sec-tribes); } .sec-parties { background: var(--sec-parties); }
.sec-candidates { background: var(--sec-candidates); } .sec-own { background: var(--sec-own); }
.money-mix { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0 20px; }
.money-mix h2 { margin: 0 0 2px; }
.money-mix .with-own { display: none; }
.money-mix:has(#mix-own:checked) .with-own { display: block; }
.money-mix:has(#mix-own:checked) .without-own { display: none; }
.sector-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.sector-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg);
  border-top: 5px solid var(--c, var(--line)); }
.sector-card h3 { margin: 0; font-size: 1rem; }
.sector-card .big { font-size: 1.35rem; font-weight: 800; }
.sector-card ol { margin: 6px 0 4px; padding-left: 20px; font-size: .88rem; }
.sector-card li { margin: 1px 0; }

/* outside spending: for (right) and against (left) each candidate */
.ie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 1.2fr) minmax(0, 1fr); gap: 4px 10px;
  align-items: center; font-size: .9rem; }
.ie-head { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ie-name { text-align: center; }
.ie-bar { height: 16px; display: flex; }
.ie-bar.against { justify-content: flex-end; }
.ie-bar i { display: block; height: 100%; border-radius: 3px; }
.ie-bar.for i { background: var(--ok); } .ie-bar.against i { background: var(--sig); }
.ie-amt { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* find your races */
.finder { margin: 16px 0 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.finder h2 { margin: 0 0 2px; }
.finder > p.muted { margin: 0 0 10px; }
.btn { font: inherit; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.finder-list { columns: 2 260px; margin: 6px 0; padding-left: 18px; }
.finder-list li { margin: 2px 0; break-inside: avoid; }

/* how a campaign spent its money */
.spent { margin: 14px 0; }
.spent h3 { margin: 0 0 6px; font-size: 1rem; }
.spent-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 8px; align-items: center;
  font-size: .88rem; margin: 2px 0; }
.spent-bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.spent-bar i { display: block; height: 100%; background: var(--accent); }

/* bills: data dates, and the money chart */
.updated { background: var(--hl); border: 1px solid var(--hl-line); border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.billbars { display: grid; gap: 10px; margin: 10px 0 4px; }
.billbar-label { font-size: .92rem; margin-bottom: 2px; }
.billbar-track { display: flex; align-items: center; gap: 8px; }
.billbar-track .mix-bar { height: 18px; min-width: 4px; flex: none; }
.billbar-amt { font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
