/* Pelham Engagement Project — shared stylesheet.
   Extracted from index.html so the nine generated pages share one copy
   rather than embedding 1,300 lines apiece. Hand-written: nothing here is
   generated, so edit freely. */

  :root {
    --navy: #1a2744;
    --gold: #c8973a;
    --gold-light: #e8b85a;
    --cream: #f7f3ec;
    --white: #ffffff;
    --slate: #4a5568;
    --slate-light: #8899b0;
    --slate-mid: #556070;
    --slate-dark: #4a6070;
    --light: #eef0f5;
    --red: #9b2335;
    --green: #2a6049;
    --border: #d4d8e1;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.6;
  }

  /* ── HERO ── */
  .hero {
    background: var(--navy);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-stripe {
    background: var(--gold);
    height: 6px;
    width: 100%;
  }

  .hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px 56px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: center;
  }

  .hero-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 20px;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--gold);
  }

  .hero-lead {
    font-size: 17px;
    font-weight: 300;
    color: #b0bdd0;
    line-height: 1.7;
    max-width: 520px;
  }

  .hero-stats {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--gold);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-light);
  }

  .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .stat-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* Names the AI transcription produced that have not been checked against an
     official record. Marked rather than silently published, and rather than
     silently dropped — the reader can see exactly which words to distrust. */
  .verify-flag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--red);
    background: rgba(193,58,58,0.08);
    border: 1px solid rgba(193,58,58,0.25);
    border-radius: 2px;
    padding: 1px 4px;
    margin-left: 4px;
    white-space: nowrap;
    cursor: help;
    vertical-align: 1px;
  }

  .view-all-link {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
  }
  .view-all-link:hover { color: var(--red); border-bottom-color: var(--red); }

  /* A stat that navigates. Kept as an <a href="#explore"> so it works without
     JS and is reachable by keyboard; the script upgrades it to also switch the
     Explore tab. Inherits .stat layout, so only the link chrome is reset. */
  a.stat {
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
  }
  a.stat .stat-label { border-bottom: 1px dotted rgba(200,151,58,0.5); padding-bottom: 2px; }
  a.stat:hover .stat-num,
  a.stat:focus-visible .stat-num { color: var(--gold); }
  a.stat:hover .stat-label,
  a.stat:focus-visible .stat-label { color: var(--white); border-bottom-color: var(--gold); }
  a.stat:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

  /* ── NAV ── */
  .nav-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 0;
    /* clip (not hidden) the horizontal overflow: `overflow-x: hidden` forces
       overflow-y to compute to `auto`, which clipped the absolutely-positioned
       "Explore More" dropdown (it sits at top:100%, below the bar). `clip`
       lets overflow-y stay `visible` so the dropdown can escape downward. */
    overflow-x: clip;
    overflow-y: visible;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }

  .nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
  }
  .nav-dropdown-trigger {
    display: block;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
  }
  .nav-dropdown-wrap:hover .nav-dropdown-trigger {
    color: var(--navy);
    border-bottom-color: var(--gold);
  }
  .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    min-width: 200px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-dropdown-wrap:hover .nav-dropdown,
  .nav-dropdown-wrap.open .nav-dropdown { display: block; }
  .nav-dropdown-wrap.open .nav-dropdown-trigger {
    color: var(--navy);
    border-bottom-color: var(--gold);
  }
  .nav-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--slate);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
  }
  .nav-dropdown a:last-child { border-bottom: none; }
  .nav-dropdown a:hover { background: var(--light); color: var(--navy); }

  .nav-inner a {
    display: block;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }

  .nav-inner a:hover {
    color: var(--navy);
    border-bottom-color: var(--gold);
  }

  /* ── LAYOUT ── */
  .content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
  }

  .section:last-child {
    border-bottom: none;
  }

  .section-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 900;
    color: #2255cc;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .section-intro {
    font-size: 16px;
    color: var(--slate);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 48px;
  }

  /* ── GOVERNING BODIES ── */
  .gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }

  .gov-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    padding: 28px;
  }

  .gov-card.gold-top { border-top-color: var(--gold); }
  .gov-card.red-top { border-top-color: var(--red); }
  .gov-card.green-top { border-top-color: var(--green); }

  .gov-card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 8px;
  }

  .gov-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .gov-card p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .gov-card-detail {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }

  .detail-key {
    color: var(--slate);
  }

  .detail-val {
    font-weight: 500;
    text-align: right;
    max-width: 200px;
  }

  .gov-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    letter-spacing: 0.03em;
  }

  .gov-link:hover { color: var(--gold); }

  .source-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 3px 8px;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
  }

  .source-link:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
  }

  .source-link::before {
    content: '↗';
    font-size: 10px;
    opacity: 0.6;
  }

  .issue-source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    letter-spacing: 0.02em;
    transition: color 0.15s, border-color 0.15s;
  }

  .issue-source-link:hover {
    color: var(--navy);
    border-color: var(--navy);
  }

  .issue-source-link::before {
    content: '↗';
    font-size: 10px;
  }

  /* ── TAX BREAKDOWN ── */
  .tax-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .tax-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .tax-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .tax-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
  }

  .tax-bar-name { font-weight: 500; color: var(--slate); }
  .tax-bar-pct { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--slate); }

  .tax-bar-track {
    background: var(--light);
    height: 8px;
    border-radius: 2px;
    overflow: hidden;
  }

  .tax-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
  }

  .bar-school { background: var(--navy); }
  .bar-county { background: var(--gold); }
  .bar-village { background: var(--red); }
  .bar-town { background: var(--green); }
  .bar-manor { background: var(--slate-mid); }

  .tax-bar-detail { font-size: 12px; color: var(--slate); margin-top: -2px; }
  /* No published share: the track is drawn but nothing fills it. */
  .tax-bar-track.is-unknown {
    background: repeating-linear-gradient(45deg, var(--light), var(--light) 4px, var(--white) 4px, var(--white) 8px);
    border: 1px dashed var(--border);
  }

  /* Village of Pelham vs Pelham Manor, same assessed value. */
  .tax-compare {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    padding: 24px 28px;
    margin-top: 48px;
  }
  .tax-compare-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); margin-bottom: 4px; }
  .tax-compare-sub { font-size: 12px; font-family: 'IBM Plex Mono', monospace; color: var(--slate); margin-bottom: 20px; }
  .tax-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .tax-compare-label { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
  .tax-compare-amount { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .tax-compare-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--slate); }
  @media (max-width: 600px) { .tax-compare-grid { grid-template-columns: 1fr; } }


  .tax-explainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .tax-explainer-block {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
  }

  .tax-explainer-block.gold { border-left-color: var(--gold); }
  .tax-explainer-block.red { border-left-color: var(--red); }
  .tax-explainer-block.green { border-left-color: var(--green); }

  .teb-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 6px;
  }

  .teb-desc {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
  }

  .tax-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f0f4ff;
    border: 1px solid #c8d4ef;
    font-size: 13px;
    color: #2a3a6a;
    line-height: 1.6;
  }

  /* ── CURRENT ISSUES ── */
  .issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .issue-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 28px;
    position: relative;
    overflow: hidden;
  }

  .issue-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 14px;
    font-weight: 500;
  }

  .tag-budget { background: #fef3cd; color: #7a5800; }
  .tag-education { background: #dce8ff; color: #1a3a7a; }
  .tag-infrastructure { background: #ddf0e8; color: #1a5a3a; }
  .tag-energy { background: #fde8d8; color: #7a2a00; }
  .tag-transit { background: #e8ddfb; color: #3a1a7a; }
  .tag-sustainability { background: #ddf0e8; color: #1a5a3a; }

  .issue-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .issue-card p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
  }

  .issue-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .dot-active { background: #22c55e; }
  .dot-watch { background: var(--gold); }
  .dot-urgent { background: var(--red); }

  /* ── GET INVOLVED ── */
  .involved-section { background: var(--navy); color: var(--white); }
  .involved-section .section-eyebrow { color: var(--gold-light); }
  .involved-section .section-title { color: var(--white); }
  .involved-section .section-intro { color: var(--slate-light); }

  .involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .involved-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 28px;
    transition: background 0.2s;
  }

  .involved-card:hover { background: rgba(255,255,255,0.08); }

  .involved-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
  }

  .involved-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-light);
  }

  .involved-card p {
    font-size: 13px;
    color: var(--slate-light);
    line-height: 1.65;
  }

  .involved-card ul {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .involved-card li {
    font-size: 13px;
    color: #a0b0c8;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
  }

  .involved-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
    top: 1px;
  }

  /* ── MEETING SCHEDULE ── */
  .meetings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 14px;
  }

  .meetings-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .meetings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  .meetings-table tr:last-child td { border-bottom: none; }
  .meetings-table tr:nth-child(even) td { background: #f9fafb; }

  .body-name {
    font-weight: 600;
    color: var(--navy);
  }

  .meeting-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
  }

  .meeting-link:hover { color: var(--gold); }

  /* ── FOOTER ── */
  footer {
    background: #111827;
    color: #6b7280;
    padding: 32px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
  }

  footer a { color: var(--gold-light); text-decoration: none; }
  footer strong { color: var(--white); }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .tax-layout { grid-template-columns: 1fr; }
    .content-wrap { padding: 0 20px; }
    .section { padding: 48px 0; }
    .involved-card[style*="grid-column"] { grid-column: span 1 !important; }
    .involved-card[style*="grid-column"] > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  }


  /* ── MEETING SUMMARIES ── */
  /* Level 1: one tab per governing body. */
  .mtg-body-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }
  .mtg-body-tab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 2px solid var(--border);
    border-top: 4px solid var(--border);
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-family: 'IBM Plex Sans', sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .mtg-body-tab:hover {
    border-color: var(--navy);
    border-top-color: var(--gold);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  }
  .mtg-body-tab.is-active {
    border-color: var(--navy);
    border-top-color: var(--gold);
    background: var(--navy);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }
  .mtg-body-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
  }
  .mtg-body-tab.is-active .mtg-body-name { color: var(--white); }
  .mtg-body-latest {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--slate);
    letter-spacing: 0.03em;
  }
  .mtg-body-tab.is-active .mtg-body-latest { color: var(--slate-light); }
  @media (max-width: 900px) { .mtg-body-tabs { grid-template-columns: 1fr 1fr; } }

  .mtg-body-panel[hidden], .mtg-set[hidden], .mtg-date-list li[hidden],
  .transcript-block[hidden] { display: none; }

  /* Level 2: one meeting's summary. */
  .mtg-set {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 28px 32px;
    animation: fadeIn 0.2s ease;
  }
  .mtg-set-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 16px;
  }
  .mtg-sec { margin-bottom: 28px; }
  .mtg-sec-title {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 12px;
  }
  .mtg-sec-empty { font-size: 14px; color: var(--slate); line-height: 1.6; }
  .mtg-sec-empty a { color: var(--navy); }

  .mtg-fold { border-top: 1px solid var(--border); }
  .mtg-fold:last-of-type { border-bottom: 1px solid var(--border); }
  .mtg-fold > summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
  }
  .mtg-fold > summary::-webkit-details-marker { display: none; }
  .mtg-fold > summary::before {
    content: '▸';
    color: var(--gold);
    font-size: 12px;
    transition: transform 0.15s;
  }
  .mtg-fold[open] > summary::before { transform: rotate(90deg); }
  .mtg-fold-title { font-weight: 600; font-size: 15px; color: var(--navy); }
  .mtg-fold-note { font-size: 12px; color: var(--slate); font-family: 'IBM Plex Mono', monospace; }
  .mtg-fold > summary:hover .mtg-fold-title { color: var(--gold); }
  .mtg-fold-body { padding: 4px 0 20px; }
  /* The vote and action blocks carried their own top rule and spacing when
     they sat stacked in one panel; inside a fold the fold draws the line. */
  .mtg-fold .exec-votes { margin-top: 0 !important; border-top: none; padding-top: 0; }

  .transcript-more {
    margin-top: 12px;
    background: var(--white);
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 8px 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .transcript-more:hover { background: var(--navy); color: var(--white); }

  /* Earlier meetings for the same body: a plain list of dates. */
  .mtg-older { margin-top: 20px; }
  .mtg-older-label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 8px;
  }
  .mtg-date-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
  .mtg-date-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
  }
  .mtg-date-link:hover { color: var(--gold); }
  .mtg-date-detail { font-size: 12px; color: var(--slate); margin-left: 6px; }
  @media (max-width: 600px) { .mtg-set { padding: 20px 16px; } }

  .mtg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .mtg-meta-item {
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--slate);
  }
  .mtg-video-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
  }
  .mtg-video-link:hover { color: var(--gold); }

  .exec-summary p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--navy);
    margin-bottom: 14px;
  }
  .exec-votes {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .exec-votes-label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 12px;
  }
  .vote-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .vote-row:last-child { border-bottom: none; }
  .vote-result {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
  }
  .vote-result.pass { background: #ddf0e8; color: var(--green); }
  .vote-result.defer { background: #fef3cd; color: #7a5800; }
  .vote-result.fail { background: #fde8e8; color: var(--red); }
  .vote-desc { color: var(--navy); }

  .detail-section {
    border-left: 3px solid var(--border);
    padding-left: 20px;
    margin-bottom: 28px;
    transition: border-color 0.2s;
  }
  .detail-section:hover { border-left-color: var(--gold); }
  .detail-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  .detail-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--slate);
    white-space: nowrap;
  }
  .detail-section-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
  }
  .detail-body {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
  }
  .detail-list {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .detail-list li {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
  }
  .detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
    top: 2px;
  }

  .transcript-body {
    background: #f9fafb;
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 520px;
    overflow-y: auto;
    font-size: 14px;
  }
  .transcript-block {
    display: grid;
    grid-template-columns: 80px 200px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: baseline;
    line-height: 1.6;
  }
  .transcript-block:last-child { border-bottom: none; }
  .ts-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
  }
  .ts-speaker {
    font-weight: 600;
    font-size: 12px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .ts-text { color: #333; }
  .ts-ellipsis { grid-template-columns: 1fr; padding: 16px 0; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

  /* ── SCROLL ANIMATION ── */
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: none;
  }

  .feedback-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .feedback-label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: #3a5060;
    letter-spacing: 0.05em;
  }
  .feedback-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--slate-dark);
    padding: 4px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .feedback-btn:hover { border-color: rgba(255,255,255,0.3); color: #c8d8e8; }
  .feedback-btn.selected-up   { background: rgba(42,96,73,0.3); border-color: #2a6049; color: #66bb88; }
  .feedback-btn.selected-down { background: rgba(155,35,53,0.3); border-color: #9b2335; color: #dd6677; }
  .feedback-thanks {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: #3a7050;
    display: none;
  }
  /* Same span reports a failed vote, so the reader is never thanked for
     feedback that was not recorded. */
  .feedback-thanks.is-error { color: #dd6677; }

  /* ── MEETING SUMMARY DISCLAIMER ── */
  .summary-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e8;
    border: 1px solid #e8d090;
    border-left: 4px solid #c8973a;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #5a4010;
  }
  .summary-disclaimer-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .summary-disclaimer a { color: #7a5010; text-decoration: underline; }
  .summary-disclaimer strong { color: #3a2800; }

  .race-block {
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
    overflow: hidden;
  }
  .race-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .race-meta { display: flex; flex-direction: column; gap: 3px; }
  .race-body { font-size: 16px; font-weight: 700; color: var(--white); }
  .race-type { font-size: 12px; font-family: 'IBM Plex Mono', monospace; color: var(--slate-mid); }
  .race-badge {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    padding: 3px 10px;
    font-weight: 500;
  }
  .race-badge.contested { background: rgba(200,151,58,0.2); color: var(--gold-light); border: 1px solid rgba(200,151,58,0.3); }
  .candidates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .party-column {
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .party-column:last-child { border-right: none; }
  .party-label {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    margin-bottom: 14px;
    display: inline-block;
  }
  .party-label.dem { background: rgba(34,85,204,0.2); color: #88aaee; border: 1px solid rgba(34,85,204,0.3); }
  .party-label.nbhd { background: rgba(155,35,53,0.2); color: #dd8899; border: 1px solid rgba(155,35,53,0.3); }
  .candidate-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 14px;
    margin-bottom: 12px;
  }
  .candidate-card:last-child { margin-bottom: 0; }
  .candidate-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
  }
  .candidate-meta {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--slate-mid);
    margin-bottom: 8px;
  }
  .candidate-summary {
    font-size: 13px;
    color: var(--slate-light);
    line-height: 1.65;
    margin-bottom: 8px;
  }
  .examiner-link {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(200,151,58,0.3);
    padding-bottom: 1px;
  }
  .examiner-link:hover { color: var(--gold-light); }
  .race-context {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--slate-mid);
    line-height: 1.6;
  }
  .race-context strong { color: var(--slate-light); }
  @media (max-width: 768px) {
    .candidates-grid { grid-template-columns: 1fr; }
    .party-column { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  }

  .suggestion-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #a0b4cc;
    padding: 6px 14px;
    font-size: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
  }
  .suggestion-chip:hover {
    background: rgba(200,151,58,0.15);
    border-color: var(--gold);
    color: var(--gold-light);
  }
  .opinion-chip {
    border-color: rgba(200,151,58,0.4);
    color: #c8aa70;
  }
  .opinion-chip::before {
    content: "✦ ";
    color: var(--gold);
    font-size: 10px;
  }
  .draft-chip {
    border-color: rgba(26,122,122,0.4);
    color: #55aaaa;
  }
  .draft-chip::before {
    content: "✎ ";
    color: #55cccc;
    font-size: 11px;
  }
  .chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 88%;
  }
  .chat-bubble.user { align-self: flex-end; align-items: flex-end; }
  .chat-bubble.assistant { align-self: flex-start; align-items: flex-start; }
  .bubble-label {
    font-size: 10px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    color: var(--white);
  }
  .bubble-text {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.65;
  }
  .chat-bubble.user .bubble-text {
    background: rgba(200,151,58,0.2);
    border: 1px solid rgba(200,151,58,0.3);
    color: #e8d5aa;
  }
  .chat-bubble.assistant .bubble-text {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #c8d8e8;
  }
  .go-deeper-block {
    margin-top: 12px;
    background: rgba(200,151,58,0.08);
    border: 1px solid rgba(200,151,58,0.25);
    border-left: 3px solid var(--gold);
    padding: 12px 14px;
  }
  .go-deeper-label {
    font-size: 10px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
  }
  .go-deeper-prompt {
    font-size: 12px;
    color: #a8b8c8;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 10px;
  }
  .go-deeper-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .go-deeper-copy {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    background: rgba(200,151,58,0.15);
    border: 1px solid rgba(200,151,58,0.3);
    color: var(--gold-light);
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .go-deeper-copy:hover { background: rgba(200,151,58,0.25); }
  .go-deeper-link {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--slate-mid);
    text-decoration: none;
  }
  .go-deeper-link:hover { color: var(--slate-light); }
  .copy-confirm {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: #44aa66;
    display: none;
  }
  .typing-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin: 0 2px;
    animation: bounce 1.2s infinite;
  }
  .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
  .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
  }

  .explore-tab{background:none;border:none;border-bottom:3px solid transparent;padding:14px 24px;font-family:'IBM Plex Sans',sans-serif;font-size:14px;font-weight:500;color:var(--slate);cursor:pointer;margin-bottom:-2px;transition:color 0.15s,border-color 0.15s;white-space:nowrap;}
  .explore-tab:hover{color:var(--navy);}
  .active-explore-tab{color:var(--navy);border-bottom-color:var(--navy);font-weight:700;}
  .explore-panel{display:none;}
  .explore-panel.active-panel{display:block;}

  @media (max-width: 768px) {
    #about .content-wrap > div[style*="grid-template-columns: 1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }
  }

  /* Button hover backgrounds — migrated from inline onmouseover/onmouseout.
     !important overrides the element's inline style="background:…". */
  .btn-ask:hover { background: #e8b85a !important; }
  .btn-submit-correction:hover { background: #2255cc !important; }

  /* ── Elections · voter-info boxes ── */
  .voter-info-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 20px; }
  .voter-info-label { font-size: 11px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
  .voter-info-value { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
  .voter-info-note { font-size: 12px; color: var(--slate-light); }

  /* ── Ask Pelham · vetted-source chips ── */
  .source-chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 5px 12px; font-size: 12px; color: var(--slate-light); font-family: 'IBM Plex Mono', monospace; }

  /* ── Get Involved · repeated labels & chips ── */
  .involved-eyebrow { font-size: 12px; font-weight: 600; color: var(--gold-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }

  /* ── ENGAGEMENT STEPS ── */
  .ladder { margin: 0 0 40px; }
  .ladder-intro {
    font-size: 15px; line-height: 1.75; color: var(--slate-light);
    max-width: 780px; margin-bottom: 24px;
  }
  .ladder-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .ladder-step {
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-top: 3px solid var(--gold);
    padding: 18px 16px;
  }
  .ladder-num {
    flex: 0 0 auto;
    font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
    color: var(--gold); line-height: 1;
  }
  .ladder-step h4 {
    font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 700;
    color: var(--white); margin: 0 0 6px;
  }
  .ladder-step p { font-size: 13px; line-height: 1.65; color: var(--slate-light); margin: 0; }
  .ladder-step a { color: var(--gold-light); }
  @media (max-width: 900px) { .ladder-steps { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .ladder-steps { grid-template-columns: 1fr; } }
  /* ── Get Involved · three parts: raise a concern, vote, run ── */
  .involved-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 48px; }
  .involved-jump a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; text-decoration: none;
    color: var(--white); border: 1px solid rgba(255,255,255,0.18);
  }
  .involved-jump a:hover { border-color: var(--gold); color: var(--gold-light); }
  .involved-jump span { font-family: 'Playfair Display', serif; color: var(--gold); }
  .involved-part { padding: 8px 0 48px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); scroll-margin-top: 80px; }
  .involved-part:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .involved-part-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
  .involved-part-num { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; }
  .involved-part-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--white); }
  .involved-part-intro { font-size: 15px; line-height: 1.75; color: var(--slate-light); max-width: 780px; margin-bottom: 24px; }
  .involved-guide { margin-bottom: 28px; border-top: 4px solid var(--gold); }
  .involved-schedule { margin-top: 8px; }
  .involved-link {
    display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
    color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px;
  }
  .involved-link:hover { color: var(--white); }
  .involved-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
  .involved-actions .involved-link { margin-top: 0; }
  .involved-cta {
    background: var(--gold); color: var(--navy); padding: 10px 18px;
    font-size: 13px; font-weight: 700; text-decoration: none;
  }
  .involved-cta:hover { background: var(--gold-light); }
  .vote-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .vote-fact { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-top: 3px solid var(--gold); padding: 16px 18px; }
  .vote-fact-label { font-size: 11px; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
  .vote-fact-value { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
  .vote-fact-note { font-size: 12px; line-height: 1.6; color: var(--slate-light); }
  .vote-fact-note a { color: var(--gold-light); }
  .office-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .office-list li { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
  .office-body { font-weight: 700; color: var(--white); font-size: 14px; }
  .office-count { font-size: 11px; font-family: 'IBM Plex Mono', monospace; color: var(--gold-light); }
  .office-titles { font-size: 13px; line-height: 1.6; color: var(--slate-light); }
  .involved-list { list-style: none; padding: 0; margin: 0; }
  .involved-list li { font-size: 13px; color: #a0b0c8; padding: 6px 0 6px 16px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .involved-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 8px; }
  @media (max-width: 768px) {
    .vote-facts, .office-list { grid-template-columns: 1fr; }
    .involved-guide > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  }
  .meeting-chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 6px 12px; font-size: 12px; color: #a0b0c8; }

  /* ── About · headings, body copy, editorial callout ── */
  .about-h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--navy); }
  .about-body { font-size: 15px; line-height: 1.75; color: var(--slate); }
  .editorial-callout { margin-top: 24px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); }

  /* ── About · correction & feedback forms ── */
  .about-form-card { background: var(--white); border: 1px solid var(--border); padding: 28px; }
  .about-form-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
  .about-form-h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
  .form-fields { display: flex; flex-direction: column; gap: 12px; }
  .form-field-label { font-size: 12px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 4px; }
  .form-control { width: 100%; padding: 8px 10px; border: 1px solid var(--border); font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; background: var(--cream); }
  .fb-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
  .form-confirm { display: none; font-size: 13px; color: var(--green); font-weight: 500; }
  /* Same element reports failure, so a reader can never be told their
     submission was received when the write did not land. */
  .form-confirm.is-error { color: var(--red); }
  .about-source-link { font-size: 13px; padding: 8px 12px; }

/* ══════════════════════════════════════════════════════════════════════
   SHARED NAVIGATION  (multi-page)
   Markup generated by generateNav() in scripts/build.js.
   ══════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 8px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 2px;
  padding: 1px 4px;
  margin-left: 5px;
  vertical-align: 1px;
}

/* ── More menu ── */
.nav-more-wrap { position: relative; }
.nav-more-trigger {
  display: block;
  padding: 16px 20px;
  line-height: inherit;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-more-trigger:hover { color: var(--navy); border-bottom-color: var(--gold); }

/* The current page. aria-current and .is-active were emitted from the start,
   but nothing rendered them, so the nav looked the same on every page. */
.nav-inner a.is-active,
.nav-more-trigger.is-active {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--gold);
}
.nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 6px 0;
  z-index: 120;
}
.nav-more-wrap.open .nav-more-menu { display: block; }
.nav-more-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--slate-light);
  text-decoration: none;
  white-space: nowrap;
}
.nav-more-menu a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-more-menu a.is-active { color: var(--gold-light); }
.nav-ico { width: 1.15em; text-align: center; flex: 0 0 auto; }

