/* Paper Trail — design tokens follow the validated reference palette (light + dark). */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;        /* sequential blue 450 — money bars */
  --accent-2: #86b6ef;      /* lighter step for secondary bars */
  --accent-soft: #cde2fb;
  --dem: #2a78d6;
  --rep: #e34948;
  --oth: #1baf7a;
  /* ordinal ramp for the donation-size bar (steps 250→650) */
  --sz-0: #86b6ef; --sz-200: #5598e7; --sz-500: #2a78d6; --sz-1000: #1c5cab; --sz-2000: #104281;
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 6px 20px -8px rgba(11, 11, 11, 0.10);
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Source Serif 4 replaced Fraunces, whose decorative ampersand and descending
     "j" rendered inconsistently in headings and names. */
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --accent-2: #256abf;
    --accent-soft: #184f95;
    --dem: #3987e5;
    --rep: #e66767;
    --oth: #199e70;
    --sz-0: #9ec5f4; --sz-200: #6da7ec; --sz-500: #3987e5; --sz-1000: #256abf; --sz-2000: #184f95;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid);
}
.head-row { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.search-wrap { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
#global-search {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--baseline); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.92rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
#global-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-results {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; z-index: 60;
}
.search-results.open { display: block; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--grid); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--page); }
.sr-name { font-weight: 600; }
.sr-meta { margin-left: auto; color: var(--muted); font-size: 0.8rem; text-align: right; }
.sr-empty { padding: 12px 14px; color: var(--muted); font-size: 0.9rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: none; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 20px 0; font-size: 0.84rem; color: var(--muted); }
.crumbs.show { display: flex; }
.crumbs a { color: var(--accent); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: var(--baseline); }
.crumb-cur { color: var(--ink-2); font-weight: 600; }

/* ---------- support button + modal ---------- */
.support-btn { flex: none; font-size: 0.85rem; padding: 7px 14px; }
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 11, 11, 0.45); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 460px; padding: 26px 28px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.4);
}
.modal h3 { font-size: 1.3rem; margin-bottom: 10px; }
.modal p { color: var(--ink-2); font-size: 0.92rem; margin: 0 0 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- shared bits ---------- */
main { padding: 28px 20px 60px; min-height: 70vh; }
section { margin: 44px 0; }
.section-head { margin-bottom: 18px; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.section-head h2 { font-size: 1.5rem; }
.section-note { color: var(--ink-2); font-size: 0.92rem; max-width: 640px; margin: 6px 0 0; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.p-dem .dot, .dot.p-dem { background: var(--dem); }
.p-rep .dot, .dot.p-rep { background: var(--rep); }
.p-oth .dot, .dot.p-oth { background: var(--oth); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--page); color: var(--ink-2);
}
.chip.soft b { color: var(--ink); }
.text-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }
.text-link:hover { text-decoration: underline; }
.btn {
  border: 1px solid var(--baseline); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 0.9rem;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.ghost { background: transparent; }
.error-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--rep);
  border-radius: var(--radius); padding: 18px 20px; margin: 12px 0;
}
.error-card p { color: var(--ink-2); margin: 6px 0 12px; }

/* skeletons */
.skel-card { background: var(--surface); border: 1px solid var(--grid); border-radius: var(--radius); min-height: 150px; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ink) 4%, transparent) 50%, transparent 70%);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- hero ---------- */
.hero { margin: 40px 0 10px; max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; }
.hero-sub { color: var(--ink-2); font-size: 1.05rem; max-width: 600px; margin-top: 14px; }

/* ---------- candidate cards rail ---------- */
.card-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px;
  overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory;
}
.card-rail::-webkit-scrollbar { height: 8px; }
.card-rail::-webkit-scrollbar-thumb { background: var(--baseline); border-radius: 4px; }
.cand-card {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--muted);
  border-radius: var(--radius); padding: 16px 14px; text-align: center;
  transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cand-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px -10px rgba(11,11,11,.22); }
