@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

  min-height: 44px; /* accessibility touch target */
}
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* ── VoteROI Design System ── */
    --navy:    #0f1f3d;
    --navy-mid:#162840;
    --navy-dark:#0a1628;
    --cream:   #f5f0e6;
    --cream-lt:#faf8f4;
    --green:   #5cb85c;
    --green-dk:#4cae4c;
    --red:     #c0392b;
    --red-dk:  #a93226;
    --gray:    #6b7280;
    --gray-lt: #f3f4f6;
    --border:  #e5e7eb;
    --text:    #1f2937;
    --muted:   #6b7280;
    --white:   #ffffff;

    /* Legacy aliases — kept so existing CSS rules don't break */
    --red-bg:  #fef2f2;
    --red-lt:  #fecaca;
    --amber:   #d97706;
    --amb-bg:  #fef3c7;
    --blue:    #0f1f3d;
    --blu-bg:  #e8f0fb;
    --gray-lt: #f3f4f6;
    --border:  #e5e7eb;
    --shadow:  0 1px 4px rgba(0,0,0,0.08);
    /* VoteROI brand */
    --brand-green:  #5cb85c;
    --brand-dark:   #3d3d3d;
    --brand-green-dk: #4a9f4a;
    --brand-green-lt: #edf7ed;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: #faf8f4;
    line-height: 1.7;
  }

  /* Links: underline on hover for older-donor accessibility */
  a:hover { text-decoration: underline; }
  footer a:hover { text-decoration: underline; }

  /* ── Header ── */
  header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
  }
  .header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: 100%;
  }
  .header-search-row {
    width: 100%;
    padding: 0 0 10px;
  }
  .header-search-row .gsb-wrap {
    position: relative;
    max-width: 100%;
  }
  .header-search-row #globalSearchInput {
    width: 100%;
    box-sizing: border-box;
    background: var(--cream);
    border: 2px solid #e8c840;
    border-radius: 10px;
    padding: 10px 48px 10px 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s;
  }
  .header-search-row #globalSearchInput::placeholder { color: #6b5a40; font-weight: 400; }
  .header-search-row #globalSearchInput:focus { box-shadow: 0 0 0 3px rgba(92,184,92,0.4); border-color: #5cb85c; outline: 2px solid #5cb85c; border-color: #e8c840; }
  .header-search-row .gsb-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a8870;
    pointer-events: none;
  }
  @keyframes lighthouse-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  .logo { display:flex; align-items:center; }
  nav a {
    font-size: 15px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 24px;
  }
  nav a:hover { color: var(--text); }
  @keyframes picksPulse {
    0%   { box-shadow: 0 0 0 0 rgba(244,196,48,0.7), 0 2px 8px rgba(0,0,0,0.25); }
    60%  { box-shadow: 0 0 0 8px rgba(244,196,48,0), 0 2px 8px rgba(0,0,0,0.25); }
    100% { box-shadow: 0 0 0 0 rgba(244,196,48,0), 0 2px 8px rgba(0,0,0,0.25); }
  }
  .nav-picks-btn {
    margin-left: 20px;
    background: linear-gradient(135deg, #1a3a8f 0%, #0f2460 100%);
    color: #f4c430;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: .05em;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(26,58,143,0.4);
    animation: picksPulse 2s ease-out 1;
  }
  .nav-picks-btn:hover { background: linear-gradient(135deg, #2355c4 0%, #1a3a8f 100%); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,58,143,0.5); }
  .nav-picks-btn::before { content: '★ '; }

  /* ── Hero banner ── */
  .hero {
    background: #0f1f3d;
    color: white;
    padding: 36px 40px 32px;
    display: flex;
    align-items: stretch;
    gap: 32px;
  }
  .hero-left { flex: 1; min-width: 0; max-width: 700px; }
  /* 3-column panels */
  .hero-panel {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(232,200,64,0.25);
    border-radius: 14px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-panel-right {
    background: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    color: #1a1a1a;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    padding: 0 !important;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-panel-logo {
    width: 200px;
    max-width: 100%;
    opacity: 0.93;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.15;
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .hero p {
    font-size: 19px;
    opacity: 0.93;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0;
  }
  .cycle-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    font-size: 14px;
    padding: 3px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-weight: 700;
  }

  /* B — Hero featured race card */
  .hero-race-card {
    flex-shrink: 0; width: 360px;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    color: #1a1a1a;
    flex-direction: column; align-self: stretch;
    display: flex;
  }
  .hrc-photo { width:100%;flex:1;min-height:220px;object-fit:cover;object-position:center center;display:block;background:#e0e0e0; }
  .hrc-body { padding: 20px 22px 22px; flex-shrink: 0; }
  .hrc-badge { display:inline-block;background:linear-gradient(135deg,#5cb85c,#4a9f4a);color:#fff;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;padding:4px 12px;border-radius:4px;margin-bottom:12px; }
  .hrc-race { font-size:13px;color:#888;text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px; }
  .hrc-name { font-size:26px;font-weight:900;font-family:'DM Serif Display',serif;line-height:1.15;margin-bottom:8px; }
  .hrc-liner { font-size:16px;color:#555;line-height:1.5;margin-bottom:18px; }
  .hrc-btn { display:block;width:100%;background:#5cb85c;color:#fff;border:none;padding:14px;border-radius:8px;font-size:16px;font-weight:900;cursor:pointer;letter-spacing:.04em;text-transform:uppercase;font-family:'Inter',sans-serif;transition:background .15s; }
  .hrc-btn:hover { background:#4a9f4a; }
  .hero-logo-tagline {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    font-family: 'Inter', sans-serif;
    margin-top: 14px;
    line-height: 1;
  }
  .hero-logo-tagline .win {
    font-size: 32px;
    font-weight: 900;
    color: #5cb85c;
    letter-spacing: 0.05em;
  }

  /* A — Sticky donate bar */
  .sticky-donate-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #141414; border-top: 3px solid #5cb85c;
    padding: 10px 32px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.4);
    transform: translateY(120%); opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .sticky-donate-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

  /* ── Global pinned search bar — now inside header, see .header-search-row ── */
  .sdb-copy { flex:1; }
  .sdb-headline { font-size:18px;font-weight:900;color:#fff;font-family:'DM Serif Display',serif;letter-spacing:-.01em; }
  .sdb-race { font-size:12px;color:#888;margin-top:1px; }
  .sdb-btn {
    background: linear-gradient(135deg,#5cb85c,#4a9f4a); color:#fff; border:none;
    padding:10px 24px; border-radius:6px; font-size:14px; font-weight:900;
    cursor:pointer; letter-spacing:.05em; text-transform:uppercase;
    white-space:nowrap; font-family:'Inter',sans-serif; flex-shrink:0;
    transition: background .15s;
  }
  .sdb-btn:hover { background: linear-gradient(135deg,#6dd06d,#5cb85c); }

  /* E — Top Picks inline strip */
  .top-picks-strip { background: #0f1f3d; padding: 28px 32px 32px; border-bottom: 3px solid #e8c840; }
  .tps-header { display:flex;align-items:baseline;gap:14px;margin-bottom:24px;flex-wrap:wrap; }
  .tps-title { font-family:'DM Serif Display',serif;font-size:36px;font-weight:900;color:#e8c840;line-height:1.1; }
  .tps-sub { font-size:15px;color:rgba(255,255,255,0.75);font-family:'Inter',sans-serif;width:100%;margin-top:6px; }
  .tps-see-all { margin-left:auto;background:none;border:1px solid #444;color:#aaa;padding:5px 14px;border-radius:5px;font-size:12px;font-weight:700;cursor:pointer;letter-spacing:.05em;text-transform:uppercase;font-family:'Inter',sans-serif;transition:border-color .15s,color .15s; }
  .tps-see-all:hover { border-color:#5cb85c;color:#5cb85c; }
  /* Top Picks cards — rotd-style: photo left, content right */
  /* Top Picks — 2-col grid, large and readable */
  .tps-cards { display:grid;grid-template-columns:1fr 1fr;gap:20px; }
  .tps-card { background:var(--gray-lt);border-radius:12px;overflow:hidden;border:1px solid var(--border);display:flex;flex-direction:row;cursor:pointer;transition:transform .15s,box-shadow .15s;min-height:260px; }
  .tps-card:hover { transform:translateY(-2px);box-shadow:0 8px 32px rgba(0,0,0,.15); }
  .tps-photo-col { width:200px;flex-shrink:0;position:relative;overflow:hidden;background:#ddd; }
  .tps-photo-col img { width:100%;height:100%;object-fit:cover;object-position:center center;display:block; }
  .tps-photo-overlay { position:absolute;inset:0;background:linear-gradient(to right,transparent 60%,var(--gray-lt) 100%); }
  .tps-no-photo { width:200px;flex-shrink:0;background:linear-gradient(135deg,#e8f5e8,#d0ecd0);display:flex;align-items:center;justify-content:center;font-size:64px;color:#5cb85c;opacity:0.5; }
  .tps-body { flex:1;padding:24px 24px 20px;display:flex;flex-direction:column;justify-content:space-between; }
  .tps-endorsed { display:inline-block;background:linear-gradient(135deg,#5cb85c,#4a9f4a);color:#fff;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;padding:4px 12px;border-radius:4px;margin-bottom:10px;align-self:flex-start; }
  .tps-race-label { font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px; }
  .tps-name { font-size:28px;font-weight:900;font-family:'DM Serif Display',serif;color:var(--text);line-height:1.1;margin-bottom:8px; }
  .tps-liner { font-size:15px;color:var(--muted);line-height:1.5;flex:1;margin-bottom:16px; }
  .tps-donate-btn { display:inline-block;background:#5cb85c;color:#fff;border:none;padding:11px 28px;border-radius:7px;font-size:15px;font-weight:900;cursor:pointer;letter-spacing:.04em;text-transform:uppercase;font-family:'Inter',sans-serif;transition:background .15s;align-self:flex-start; }
  .tps-donate-btn:hover { background:#4a9f4a; }
  .tps-skeleton { background:#e8e4de;border-radius:10px;height:220px;animation:tpsSkel 1.4s ease-in-out infinite alternate; }
  @keyframes tpsSkel { from{opacity:.4}to{opacity:.9} }

  /* FAB removed */

  /* ── ROTD Stat Panels ── */
  .rotd-stat-panel {
    width: 130px; flex-shrink: 0;
    background: #0f1f3d;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 32px; padding: 32px 12px;
    overflow: hidden;
  }
  .rotd-stat-item { text-align: center; width: 100%; }
  .rotd-stat-label {
    font-size: 11px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,0.5);
    margin-bottom: 8px; font-family: 'Inter', sans-serif;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rotd-stat-val {
    font-size: 15px; font-weight: 900; color: #fff;
    font-family: 'DM Serif Display', serif; line-height: 1.1;
    word-break: break-word; hyphens: auto;
  }
  .rotd-stat-val.green { color: #5cb85c; }
  .rotd-stat-val.amber { color: #5cb85c; }

  /* ── Race of the Day ── */
  .rotd-section {
    background: var(--gray-lt);
    border-bottom: 1px solid #222;
    padding: 0;
    display: none; /* shown by JS */
  }
  .rotd-inner {
    display: flex;
    min-height: 320px;
    background: #0f1f3d;
  }
  .rotd-photo-col {
    width: 340px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #ddd;
  }
  .rotd-photo-col img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
    display: block;
  }
  /* rotd-photo-overlay removed — stat panels flank photo */
  .rotd-content {
    flex: 1; padding: 40px 48px 40px 40px; background: var(--gray-lt);
    display: flex; flex-direction: column; justify-content: center;
  }
  .rotd-eyebrow {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
  }
  @keyframes rotdSparkle {
    0%,100% { box-shadow: 0 0 0 0 rgba(92,184,92,0), 0 4px 20px rgba(92,184,92,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(92,184,92,0), 0 4px 28px rgba(92,184,92,0.7); }
  }
  .rotd-day-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #3d8b3d 0%, #5cb85c 50%, #3d8b3d 100%);
    background-size: 200% auto;
    color: #fff;
    font-size: 14px; font-weight: 900; letter-spacing: .12em;
    text-transform: uppercase; padding: 8px 18px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.3);
    animation: rotdSparkle 2s ease-in-out 1;
    font-family: 'Inter', sans-serif;
  }
  .rotd-endorsed-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg,#5cb85c,#4a9f4a); color:#fff;
    font-size: 14px; font-weight: 900; letter-spacing: .1em;
    text-transform: uppercase; padding: 7px 16px; border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.25);
    font-family: 'Inter', sans-serif;
  }
  .rotd-race-label {
    font-size: 14px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  }
  .rotd-name {
    font-family: 'DM Serif Display', serif;
    font-size: 46px; font-weight: 900; color: var(--text);
    line-height: 1.1; margin-bottom: 14px;
    letter-spacing: -.01em;
  }
  .rotd-liner {
    font-size: 17px; color: var(--gray); line-height: 1.55;
    max-width: 540px; margin-bottom: 28px;
  }
  .rotd-meta {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 28px; flex-wrap: wrap;
  }
  .rotd-meta-item {
    display: flex; flex-direction: column; gap: 3px;
  }
  .rotd-meta-label {
    font-size: 10px; color: var(--muted); text-transform: uppercase;
    letter-spacing: .1em; font-weight: 700;
  }
  .rotd-meta-val {
    font-size: 15px; font-weight: 900; color: var(--text);
    font-family: 'DM Serif Display', serif; line-height: 1;
  }
  .rotd-meta-val.green { color: #4ade80; }
  .rotd-meta-val.amber { color: #5cb85c; }
  .rotd-actions {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .rotd-donate-btn {
    background: #5cb85c; color: #fff; border: none;
    padding: 14px 32px; border-radius: 7px;
    font-size: 14px; font-weight: 900; cursor: pointer;
    letter-spacing: .05em; text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: background .15s, transform .1s;
  }
  .rotd-donate-btn:hover { background: #4a9f4a; transform: translateY(-1px); }
  .rotd-explore-btn {
    background: none; color: var(--muted); border: 1px solid var(--border);
    padding: 13px 24px; border-radius: 7px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    letter-spacing: .04em; text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s, color .15s;
  }
  .rotd-explore-btn:hover { border-color: var(--red); color: var(--red); }
  @media (max-width: 768px) {
    .rotd-inner { flex-direction: column; }
    .rotd-photo-col { width: 100%; height: 220px; }
    .rotd-photo-overlay { background: linear-gradient(to bottom, transparent 60%, var(--gray-lt) 100%); }
    .rotd-content { padding: 24px 20px 28px; }
    .rotd-name { font-size: 30px; }
    .rotd-liner { font-size: 15px; }
  }

  /* ── Stat cards ── */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 36px 40px;
    background: var(--white);
    border-bottom: 3px solid var(--red);
  }
  .stat-card {
    background: var(--gray-lt);
    border-radius: 10px;
    padding: 28px 28px 24px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
  }
  .stat-card .label {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
  }
  .stat-card .value {
    font-size: 44px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    font-family: 'DM Serif Display', Georgia, serif;
    letter-spacing: -.02em;
    word-break: normal;
  }
  .stat-card:first-child {
    position: relative;
  }
  .stat-card:first-child .value {
    color: var(--red);
    font-size: 54px;
  }
  .stat-card .sub {
    font-size: 15px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.4;
  }
  .stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
  }

  /* ── Section layout ── */
  .section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 32px;
  }

  .section-title {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .section-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.65;
    font-family: 'Inter', sans-serif;
  }

  /* ── Divider ── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 32px;
  }

  /* ── Tables ── */
  .table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
  }
  thead th {
    background: var(--gray-lt);
    padding: 11px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  thead th:hover { background: #EBEBEB; }
  thead th.sorted { color: var(--text); }
  thead th .sort-icon { margin-left: 4px; opacity: 0.5; }
  thead th.sorted .sort-icon { opacity: 1; }
  tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
  }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: #FAFAFA; }
  tbody td { padding: 12px 16px; vertical-align: middle; }
  .vendor-name { font-weight: 600; color: var(--text); }
  .type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .type-MEDIA     { background: #FDE8D8; color: #8B3A0F; }
  .type-DIGITAL   { background: #E8EEF9; color: #1A4A8A; }
  .type-MAIL      { background: #E8F5E9; color: #1B5E20; }
  .type-POLLING   { background: #F3E8FA; color: #6A1B9A; }
  .type-CANVASSING{ background: #E0F7FA; color: #006064; }
  .type-STRATEGY  { background: #FFF8E1; color: #E65100; }
  .type-PLATFORM  { background: #ECEFF1; color: #37474F; }
  .money { font-weight: 700; font-variant-numeric: tabular-nums; }
  .money-red  { color: var(--red); }
  .money-gray { color: var(--gray); }
  .pct-cell { font-weight: 700; }
  .pct-high { color: var(--red); }
  .pct-mid  { color: var(--amber); }
  .pct-low  { color: var(--green); }
  .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    background: var(--red-bg);
    color: var(--red);
    margin-right: 8px;
  }

  /* ── Bar chart section ── */
  .bar-list { display: flex; flex-direction: column; gap: 10px; }
  .bar-row {
    display: grid;
    grid-template-columns: 220px 1fr 60px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }
  .bar-name { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-track {
    background: var(--gray-lt);
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  }
  .bar-fill.danger { background: var(--red); }
  .bar-fill.warning { background: #E07B00; }
  .bar-pct { font-weight: 700; font-size: 14px; text-align: right; }

  /* ── Platform cards ── */
  .platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .platform-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow);
  }
  .platform-card.accent { border-color: var(--red-lt); }
  .platform-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .platform-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .platform-row:last-child { border-bottom: none; }
  .platform-row .plabel { color: var(--muted); }
  .platform-row .pval { font-weight: 700; }
  .warning-box {
    background: var(--red-bg);
    border: 1px solid var(--red-lt);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--red);
    margin-top: 14px;
    line-height: 1.5;
  }

  /* Endorsement warning block */
  .scard-warning {
    margin: 12px 18px;
    background: #fff8e8;
    border: 2px solid #c8a84b;
    border-radius: 8px;
    padding: 14px 16px;
  }
  .scard-warning-title {
    font-weight: 800;
    font-size: 14px;
    color: #7a5a00;
    margin-bottom: 8px;
    letter-spacing: .02em;
  }
  .scard-warning-text {
    font-size: 14px;
    color: #5a4010;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .scard-warning-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .scard-warning-switch {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    width: 100%;
  }
  .scard-warning-switch:hover { background: #0f2540; }
  .scard-warning-continue {
    background: transparent;
    color: #9a7a30;
    border: 1px solid #c8a84b;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
  }
  .scard-warning-continue:hover { background: #f5edd8; }

  /* ── Race cards ── */
  .race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .race-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--red);
  }
  .race-card .rc-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .race-card .rc-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .rc-pvi {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
  }
  .rc-class {
    display: inline-block;
    background: #3d3d3d;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .race-card .rc-spend {
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    margin-top: 10px;
  }
  .race-card .rc-spend-label {
    font-size: 14px;
    color: var(--muted);
  }

  /* ── Methodology ── */
  .method-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
  }
  .method-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    margin-top: 20px;
  }
  .method-box h3:first-child { margin-top: 0; }

  /* ── Glass Box Page ── */
  .gb-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0f1f3d 60%, #1a3a6e 100%);
    border-bottom: 4px solid #5cb85c;
    padding: 56px 32px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .gb-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
      0deg, transparent, transparent 40px,
      rgba(92,184,92,0.03) 40px, rgba(92,184,92,0.03) 41px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 40px,
      rgba(92,184,92,0.03) 40px, rgba(92,184,92,0.03) 41px
    );
    pointer-events: none;
  }
  .gb-hero-eyebrow {
    font-size: 14px; font-weight: 700; letter-spacing: .14em;
    color: #5cb85c; text-transform: uppercase; margin-bottom: 16px;
    position: relative;
  }
  .gb-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900; color: #fff;
    line-height: 1.1; margin-bottom: 16px;
    position: relative;
  }
  .gb-hero h1 em { color: #5cb85c; font-style: normal; }
  .gb-hero p {
    font-size: clamp(15px, 2vw, 19px);
    color: #7a9cc4; max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.65; position: relative;
  }
  .gb-dare {
    display: inline-block;
    border: 1px solid rgba(92,184,92,0.4);
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px; font-weight: 700;
    color: #5cb85c; letter-spacing: .03em;
    position: relative;
  }
  .gb-body { max-width: 960px; margin: 0 auto; padding: 48px 24px 80px; }

  /* Counter grid */
  .gb-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 48px;
  }
  .gb-counter-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
  }
  .gb-counter-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: #5cb85c;
  }
  .gb-counter-card.red::after { background: #c0392b; }
  .gb-counter-card.gold::after { background: #c8a415; }
  .gb-counter-label {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #888; margin-bottom: 10px;
  }
  .gb-counter-value {
    font-size: 36px; font-weight: 900;
    color: #0f1f3d; line-height: 1;
    margin-bottom: 6px; font-variant-numeric: tabular-nums;
  }
  .gb-counter-value.green { color: #2d7a2d; }
  .gb-counter-value.red { color: #c0392b; }
  .gb-counter-value.gold { color: #c8a415; }
  .gb-counter-sub { font-size: 14px; color: #888; line-height: 1.4; }
  .gb-coming-soon {
    display: inline-block;
    background: #f0f0f0; color: #888;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    letter-spacing: .06em; text-transform: uppercase;
    margin-top: 6px;
  }

  /* Section */
  .gb-section { margin-bottom: 48px; }
  .gb-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 14px; font-weight: 700;
    color: #0f1f3d; margin-bottom: 6px;
  }
  .gb-section-sub { font-size: 14px; color: #888; margin-bottom: 20px; }

  /* Audit rows */
  .gb-audit-table {
    width: 100%; border-collapse: collapse;
    font-size: 15px;
  }
  .gb-audit-table th {
    background: #0f1f3d; color: #fff;
    font-size: 14px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 10px 16px; text-align: left;
  }
  .gb-audit-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #3d3d3d; vertical-align: middle;
  }
  .gb-audit-table tr:nth-child(even) td { background: #fafafa; }
  .gb-audit-table .gb-status-live {
    display: inline-block;
    background: #edf7ed; color: #2d7a2d;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    letter-spacing: .04em;
  }
  .gb-audit-table .gb-status-soon {
    display: inline-block;
    background: #f0f0f0; color: #888;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
  }

  /* Pledge block */
  .gb-pledge {
    background: #0f1f3d;
    border-radius: 14px;
    padding: 36px 32px;
    border-top: 4px solid #5cb85c;
    margin-bottom: 48px;
  }
  .gb-pledge h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 14px; color: #fff;
    margin-bottom: 16px; font-weight: 700;
  }
  .gb-pledge-items { list-style: none; padding: 0; margin: 0; }
  .gb-pledge-items li {
    color: #aabbd4; font-size: 14px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: flex-start; gap: 10px;
  }
  .gb-pledge-items li:last-child { border-bottom: none; }
  .gb-pledge-items li::before { content: '✓'; color: #5cb85c; font-weight: 900; flex-shrink: 0; margin-top: 1px; }

  /* Export block */
  .gb-export {
    background: #f4f7ff;
    border: 1px solid #d0d8f0;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex; align-items: center;
    gap: 24px; flex-wrap: wrap;
  }
  .gb-export-text { flex: 1; min-width: 200px; }
  .gb-export-text h4 { font-size: 14px; font-weight: 700; color: #0f1f3d; margin-bottom: 6px; }
  .gb-export-text p { font-size: 14px; color: #666; }
  .gb-export-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  .gb-export-btn {
    padding: 10px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; border: 2px solid #0f1f3d;
    font-family: 'Inter', sans-serif;
    background: transparent; color: #0f1f3d;
    transition: all .15s;
  }
  .gb-export-btn:hover { background: #0f1f3d; color: #fff; }

  @media(max-width:600px){
    .gb-hero { padding: 40px 20px 32px; }
    .gb-body { padding: 32px 16px 60px; }
    .gb-export { flex-direction: column; }
  }

  /* ── Footer ── */
  footer {
    background: var(--text);
    color: #AAA;
    text-align: center;
    padding: 28px 32px;
    font-size: 14px;
    margin-top: 60px;
  }
  footer strong { color: white; }

  /* ── Sort controls ── */
  .table-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .filter-btn {
    font-size: 14px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    color: var(--muted);
    transition: all 0.15s;
  }
  .filter-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
  }
  .filter-btn:hover:not(.active) { background: var(--gray-lt); }

  @media (max-width: 900px) {
    .hero-race-card { display: none !important; }
    .hero-panel-right { display: none !important; }
    .hero-panel { display: none !important; }
    .tps-cards { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    header { padding: 0 10px; min-height: 52px; overflow: visible; flex-direction: row; align-items: center; }
    .header-nav-row { height: 52px; gap: 4px; flex: 1; }
    .logo img { height: 36px; }
    .nav-picks-btn { padding: 5px 9px; font-size: 11px; margin-left: 4px; }
    .nav-tab-btn { font-size: 11px; margin-left: 4px; padding: 0 2px; height: 52px; white-space: nowrap; }
    .tab-label { display: inline; font-size: 11px; }
    .tab-icon { font-size: 14px; }
    .nav-campaigns-btn { padding: 5px 8px; font-size: 11px; margin-left: 4px; }
    .header-search-row { display: none !important; height: 0 !important; padding: 0 !important; overflow: hidden !important; }
  }
  @media (max-width: 768px) {
    .stats-row { grid-template-columns: 1fr 1fr; padding: 20px 16px; gap: 14px; }
    .stat-card .value { font-size: 15px; }
    .stat-card:first-child .value { font-size: 32px; }
    .stat-card .label { font-size: 11px; }
    .stat-card .sub { font-size: 14px; }
    .platform-grid { grid-template-columns: 1fr; }
    .hero { padding: 20px 16px 20px; flex-direction: column; gap: 16px; }
    .hero-left { max-width: 100%; }
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 14px; }
    .section { padding: 28px 16px; }
    .bar-row { grid-template-columns: 120px 1fr 44px; font-size: 14px; }
    .top-picks-strip { padding: 20px 16px 24px; }
    .tps-cards { grid-template-columns: 1fr; }

    .sticky-donate-bar { padding: 10px 16px; }
    .header-search-row { padding: 0 0 8px; }
    .header-search-row #globalSearchInput { font-size: 15px; padding: 9px 42px 9px 14px; }
  }



  /* ── Smart Donor: overlay + slide-up panel ── */
  .sd-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  }
  .sd-overlay.open { display: block; }
  .sd-panel {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 301;
    background: #faf8f4; border-top: 3px solid #5cb85c;
    border-radius: 16px 16px 0 0; max-height: 88vh; overflow-y: auto;
    transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    padding-bottom: 80px;
  }
  .sd-panel.open { transform: translateY(0); }

  /* Desktop: centered modal */
  @media (min-width: 900px) {
    .scard-photo-wrap { height: 220px; }
    .scard-stat-side { width: 80px; gap: 16px; padding: 12px 8px; }
    .scard-stat-lbl { font-size: 11px; letter-spacing: .14em; text-align: center; }
    .scard-stat-val { font-size: 15px; text-align: center; }
    .sd-panel {
      top: 50%; left: 50%; bottom: auto; right: auto;
      transform: translate(-50%, -40%);
      width: 92vw; max-width: 1200px;
      max-height: 88vh;
      border-radius: 18px;
      border-top: none;
      border: 3px solid #5cb85c;
      box-shadow: 0 24px 80px rgba(0,0,0,0.4);
      padding-bottom: 32px;
      opacity: 0; pointer-events: none;
      transition: transform 0.3s cubic-bezier(0.32,0.72,0,1), opacity 0.3s ease;
    }
    .sd-panel.open {
      transform: translate(-50%, -50%);
      opacity: 1; pointer-events: all;
    }
    .sd-handle { display: none; }
    .sd-cards-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px;
      padding-bottom: 16px;
      align-items: start;
    }
.sd-cards-grid > * { min-width: 0; width: 100%; box-sizing: border-box; }

@media(max-width:660px) {
  .sd-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}
    .scard { margin-bottom: 0; }
    .sd-body { padding: 20px 32px 0; }
    .sd-panel-header { padding: 20px 32px 16px; }
    .sd-panel-title { font-size: 15px; }

    /* ── Right-rail layout ── */
    .sd-body-layout {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 0;
      align-items: start;
      height: calc(88vh - 130px);
    }
    .sd-main-col {
      overflow-y: auto;
      height: 100%;
      padding-bottom: 32px;
    }
    .sd-rail {
      display: flex !important;
      flex-direction: column;
      height: 100%;
      overflow-y: auto;
      border-left: 2px solid #e8d9b0;
      background: #fdf9f2;
    }
    .sd-body { padding: 0; }
  }
  .sd-handle { text-align: center; padding: 12px 0 0; cursor: pointer; }
  .sd-handle-bar { width: 40px; height: 4px; background: #c8a84b; border-radius: 2px; display: inline-block; }
  .sd-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px 14px; border-bottom: 2px solid #e8d9b0;
    background: #fff;
  }
  .sd-panel-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 15px; color: #1a1208; font-weight: 700; }
  .sd-panel-title em { font-style: italic; color: #c0392b; }
  .sd-close { background: none; border: none; color: #9a8870; font-size: 15px; cursor: pointer; padding: 4px 8px; line-height: 1; }
  .sd-close:hover { color: #1a1208; }
  /* Search area — visually separated, prominent */
  .sd-search-section {
    background: #1a3a5c; padding: 20px 24px; margin-bottom: 24px;
  }
  .sd-search-label {
    font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: #c8a84b; margin-bottom: 10px; font-family: 'Inter', sans-serif;
  }
  .sd-body { padding: 0; }
  .sd-body-inner { padding: 0 24px 0; }
  .sd-search-wrap { position: relative; }
  .sd-search-box {
    width: 100%; background: #fff; border: 3px solid #c8a84b;
    border-radius: 10px; padding: 16px 52px 16px 20px; font-size: 14px;
    color: #1a1208; outline: none; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s; box-sizing: border-box; font-weight: 600;
  }
  .sd-search-box::placeholder { color: #9a8870; font-weight: 400; }
  .sd-search-box:focus { border-color: #e8c840; box-shadow: 0 0 0 3px rgba(200,168,75,0.2); }
  .sd-search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #9a8870; pointer-events: none; }
  .sd-sec-title {
    font-family: 'DM Serif Display', Georgia, serif; font-size: 14px; font-weight: 700; color: #1a1208;
    margin: 24px 24px 12px; padding-bottom: 10px; border-bottom: 2px solid #e8d9b0;
  }
  /* ── Color-coded section headers ── */
  .sec-hdr {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 24px 16px;
    margin: 0 0 0 0;
    border-left: 6px solid;
  }
  .sec-hdr-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 14px; font-weight: 900; line-height: 1.1;
  }
  .sec-hdr-sub {
    font-size: 14px; margin-top: 3px; opacity: 0.8;
    font-family: 'Inter', sans-serif;
  }
  /* ROTD — Gold */
  .sec-hdr-rotd { background: #1a1200; border-color: #e8c840; color: #e8c840; }
  .sec-hdr-rotd .sec-hdr-sub { color: rgba(232,200,64,0.7); }
  /* Top Picks — Navy */
  .sec-hdr-top { background: #0f1f3d; border-color: #5cb85c; color: #fff; }
  .sec-hdr-top .sec-hdr-sub { color: rgba(255,255,255,0.65); }
  /* High Profile — Crimson */
  .sec-hdr-high { background: #6b1a1a; border-color: #e8c840; color: #fff; }
  .sec-hdr-high .sec-hdr-sub { color: rgba(255,255,255,0.7); }
  /* Regular — Cream/charcoal */
  .sec-hdr-reg { background: #f5f0e8; border-color: #3d3d3d; color: #1a1208; }
  .sec-hdr-reg .sec-hdr-sub { color: #6a5a40; }
  /* Race card outer wrapper */
  .race-card-wrap {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 0;
    border: 1px solid #e0d8c8;
  }
  .race-card-wrap.wrap-high { border-top: 4px solid #6b1a1a; }
  .race-card-wrap.wrap-top  { border-top: 4px solid #0f1f3d; }
  .race-card-wrap.wrap-reg  { border-top: 4px solid #3d3d3d; }
  .sd-cards { display: flex; flex-direction: column; gap: 8px; }
  .sd-cards-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px; padding: 0; align-items: start; }
  @media(max-width:660px) { .sd-cards-grid { grid-template-columns: 1fr !important; gap: 12px !important; } }
  .sd-card {
    background: #fff; border: 1px solid #e0d8c8; border-radius: 8px;
    padding: 12px 14px; cursor: pointer; transition: border-color 0.15s;
  }
  .sd-card:hover { border-color: #6366f1; }
  .sd-card.green { border-left: 3px solid #22c55e; }
  .sd-card.yellow { border-left: 3px solid #f59e0b; }
  .sd-card.red { border-left: 3px solid #ef4444; opacity: 0.6; }
  .sd-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
  .sd-card-label { font-size: 14px; font-weight: 500; color: #1a1208; }
  .sd-card-meta { font-size: 14px; color: #6a5a40; font-family: monospace; margin-top: 2px; }
  .sd-card-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .sd-impact-val { font-family: monospace; font-size: 14px; font-weight: 500; }
  .sd-impact-lbl { font-size: 11px; color: #9a8870; text-transform: uppercase; letter-spacing: 0.1em; }
  .sd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .sd-dot.GREEN { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
  .sd-dot.YELLOW { background: #f59e0b; }
  .sd-dot.RED { background: #ef4444; }
  .sd-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .sd-bar-bg { flex: 1; height: 4px; background: #e0d8c8; border-radius: 2px; overflow: hidden; }
  .sd-bar-fill { height: 100%; border-radius: 2px; }
  .sd-bar-fill.GREEN { background: linear-gradient(90deg,#16a34a,#22c55e); }
  .sd-bar-fill.YELLOW { background: linear-gradient(90deg,#d97706,#f59e0b); }
  .sd-bar-fill.RED { background: linear-gradient(90deg,#b91c1c,#ef4444); }
  .sd-bar-pct { font-family: monospace; font-size: 11px; color: #6a5a40; white-space: nowrap; min-width: 36px; text-align: right; }
  .sd-btn-donate {
    display: inline-flex; align-items: center; gap: 5px;
    background: #22c55e; color: #0e0f12; font-family: monospace;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 6px; border: none; cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
  }
  .sd-btn-donate:hover { background: #16a34a; }
  .sd-btn-donate.yellow { background: #f59e0b; }
  .sd-btn-donate.yellow:hover { background: #d97706; }
  .sd-btn-donate.disabled { background: #1e2028; color: #555c7a; border: 1px solid #2a2d38; pointer-events: none; opacity: 0.5; }
  .sd-loading { color: #9a8870; font-size: 14px; font-family: "Inter",sans-serif; padding: 12px 0; }

  /* ── Smart Donor Card v3 — Conversion-Optimized ── */
  @keyframes goldPulse {
    0%,100%{box-shadow:0 0 0 0 rgba(200,168,75,0.6);}
    50%{box-shadow:0 0 0 10px rgba(200,168,75,0);}
  }
  @keyframes urgentBlink { 0%,100%{opacity:1;} 50%{opacity:0.45;} }
  @keyframes shimmer {
    0%{background-position:200% center;}
    100%{background-position:-200% center;}
  }
  .sdc {
    background:#13151a;border:1px solid #2a2d38;border-radius:12px;
    padding:16px;margin-bottom:10px;transition:transform 0.18s,box-shadow 0.18s,border-color 0.18s;
  }
  .sdc:hover { transform:translateY(-2px);box-shadow:0 10px 36px rgba(0,0,0,0.5); }
  .sdc.sdc-endorsed {
    border-color:rgba(200,168,75,0.6);
    background:linear-gradient(140deg,#14120a 0%,#13151a 60%);
    animation:goldPulse 3s ease-in-out 1;
  }
  .sdc-badge-row { display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap; }
  .sdc-endorsed-badge {
    display:inline-flex;align-items:center;gap:4px;
    background:linear-gradient(90deg,#c8a84b,#f0d060,#c8a84b);
    background-size:200% auto;
    animation:shimmer 3s linear 1;
    color:#0a0a0a;font-size:11px;font-weight:900;letter-spacing:.12em;
    text-transform:uppercase;padding:4px 10px;border-radius:5px;white-space:nowrap;
  }
  .sdc-endorsed-badge::before { content:'★ '; }
  .sdc-urgent {
    display:inline-flex;align-items:center;gap:4px;
    color:#ff6b6b;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
    animation:urgentBlink 1.8s ease-in-out 1;
  }
  .sdc-urgent::before { content:'● ';font-size:11px; }
  .sdc-top { display:flex;align-items:flex-start;gap:12px;margin-bottom:10px; }
  .sdc-photo {
    width:56px;height:56px;border-radius:50%;object-fit:cover;flex-shrink:0;
    border:2px solid rgba(200,168,75,0.5);background:#1e2028;
  }
  .bcard-photo-img {
    width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;
  }
  .sdc-photo-placeholder {
    width:56px;height:56px;border-radius:50%;flex-shrink:0;
    background:#1e2028;border:2px solid #2a2d38;
    display:flex;align-items:center;justify-content:center;
    font-size:15px;color:#555c7a;
  }
  .sdc-info { flex:1;min-width:0; }
  .sdc-candidate { font-size:15px;font-weight:800;color:#ffffff;line-height:1.2;margin-bottom:3px; }
  .sdc-race { font-size:13px;color:#9aa0b8;margin-bottom:6px; }
  .sdc-pitch { font-size:15px;color:#e8c84b;line-height:1.5;margin-bottom:10px;font-style:italic; }
  .sdc-pills { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px; }
  .sdc-pill {
    font-size:12px;font-family:monospace;padding:4px 10px;border-radius:4px;
    background:#1e2028;border:1px solid #2a2d38;color:#aab0c8;white-space:nowrap;
  }
  .sdc-pill.green { background:rgba(34,197,94,0.1);border-color:rgba(34,197,94,0.3);color:#22c55e; }
  .sdc-pill.yellow { background:rgba(245,158,11,0.1);border-color:rgba(245,158,11,0.3);color:#f59e0b; }
  .sdc-pill.gold { background:rgba(200,168,75,0.12);border-color:rgba(200,168,75,0.35);color:#c8a84b; }
  .sdc-polling {
    background:#0f1014;border:1px solid #1e2028;border-radius:7px;
    padding:8px 12px;margin-bottom:10px;display:flex;align-items:center;gap:10px;
  }
  .sdc-polling-label { font-size:11px;font-family:monospace;color:#7a80a0;text-transform:uppercase;letter-spacing:.1em;white-space:nowrap; }
  .sdc-polling-bar-wrap { flex:1;height:8px;background:#1e2028;border-radius:4px;overflow:hidden;position:relative; }
  .sdc-polling-d { height:100%;border-radius:4px 0 0 4px;background:linear-gradient(90deg,#1d4ed8,#3b82f6);display:inline-block;float:left; }
  .sdc-polling-r { height:100%;border-radius:0 4px 4px 0;background:linear-gradient(90deg,#dc2626,#ef4444);display:inline-block;float:left; }
  .sdc-polling-nums { font-size:12px;font-family:monospace;color:#aab0c8;white-space:nowrap; }
  .sdc-donate-btn {
    width:100%;padding:11px;border:none;border-radius:8px;
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:#0a0a0a;font-size:16px;font-weight:900;letter-spacing:.05em;
    cursor:pointer;transition:opacity 0.15s,transform 0.1s;
    display:flex;align-items:center;justify-content:center;gap:8px;
  }
  .sdc-donate-btn:hover { opacity:0.9;transform:translateY(-1px); }
  .sdc-donate-btn.yellow-btn { background:linear-gradient(135deg,#d97706,#f59e0b); }
  .sdc-actblue-note { font-size:12px;color:#7a80a0;text-align:center;margin-top:6px;font-family:monospace; }
  .sdc-actblue-note span { color:#4ade80;font-weight:700; }

  /* ── Smart Donor Cards — Editorial Luxury ── */

  @keyframes goldShimmer {
    0%{background-position:200% center;}
    100%{background-position:-200% center;}
  }
  @keyframes urgentPulse {
    0%,100%{opacity:1;} 50%{opacity:0.6;}
  }
  @keyframes cardIn {
    from{opacity:0;transform:translateY(16px);}
    to{opacity:1;transform:translateY(0);}
  }

  .scard {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
    transition: none;
    animation: cardIn 0.4s ease both;
  }
  .scard:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  .scard.scard-hot {
    box-shadow: 0 4px 24px rgba(180,140,40,0.18), 0 1px 4px rgba(0,0,0,0.08);
  }
  .scard.scard-hot:hover {
    box-shadow: 0 10px 40px rgba(180,140,40,0.28), 0 2px 8px rgba(0,0,0,0.1);
  }

  /* Photo — full width, tall */
  /* scard photo — ROTD-style: stat panels flank center photo */
  .scard-photo-wrap {
    display: flex;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f1f3d;
  }
  .scard-stat-side {
    width: 80px; flex-shrink: 0;
    background: #0f1f3d;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px; padding: 12px 8px;
    overflow: hidden;
  }
  .scard-stat-item { text-align: center; width: 100%; }
  .scard-stat-lbl {
    font-size: 10px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: rgba(255,255,255,0.55);
    margin-bottom: 8px; font-family: 'Inter', sans-serif;
  }
  .scard-stat-val {
    font-size: 15px; font-weight: 900; color: #fff;
    font-family: 'DM Serif Display', serif; line-height: 1.1;
    word-break: break-word;
  }
  .scard-stat-val.green { color: #5cb85c; }
  .scard-stat-val.impact-high   { color: #e63946; }
  .scard-stat-val.impact-medium { color: #f4c430; }
  .scard-stat-val.impact-low    { color: #76c893; }
  .scard-photo-center {
    flex: 1; position: relative; overflow: hidden; background: #ccc;
  }
  .scard-photo {
    width: 100%; height: 100%; object-fit: contain; object-position: center center;
    display: block; background: #0f1f3d;
  }
  .scard-photo-ph {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(160deg, #1a2e1a 0%, #2a3a2a 100%);
    position: relative;
  }
  .scard-photo-ph::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(92,184,92,0.05) 0px, rgba(92,184,92,0.05) 1px, transparent 1px, transparent 12px);
  }
  /* Name overlay at bottom of photo */
  .scard-photo-name {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 14px; font-weight: 900; color: #3d3d3d;
    line-height: 1.2; padding: 12px 16px 2px;
  }
  .scard-photo-race {
    display: block;
    font-size: 14px; color: #5a5a5a; font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 0 18px 6px;
  }

  /* ── TOP TEN FLAG ── */
  .scard-top10-banner {
    background: #0f1f3d;
    color: #5cb85c;
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 900;
    letter-spacing: .12em; text-transform: uppercase;
    text-align: center;
    padding: 11px 18px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border-bottom: 2px solid #5cb85c;
  }
  .scard-top10-banner::before,
  .scard-top10-banner::after { content: '▲'; font-size: 11px; opacity: 0.7; }

  /* ── ENDORSED FLAG ── */
  @keyframes endorseShimmer {
    0%,100% { background-position: 0% center; }
    50%     { background-position: 100% center; }
  }
  .scard-endorse-banner {
    background: linear-gradient(90deg, #3d8b3d, #5cb85c, #7dd87d, #5cb85c, #3d8b3d);
    background-size: 300% auto;
    color: #fff;
    font-family: 'Inter', Georgia, sans-serif;
    font-size: 15px; font-weight: 900;
    letter-spacing: .1em; text-transform: uppercase;
    text-align: center;
    padding: 11px 18px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    animation: endorseShimmer 3s ease-in-out 1;
  }
  .scard-endorse-banner::before,
  .scard-endorse-banner::after { content: '★'; font-size: 14px; opacity: 0.9; }

  /* Badge row — keep for spacing but simplified */
  .scard-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px 0; gap: 8px; flex-wrap: wrap;
  }
  .scard-badge-endorse { display: none; } /* replaced by full-width banner above */
  .scard-urgency { display: none; } /* removed */

  /* Pitch — larger, more prominent */
  .scard-pitch {
    font-size: 15px; color: #3d3d3d; font-style: italic;
    line-height: 1.5; margin-bottom: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 500; border-left: 3px solid #5cb85c;
    padding-left: 12px;
  }

  /* Why bullets */
  .scard-why {
    background: #f0f9f0;
    border: 1px solid #c3e6c3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
  }
  .scard-why-label {
    font-size: 14px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: #9a7820;
    margin-bottom: 10px; font-family: 'Inter', sans-serif;
  }
  .scard-why-item {
    font-size: 14px; color: #2a2010; padding: 4px 0 4px 20px;
    position: relative; line-height: 1.5;
    font-family: 'Inter', sans-serif;
  }
  .scard-why-item::before {
    content: '●'; position: absolute; left: 0;
    color: #c8a84b; font-size: 11px; top: 9px;
  }

  /* Primary selector */
  .scard-select {
    width: 100%; background: #fff; border: 2px solid #f59e0b;
    color: #1a1208; padding: 6px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 14px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
  }

  /* Polling */
  .scard-poll { margin-bottom: 16px; }
  .scard-poll-label {
    font-size: 10px; color: #9a8870; letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
  }
  .scard-poll-bar {
    height: 10px; background: #f0ebe0; border-radius: 5px;
    overflow: hidden; margin-bottom: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    display: flex; width: 100%; max-width: 100%;
  }
  .scard-poll-bar div { flex-shrink: 0; }
  .scard-poll-nums {
    display: flex; justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600;
  }

  /* ── VoteROI Impact Meter ── */
  .vroi-meter {
    margin-bottom: 16px; padding: 16px 18px;
    background: #1a1208; border-radius: 10px; color: #fff;
  }
  .vroi-meter-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  }
  .vroi-meter-title {
    font-size: 11px; font-weight: 800; letter-spacing: .18em;
    text-transform: uppercase; color: #c8a84b; font-family: 'Inter', sans-serif;
  }
  .vroi-meter-info {
    background: none; border: 1px solid #444; color: #888;
    border-radius: 50%; width: 20px; height: 20px; font-size: 11px;
    cursor: pointer; line-height: 18px; text-align: center; flex-shrink: 0;
  }
  .vroi-meter-info:hover { border-color: #5cb85c; color: #5cb85c; }
  .vroi-bar-track {
    position: relative; height: 40px; background: #2a2010;
    border-radius: 6px; overflow: hidden; border: 1px solid #3a3020; margin-bottom: 6px;
  }
  .vroi-bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
  }
  .vroi-bar-pct {
    font-size: 15px; font-weight: 900; color: rgba(255,255,255,0.95);
    font-family: 'Inter', sans-serif; white-space: nowrap;
  }
  .vroi-ticks {
    display: flex; justify-content: space-between; margin-bottom: 12px; padding: 0 2px;
  }
  .vroi-tick { font-size: 10px; color: #555; font-family: monospace; }
  .vroi-verdict {
    display: flex; align-items: center; gap: 12px;
  }
  .vroi-verdict-score {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 44px; font-weight: 900; line-height: 1; flex-shrink: 0;
  }
  .vroi-verdict-right { flex: 1; }
  .vroi-verdict-label {
    font-size: 20px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; line-height: 1.2; margin-bottom: 4px;
  }
  .vroi-verdict-sub {
    font-size: 14px; color: #9a8870; line-height: 1.4;
  }
  .vroi-detail {
    display: none; font-size: 14px; color: #7a6a50; line-height: 1.5;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #333;
  }

  /* Button */
  .scard-btn {
    display: block; width: calc(100% - 36px);
    margin: 0 18px 10px;
    padding: 8px 16px;
    border: none; border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 17px; font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 3px 14px rgba(37,99,235,0.45);
  }
  .scard-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,99,235,0.55);
  }

  /* Divider line */
  .scard-divider {
    height: 1px; background: #f0ebe0; margin: 0 18px;
  }

  /* ActBlue savings */
  .scard-save {
    text-align: center; padding: 12px 18px 18px;
    font-size: 14px; color: #3a2800; font-weight: 600;
    font-family: 'Inter', sans-serif;
  }
  .scard-save span {
    color: #1a7a3a; font-weight: 900; font-size: 20px;
    animation: savingsFlash 1.8s ease-in-out 1;
    display: inline-block;
  }
  @keyframes savingsFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.12); }
  }


  /* ── FUNDRAISING TICKER ── */
  .ticker-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: #0e0e0e;
    border-top: 4px solid #5cb85c;
    display: flex; align-items: stretch;
    min-height: 76px;
    box-shadow: 0 -6px 40px rgba(0,0,0,0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  /* Left: live stats zone */
  .ticker-stats {
    display: flex; align-items: center;
    background: #141414;
    border-right: 1px solid #2a2a2a;
    padding: 0 28px;
    gap: 0;
    flex-shrink: 0;
  }
  .ticker-stat {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 0 24px;
    text-align: left;
  }
  .ticker-label {
    font-size: 10px; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: #777;
    margin-bottom: 5px; white-space: nowrap;
  }
  .ticker-val {
    font-size: 15px; font-weight: 900; color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
    line-height: 1;
  }
  .ticker-val.ticker-green { color: #4ade80; }
  .ticker-divider {
    width: 1px; height: 44px; background: #2a2a2a; flex-shrink: 0;
  }

  /* Right: CTA zone */
  .ticker-cta-zone {
    flex: 1; display: flex; align-items: center; justify-content: flex-end;
    gap: 18px; padding: 0 24px;
  }
  .ticker-cta-text {
    font-size: 20px; font-weight: 900; color: #fff; flex: 1;
    line-height: 1.15; letter-spacing: -.01em;
    font-family: 'DM Serif Display', serif;
  }
  .ticker-cta-btn {
    background: #5cb85c; color: white; border: none;
    padding: 12px 26px; border-radius: 6px;
    font-size: 14px; font-weight: 900; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .ticker-cta-btn:hover { background: #4a9f4a; transform: translateY(-1px); }
  .ticker-dismiss {
    color: #444; font-size: 15px; cursor: pointer; line-height: 1;
    background: none; border: none; flex-shrink: 0;
    padding: 4px 6px; transition: color 0.15s;
  }
  .ticker-dismiss:hover { color: #888; }

  /* Animate in new values */
  @keyframes tickerPop {
    0% { transform: scale(1); color: inherit; }
    30% { transform: scale(1.18); color: #f0d060; }
    100% { transform: scale(1); color: inherit; }
  }
  .ticker-val.popped { animation: tickerPop 0.6s ease-out forwards; }

  /* Mobile */
  @media (max-width: 768px) {
    .ticker-bar { min-height: 64px; }
    .ticker-stats { padding: 0 10px; }
    .ticker-stat { padding: 0 12px; align-items: center; text-align: center; }
    .ticker-val { font-size: 19px; }
    .ticker-label { font-size: 11px; }
    .ticker-cta-text { display: none; }
    .ticker-cta-zone { padding: 0 12px; gap: 10px; }
  }
  @media (max-width: 480px) {
    .ticker-bar { flex-direction: row; min-height: 58px; }
    .ticker-stats { gap: 0; }
    .ticker-divider { display: none; }
    .ticker-stat:last-child { display: none; }
  }

  body { padding-bottom: 63px; overflow-x: hidden; }


  /* ── Smart Donor filter buttons ── */
  .sd-filter-bar {
    display: flex; gap: 8px; padding: 14px 24px 0;
    flex-wrap: wrap;
  }
  .sd-filter-btn {
    font-size: 14px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 6px 14px;
    border-radius: 20px; border: 2px solid #e8d9b0;
    background: #fff; color: #6a5a40; cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s; white-space: nowrap;
  }
  .sd-filter-btn:hover { border-color: #c8a84b; color: #9a7820; }
  .sd-filter-btn.active {
    background: #1a3a5c; border-color: #1a3a5c; color: #fff;
  }
  .sd-filter-btn.active-gold {
    background: linear-gradient(90deg, #7a5c00, #c8a84b);
    border-color: #c8a84b; color: #1a0e00;
  }
  .sd-filter-btn.active-red {
    background: #8b0000; border-color: #8b0000; color: #fff;
  }



  /* ── Right rail — base (mobile hidden, desktop shown) ── */
  .sd-body-layout { display: block; }
  .sd-main-col { /* mobile: normal flow */ }
  .sd-rail { display: none; }

  .rail-section-title {
    font-size: 14px; font-weight: 900; letter-spacing: .1em;
    text-transform: uppercase; padding: 16px 16px 10px;
    background: #1a3a5c; color: #c8a84b;
  }
  .rail-pick { padding: 14px 14px 0; }
  .rail-pick-photo {
    width: 100%; height: 160px; object-fit: contain; object-position: center;
    border-radius: 10px; display: block; background: #1a1a2e;
  }
  .rail-pick-photo-ph {
    width: 100%; height: 160px; border-radius: 10px;
    background: linear-gradient(160deg, #2a3a2a, #1a2a4a, #3a1a1a);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: 900; color: #c8a84b;
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .rail-pick-banner {
    background: linear-gradient(90deg, #7a5c00, #c8a84b, #e8c840, #c8a84b, #7a5c00);
    background-size: 300% auto; animation: endorseShimmer 2.8s linear 1;
    color: #1a0e00; font-size: 10px; font-weight: 900;
    letter-spacing: .12em; text-transform: uppercase;
    text-align: center; padding: 6px 10px; margin: 8px 0 4px; border-radius: 5px;
  }
  .rail-pick-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px; font-weight: 900; color: #1a1208; line-height: 1.2; margin: 8px 0 2px;
  }
  .rail-pick-race {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #6a5a40; margin-bottom: 8px;
  }
  .rail-pick-pitch {
    font-size: 14px; color: #3a2800; font-style: italic; line-height: 1.5;
    border-left: 3px solid #c8a84b; padding-left: 10px; margin-bottom: 12px;
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .rail-pick-impact {
    display: flex; align-items: center; gap: 10px;
    background: #1a1208; border-radius: 7px; padding: 8px 12px; margin-bottom: 12px;
  }
  .rail-pick-impact-score {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px; font-weight: 900; line-height: 1; flex-shrink: 0;
  }
  .rail-pick-impact-right { flex: 1; }
  .rail-pick-impact-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .14em; line-height: 1.2; margin-bottom: 2px;
  }
  .rail-pick-impact-sub { font-size: 11px; color: #9a8870; line-height: 1.3; }
  .rail-pick-btn {
    display: block; width: 100%; padding: 13px; border: none; border-radius: 8px;
    background: #1a3a5c; color: #fff; font-size: 15px; font-weight: 800;
    cursor: pointer; margin-bottom: 6px; transition: background 0.15s, transform 0.1s;
    letter-spacing: .02em;
  }
  .rail-pick-btn:hover { background: #0f2540; transform: translateY(-1px); }
  .rail-pick-save {
    text-align: center; font-size: 11px; color: #6a5a40; margin-bottom: 14px;
  }
  .rail-pick-save span { color: #1a7a3a; font-weight: 800; }
  .rail-leaderboard { padding: 0 0 16px; }
  .rail-lb-title {
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: #9a7820; padding: 14px 16px 8px; border-top: 2px solid #e8d9b0;
  }
  .rail-lb-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    cursor: pointer; border-bottom: 1px solid #f0ebe0; transition: background 0.12s;
  }
  .rail-lb-item:hover { background: #f5f0e8; }
  .rail-lb-rank {
    font-size: 14px; font-weight: 800; color: #c8a84b; width: 18px;
    flex-shrink: 0; text-align: center; font-family: 'DM Serif Display', Georgia, serif;
  }
  .rail-lb-info { flex: 1; min-width: 0; }
  .rail-lb-name {
    font-size: 14px; font-weight: 700; color: #1a1208;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rail-lb-race { font-size: 10px; color: #9a8870; letter-spacing: .06em; text-transform: uppercase; }
  .rail-lb-score {
    font-size: 14px; font-weight: 800; flex-shrink: 0;
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .rail-lb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .rail-lb-dot.GREEN { background: #22c55e; box-shadow: 0 0 5px rgba(34,197,94,0.5); }
  .rail-lb-dot.YELLOW { background: #f59e0b; }
  .rail-lb-dot.RED { background: #ef4444; }


  @media (max-width: 768px) {
    .scard-photo-wrap { height: 340px; }
    .scard-stat-side { width: 80px; gap: 16px; padding: 16px 8px; }
    .scard-stat-lbl { font-size: 10px; }
    .scard-stat-val { font-size: 20px; }
    .scard-photo { transform: scale(1.25); transform-origin: center top; }
  }
  @media (max-width: 500px) {
    .scard-photo-name { font-size: 15px; padding: 12px 14px 2px; }
    .scard-photo-race { font-size: 14px; padding: 0 14px 6px; }
    .scard-name { font-size: 14px; }
    .scard-pitch { font-size: 20px; }
    .scard-why-label { font-size: 14px; }
    .scard-why-item { font-size: 17px; }
    .scard-winprob-pct { font-size: 38px; }
    .scard-winprob-verdict { font-size: 14px; }
    .scard-winprob-src { font-size: 14px; }
    .scard-btn { font-size: 14px; padding: 8px 16px; }
    .scard-save { font-size: 15px; }
    .scard-top10-banner { font-size: 15px; padding: 11px 14px; }
    .scard-endorse-banner { font-size: 15px; padding: 11px 14px; }
    .scard-warning-title { font-size: 15px; }
    .scard-warning-text { font-size: 15px; }
    .scard-warning-switch, .scard-warning-continue { font-size: 15px; padding: 12px; }
    .scard-select { font-size: 17px; padding: 6px 14px; }
  }

  /* ═══════════════════════════════════════════════════
     TAB SYSTEM
  ═══════════════════════════════════════════════════ */
  /* Clean up dark backgrounds from previous iteration */
  /* tps overrides — full-bleed photo style (defined above, these are mobile-section dupes, keep minimal) */
  .tps-skeleton { background:#1a3060; border-radius:10px; height:280px; animation:tpsSkel 1.4s ease-in-out infinite alternate; }

  /* Nav tabs */
  .nav-tab-btn {
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--muted); padding: 0 4px;
    margin-left: 20px;
    border-bottom: 3px solid transparent;
    height: 56px; letter-spacing: .02em;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
  }
  .nav-tab-btn.active { color: var(--text); border-bottom-color: var(--brand-green); }
  .nav-tab-btn:hover:not(.active) { color: var(--text); }
  #navTabCampaigns.active { color: #0f1f3d; border-bottom-color: #0f1f3d; }

  /* Campaigns right-side nav button */
  .nav-campaigns-btn {
    background: #0f1f3d;
    color: #fff;
    border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    margin-left: 10px;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(15,31,61,0.25);
  }
  .nav-campaigns-btn:hover { background: #1a3a6e; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,31,61,0.4); }
  .nav-campaigns-btn.active { background: #5cb85c; color: #fff; box-shadow: 0 2px 8px rgba(92,184,92,0.4); }
  @media(max-width:600px){ .nav-campaigns-btn .tab-label { display: none; } }

  /* ── Campaigns Page ── */
  .camp-hero {
    background: #0f1f3d;
    border-bottom: 4px solid #5cb85c;
    padding: 56px 32px 48px;
    text-align: center;
  }
  .camp-hero-eyebrow {
    font-size: 14px; font-weight: 700; letter-spacing: .12em;
    color: #5cb85c; text-transform: uppercase; margin-bottom: 16px;
  }
  .camp-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900; color: #fff;
    line-height: 1.15; margin-bottom: 20px;
  }
  .camp-hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: #aabbd4; max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .camp-body { max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; }

  /* Problem block */
  .camp-problem {
    background: #fff8f8;
    border-left: 5px solid #c0392b;
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    margin-bottom: 48px;
    font-size: 17px; color: #3d3d3d; line-height: 1.7;
  }
  .camp-problem strong { color: #c0392b; }

  /* Section headers */
  .camp-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px; font-weight: 700;
    color: #0f1f3d; margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5cb85c;
  }

  /* Feature grid */
  .camp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
  }
  .camp-feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow .2s, transform .2s;
  }
  .camp-feature-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10); transform: translateY(-2px); }
  .camp-feature-icon { font-size: 15px; margin-bottom: 10px; }
  .camp-feature-title {
    font-size: 17px; font-weight: 700;
    color: #0f1f3d; margin-bottom: 8px;
  }
  .camp-feature-title .camp-fee-badge {
    display: inline-block;
    background: #5cb85c; color: #fff;
    font-size: 14px; font-weight: 800;
    padding: 2px 8px; border-radius: 20px;
    margin-left: 6px; vertical-align: middle;
  }
  .camp-feature-desc { font-size: 15px; color: #555; line-height: 1.6; }

  /* Who we are */
  .camp-about {
    background: #f4f7ff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 48px;
    font-size: 17px; color: #3d3d3d; line-height: 1.75;
    border: 1px solid #d0d8f0;
  }

  /* CTA block */
  .camp-cta-block {
    background: #0f1f3d;
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    border-top: 4px solid #5cb85c;
  }
  .camp-cta-block h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px; color: #fff;
    margin-bottom: 10px; font-weight: 700;
  }
  .camp-cta-block p { color: #aabbd4; font-size: 14px; margin-bottom: 28px; }
  .camp-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 680px;
    margin: 0 auto;
  }
  .camp-cta-btn {
    display: block; width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; border: none;
    font-family: 'Inter', sans-serif;
    transition: opacity .15s, transform .15s;
    text-decoration: none;
    line-height: 1.3;
  }
  .camp-cta-btn:hover { opacity: .88; transform: translateY(-1px); }
  .camp-cta-btn.primary { background: #5cb85c; color: #fff; }
  .camp-cta-btn.secondary { background: transparent; color: #fff; border: 2px solid #5cb85c; }
  .camp-cta-btn .btn-sub { display: block; font-size: 14px; font-weight: 400; opacity: .8; margin-top: 2px; }

  /* fee comparison bar */
  .camp-fee-compare {
    display: flex; align-items: stretch; gap: 0;
    border-radius: 10px; overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 15px;
  }
  .camp-fee-them {
    flex: 1; background: #fff0f0; padding: 24px 28px;
    border-left: 5px solid #c0392b;
  }
  .camp-fee-us {
    flex: 1; background: #edf7ed; padding: 24px 28px;
    border-left: 5px solid #5cb85c;
  }
  .camp-fee-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: #888; }
  .camp-fee-number { font-size: 42px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
  .camp-fee-them .camp-fee-number { color: #c0392b; }
  .camp-fee-us .camp-fee-number { color: #2d7a2d; }
  .camp-fee-desc { font-size: 14px; color: #555; line-height: 1.5; }

  @media(max-width:600px){
    .camp-hero { padding: 40px 20px 36px; }
    .camp-body { padding: 32px 16px 60px; }
    .camp-fee-compare { flex-direction: column; }
    .camp-cta-grid { grid-template-columns: 1fr 1fr; }
  }


  /* ── VoteROI V-arrow icon ── */
  .v-arrow-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    flex-shrink: 0;
  }
  .v-arrow-svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
  }
  /* Flash burst — hidden by default */
  /* .v-arrow-flash is now a full-page lightning sweep overlay */
  .v-arrow-flash {
    display: none; /* controlled by JS */
  }

  /* ── Lightning strike overlay ── */
  #lightningOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 50vh;
    pointer-events: none;
    z-index: 9999;
  }
  /* Screen flash — whole top half whites out briefly */
  @keyframes screen-flash {
    0%   { opacity: 0; }
    8%   { opacity: 0.7; }
    18%  { opacity: 0; }
    100% { opacity: 0; }
  }
  #lightningOverlay .flash-layer {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 220, 0.85);
    opacity: 0;
  }
  #lightningOverlay.firing .flash-layer.f1 {
    animation: screen-flash 0.6s ease-out forwards;
  }
  #lightningOverlay.firing .flash-layer.f2 {
    animation: screen-flash 0.5s ease-out 0.9s forwards;
  }
  /* Bolt SVG visibility */
  #lightningOverlay .bolt {
    position: absolute;
    top: 0;
    opacity: 0;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 28px #ffe000) drop-shadow(0 0 55px #ffaa00);
  }
  /* positions set by JS from arrow icon location */
  #lightningOverlay .bolt1 { left: 30%; }
  #lightningOverlay .bolt2 { left: 58%; }
  @keyframes bolt-strike {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top center; }
    6%   { opacity: 1; transform: scaleY(1); }
    35%  { opacity: 1; }
    50%  { opacity: 0.4; }
    60%  { opacity: 1; }
    80%  { opacity: 0.7; }
    100% { opacity: 0; }
  }
  @keyframes bolt-strike-2 {
    0%,30% { opacity: 0; transform: scaleY(0); transform-origin: top center; }
    38%    { opacity: 1; transform: scaleY(1); }
    60%    { opacity: 1; }
    75%    { opacity: 0.5; }
    85%    { opacity: 1; }
    100%   { opacity: 0; }
  }
  #lightningOverlay.firing .bolt1 {
    animation: bolt-strike 2.5s ease-out forwards;
  }
  #lightningOverlay.firing .bolt2 {
    animation: bolt-strike-2 3.2s ease-out forwards;
  }
  /* ── Police beacon: dome light + rotating beam ── */
  .beacon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    vertical-align: middle;
  }
  /* JS-driven SVG beam — see #beaconSvg in body */
  #beaconSvg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 50vh;
    pointer-events: none;
    z-index: 9998;
    overflow: visible;
  }
  /* Dome light pulsing glow */
  .beacon-light {
    position: relative;
    z-index: 2;
    display: block;
    line-height: 0;
  }
  .beacon-light svg {
    display: block;
    animation: dome-pulse 2s linear 1;
  }
  @keyframes dome-pulse {
    0%,100% { filter: drop-shadow(0 0 3px rgba(255,50,0,0.6)); }
    50%     { filter: drop-shadow(0 0 16px rgba(255,80,0,1.0)) brightness(1.6); }
  }

  /* Cycle breakdown — light */
  .cycle-breakdown-row {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    padding: 28px 40px;
    background: var(--gray-lt);
    border-bottom: 1px solid var(--border);
  }
  .cycle-stat { display:flex;flex-direction:column;align-items:center;padding:20px 32px;background:var(--white);border:1px solid var(--border);border-top:3px solid var(--red);border-radius:8px;min-width:180px; }
  .cy-yr { font-size:18px;font-weight:900;color:var(--red);letter-spacing:.07em; }
  .cy-val { font-size:24px;font-weight:800;color:var(--text);margin-top:6px; }
  .cy-sub { font-size:14px;color:var(--muted);margin-top:4px; }

  /* The Indictment bar */
  .indictment-bar {
    max-width: 1100px; margin: 32px auto;
    background: var(--white);
    border: 2px solid var(--red);
    border-left: 8px solid var(--red);
    border-radius: 10px;
    padding: 28px 36px;
    display: flex; align-items: center; gap: 28px;
    font-size: 20px; color: var(--text); line-height: 1.6;
    box-shadow: 0 4px 24px rgba(192,57,43,0.10);
    position: relative;
    overflow: hidden;
  }
  .indictment-bar > * { position: relative; z-index: 1; }
  .indictment-icon { font-size: 40px; flex-shrink: 0; }
  .indictment-bar strong { color: var(--red); font-size: 15px; }
  /* Pop-out dollar figure */
  .fee-popout {
    display: inline-block;
    color: var(--red);
    font-size: 30px;
    font-weight: 900;
    font-family: 'DM Serif Display', Georgia, serif;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
  }
  .indictment-cta {
    margin-left: auto; flex-shrink: 0;
    background: var(--red); color: #fff; border: none;
    padding: 16px 32px; border-radius: 8px;
    font-size: 17px; font-weight: 900; cursor: pointer;
    white-space: nowrap; font-family: 'Inter', sans-serif;
    transition: background .15s, transform .1s;
    letter-spacing: .02em;
  }
  .indictment-cta:hover { background: #4a9f4a; transform: translateY(-1px); }

  /* Problem CTA banner at bottom of tab 1 */
  .problem-cta-banner {
    background: linear-gradient(135deg, #1a3a1a 0%, #0f2410 100%);
    color: #fff;
    padding: 48px 48px;
    display: flex; align-items: center; gap: 40px;
    margin-top: 48px;
    border-top: 4px solid #5cb85c;
    position: relative;
    overflow: hidden;
  }
  .problem-cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(92,184,92,0.12) 0%, transparent 65%);
    pointer-events: none;
  }
  .pcta-left { flex: 1; position: relative; z-index: 1; }
  .pcta-logo { height: 52px; width: auto; margin-bottom: 16px; display: block; }
  .pcta-headline {
    font-family: 'DM Serif Display', serif;
    font-size: 30px; font-weight: 900;
    margin-bottom: 10px; line-height: 1.2;
    color: #fff;
  }
  .pcta-headline em { color: #5cb85c; font-style: normal; }
  .pcta-sub { font-size: 17px; color: #b8d4b8; line-height: 1.55; max-width: 520px; }
  .pcta-sub strong { color: #e8c840; font-weight: 700; }
  .pcta-btn {
    flex-shrink: 0; margin-left: auto; position: relative; z-index: 1;
    background: linear-gradient(135deg,#5cb85c,#4a9f4a); color:#fff; border:none;
    padding: 18px 36px; border-radius: 10px;
    font-size: 17px; font-weight: 900; cursor: pointer;
    letter-spacing: .03em;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(92,184,92,0.4);
  }
  .pcta-btn:hover { background: linear-gradient(135deg,#6dd06d,#5cb85c); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(92,184,92,0.5); }
  .pcta-btn-sub { text-align: center; margin-top: 8px; font-size: 14px; color: #7aaa7a; font-style: italic; position: relative; z-index: 1; }

  /* Methodology accordion */
  .methodology-details {
    max-width: 1100px; margin: 0 auto 0; padding: 0 32px;
  }
  .methodology-summary {
    font-size: 15px; font-weight: 700; color: var(--muted);
    cursor: pointer; padding: 18px 0;
    list-style: none; display: flex; align-items: center; gap: 8px;
  }
  .methodology-summary::before { content: '▶'; font-size: 11px; transition: transform .2s; }
  details[open] .methodology-summary::before { transform: rotate(90deg); }
  .methodology-summary:hover { color: var(--text); }

  /* ActBlue callout */
  .actblue-callout {
    background: #0f1f3d;
    padding: 40px 60px;
    display: flex; align-items: center; gap: 40px;
  }
  .acb-icon { font-size: 48px; flex-shrink: 0; }
  .acb-copy {
    flex: 1;
    font-size: 15px; font-weight: 600; color: #fff;
    line-height: 1.55; font-family: 'Inter', sans-serif;
    border-left: 5px solid #5cb85c; padding-left: 28px;
  }
  .acb-copy strong { color: #5cb85c; font-weight: 900; font-size: 14px; }
  .acb-btn {
    flex-shrink: 0;
    background: #5cb85c; color: #fff; border: none;
    padding: 16px 32px; border-radius: 8px;
    font-size: 14px; font-weight: 900; cursor: pointer;
    white-space: nowrap; font-family: 'Inter', sans-serif;
    letter-spacing: .04em; text-transform: uppercase;
    transition: background .15s; box-shadow: 0 4px 20px rgba(92,184,92,0.4);
  }
  .acb-btn:hover { background: #4a9f4a; }

  /* Inline Smart Donor browser */
  .sd-inline {
    max-width: 1200px; margin: 0 auto; padding: 32px 40px 60px;
  }
  .sd-inline-header { margin-bottom: 24px; }
  .sd-inline-title { font-family: 'DM Serif Display', serif; font-size: 15px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
  .sd-inline-sub { font-size: 15px; color: var(--muted); }

  /* Sticky bar — dark strip */
  .sticky-donate-bar { background: var(--text); }

  /* Ticker — keep dark, it's at bottom */

  @media (max-width: 768px) {
    .indictment-bar { margin: 16px 12px; padding: 18px 16px; flex-wrap: wrap; font-size: 14px; box-sizing: border-box; overflow: hidden; }
    .indictment-bar strong { font-size: 14px; word-break: break-word; }
    .indictment-cta { margin-left: 0; width: 100%; text-align: center; margin-top: 12px; }
    .actblue-callout { padding: 24px 20px; flex-wrap: wrap; gap: 20px; }
    .acb-copy { font-size: 17px; border-left: 4px solid #5cb85c; padding-left: 16px; }
    .acb-copy strong { font-size: 19px; }
    .acb-btn { width: 100%; text-align: center; font-size: 14px; padding: 14px; }
    .acb-icon { font-size: 32px; }
    .problem-cta-banner { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 24px; }
    .pcta-btn { width: 100%; text-align: center; }
    .pcta-btn-sub { text-align: left; }
    .sd-inline { padding: 24px 16px 40px; }
    .top-picks-strip { padding: 24px 16px 28px; }
    .tps-cards { grid-template-columns: 1fr; }
    .methodology-details { padding: 0 16px; }
  }

  /* ── CTA Bars ── */
  .cta-bar {
    background: #0e0e0e;
    border-top: 3px solid #5cb85c;
    border-bottom: 3px solid #5cb85c;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .cta-bar-msg {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    flex: 1;
    min-width: 200px;
    line-height: 1.2;
  }
  .cta-bar-msg span { color: #5cb85c; }
  .cta-bar-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
  }
  .cta-btn-primary {
    background: #5cb85c; color: #fff; border: none;
    padding: 12px 22px; border-radius: 6px;
    font-size: 14px; font-weight: 900; cursor: pointer;
    white-space: nowrap; text-transform: uppercase;
    letter-spacing: .05em; font-family: 'Inter', sans-serif;
    transition: background .15s, transform .1s;
  }
  .cta-btn-primary:hover { background: #4a9f4a; transform: translateY(-1px); }
  .cta-btn-secondary {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 11px 20px; border-radius: 6px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    white-space: nowrap; text-transform: uppercase;
    letter-spacing: .05em; font-family: 'Inter', sans-serif;
    transition: border-color .15s, background .15s;
  }
  .cta-btn-secondary:hover { border-color: #5cb85c; background: rgba(92,184,92,0.1); }
  @media (max-width: 768px) {
    .cta-bar { padding: 16px; }
    .cta-bar-msg { font-size: 14px; }
    .cta-btn-primary, .cta-btn-secondary { font-size: 14px; padding: 9px 14px; }
  }

  /* ── Donor Sucker Races ── */
  .sucker-section {
    background: #1a0000;
    border-top: 4px solid #6b1a1a;
    border-bottom: 4px solid #6b1a1a;
    padding: 36px 40px 40px;
    overflow: visible;
    box-sizing: border-box;
  }
  .sucker-header {
    display: flex; align-items: baseline; gap: 16px;
    margin-bottom: 8px; flex-wrap: wrap;
  }
  .sucker-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px; font-weight: 900;
    color: #e8c840; line-height: 1.1;
  }
  .sucker-warning {
    background: #6b1a1a; color: #fff;
    font-size: 11px; font-weight: 900;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 4px;
    white-space: nowrap; align-self: center;
  }
  .sucker-sub {
    font-size: 14px; color: rgba(255,255,255,0.65);
    margin-bottom: 28px; max-width: 800px;
    font-family: 'Inter', sans-serif; line-height: 1.5;
  }
  .sucker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sucker-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(107,26,26,0.5);
    border-left: 6px solid #8b2020;
    border-radius: 10px;
    padding: 20px 22px;
    display: flex; align-items: flex-start; gap: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  .sucker-rank {
    font-size: 38px; font-weight: 900;
    color: #8b2020; line-height: 1;
    flex-shrink: 0; min-width: 46px;
    font-family: 'DM Serif Display', serif;
    text-shadow: 0 0 20px rgba(139,32,32,0.4);
  }
  .sucker-info { flex: 1; min-width: 0; }
  .sucker-race {
    font-size: 15px; font-weight: 900;
    color: #fff; margin-bottom: 5px;
    font-family: 'DM Serif Display', serif;
    line-height: 1.2;
  }
  .sucker-meta {
    font-size: 14px; color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 8px;
  }
  .sucker-why {
    font-size: 15px; color: rgba(255,255,255,0.8);
    line-height: 1.5; font-family: 'Inter', sans-serif;
  }
  .sucker-pvi {
    font-size: 15px; font-weight: 900;
    color: #e8c840; white-space: nowrap;
    font-family: monospace; flex-shrink: 0;
    align-self: flex-start; margin-top: 2px;
    background: rgba(232,200,64,0.12);
    border: 1px solid rgba(232,200,64,0.3);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    min-width: 70px;
  }
  .sucker-disclaimer {
    margin-top: 20px; font-size: 14px;
    color: rgba(255,255,255,0.4);
    font-family: 'Inter', sans-serif;
    text-align: center;
  }
  @media (max-width: 768px) {
    #vsActblue { padding: 28px 16px 36px !important; }

  @keyframes actblueFlash {
    0%,100% { background: rgba(139,32,32,0.08); box-shadow: none; }
    50% { background: rgba(139,32,32,0.22); box-shadow: inset 0 0 20px rgba(192,57,43,0.35); }
  }
  @keyframes voterioFlash {
    0%,100% { background: rgba(37,99,235,0.08); box-shadow: none; }
    50% { background: rgba(37,99,235,0.22); box-shadow: inset 0 0 20px rgba(37,99,235,0.4); }
  }
  .vs-cell-bad { animation: actblueFlash 2.4s ease-in-out 1; }
  .vs-cell-good { animation: voterioFlash 2.4s ease-in-out 1.2s 1; }
    #vsActblue > div:nth-child(2) > div:first-child { grid-template-columns: 1fr !important; }
    .sucker-section { padding: 24px 16px; }
    .sucker-grid { grid-template-columns: 1fr; }
    .sucker-title { font-size: 14px; }
    .sucker-card { flex-wrap: wrap; padding: 16px 14px; gap: 12px; }
    .sucker-rank { font-size: 15px; min-width: 36px; }
    .sucker-info { min-width: 0; flex: 1 1 calc(100% - 56px); }
    .sucker-race { font-size: 14px; }
    .sucker-pvi { width: 100%; min-width: unset; font-size: 14px;
      display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
    .sucker-pvi div { font-size: 11px !important; }
    .sucker-narrative { padding: 16px 14px; margin-left: 0; margin-right: 0; }
    .sucker-narrative p { font-size: 15px; }
  }

  /* ── Sucker card tooltips ── */
  .sucker-card { position: relative; }
  .sucker-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #111;
    border: 1px solid #6b1a1a;
    border-top: 3px solid #e8c840;
    border-radius: 8px;
    padding: 14px 16px;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  }
  .sucker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #6b1a1a;
  }
  .sucker-card:hover .sucker-tooltip { display: block; }
  .sucker-tt-title {
    font-size: 14px; font-weight: 900;
    color: #e8c840; margin-bottom: 8px;
    font-family: 'DM Serif Display', serif;
    text-transform: uppercase; letter-spacing: .05em;
  }
  .sucker-tt-note {
    font-size: 14px; color: rgba(255,255,255,0.55);
    font-style: italic; margin-bottom: 10px;
    line-height: 1.4; font-family: 'Inter', sans-serif;
  }
  .sucker-tt-bullet {
    font-size: 14px; color: rgba(255,255,255,0.82);
    line-height: 1.5; padding-left: 12px;
    position: relative; margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
  }
  .sucker-tt-bullet::before {
    content: '▸'; position: absolute; left: 0;
    color: #6b1a1a;
  }
  .sucker-tt-verdict {
    margin-top: 10px; padding-top: 8px;
    border-top: 1px solid rgba(107,26,26,0.5);
    font-size: 14px; font-weight: 700;
    color: #e8c840; font-family: 'Inter', sans-serif;
    letter-spacing: .04em;
  }
  /* ── Sucker narrative ── */
  .sucker-narrative {
    background: rgba(255,255,255,0.04);
    border-left: 4px solid #e8c840;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 28px;
  }
  .sucker-narrative p {
    font-size: 14px; color: rgba(255,255,255,0.82);
    line-height: 1.7; margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
  }
  .sucker-narrative p:last-child { margin-bottom: 0; }
  .sucker-narrative strong { color: #e8c840; font-weight: 700; }
  .sucker-narrative em { color: rgba(255,255,255,0.55); font-style: italic; }

  /* ── Advisor ── */
  .advisor-quick {
    background: rgba(92,184,92,0.15);
    border: 1px solid rgba(92,184,92,0.4);
    color: #5cb85c;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
  }
  .advisor-quick:hover { background: rgba(92,184,92,0.3); }
  #advisorResponse ol { margin: 0; padding-left: 20px; }
  #advisorResponse ol li { margin-bottom: 12px; }
  #advisorHistory .ah-user { color: rgba(255,255,255,0.5); font-size:14px; margin-bottom:6px; }
  #advisorHistory .ah-reply { color:#e6edf3; font-size:15px; margin-bottom:14px; border-left:3px solid #5cb85c; padding-left:12px; }

  /* ── Auth ── */
  .issue-chip { display:inline-flex;align-items:center;gap:6px;background:rgba(92,184,92,0.1);border:1px solid rgba(92,184,92,0.3);color:#5cb85c;padding:5px 10px;border-radius:20px;font-size:13px;cursor:pointer;font-family:inherit; }
  .issue-chip input { accent-color:#5cb85c;width:14px;height:14px; }
  .issue-chip:hover { background:rgba(92,184,92,0.2); }

  /* ── Basket ── */
  .basket-add-btn {
    background: linear-gradient(135deg,#1a6b3a,#5cb85c); color: #fff;
    border: none; border-radius: 10px; padding: 13px 20px;
    font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all .2s;
    display: block; width: 100%; text-align: center;
    font-family: inherit; letter-spacing: .02em;
    box-shadow: 0 2px 10px rgba(92,184,92,0.3);
  }
  .basket-add-btn:hover {
    background: linear-gradient(135deg,#155a30,#4aaa4a);
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(92,184,92,0.5);
  }
  .basket-add-btn.in-basket {
    background: #5cb85c; color: #fff;
    box-shadow: 0 2px 8px rgba(92,184,92,0.3);
  }
  .basket-add-btn.in-basket:hover {
    background: #4a9f4a; transform: none;
  }
  #basketDrawer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
    background: #0f1f3d; border-top: 3px solid #5cb85c;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    transform: translateY(100%); transition: transform .3s ease;
  }
  #basketDrawer.open { transform: translateY(0); }
  .basket-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .basket-title { font-size: 14px; font-weight: 900; color: #fff; }
  .basket-items { padding: 12px 24px; max-height: 240px; overflow-y: auto; }
  .basket-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .basket-item-label { flex: 1; font-size: 14px; color: #e6edf3; font-weight: 600; }
  .basket-item-amount { display: flex; align-items: center; gap: 6px; }
  .basket-item-amount input {
    width: 70px; padding: 6px 8px; background: #0d1117;
    border: 1px solid #30363d; border-radius: 6px; color: #e6edf3;
    font-size:14px; text-align: center; font-family: inherit;
  }
  .basket-item-remove { color: #f85149; background: none; border: none; font-size: 14px; cursor: pointer; padding: 0 4px; }
  .basket-bump { font-size:11px; color: #5cb85c; cursor: pointer; text-decoration: underline; margin-left: 4px; }
  .basket-footer { padding: 14px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .basket-total { font-size: 14px; font-weight: 900; color: #e8c840; }
  .basket-deploy-btn {
    background: #5cb85c; color: #fff; border: none;
    padding: 13px 32px; border-radius: 10px; font-size: 14px;
    font-weight: 900; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 16px rgba(92,184,92,0.4);
  }
  .basket-deploy-btn:hover { background: #4a9f4a; }
  .basket-share-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7); padding: 8px 16px; border-radius:8px;
    font-size: 14px; cursor: pointer; font-family: inherit;
  }

  /* Basket button tooltip */
  .basket-add-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f1f3d;
    color: #e6edf3;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #5cb85c;
    white-space: normal;
    width: 220px;
    text-align: left;
    line-height: 1.5;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  }
  .basket-add-btn {
    position: relative;
  }

  /* ── Advisor Chat Styling ── */
  #advisorResponse h2 { font-family: 'DM Serif Display', Georgia, serif; }
  .ah-user-msg {
    font-size: 14px; font-weight: 700; color: #6a5a40;
    text-transform: uppercase; letter-spacing: .06em;
    margin: 16px 0 4px; font-family: 'Inter', sans-serif;
  }
  .ah-reply-msg {
    font-size: 14px; color: #1a2e1a; line-height: 1.7;
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid #e8d9b0;
    font-family: 'Inter', sans-serif;
  }
  .ah-reply { font-size: 14px; color: #1a2e1a; line-height: 1.7; margin-bottom: 12px; }
  .ah-user { font-size: 14px; font-weight: 700; color: #6a5a40; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }

  /* ── Race Signals ── */
  .race-signal {
    padding: 8px 16px;
    display: flex; flex-direction: column; gap: 4px;
    border-top: 1px solid rgba(92,184,92,0.15);
    margin-top: 4px;
  }
  .signal-community {
    font-size: 14px; font-weight: 700; color: #1a6b3a;
    background: rgba(92,184,92,0.1); border-radius: 4px;
    padding: 4px 8px; display: inline-block;
  }
  .signal-gap {
    font-size: 14px; font-weight: 700; color: #c0392b;
    background: rgba(192,57,43,0.08); border-radius: 4px;
    padding: 4px 8px; display: inline-block;
  }
  .signal-funded {
    font-size: 14px; font-weight: 700; color: #1a6b3a;
    background: rgba(92,184,92,0.12); border-radius: 4px;
    padding: 4px 8px; display: inline-block;
  }


/* ═══════════════════════════════════════════════
   VOTEROI SHARED COMPONENTS — redesign branch
   Mobile-first, all breakpoints
═══════════════════════════════════════════════ */

/* ── BASE ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0d1f0d;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

/* ── SHARED NAV ── */
.vr-nav {
  background: var(--navy);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 8px;
}
.vr-nav-logo img { height: 40px; width: auto; display: block; }
.vr-nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
}
.vr-nav-link {
  color: #a8c8f0;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.vr-nav-link:hover, .vr-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.vr-nav-btn-iq {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--green);
  white-space: nowrap;
  transition: background .15s;
}
.vr-nav-btn-iq:hover { background: var(--green-dk); }
.vr-nav-btn-donate {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--red);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.vr-nav-btn-donate:hover { background: var(--red-dk); }

/* Mobile nav hamburger */
.vr-nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
@media (max-width: 640px) {
  .vr-nav-hamburger { display: block; }
  .vr-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 12px;
    gap: 4px;
  }
  .vr-nav-links.open { display: flex; }
  .vr-nav-link { width: 100%; padding: 10px 12px; font-size: 15px; }
  .vr-nav-btn-iq, .vr-nav-btn-donate {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 15px;
  }
}

/* ── AI ADVISOR STRIP ── */
.vr-advisor-strip {
  background: var(--navy-dark);
  border-bottom: 2px solid var(--green);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vr-advisor-label {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vr-advisor-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.vr-advisor-input::placeholder { color: rgba(255,255,255,0.4); }
.vr-advisor-input:focus { border-color: var(--green); }
.vr-advisor-btn {
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.vr-advisor-btn:hover { background: var(--green-dk); }
.vr-advisor-response {
  display: none;
  width: 100%;
  background: var(--navy-mid);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 6px;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
}
.vr-advisor-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.vr-advisor-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 200px;
  flex: 1;
}
.vr-advisor-card-name { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.vr-advisor-card-race { font-size: 11px; color: #8ba5cc; margin-bottom: 8px; }
.vr-advisor-card-prob { font-size: 20px; font-weight: 900; color: var(--green); margin-bottom: 8px; }
.vr-advisor-card-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 7px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 480px) {
  .vr-advisor-strip { padding: 8px 12px; }
  .vr-advisor-label { font-size: 11px; }
  .vr-advisor-card { min-width: 100%; }
}

/* ── SECTION UTILITIES ── */
.vr-section { padding: 40px 20px; }
.vr-section-inner { max-width: 960px; margin: 0 auto; }
.vr-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.vr-section-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
@media (max-width: 480px) {
  .vr-section { padding: 28px 16px; }
  .vr-section-title { font-size: 15px; }
}

/* ── CANDIDATE CARDS ── */
.vr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.vr-cand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s;
}
.vr-cand-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.vr-cand-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.vr-cand-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.vr-cand-race { font-size: 14px; color: var(--muted); }
.vr-cand-prob { font-size: 15px; font-weight: 900; }
.vr-cand-prob-label { font-size: 10px; color: var(--muted); }
.vr-cand-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
}
.vr-tag-endorsed { background: #f0f9f0; color: #1a6b3a; border: 1px solid #c3e6cb; }
.vr-tag-featured  { background: #fef3e2; color: #92400e; border: 1px solid #fcd34d; }
.vr-source-badge {
  font-size: 10px;
  background: var(--gray-lt);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}
.vr-donate-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
  transition: background .15s;
}
.vr-donate-btn:hover { background: var(--green-dk); }
@media (max-width: 480px) {
  .vr-card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vr-cand-prob { font-size: 15px; }
}
@media (max-width: 360px) {
  .vr-card-grid { grid-template-columns: 1fr; }
}

/* ── STAT BAR ── */
.vr-stat-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.vr-stat-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.vr-stat-item {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.vr-stat-item:last-child { border-right: none; }
.vr-stat-val { font-size: 15px; font-weight: 900; line-height: 1; }
.vr-stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.vr-stat-sub { font-size: 10px; color: #9ca3af; margin-top: 2px; }
@media (max-width: 600px) {
  .vr-stat-bar-inner { grid-template-columns: 1fr 1fr; }
  .vr-stat-item:nth-child(2) { border-right: none; }
  .vr-stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .vr-stat-val { font-size: 20px; }
}
@media (max-width: 360px) {
  .vr-stat-bar-inner { grid-template-columns: 1fr; }
  .vr-stat-item { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── HERO ── */
.vr-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 65%, #0f2a1a 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.vr-hero h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.vr-hero-sub {
  color: #8ba5cc;
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .vr-hero { padding: 32px 16px 28px; }
  .vr-hero h1 { font-size: 20px; }
  .vr-hero-sub { font-size: 14px; }
}

/* ── FOOTER ── */
.vr-footer {
  background: var(--navy);
  padding: 24px 20px;
  text-align: center;
}
.vr-footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.vr-footer-link {
  color: #8ba5cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.vr-footer-link:hover { color: #fff; }
.vr-footer-copy { color: #4b5563; font-size: 11px; }

/* ── BUTTONS ── */
.vr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.vr-btn-primary:hover { background: var(--green-dk); }
.vr-btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: opacity .15s;
}
.vr-btn-navy:hover { opacity: .85; }
.vr-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 19px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all .15s;
}
.vr-btn-outline:hover { background: var(--green); color: #fff; }


/* ═══════════════════════════════════════
   MOBILE OVERRIDES — 480px and below
   Forces all legacy hardcoded widths to
   be fluid on small screens
═══════════════════════════════════════ */

@media (max-width: 768px) {
  /* Global overflow fix */
  body { overflow-x: hidden; }
  * { max-width: 100%; }

  /* Header/nav */
  header { min-height: 52px; padding: 0 12px; }
  .header-nav-row { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  .logo img { height: 36px; }

  /* Stat cards */
  .stats-row { grid-template-columns: 1fr 1fr !important; gap: 8px !important; padding: 12px !important; }
  .stat-card { padding: 14px 10px !important; }
  .stat-card .value { font-size: 15px !important; }
  .stat-card .label { font-size: 11px !important; }

  /* Race/candidate cards */
  .scard { min-width: 0 !important; width: 100% !important; }
  .scard-inner { flex-direction: column !important; }
  /* mobile: handled by server-rendered CSS */
  .scard-photo-wrap { height: 200px !important; }
  .race-card-wrap { min-width: 0 !important; width: 100% !important; }

  /* Photo columns */
  .scard-photo-col { width: 100% !important; min-width: 0 !important; }
  .scard-photo { width: 100% !important; max-height: 200px !important; object-fit: contain !important; }

  /* Money pit / shame sections */
  .sucker-grid { grid-template-columns: 1fr !important; }
  .sucker-card { min-width: 0 !important; }

  /* Glass box counters */
  .gb-counters { grid-template-columns: 1fr 1fr !important; }
  .gb-counter { padding: 12px !important; }
  .gb-counter-value { font-size: 15px !important; }

  /* Advisor strip */
  .vr-advisor-strip { padding: 8px 12px !important; }
  #vr-advisor-input { min-width: 0 !important; font-size: 14px !important; }

  /* Tab content */
  .tab-content { padding: 0 !important; }

  /* Product cards */
  .product-card-pair { flex-direction: column !important; gap: 12px !important; padding: 12px !important; }
  .product-card { min-width: 0 !important; width: 100% !important; }

  /* Ticker */
  .ticker-wrap::before { font-size: 11px !important; padding: 0 6px !important; }
  .ticker-item { font-size: 14px !important; padding: 0 20px !important; }

  /* Hero text — scoped so the site hero's clamp(32px,6vw,52px) can take
     over on mobile. Previously these rules were unscoped h1/h2 globals,
     which clobbered the homepage hero to 20px and killed hierarchy. */
  .tab-content h1, .gb-hero h1, .gb-section h1 { font-size: 20px !important; }
  .tab-content h2, .gb-hero h2, .gb-section h2 { font-size: 20px !important; }
  .hero-sub, .gb-hero p { font-size: 14px !important; }

  /* Donate modal */
  .modal-overlay { padding: 8px !important; }
  .modal-box { max-width: 100% !important; border-radius: 12px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-sub-form { flex-direction: column !important; }
  .footer-sub-form input { width: 100% !important; }
}

@media (max-width: 480px) {
  /* Tighten further on phones */
  .stats-row { grid-template-columns: 1fr !important; }
  .gb-counters { grid-template-columns: 1fr !important; }
  .scard-stats-col { display: none !important; } /* hide flanking stats on tiny screens */
  .race-prob-row { flex-wrap: wrap !important; }
  .sticky-donate-bar { padding: 8px 12px !important; }
  .sdb-headline { font-size: 14px !important; }
  .sd-more-label { font-size: 14px !important; }

  /* Candidates filter bar */
  .filter-bar { padding: 8px 12px !important; gap: 6px !important; }
  .filter-btn { padding: 5px 10px !important; font-size: 14px !important; }
}

/* ── Accessibility: minimum 44px tap targets for older donors ── */
button, a.btn-primary, a.btn-ai, a.c-btn-green, a.c-btn-outline,
.advisor-quick, .c-tier-btn, .c-form-btn, .nav-picks-btn,
.nav-campaigns-btn, [onclick] {
  min-height: 44px;
  min-width: 44px;
}
#vr-main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ── Accessibility: respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── iOS auto-zoom prevention: all inputs must be 16px+ ── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── Fee comparison table: hide extra cols on mobile ── */
@media(max-width:700px) {
  .fee-col-hide { display: none !important; }
  .fee-table th, .fee-table td { padding: 10px !important; font-size: 13px !important; }
  .fee-table .winner td { padding: 12px 10px !important; }
  .privacy-grid { grid-template-columns: 1fr !important; }
}

/* ── Homepage featured band — algorithmic primary + optional longshot ────── */
.sd-featured-band {
  max-width: 1040px;
  margin: 0 auto 16px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  box-sizing: border-box;
}
.sd-featured-band.primary-only { grid-template-columns: 1fr; }
.sd-fb-slot {
  background: linear-gradient(135deg, #0f1f3d 0%, #162840 60%, #0a1f0a 100%);
  border: 1px solid rgba(92, 184, 92, 0.28);
  border-radius: 14px;
  padding: 20px 22px;
  color: #e6edf3;
  min-width: 0;
  overflow: hidden;
}
.sd-fb-longshot {
  background: linear-gradient(135deg, #2a1f3d 0%, #28243f 60%, #1a1f2f 100%);
  border-color: rgba(200, 168, 75, 0.32);
}
.sd-fb-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5cb85c;
  margin-bottom: 12px;
}
.sd-fb-longshot .sd-fb-eyebrow { color: #c8a84b; }
.sd-fb-body {
  display: flex;
  gap: 16px;
  align-items: center;
}
.sd-fb-photo,
.sd-fb-photo-ph {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 2px solid rgba(92, 184, 92, 0.38);
  /* contain preserves full image (no face crop). Letterbox fill below
     matches the slot gradient so portraits sit cleanly in the frame. */
  object-fit: contain;
  object-position: center;
  background: rgba(15, 31, 61, 0.65);
}
.sd-fb-longshot .sd-fb-photo,
.sd-fb-longshot .sd-fb-photo-ph { background: rgba(42, 31, 61, 0.65); }
.sd-fb-longshot .sd-fb-photo,
.sd-fb-longshot .sd-fb-photo-ph { border-color: rgba(200, 168, 75, 0.42); }
.sd-fb-photo-ph {
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #5cb85c;
}
.sd-fb-longshot .sd-fb-photo-ph { color: #c8a84b; }
.sd-fb-text { flex: 1; min-width: 0; }
.sd-fb-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
  overflow-wrap: break-word;
}
.sd-fb-office {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8c8f0;
  margin-bottom: 8px;
}
.sd-fb-line {
  font-size: 14px;
  color: #c8d4ec;
  line-height: 1.5;
  margin-bottom: 12px;
}
.sd-fb-cta {
  background: #5cb85c;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.sd-fb-cta:hover { background: #4ca44c; }
.sd-fb-longshot .sd-fb-cta { background: #c8a84b; color: #1a1208; }
.sd-fb-longshot .sd-fb-cta:hover { background: #b49838; }
@media (max-width: 760px) {
  .sd-featured-band,
  .sd-featured-band.has-longshot {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 12px;
  }
  .sd-fb-slot { padding: 16px; }
  .sd-fb-body { gap: 12px; }
  .sd-fb-photo, .sd-fb-photo-ph { width: 72px; height: 72px; }
  .sd-fb-name { font-size: 20px; }
}

/* ── Top Pick Right Now strip — CSS-only polish over the server-rendered
   #vr-top-pick block (server.js:10249-10265). Shifts palette from a
   warning-banner red→green with orange border to a premium navy→green
   that echoes the featured band, quiets the inline "— label" span into
   a secondary metadata line, hides the "· Updated today" suffix, and
   tightens spacing + CTA alignment. All rules use !important to win
   against the inline styles in the server template. No HTML edits;
   text content that can't change via CSS (e.g. the microcopy ordering)
   is left as-is. */
#vr-top-pick {
  background: linear-gradient(135deg, #0f1f3d 0%, #162840 55%, #0a2a1a 100%) !important;
  border: 1px solid rgba(92, 184, 92, 0.32) !important;
  padding: 22px 26px !important;
  gap: 22px !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3) !important;
}
#vr-top-pick > div:first-child > div:first-child {
  color: #5cb85c !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 10px !important;
}
#vr-top-pick > div:first-child > div:first-child > span:first-child {
  background: #5cb85c !important;
  box-shadow: 0 0 8px rgba(92, 184, 92, 0.6) !important;
}
#vr-top-pick > div:first-child > div:first-child > span:last-child {
  display: none !important;
}
#vr-top-pick > div:first-child > div:nth-child(2) {
  font-size: clamp(22px, 3.6vw, 28px) !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}
#vr-top-pick > div:first-child > div:nth-child(2) > span {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
#vr-top-pick > div:first-child > div:nth-child(3) {
  color: rgba(200, 230, 210, 0.85) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
#vr-top-pick > div:last-child > button {
  padding: 13px 26px !important;
  font-size: 15px !important;
  box-shadow: 0 4px 14px rgba(92, 184, 92, 0.4) !important;
}
#vr-top-pick > div:last-child > div {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
}
@media (max-width: 640px) {
  #vr-top-pick {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 18px !important;
    gap: 14px !important;
  }
  #vr-top-pick > div:last-child { width: 100% !important; }
  #vr-top-pick > div:last-child > button { width: 100% !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   Mockup redesign tokens — homepage hero, HIW, banner, grid, trust row.
   Scoped with .vr- prefix so existing layout rules stay untouched.
   ══════════════════════════════════════════════════════════════════════ */
.vr-container { max-width: 1240px; margin: 0 auto; box-sizing: border-box; }

.vr-btn {
  display: inline-block; font-size: 15px; font-weight: 800;
  padding: 13px 26px; border-radius: 28px; text-decoration: none;
  font-family: inherit; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.vr-btn-primary {
  background: #5cb85c; color: #fff; border-color: #5cb85c;
  box-shadow: 0 4px 14px rgba(92,184,92,0.35);
}
.vr-btn-primary:hover { background: #4ca44c; border-color: #4ca44c; }
.vr-btn-secondary {
  background: transparent; color: #e6edf3;
  border-color: rgba(255,255,255,0.35);
}
.vr-btn-secondary:hover { border-color: #e6edf3; color: #fff; }

/* Hero 2-col → 1-col at <=900px */
@media (max-width: 900px) {
  .vr-hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .vr-hero-right { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* HIW 4-col → 2-col → 1-col */
@media (max-width: 900px) { .vr-hiw-row { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; } }
@media (max-width: 520px) { .vr-hiw-row { grid-template-columns: 1fr !important; } }

/* Banner 2-col → stacked */
@media (max-width: 760px) {
  .vr-banner { grid-template-columns: 1fr !important; gap: 20px !important; padding: 24px !important; }
}

/* Trust row 4-col → 2-col */
@media (max-width: 640px) {
  .vr-trust-row { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
}

/* ── Minimal candidate card (scard-min) — mockup redesign ────────────────── */
.scard.scard-min {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.scard-min-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.04);
}
.scard-min-photo img,
.scard-min-photo .scard-min-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;  /* bias up so faces aren't clipped at chin */
}
.scard-min-ph {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px; font-weight: 900; color: #5cb85c;
  letter-spacing: 0.08em;
}
.scard-min-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.scard-min-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px; font-weight: 900;
  color: #fff; line-height: 1.2;
  overflow-wrap: break-word;
}
.scard-min-race {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #a8c8f0;
  margin-bottom: 4px;
}
.scard-min-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 4px 0 10px;
}
.scard-min-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.scard-min-stat-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.scard-min-stat-val {
  font-size: 18px; font-weight: 900; color: #e6edf3; line-height: 1.1;
}
.scard-min-stat-val.green { color: #5cb85c; }
.scard-min-cta {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.scard-min-btn {
  width: 100%;
  font-size: 14px; padding: 10px 14px; border-radius: 22px;
}

/* ── Top Pick card mobile safety (≤360px) ───────────────────────────────── */
@media (max-width: 480px) {
  /* Shrink hero outer padding so inner card has breathing room. */
  #siteHero.vr-hero { padding: 32px 16px !important; }
  /* Photo+text row: keep horizontal at 480-361 but reduce photo to give text more width. */
  .vr-top-pick-card { padding: 16px !important; }
  .vr-tp-photo { width: 64px !important; height: 64px !important; font-size: 18px !important; }
  /* Stack stats to 2-col but shrink value size to avoid overflow on value-heavy races. */
  .vr-top-pick-card [style*="grid-template-columns:1fr 1fr"] div { padding: 8px !important; }
  .vr-top-pick-card [style*="grid-template-columns:1fr 1fr"] div > div:last-child { font-size: 17px !important; }
}
@media (max-width: 360px) {
  /* Collapse Top Pick photo row from horizontal to stacked to prevent
     overflow when candidate name + office wrap onto multiple lines. */
  .vr-top-pick-card > div:nth-child(2) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .vr-tp-photo { width: 56px !important; height: 56px !important; }
}

/* ── Filter pill row — match mockup styling ─────────────────────────────── */
.sd-filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c8d4ec;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.sd-filter-btn:hover {
  background: rgba(92,184,92,0.08);
  border-color: rgba(92,184,92,0.3);
  color: #e6edf3;
}
.sd-filter-btn.active,
.sd-filter-btn.active-gold,
.sd-filter-btn.active-red {
  background: #5cb85c;
  border-color: #5cb85c;
  color: #fff;
}

/* ── Iteration round 2: hero restructure + silhouette + spacing ─────────── */

/* Silhouette fallback replaces flag placeholders on candidate cards. */
.scard-min-silhouette {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
}
.scard-min-silhouette-svg {
  width: 100%; height: 100%;
  display: block;
}

/* Hero mobile: source order already is headline → Top Pick → CTAs via the
   3-child DOM restructure. At ≤900px collapse to 1-col; the grid-column
   / grid-row constraints are intentionally removed on mobile so source
   order prevails. */
@media (max-width: 900px) {
  .vr-hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 24px !important;
  }
  .vr-hero-headline,
  .vr-hero-right,
  .vr-hero-cta {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: auto !important;
  }
  .vr-hero-right {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  /* CTAs full-width + equal-size on mobile per mockup. */
  .vr-hero-cta { justify-content: stretch; }
  .vr-hero-cta .vr-btn { flex: 1 1 100%; text-align: center; }
}

/* Top Pick ≤360px — update for the new 80px photo / 26px padding. */
@media (max-width: 480px) {
  #siteHero.vr-hero { padding: 40px 16px 48px !important; }
  .vr-top-pick-card { padding: 18px !important; }
  .vr-tp-photo { width: 64px !important; height: 64px !important; font-size: 18px !important; }
}
@media (max-width: 360px) {
  .vr-top-pick-card > div:nth-child(2) {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .vr-tp-photo { width: 56px !important; height: 56px !important; }
}

/* More vertical space above the grid section. */
#vr-picks { padding-top: 32px !important; }

/* ── Iteration round 3: mockup fidelity pass ─────────────────────────────── */

/* Container bumped to 1280px to match mockup proportions. */
.vr-container { max-width: 1280px; }

/* HIW — larger circles, dashed connectors between items. */
.vr-hiw-row .vr-hiw-step {
  text-align: center;
  position: relative;
}
.vr-hiw-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(92,184,92,0.12);
  color: #5cb85c;
  font-weight: 900;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  border: 1.5px solid rgba(92,184,92,0.4);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(15,31,61,1), 0 0 0 7px rgba(92,184,92,0.12);
}
.vr-hiw-text {
  color: #e6edf3;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 180px;
  margin: 0 auto;
}
/* Dashed connector between circles (desktop only). Positioned on each
   step's left edge, filling the gutter between circles horizontally. */
@media (min-width: 760px) {
  .vr-hiw-row .vr-hiw-step + .vr-hiw-step::before {
    content: "";
    position: absolute;
    top: 28px;  /* half of 56px circle height */
    left: calc(-50% + 28px);
    right: calc(50% + 28px);
    height: 0;
    border-top: 1.5px dashed rgba(92,184,92,0.35);
    z-index: 1;
  }
}

/* Grid — slightly wider gap so cards feel less cramped. */
.sd-cards-grid { gap: 24px !important; }
#vr-picks { padding-top: 48px !important; padding-bottom: 48px !important; }

/* Minimal card — slightly more vertical weight and clearer hierarchy. */
.scard.scard-min { border-radius: 16px; }
.scard-min-photo { aspect-ratio: 1 / 1; }  /* square per mockup — head+shoulders crop via object-position */
.scard-min-body { padding: 18px 20px 20px; }
.scard-min-name { font-size: 19px; }
.scard-min-race {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8ba5cc;
  margin-bottom: 6px;
}
.scard-min-stats { gap: 8px; margin: 6px 0 12px; }
.scard-min-stat-val { font-size: 20px; }
/* Mockup shows a single Donate Now button primary; Why-this-race is
   subordinate. Keep both but make primary visually dominant. */
.scard-min-btn { padding: 11px 14px; font-size: 13px; }

/* Bottom trust strip — add breathing room above, bigger values. */
.vr-trust-row > div > div:first-child {
  font-size: 26px;
  margin-bottom: 8px;
}

/* Mobile header — compact single-row (48px min-height already set inline). */
@media (max-width: 900px) {
  #vr-header { box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
}

/* ── Iteration round 4: final fidelity pass ─────────────────────────────── */

/* Button normalization — uniform height/padding across hero, Top Pick,
   and cards. Inline overrides were causing visual drift; this block is
   the single source of truth. */
.vr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;                 /* uniform height across surfaces */
  padding: 0 28px;                  /* horizontal only — min-height drives vertical */
  font-size: 15px; font-weight: 800;
  border-radius: 28px;
  line-height: 1;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  box-sizing: border-box;
}
/* Small variant for card-density surfaces (.scard-min-btn uses this). */
.vr-btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 22px;
}

/* Apply small variant to card buttons and drop conflicting overrides. */
.scard-min-btn {
  min-height: 40px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  border-radius: 22px !important;
  width: 100%;
}

/* Grid density — more breathing room, less cramped cards. */
.sd-cards-grid { gap: 28px !important; }
@media (max-width: 1100px) { .sd-cards-grid { gap: 24px !important; } }
@media (max-width: 820px)  { .sd-cards-grid { gap: 18px !important; } }

/* Mobile header — reduce visual weight. */
@media (max-width: 900px) {
  #vr-header {
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border-bottom-width: 1px;
  }
  #vr-hdr-mobile > div {
    min-height: 44px !important;
    padding: 4px 12px !important;
  }
  #vr-hdr-mobile #vr-logo-link span {
    font-size: 17px !important;
  }
  #vr-hdr-mobile #vr-hamburger {
    font-size: 20px !important;
    padding: 6px 8px !important;
  }
}

/* Hero left column should read a bit roomier with the wider gutter. */
@media (min-width: 901px) {
  .vr-hero-headline h1 { margin-bottom: 28px !important; }
}

/* FINAL HOMEPAGE FIDELITY PASS */
#siteHero.vr-hero {
  margin-bottom: 104px !important;
}

@media (min-width: 901px) {
  .vr-hero-grid {
    grid-template-columns: 1.65fr 1fr !important;
    gap: 44px 96px !important;
  }

  .vr-hero-right {
    min-width: 420px !important;
  }

  .vr-top-pick-card {
    padding: 40px !important;
  }

  .vr-tp-photo {
    width: 112px !important;
    height: 112px !important;
  }
}

.sd-cards-grid {
  gap: 32px !important;
}

.scard.scard-min {
  border-radius: 18px !important;
  overflow: hidden !important;
}

.scard-min-photo {
  aspect-ratio: 1 / 1 !important;
  background: #10203f !important;
}

.scard-min-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
}

.scard-min-body {
  padding: 20px 22px 22px !important;
}

.scard-min-name {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

.scard-min-cta {
  gap: 10px !important;
}

.scard-min-btn {
  min-height: 42px !important;
}

@media (max-width: 520px) {
  .sd-cards-grid {
    gap: 22px !important;
  }

  .scard-min-photo {
    aspect-ratio: 1.15 / 1 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HOW IT WORKS + BOTTOM TRUST PANEL — matches
   /public/design/how-it-works-final.png reference composition.
   ══════════════════════════════════════════════════════════════════════ */

/* Card row — 4 across on desktop, stacked on mobile. Padding-top
   reserves room for the overlapping circle. */
.vr-hiw-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  padding-top: 36px;
}

/* Premium dark card with subtle green border and soft shadow. */
.vr-hiw-card {
  position: relative;
  background: linear-gradient(180deg, #0a1628 0%, #081424 100%);
  border: 1px solid rgba(92, 184, 92, 0.18);
  border-radius: 18px;
  padding: 56px 22px 26px;   /* 56px top padding leaves room for circle */
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Number circle — 60px, overlaps top edge of card by half.
   Solid navy bg (same as card) so the dashed connector is naturally
   occluded by the circle area; green border + glow are decorative. */
.vr-hiw-num {
  position: absolute;
  top: -30px;  /* half of 60px circle height */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0a1628;
  border: 2px solid rgba(92, 184, 92, 0.55);
  color: #5cb85c;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(92, 184, 92, 0.25);
  z-index: 3;
}

.vr-hiw-icon {
  width: 36px;
  height: 36px;
  margin: 4px auto 18px;
  color: #5cb85c;
  opacity: 0.85;
}
.vr-hiw-icon svg { width: 100%; height: 100%; display: block; }

.vr-hiw-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}
.vr-hiw-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #8ba5cc;
  max-width: 22ch;
  margin: 0 auto;
}

/* Dashed connector — runs across the row at the vertical center of
   the circles. Pseudo-element on the grid itself sits behind the
   circles (z-index:1) while the solid-bg circles (z-index:3) occlude
   the line at their horizontal extent. Desktop only. */
@media (min-width: 901px) {
  .vr-hiw-cards::before {
    content: "";
    position: absolute;
    top: 0;  /* matches vertical center of circles (circle top:-30 + 30 = 0) */
    left: calc(12.5% + 32px);   /* from center of first circle */
    right: calc(12.5% + 32px);  /* to center of last circle */
    height: 0;
    border-top: 1.5px dashed rgba(92, 184, 92, 0.35);
    z-index: 1;
    pointer-events: none;
  }
}

/* Mobile — stack cards with more breathing room between them so each
   circle has space above its card. */
@media (max-width: 900px) {
  .vr-hiw-cards {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 36px;
  }
  .vr-hiw-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .vr-hiw-desc { max-width: none; }
}

/* ── Bottom trust panel — single bordered panel ─────────────────────── */
.vr-trust-panel {
  background:
    radial-gradient(ellipse at top center, rgba(92, 184, 92, 0.08) 0%, rgba(10, 22, 40, 0) 60%),
    linear-gradient(180deg, #0a1a2e 0%, #081424 100%);
  border: 1px solid rgba(92, 184, 92, 0.3);
  border-radius: 22px;
  padding: 52px 48px;
  box-shadow:
    0 0 0 1px rgba(92, 184, 92, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(92, 184, 92, 0.04);
  position: relative;
}

.vr-trust-cta-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.vr-trust-cta {
  min-width: 200px;
  box-shadow:
    0 6px 20px rgba(92, 184, 92, 0.35),
    0 0 0 6px rgba(92, 184, 92, 0.08);
}
.vr-trust-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.vr-trust-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(92, 184, 92, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  margin-bottom: 40px;
}

.vr-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.vr-trust-col { text-align: center; }

.vr-trust-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  color: #5cb85c;
  opacity: 0.9;
}
.vr-trust-icon svg { width: 100%; height: 100%; display: block; }

.vr-trust-big {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.vr-trust-mid {
  font-size: 13px;
  font-weight: 800;
  color: #5cb85c;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: lowercase;
}
.vr-trust-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  max-width: 22ch;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .vr-trust-panel { padding: 36px 24px; border-radius: 18px; }
  .vr-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .vr-trust-cta-wrap { margin-bottom: 28px; }
  .vr-trust-divider { margin-bottom: 28px; }
  .vr-trust-desc { max-width: none; }
}
@media (max-width: 420px) {
  .vr-trust-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── "Why this race" modal ─────────────────────────────────────────────── */
.vr-why-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vr-why-card {
  background: linear-gradient(180deg, #0c1c38 0%, #071221 100%);
  border: 1px solid rgba(92, 184, 92, 0.3);
  border-radius: 18px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(92, 184, 92, 0.08);
  color: #e6edf3;
  max-height: 90vh;
  overflow-y: auto;
}
.vr-why-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 28px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}
.vr-why-close:hover { color: #fff; }
.vr-why-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5cb85c;
  margin-bottom: 14px;
}
.vr-why-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
}
.vr-why-race {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ba5cc;
  margin-bottom: 20px;
}
.vr-why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.vr-why-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}
.vr-why-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.vr-why-stat-val {
  font-size: 26px;
  font-weight: 900;
  color: #e6edf3;
  line-height: 1;
}
.vr-why-stat-val.green { color: #5cb85c; }
.vr-why-reason-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5cb85c;
  margin-bottom: 8px;
}
.vr-why-reason {
  font-size: 15px;
  line-height: 1.6;
  color: #e6edf3;
  margin-bottom: 18px;
}
.vr-why-helper {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
  .vr-why-card { padding: 24px; border-radius: 14px; }
  .vr-why-name { font-size: 22px; }
  .vr-why-stat-val { font-size: 22px; }
}

/* ── Impact Score custom tooltip (replaces native title= on Impact sites) ─ */
.impact-stat {
  position: relative;
  cursor: help;
}
.impact-stat::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  /* Centered relative to the impact-stat label. The card wrappers use
     overflow:visible (overrides at end of file), so the tooltip can
     extend symmetrically into the inter-card gap on both sides. Width
     trimmed to 220px so the spillover is small on 4-column layouts. */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 220px;
  max-width: min(calc(100vw - 24px), 92vw);
  background: #0b1f3a;
  color: #e6edf3;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 999;
  white-space: normal;
  text-align: left;
}
.impact-stat::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  /* Arrow centered under the centered tooltip, points down toward the
     "i" badge / Impact text. */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0b1f3a transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 999;
}
.impact-stat:hover::after,
.impact-stat:hover::before,
.impact-stat:focus::after,
.impact-stat:focus::before {
  opacity: 1;
}
/* Mobile overflow safety — shrink + clamp so the tooltip can't clip
   beyond the viewport. */
@media (max-width: 520px) {
  .impact-stat::after {
    width: 220px;
    max-width: calc(100vw - 24px);
    font-size: 12px;
    padding: 9px 11px;
  }
}

/* ── Top Pick pulsing dot — used by RaceCard.render({variant:'top_pick'}).
   Keyframes live in the global stylesheet (not inline) so the animation
   restarts cleanly on every render and there's only one source. ── */
@keyframes vrTopPickPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55), 0 0 14px rgba(231, 76, 60, 0.85); transform: scale(1); }
  50%       { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0.0),  0 0 18px rgba(231, 76, 60, 0.95); transform: scale(1.15); }
}

/* ── Tooltip escape — Impact-stat tooltip on .scard-min cards needs to
   float OUTSIDE the card border. TWO ancestor containers clip otherwise:
     1. .scard.scard-min  (overflow:hidden !important earlier in this file)
     2. .race-card-wrap   (overflow:hidden in the .race-card-wrap rule)
   Both swapped to overflow:visible. The photo container takes on the
   rounded-top-corners + overflow:hidden so the image still clips
   correctly to the card's visual outline. */
.scard.scard-min { overflow: visible !important; }
.race-card-wrap  { overflow: visible !important; }
.scard.scard-min .scard-min-photo {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
}