/* ── Hamburger: hidden until the bar runs out of room ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 17px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Drawer: slides in from the LEFT ── */
/* `hidden` must win over the display rules below, or the drawer stays in the
   accessibility tree and on screen while claiming to be closed. */
.nav-drawer[hidden], .nav-scrim[hidden] { display: none; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.55);
  z-index: 140;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.nav-scrim.open { opacity: 1; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.12);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.nav-drawer-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  color: var(--slate-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nav-drawer-close:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

.nav-drawer-list { list-style: none; margin: 0; padding: 8px 0; flex: 1 1 auto; }
.nav-drawer-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: var(--slate-light);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-drawer-list a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-drawer-list a.is-active {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: rgba(200,151,58,0.08);
}
.nav-drawer-label { flex: 1 1 auto; }

.nav-drawer-note {
  margin: 0;
  padding: 16px 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  line-height: 1.6;
  color: var(--slate-mid);
}

/* Reduced motion: appear and disappear rather than slide. */
@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-scrim, .nav-burger span { transition: none; }
}

/* Below this width the five primary links no longer fit beside the brand. */
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .nav-inner { justify-content: flex-start; gap: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════
   HOME DIGEST
   Blocks that only appear on the homepage: section headers with a link
   through to the full page, the election banner, and meeting cards.
   ══════════════════════════════════════════════════════════════════════ */

.digest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.digest-head .section-title { margin-bottom: 0; }

.digest-more {
  flex: 0 0 auto;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.digest-more:hover { color: var(--red); border-bottom-color: var(--red); }
.involved-section .digest-more { color: var(--gold-light); }
.involved-section .digest-more:hover { color: var(--white); border-bottom-color: var(--white); }

/* ── Election banner ── */
.home-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 64px);
  background: var(--navy);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  font-family: 'IBM Plex Sans', sans-serif;
}
.home-banner:hover { background: #13263f; }
.home-banner-tag {
  flex: 0 0 auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 4px 8px;
}
.home-banner-text { flex: 1 1 320px; font-size: 14px; color: var(--slate-light); line-height: 1.5; }
.home-banner-text strong { color: var(--white); }
.home-banner-cta { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--gold-light); white-space: nowrap; }