.cand-card.p-dem { border-top-color: var(--dem); }
.cand-card.p-rep { border-top-color: var(--rep); }
.cand-card.p-oth { border-top-color: var(--oth); }
.cand-name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.cand-meta { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.cand-raised { margin-top: auto; font-size: 0.85rem; color: var(--ink-2); }
.cand-raised span { font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* avatars */
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; overflow: hidden; border: 1px solid var(--border);
}
.avatar.lg { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar.xl { width: 92px; height: 92px; font-size: 1.6rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar.org { border-radius: 22%; color: var(--accent); background: var(--accent-soft); }
.avatar.org svg { width: 55%; height: 55%; }

/* ---------- races grid ---------- */
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.race-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.race-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px -10px rgba(11,11,11,.22); }
.race-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.race-line { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 2px 0; }
.race-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-amt { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 0.9rem; }
.race-vs { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; padding-left: 18px; }
.party-init { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.race-more { color: var(--muted); font-size: 0.8rem; }
.race-cta { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* ---------- about band / footer ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.about-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.about-card p { color: var(--ink-2); font-size: 0.9rem; margin: 0; }
.about-card a { color: var(--accent); }
.site-foot { border-top: 1px solid var(--grid); padding: 28px 0 40px; color: var(--muted); font-size: 0.84rem; }
.site-foot p { max-width: 760px; margin: 0 0 10px; }
.site-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-links a { margin-right: 4px; }

/* ---------- profile ---------- */
.profile-head { border-left: 5px solid var(--muted); }
.profile-head.p-dem { border-left-color: var(--dem); }
.profile-head.p-rep { border-left-color: var(--rep); }
.profile-head.p-oth { border-left-color: var(--oth); }
.profile-id { display: flex; gap: 20px; align-items: flex-start; }
.profile-id h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.1; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wiki-blurb { color: var(--ink-2); font-size: 0.95rem; margin: 10px 0 6px; }
.profile-links { display: flex; gap: 14px; }

.cyc-bar {
  position: sticky; top: 61px; z-index: 40;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px);
  padding: 12px 2px; margin-top: 18px; border-bottom: 1px solid var(--grid);
}
.cyc-lbl { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cyc-chip {
  padding: 5px 13px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--baseline); background: var(--surface); color: var(--ink-2);
}
.cyc-chip:hover { border-color: var(--accent); color: var(--accent); }
.cyc-chip.on { background: var(--ink); color: var(--page); border-color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-grid.tight { gap: 8px; margin: 14px 0; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-label { color: var(--muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.stat-sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }

/* donation-size stacked bar */
.size-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.size-title { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.size-bar { display: flex; height: 18px; border-radius: 5px; overflow: hidden; }
.size-seg { min-width: 3px; }
.size-seg + .size-seg { margin-left: 2px; }
.size-seg, .swatch { border-radius: 2px; }
.size-0 { background: var(--sz-0); } .size-200 { background: var(--sz-200); } .size-500 { background: var(--sz-500); }
.size-1000 { background: var(--sz-1000); } .size-2000 { background: var(--sz-2000); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-2); }
.legend-item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.legend-item .pct { color: var(--muted); }
.swatch { width: 11px; height: 11px; display: inline-block; }

/* bar rows */
.bar-row { padding: 9px 6px 10px; border-bottom: 1px solid var(--grid); }
.bar-row:last-of-type { border-bottom: 0; }
.bar-row.is-expandable { cursor: pointer; }
.bar-row.is-expandable:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); border-radius: 8px; }
.bar-row.is-muted .bar-fill { background: var(--baseline); }
.bar-row.is-muted .bar-label { color: var(--ink-2); }
.bar-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.bar-label { font-weight: 600; font-size: 0.94rem; }
a.bar-label { color: var(--accent); }
a.bar-label:hover { text-decoration: underline; }
.bar-sub { color: var(--muted); font-size: 0.78rem; }
.bar-value { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.94rem; }
.bar-track { height: 10px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-fill.fill-2 { background: var(--accent-2); }
.caret { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; align-self: center; }
.bar-row.open .caret { transform: rotate(-135deg); }

.panel { display: none; padding: 4px 10px 12px 14px; border-left: 3px solid var(--accent-soft); margin: 0 0 6px 8px; }
.panel.open { display: block; }
.emp-row { display: flex; gap: 12px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--grid); font-size: 0.88rem; }
.emp-row:last-child { border-bottom: 0; }
.emp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-n { color: var(--muted); font-size: 0.76rem; margin-left: auto; flex: none; }
.emp-amt { font-weight: 600; font-variant-numeric: tabular-nums; flex: none; width: 68px; text-align: right; }
.emp-more, .method-note { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }
.method-note { max-width: 640px; }
.emp-link { color: var(--accent); }
.emp-link:hover { text-decoration: underline; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; margin-top: 8px; }
.bucket-divider {
  margin: 14px 6px 4px; padding-top: 10px; border-top: 1px dashed var(--baseline);
  color: var(--muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
/* Rounded dollar figures: exact amount on hover (pointer) or tap (touch).
   Only money gets this affordance, so the dotted underline stays meaningful. */
.money {
  border-bottom: 1px dotted var(--baseline);
  cursor: help; -webkit-tap-highlight-color: transparent;
}
.money:hover, .money.money-on, .money:focus-visible { border-bottom-color: var(--accent); color: var(--accent); outline: none; }
.money-tip {
  position: fixed; z-index: 200; display: none;
  background: var(--ink); color: var(--page);
  padding: 6px 11px; border-radius: 8px; font-size: 0.84rem; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.45); pointer-events: none;
}
.money-tip.open { display: block; }
.coverage-note {
  margin: 14px 6px 4px; padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px; font-size: 0.86rem; color: var(--ink-2); line-height: 1.5;
}
.coverage-note strong { color: var(--ink); }
.comp-card { margin-bottom: 16px; }
.comp-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.comp-card .section-note { margin-bottom: 8px; }
.has-tip { cursor: help; }
.info-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; margin-left: 5px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted);
  font-style: normal; font-size: 0.62rem; font-weight: 700; line-height: 1;
}
.wiki-tag { color: var(--muted); font-size: 0.82rem; }
.wiki-tag a { color: var(--accent); }
a.tl-row.wide:hover .tl-lbl { color: var(--accent); }
.tl-row.wide.on { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 8px; }
.tl-row.wide.on .tl-lbl { color: var(--accent); font-weight: 600; }

#sector-list, #pac-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
#sector-list .btn { margin: 10px 0 6px; }
#sector-list > .method-note, #pac-list > .method-note { padding: 0 6px 8px; }

/* donor table */
.donor-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; overflow-x: auto; }
.donor-row { display: grid; grid-template-columns: 1.2fr 1.2fr 0.8fr 0.6fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--grid); font-size: 0.9rem; min-width: 540px; }
.donor-row:last-child { border-bottom: 0; }
.donor-head { color: var(--muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
a.donor-name { font-weight: 600; color: var(--accent); }
a.donor-name:hover { text-decoration: underline; }
.donor-row .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.gift-n { color: var(--muted); font-style: normal; font-weight: 400; font-size: 0.78rem; }

/* side-by-side */
.disclaimer-band {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px; padding: 12px 16px; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 14px;
}
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.twocol h3 { font-size: 1.05rem; margin-bottom: 10px; }
.twocol p { font-size: 0.92rem; color: var(--ink-2); }
.src-line { font-size: 0.8rem; color: var(--muted); }
.src-line a { color: var(--accent); }

/* timeline */
.election-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.timeline { display: grid; gap: 12px; border-left: 3px solid var(--grid); padding-left: 18px; margin-left: 6px; }
.tl-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; transition: border-color .15s, transform .15s;
}
.tl-card::before {
  content: ""; position: absolute; left: -25.5px; top: 20px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--page); border: 3px solid var(--baseline);
}
.tl-card:hover { border-color: var(--accent); transform: translateX(2px); }
.tl-card.on { border-color: var(--accent); }
.tl-card.on::before { border-color: var(--accent); background: var(--accent-soft); }
.tl-year { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin-bottom: 8px; }
.tl-badge {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 2px;
}
@media (prefers-color-scheme: dark) { .tl-badge { color: #cde2fb; } }
.tl-bars { display: grid; gap: 5px; }
.tl-row { display: grid; grid-template-columns: 52px 1fr 64px; gap: 10px; align-items: center; }
.tl-row.wide { grid-template-columns: 76px 1fr 76px; padding: 6px 0; }
.tl-lbl { color: var(--muted); font-size: 0.78rem; }
.tl-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.tl-cta { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-top: 8px; }

/* ---------- race view ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.vs-divider { align-self: center; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 10px; }
.vs-card { border-top: 5px solid var(--muted); display: flex; flex-direction: column; gap: 8px; }
.vs-card.p-dem { border-top-color: var(--dem); }
.vs-card.p-rep { border-top-color: var(--rep); }
.vs-card.p-oth { border-top-color: var(--oth); }
.vs-id { display: flex; gap: 14px; align-items: center; }
.vs-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.vs-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vs-expand { align-self: flex-start; }
.vs-panel { display: none; }
.vs-panel.open { display: block; border-top: 1px solid var(--grid); padding-top: 6px; }
.also-ran { margin-top: 18px; }
.also-ran h3 { font-size: 1rem; margin-bottom: 8px; }
.also-ran .race-line:hover .race-name { color: var(--accent); }

/* ---------- pac ---------- */
.facts-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; }
.fact { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--grid); }
.fact-k { color: var(--muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.fact-v { font-weight: 600; font-size: 0.95rem; }
.facts-card .method-note { grid-column: 1 / -1; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 10px; }
  .search-wrap { max-width: none; flex-basis: 100%; order: 3; }
  .twocol { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { justify-self: center; padding: 0; }
  .profile-id { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta, .profile-links { justify-content: center; }
  .cyc-bar { top: 0; position: static; }
  .donor-row { grid-template-columns: 1.2fr 1fr 0.6fr; min-width: 460px; }
  .donor-row span:nth-child(3) { display: none; }
  .donor-row.donor-head span:nth-child(3) { display: none; }
}