/* ── Meeting preview cards ── */
.mtg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.mtg-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.mtg-card:hover { border-top-color: var(--gold); transform: translateY(-2px); }
.mtg-card-body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.mtg-card-date { font-size: 13px; color: var(--red); font-weight: 600; }
.mtg-card-detail { font-size: 12px; color: var(--slate); }
.mtg-card-meta {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--slate);
}

@media (max-width: 600px) {
  .digest-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Context strip: sideways routes out of a page ── */
.context-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.context-strip-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.context-strip a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.context-strip a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Home digest shows three issues in one row rather than a wrapping grid. */
.issues-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .issues-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .issues-grid-3 { grid-template-columns: 1fr; } }

/* ── Collapsible race sections ── */
.race-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  color: var(--white);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s;
}
.race-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.race-toggle[aria-expanded="false"] { transform: rotate(-90deg); }
/* Named race-panel, not race-body: .race-body is already the span
   holding the governing body name in the race header. */
.race-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .race-toggle { transition: none; } }

/* ── Learn more: outbound reading at the foot of a page ── */
.learn-more {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.learn-more-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}
.learn-more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.learn-more-list a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.learn-more-list a:hover { color: var(--red); border-bottom-color: var(--red); }
.learn-more-note {
  display: block;
  margin-top: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--slate);
}

/* ── Shared "Ask Pelham AI" CTA ──────────────────────────────────────────
   Emitted by the page shell on every content page, so it cannot drift
   between pages or be forgotten on a new one. */
.ask-cta {
  background: var(--navy);
  border-top: 3px solid var(--gold);
}
.ask-cta .content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.ask-cta-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: var(--slate-light);
}
.ask-cta-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.ask-cta-link:hover { color: var(--white); border-bottom-color: var(--white); }

.footer-feedback { margin-top: 8px; }
.footer-feedback a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,151,58,0.5);
}
.footer-feedback a:hover { color: var(--white); border-bottom-color: var(--white); }

@media (max-width: 560px) {
  .ask-cta .content-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
