/* ======================================================================
   Electoral Accountability — Complete Design System
   Fonts: Newsreader (serif) + Inter (sans) + JetBrains Mono (mono)
   Color-blind-safe. CSS variables for theming. Matches mockup 09.
   ====================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&display=swap");

/* ── Cyberpunk/terminal theme ────────────────────────────────────────────
   Every page and shared component (ds-core: ScorecardTile, RecordList,
   StatusDot, tag) consumes these same variable names, so this block alone
   re-themes the whole app. Status (--good/--warn/--bad) is reskinned to
   fit the palette but stays semantically untouched: those three colors are
   reserved for *process facts* (missed vote, conviction) per
   EDITORIAL_PRINCIPLES §1 and must never be repurposed to color a policy
   position. Corners are sharp (raw terminal/brutalist, not soft-SaaS);
   headers run in mono for the "dossier readout" feel; one neon (cyan) is
   the interactive/brand accent, with a separate hot-magenta reserved for
   genuine alerts so the two never compete for the same meaning. */
:root {
    --font-sans: "Inter", system-ui, sans-serif;
    --font-serif: "JetBrains Mono", "Newsreader", monospace;
    --font-mono: "JetBrains Mono", monospace;

    --ink: #d3f5e5;
    --ink-2: #8fb3a8;
    --ink-3: #5c7a71;
    --ink-4: #3a4d47;

    --paper: #05080a;
    --paper-2: #0b1113;
    --paper-3: #10181b;

    --line: #1c2b2c;
    --line-2: #2a3f3f;

    --accent: #ff2d78;
    --accent-soft: rgba(255, 45, 120, 0.12);

    --civic: #00e5c7;
    --civic-soft: rgba(0, 229, 199, 0.1);

    --good: #39ff6a;
    --good-soft: rgba(57, 255, 106, 0.1);
    --warn: #ffc93c;
    --warn-soft: rgba(255, 201, 60, 0.1);
    --bad: #ff3b4e;
    --bad-soft: rgba(255, 59, 78, 0.1);

    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 32px;
    --s-8: 40px;
    --s-9: 48px;
    --s-10: 64px;

    /* Sharp by default — punk/brutalist, not soft-SaaS rounded. */
    --r-sm: 0px;
    --r-md: 0px;
    --r-lg: 2px;
    --r-xl: 2px;
    --r-2xl: 2px;
    --r-pill: 2px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 120ms;
    --t-base: 200ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: var(--font-sans);
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    position: relative;
}
/* Scanline overlay — subtle, fixed, never intercepts clicks. The defining
   "terminal readout" texture; kept faint enough not to fight legibility on
   dense civic-record tables. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 229, 199, 0.035) 0px,
        rgba(0, 229, 199, 0.035) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
}
/* Grain — the grit that pure scanlines don't give you. Fixed noise texture,
   very low opacity, blended on top so it reads as print/xerox degradation
   rather than a visible pattern. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* Utility: a one-shot glitch flicker for headers/emphasis. Sparingly. */
@keyframes glitch-flicker {
    0%, 100% { opacity: 1; transform: translate(0, 0); }
    92% { opacity: 1; transform: translate(0, 0); }
    93% { opacity: 0.7; transform: translate(-1px, 0.5px); }
    94% { opacity: 1; transform: translate(1px, 0); }
    96% { opacity: 0.85; transform: translate(0, -0.5px); }
}
.glitch-text {
    animation: glitch-flicker 6s infinite;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--s-8);
    background: var(--paper-3);
    border-bottom: 1px solid var(--civic);
    box-shadow: 0 1px 12px var(--civic-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
}
.topbar-logo::before {
    content: "[ ";
    color: var(--ink-4);
}
.topbar-logo::after {
    content: " ]";
    color: var(--ink-4);
}
.topbar-logo .dot {
    color: var(--civic);
    animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.15; }
}
/* Hidden at all viewport sizes — the mobile media query below only adds
   the *visible* hamburger label and the checked-state menu-reveal rule. */
.nav-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.mobile-menu-btn {
    display: none;
}
.topbar-nav {
    display: flex;
    gap: 26px;
}
.topbar-nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.topbar-nav a:hover,
.topbar-nav a.active {
    color: var(--civic);
    border-bottom-color: var(--civic);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preamble {
    background: var(--paper-3);
    border-bottom: 1px solid var(--line);
    padding: var(--s-6) var(--s-8);
}
.preamble-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.preamble h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-top: var(--s-2);
    margin-bottom: var(--s-2);
}
.preamble p {
    color: var(--ink-3);
    font-size: 14px;
    max-width: 80ch;
}

.breadcrumb {
    padding: 14px var(--s-8);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.04em;
}
.breadcrumb a {
    color: var(--ink-2);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent);
}

.hero {
    padding: 56px var(--s-8) var(--s-8);
    background: var(--paper-3);
    border-bottom: 2px solid var(--ink);
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: var(--s-8);
    align-items: start;
}
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 160px 1fr;
    }
}
.hero-portrait {
    width: 220px;
    height: 264px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 40%, #f59e0b 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.hero-portrait::after {
    content: "PORTRAIT";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2em;
}
.hero-identity .kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.hero-identity .kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.hero-identity h1 {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 10px;
}
.hero-identity .subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    color: var(--ink-2);
    margin-bottom: 16px;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.hero-bio {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 60ch;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scorecard-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper-3);
    border-bottom: 2px solid var(--ink);
}
@media (max-width: 1000px) {
    .scorecard-strip {
        grid-template-columns: 1fr 1fr;
    }
}
/* Mockup class names (scs-*) as aliases */
.scs-cell,
.strip-cell {
    padding: 24px 28px;
    border-right: 1px solid var(--line);
    position: relative;
}
.scs-cell:last-child,
.strip-cell:last-child {
    border-right: none;
}
.scs-cell.flag::before,
.strip-cell.flag::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Neutral default (no data collected yet) — must not default to "good"
       (green). A tile only earns green/amber/red once it has an actual
       denominator; see profile.rs's has_*_data checks. */
    background: var(--ink-3);
}
.strip-cell.flag.good::before,
.scs-cell.flag.good::before {
    background: var(--good);
}
.scs-cell.flag.warn::before,
.strip-cell.flag.warn::before {
    background: var(--warn);
}
.scs-cell.flag.bad::before,
.strip-cell.flag.bad::before {
    background: var(--bad);
}
.scs-cell.flag.none::before,
.strip-cell.flag.none::before {
    background: var(--ink-3);
}
.scs-lbl,
.strip-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: var(--s-2);
}
.scs-val,
.strip-value {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ink);
}
.scs-val.good,
.strip-value.good {
    color: var(--good);
}
.scs-val.warn,
.strip-value.warn {
    color: var(--warn);
}
.scs-val.bad,
.strip-value.bad {
    color: var(--bad);
}
.scs-val.none,
.strip-value.none {
    color: var(--ink-3);
}
.scs-meta,
.strip-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 10px;
    line-height: 1.5;
}
.scs-cite,
.strip-cite {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--civic-soft);
    color: var(--civic);
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

.profile-tabs {
    display: flex;
    background: var(--paper-3);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--s-8);
    gap: 4px;
    overflow-x: auto;
}
.profile-tab {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--ink-3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--t-fast);
    text-decoration: none;
}
.profile-tab.active,
.profile-tab:hover {
    color: var(--ink);
}
.profile-tab.active {
    border-color: var(--accent);
    font-weight: 600;
}
.profile-tab .count {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--paper-2);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    color: var(--ink-3);
    font-weight: 700;
}
.profile-tab.active .count {
    background: var(--accent-soft);
    color: var(--accent);
}

.profile-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--s-7);
    padding: var(--s-9) var(--s-8);
}
@media (max-width: 1100px) {
    .profile-body {
        grid-template-columns: 1fr;
    }
}
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.psection {
    background: var(--paper-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: 6px 6px 0 0 var(--paper-2), 6px 6px 0 1px var(--line-2);
    margin-bottom: 6px;
}
.psection-header {
    padding: 22px 26px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative;
}
.psection-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--civic);
    box-shadow: 0 0 8px var(--civic);
}
.psection-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--civic);
    font-weight: 700;
    margin-bottom: 4px;
}
.psection-eyebrow::before {
    content: "// ";
    color: var(--ink-4);
}
.psection-title {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
}
.psection-sub {
    font-size: 13px;
    color: var(--ink-3);
    margin-top: 4px;
    max-width: 60ch;
}
.psection-content {
    padding: var(--s-6) 26px;
}

.scorecard-tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    min-width: 128px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.scorecard-tile:hover {
    border-color: var(--civic);
    box-shadow: 0 0 12px var(--civic-soft);
}
.scorecard-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
}
.scorecard-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--civic);
    text-shadow: 0 0 12px var(--civic-soft);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.scorecard-sublabel {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
}
.tiles-row {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin: var(--s-4) 0;
}

.record-list {
    margin: var(--s-6) 0;
}
.record-list-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: var(--s-2);
}
.record-list-items {
    list-style: none;
}
.record-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-3);
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.record-row:last-child {
    border-bottom: none;
}
.record-glyph {
    font-size: 12px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.record-title {
    color: var(--ink);
    font-weight: 500;
}
.record-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    text-align: right;
    white-space: nowrap;
}

.status-good {
    color: var(--good);
}
.status-warn {
    color: var(--warn);
}
.status-bad {
    color: var(--bad);
}
.status-neutral {
    color: var(--ink-3);
}
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--s-3) 0;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--paper-2);
    color: var(--ink-2);
}
.tag.party {
    background: var(--civic-soft);
    color: var(--civic);
    border-color: var(--civic);
}
.tag.elected {
    background: var(--good-soft);
    color: var(--good);
    border-color: var(--good);
}

.profile-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--s-4);
    margin-bottom: var(--s-4);
}
.profile-header-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.profile-header-name {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 6px 0;
}
.profile-header-subtitle {
    color: var(--ink-2);
    font-size: 16px;
}
.profile-bio {
    color: var(--ink-2);
    line-height: 1.6;
    margin: var(--s-4) 0;
}

.scorecard-cards {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-top: var(--s-3);
}
.scorecard-card {
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
    flex: 1;
    background: var(--paper-3);
}
.scorecard-card-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-4);
}
.scorecard-rating {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.scorecard-scale {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
}
.scorecard-source {
    text-align: right;
}
.scorecard-rated-by {
    font-size: 13px;
    color: var(--ink);
}
.scorecard-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
}

.org-pop {
    position: relative;
    display: inline-block;
}
.org-trigger {
    cursor: help;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px dotted var(--ink-3);
    outline: none;
}
.org-box {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    z-index: 20;
    width: 260px;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease-out);
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    font-weight: 400;
    text-align: left;
    font-size: 13px;
}
.org-pop:hover .org-box,
.org-pop:focus-within .org-box {
    visibility: visible;
    opacity: 1;
}
.org-box a {
    display: inline-block;
    margin-top: 8px;
    color: var(--civic);
    text-decoration: none;
    font-size: 12px;
}
.org-box-title {
    font-weight: 600;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--ink);
}
.org-box-meta {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
}
.org-refs {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.org-refs-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-4);
}
.org-refs a {
    display: block;
    margin-top: 4px;
}
.org-methodology {
    color: var(--civic);
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    margin-top: 6px;
}

.profile-rail {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}
.rail-card {
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.rail-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
}
.rail-card-body {
    padding: 14px 18px;
}

.search-trigger {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 16px 8px 36px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink-3);
    cursor: pointer;
    min-width: 220px;
}
.search-form {
    display: flex;
    gap: var(--s-2);
    margin: var(--s-4) 0;
}
.search-input {
    font: inherit;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-btn {
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--r-md);
    background: var(--ink);
    color: var(--paper-3);
    cursor: pointer;
    transition: background var(--t-fast);
}
.search-btn:hover {
    background: var(--ink-2);
}
.search-result {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.search-result a {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: block;
}
.search-result a:hover {
    color: var(--accent);
}
.muted {
    color: var(--ink-3);
    font-size: 13px;
}

.home-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.home-subtitle {
    color: var(--ink-3);
    font-size: 15px;
    margin-top: var(--s-2);
}
.home-link {
    color: var(--civic);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}
.home-link:hover {
    color: var(--accent);
}

.audio-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    border: none;
    transition: background var(--t-fast);
}
.audio-pulse:hover {
    background: #fde8e8;
}

.not-found {
    padding: var(--s-10);
    text-align: center;
}
.not-found h1 {
    font-family: var(--font-serif);
    font-size: 32px;
}

.map-container {
    height: 600px;
    width: 100%;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
}
.map-attribution {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: var(--s-2);
}
.map-attribution a {
    color: var(--civic);
    text-decoration: none;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--s-9) var(--s-6);
}
.page-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--s-9) var(--s-8);
}

/* ── Dark Footer ──────────────────────────────────────────────────────── */
.profile-footer {
    padding: 32px var(--s-8);
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-family: var(--font-mono);
}
.pf-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pf-left {
    color: var(--ink-4);
}
.pf-right {
    color: var(--ink-4);
}
.pf-right a {
    color: #fca5a5;
    text-decoration: none;
    margin-left: 14px;
}
.pf-cite-list {
    color: var(--ink-4);
    line-height: 1.7;
}

/* ── A11y Floating Button ─────────────────────────────────────────────── */
.a11y-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: var(--ink);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    border: none;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.a11y-button:hover {
    background: var(--ink-2);
}

/* ── Search Page Enhancements ──────────────────────────────────────────── */

/* Search bar row: input + semantic toggle side by side */
.search-bar-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-bar-row .search-input {
    flex: 1;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: var(--paper);
    transition: border-color var(--t-fast);
}
.search-bar-row .search-input:focus {
    border-color: var(--ink);
}

/* Semantic search toggle button */
.search-semantic-toggle {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--paper-2);
    color: var(--ink-3);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t-fast);
}
.search-semantic-toggle.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.search-semantic-toggle:hover {
    border-color: var(--ink-2);
}

/* Filter tabs */
.search-filter-tabs {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.filter-tab {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper-2);
    color: var(--ink-3);
    cursor: pointer;
    transition: all var(--t-fast);
}
.filter-tab:hover {
    border-color: var(--ink-2);
    color: var(--ink);
}
.filter-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* Results count meta */
.search-results-meta {
    margin-top: 20px;
    margin-bottom: 16px;
}
.search-results-count {
    font-size: 14px;
    color: var(--ink-3);
    font-family: var(--font-mono);
}
.search-results-count strong {
    color: var(--ink);
}
.search-results-filter-label {
    font-size: 11px;
    color: var(--ink-4);
    margin-left: 4px;
}

/* Search result card */
.search-results-page .search-result-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    background: var(--paper);
    transition:
        border-color var(--t-fast),
        box-shadow var(--t-fast);
}
.search-result-card:hover {
    border-color: var(--ink-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.search-result-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.search-result-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.search-result-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.search-result-name:hover {
    color: var(--accent);
}
.search-result-name em {
    font-style: normal;
    background: #fef3c7;
    border-radius: 2px;
    padding: 0 2px;
}
.search-result-type-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-4);
    background: var(--paper-2);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.search-result-score {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.search-result-extra {
    font-size: 12px;
    color: var(--ink-4);
    font-family: var(--font-mono);
    margin-bottom: 6px;
}
.search-result-snippet {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.6;
    margin-bottom: 8px;
}
.search-result-snippet em {
    font-style: normal;
    background: #fef3c7;
    border-radius: 2px;
    padding: 0 2px;
}
.search-result-link-row {
    font-size: 11px;
    font-family: var(--font-mono);
}
.search-result-link {
    color: var(--civic);
    text-decoration: none;
}
.search-result-link:hover {
    text-decoration: underline;
}

/* No results state */
.search-no-results {
    text-align: center;
    padding: 48px 16px;
}
.search-no-results-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}
.search-no-results-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 8px;
}

/* Search page form */
.search-page-form {
    max-width: 680px;
    margin: 0 auto var(--s-5);
}

/* Quick links on search page */
.search-hints {
    text-align: center;
    padding: var(--s-6) 0;
}
.search-quick-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}
.search-quick-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--civic);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}
.search-quick-links a:hover {
    background: var(--paper-2);
    border-color: var(--ink-2);
    color: var(--ink);
}

/* ── LiveSearch Autocomplete Dropdown ────────────────────────────────── */
.livesearch-wrap {
    position: relative;
    max-width: 560px;
}
.livesearch-input-wrap {
    display: flex;
    gap: 8px;
}
.livesearch-input-wrap .search-input {
    flex: 1;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: var(--paper);
    transition: border-color var(--t-fast);
}
.livesearch-input-wrap .search-input:focus {
    border-color: var(--ink);
}
.livesearch-input-wrap .search-btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    transition: background var(--t-fast);
}
.livesearch-input-wrap .search-btn:hover {
    background: var(--ink-2);
}

/* Dropdown */
.livesearch-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}
.livesearch-dropdown--hero {
    position: absolute;
    margin-top: 0;
    left: 0;
    right: 0;
}

.livesearch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t-fast);
    border-bottom: 1px solid var(--paper-3);
}
.livesearch-item:last-child {
    border-bottom: none;
}
.livesearch-item:hover,
.livesearch-item.active {
    background: var(--paper-2);
}
.livesearch-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.livesearch-item-name {
    flex: 1;
    font-weight: 500;
}
.livesearch-item-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.livesearch-item-all {
    font-size: 12px;
    color: var(--civic);
    font-weight: 500;
    text-align: center;
    justify-content: center;
}

/* Hero autocomplete overlay */
.find-input-wrap--autocomplete {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO — centered text hero with gradient (mockup 06)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-home {
    padding: 80px 56px 64px;
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%),
        repeating-linear-gradient(90deg, var(--line) 0px, var(--line) 1px, transparent 1px, transparent 80px);
    border-bottom: 1px solid var(--civic);
    box-shadow: 0 1px 30px var(--civic-soft) inset;
    position: relative;
}
.hero-home h1 {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
    color: var(--ink);
    text-shadow: 0 0 24px var(--civic-soft), 0 0 2px var(--civic);
    max-width: 20ch;
    margin: 0 0 var(--s-6);
    text-transform: uppercase;
}
.hero-home .lede {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 62ch;
    margin-bottom: var(--s-8);
    border-left: 2px solid var(--civic);
    padding-left: var(--s-4);
}

/* Generic section kicker (monospace accent label with ::before line) */
.hero-kicker,
.section-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-kicker::before,
.section-kicker::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--accent);
}

/* Section headings */
.section-h {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 var(--s-3);
}
.section-lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--ink-2);
    max-width: 60ch;
    margin-bottom: var(--s-8);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIND-REP CARD — location search with shadow (mockup 06)
   ═══════════════════════════════════════════════════════════════════════════ */

.find-rep {
    background: var(--paper-3);
    border: 1px solid var(--civic);
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 760px;
    box-shadow: 5px 5px 0 0 var(--paper-2), 5px 5px 0 1px var(--civic);
}
.find-rep h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--civic);
    margin-bottom: 14px;
}
.find-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}
.find-input {
    font-family: var(--font-mono);
    font-size: 15px;
    padding: 14px 18px 14px 34px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
.find-input::placeholder {
    color: var(--ink-4);
}
.find-input-wrap {
    position: relative;
}
.find-input-wrap::before {
    content: ">";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--civic);
    font-family: var(--font-mono);
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}
.find-input:focus {
    outline: none;
    border-color: var(--civic);
    box-shadow: 0 0 0 1px var(--civic), 0 0 16px var(--civic-soft);
}
.find-btn {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    background: var(--civic);
    color: var(--paper);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 3px 3px 0 0 var(--accent);
    transition: transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background var(--t-fast);
    white-space: nowrap;
}
.find-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 var(--accent);
}
.find-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 0 var(--accent);
}
.find-options {
    margin-top: 14px;
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: var(--ink-3);
}
.find-options a {
    color: var(--civic);
    text-decoration: none;
    cursor: pointer;
}
.find-options a:hover {
    text-decoration: underline;
}

/* detected location indicator */
.find-detected {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--good);
    display: flex;
    align-items: center;
    gap: 6px;
}
.find-detected::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--good);
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS STRIP — 4-column stat grid (mockup 06)
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
    max-width: 1100px;
}
@media (max-width: 900px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
.stat .num {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--ink);
}
.stat .lbl {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-top: 8px;
}
.stat .sub {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 4px;
}
a.stat {
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--r-md);
    padding: 4px 8px;
    margin: -4px -8px;
    transition: background 0.15s ease, transform 0.15s ease;
}
a.stat:hover {
    background: var(--paper-2);
    transform: translateY(-2px);
}
a.stat:hover .num {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPRESENTATIVE SECTION — white section with border (mockup 06)
   ═══════════════════════════════════════════════════════════════════════════ */

.rep-section {
    padding: 80px 56px;
    background: var(--paper-3);
    border-bottom: 1px solid var(--line);
}
.gov-tier {
    margin-bottom: 48px;
}
.gov-tier:last-child {
    margin-bottom: 0;
}
.gov-tier .tier-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

/* Election banner */
.elections-banner {
    padding: 80px 56px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}

/* Features grid */
.features-grid-wrap {
    padding: 80px 56px;
    background: var(--paper-3);
    border-bottom: 1px solid var(--line);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: var(--s-8);
}
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.feature-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent);
}
.feature-card h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--s-2);
    color: var(--ink);
}
.feature-card p {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.5;
}
.feature-icon {
    font-size: 24px;
    margin-bottom: var(--s-3);
}
.feature-link {
    display: inline-block;
    margin-top: var(--s-3);
    font-size: 13px;
    font-weight: 600;
    color: var(--civic);
    text-decoration: none;
}
.feature-link:hover {
    text-decoration: underline;
}

/* Rep tiers */
.rep-tiers {
    display: flex;
    flex-direction: column;
    gap: var(--s-7);
    margin-top: var(--s-6);
}
.rep-tier {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-6);
}
.rep-tier-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.rep-tier-icon {
    font-size: 18px;
}
.rep-tier-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}
.rep-tier-link {
    font-size: 13px;
    color: var(--civic);
    text-decoration: none;
    padding: 6px 14px;
    background: var(--civic-soft);
    border-radius: var(--r-pill);
    transition: background var(--t-fast);
}
.rep-tier-link:hover {
    background: var(--civic);
    color: var(--paper-3);
}

/* Election cards */
.elections-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    margin-top: var(--s-6);
}
@media (max-width: 700px) {
    .elections-cta {
        grid-template-columns: 1fr;
    }
}
.election-card {
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-7);
}
.election-card-icon {
    font-size: 28px;
    margin-bottom: var(--s-3);
}
.election-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--s-2);
    color: var(--ink);
}
.election-card p {
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: var(--s-4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Tablet + Phone breakpoints
   All rules are additive: desktop CSS is untouched above.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet / Small Desktop (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {
    /* --- Topbar --- */
    .topbar {
        padding: 12px var(--s-4);
    }
    .topbar-logo {
        font-size: 18px;
    }
    .topbar-nav {
        display: none;
        gap: 0;
    }
    .nav-toggle-checkbox:checked ~ .topbar-nav,
    .topbar-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper-3);
        border-bottom: 2px solid var(--ink);
        padding: var(--s-4);
        gap: var(--s-3);
        z-index: 200;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    .nav-toggle-checkbox:checked ~ .topbar-nav a,
    .topbar-nav.open a {
        padding: 10px 0;
        font-size: 16px;
    }
    .nav-toggle-checkbox:focus-visible ~ .mobile-menu-btn {
        outline: 3px solid #1a4480;
        outline-offset: 2px;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        cursor: pointer;
        font-family: var(--font-mono);
        font-size: 20px;
        color: var(--ink);
        line-height: 1;
    }

    /* --- Search trigger — collapse to icon-only --- */
    .search-trigger {
        min-width: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--r-md);
        font-size: 0;
    }
    .search-trigger::before {
        content: "🔍";
        font-size: 16px;
    }
    .topbar-actions {
        gap: 8px;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        padding: 12px var(--s-4);
        font-size: 10px;
    }

    /* --- Preamble --- */
    .preamble {
        padding: var(--s-5) var(--s-4);
    }
    .preamble h1 {
        font-size: 22px;
    }

    /* --- Homepage hero --- */
    .hero-home {
        padding: 48px var(--s-5) 40px;
    }
    .hero-home h1 {
        font-size: 36px;
    }
    .hero-home .lede {
        font-size: 16px;
        margin-bottom: var(--s-6);
    }
    .hero-kicker,
    .section-kicker {
        font-size: 10px;
    }

    /* --- Find-rep card --- */
    .find-rep {
        max-width: 100%;
        padding: var(--s-5) var(--s-4);
    }
    .find-input-row {
        grid-template-columns: 1fr;
    }
    .find-btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Stats strip --- */
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-6);
        margin-top: var(--s-8);
    }

    /* --- Section headings --- */
    .section-h {
        font-size: 28px;
    }
    .section-lede {
        font-size: 15px;
    }

    /* --- Rep sections / content sections --- */
    .rep-section,
    .elections-banner,
    .features-grid-wrap {
        padding: 48px var(--s-5);
    }

    /* --- Features grid --- */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* --- Elections CTA --- */
    .elections-cta {
        grid-template-columns: 1fr;
    }

    /* --- Profile hero --- */
    .hero {
        grid-template-columns: 1fr;
        padding: var(--s-7) var(--s-4) var(--s-6);
        gap: var(--s-5);
    }
    .hero-portrait {
        width: 120px;
        height: 144px;
    }
    .hero-identity h1 {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* --- Scorecard strip --- */
    .scorecard-strip {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Profile tabs --- */
    .profile-tabs {
        padding: 0 var(--s-4);
    }

    /* --- Profile body --- */
    .profile-body {
        grid-template-columns: 1fr;
        padding: var(--s-6) var(--s-4);
    }

    /* --- Promise grid --- */
    .promise-grid {
        grid-template-columns: 1fr;
    }

    /* --- Page containers --- */
    .page {
        padding: var(--s-7) var(--s-4);
    }
    .page-wide {
        padding: var(--s-7) var(--s-4);
    }

    /* --- Profile footer --- */
    .profile-footer {
        padding: var(--s-6) var(--s-4);
    }

    /* --- Map --- */
    .map-container {
        height: 360px;
    }

    /* --- Not found --- */
    .not-found {
        padding: var(--s-7) var(--s-4);
    }

    /* --- LiveSearch --- */
    .livesearch-wrap {
        max-width: 100%;
    }
    .livesearch-input-wrap {
        flex-direction: column;
    }
    .livesearch-input-wrap .search-btn {
        width: 100%;
        justify-content: center;
    }
    .livesearch-dropdown {
        max-height: 50vh;
    }

    /* --- Search page --- */
    .search-page-form {
        max-width: 100%;
    }
    .search-bar-row {
        flex-direction: column;
    }
    .search-bar-row .search-input {
        width: 100%;
    }
    .search-filter-tabs {
        gap: 4px;
    }
    .filter-tab {
        font-size: 10px;
        padding: 5px 10px;
    }
    .search-results-page .search-result-card {
        padding: 14px var(--s-4);
    }
    .search-result-header {
        flex-direction: column;
        gap: 4px;
    }

    /* --- Search quick links --- */
    .search-quick-links a {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* --- Org box (popover) --- */
    .org-box {
        max-width: 100vw;
        max-height: 80vh;
        overflow-y: auto;
        left: 0;
        right: 0;
    }

    /* --- Touch targets: minimum 44px for interactive elements --- */
    .btn-action {
        min-height: 44px;
        padding: 12px 18px;
    }
    .profile-tab {
        min-height: 44px;
    }
    .find-btn {
        min-height: 44px;
    }
    .find-input {
        height: 48px;
    }
    .topbar-nav a,
    .nav-toggle-checkbox:checked ~ .topbar-nav a,
    .topbar-nav.open a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* --- Vote row / promise item — horizontal scroll for wide content --- */
    .vote-row {
        overflow-x: auto;
        min-width: 0;
    }
    .promise-item {
        grid-template-columns: 24px 1fr 100px 36px;
        gap: 8px;
        font-size: 13px;
    }

    /* --- Record row --- */
    .record-row {
        grid-template-columns: auto 1fr;
        gap: var(--s-2);
        font-size: 13px;
    }
    .record-meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    /* --- Psections --- */
    .psection-header {
        padding: 16px var(--s-5);
        flex-direction: column;
        gap: 4px;
    }
    .psection-content {
        padding: var(--s-4) var(--s-5);
    }

    /* --- Scorecard cards --- */
    .scorecard-cards {
        flex-direction: column;
        gap: var(--s-3);
    }

    /* --- Tiles row --- */
    .tiles-row {
        gap: var(--s-2);
    }
    .scorecard-tile {
        min-width: 100%;
    }

    /* --- Rep tiers --- */
    .rep-tier-items {
        flex-direction: column;
    }
    .rep-tier-link {
        display: block;
        text-align: center;
    }

    /* --- Rail (sidebar) --- */
    .profile-rail {
        gap: var(--s-4);
    }

    /* --- Psection sub --- */
    .psection-sub {
        max-width: 100%;
    }

    /* --- Record list --- */
    .record-list {
        margin: var(--s-4) 0;
    }

    /* --- Government tier --- */
    .gov-tier {
        margin-bottom: var(--s-7);
    }

    /* --- A11y button --- */
    .a11y-button {
        bottom: var(--s-4);
        right: var(--s-4);
        width: 48px;
        height: 48px;
    }

    /* --- Audio pulse --- */
    .audio-pulse {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* --- Find options --- */
    .find-options {
        flex-direction: column;
        gap: 8px;
    }

    /* --- Hero bio --- */
    .hero-bio {
        font-size: 14px;
    }

    /* --- Hero tags --- */
    .hero-tags {
        gap: 4px;
    }
    .tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* --- Scorecard tiles --- */
    .scs-cell,
    .strip-cell {
        padding: 16px var(--s-5);
    }

    /* --- Stat --- */
    .stat .num {
        font-size: 36px;
    }

    /* --- Election card --- */
    .election-card {
        padding: var(--s-5);
    }
}

/* ── Phone (≤480px) — tighter overrides ─────────────────────────────── */
@media (max-width: 480px) {
    /* --- Topbar --- */
    .topbar {
        padding: 10px var(--s-3);
    }
    .topbar-logo {
        font-size: 16px;
    }

    /* --- Hide search trigger fully on very small screens --- */
    .search-trigger {
        display: none;
    }

    /* --- Hero home --- */
    .hero-home {
        padding: 36px var(--s-4) 32px;
    }
    .hero-home h1 {
        font-size: 28px;
    }
    .hero-home .lede {
        font-size: 15px;
    }

    /* --- Find-rep --- */
    .find-rep {
        padding: var(--s-4) var(--s-3);
    }
    .find-input {
        height: 48px;
        font-size: 14px;
        background-position: 12px center;
        padding: 12px 14px 12px 38px;
    }

    /* --- Stats strip --- */
    .stats-strip {
        gap: var(--s-5);
    }
    .stat .num {
        font-size: 32px;
    }

    /* --- Section headings --- */
    .section-h {
        font-size: 24px;
    }

    /* --- Rep sections --- */
    .rep-section,
    .elections-banner,
    .features-grid-wrap {
        padding: 36px var(--s-4);
    }

    /* --- Profile hero --- */
    .hero {
        padding: var(--s-6) var(--s-4) var(--s-5);
    }
    .hero-portrait {
        width: 96px;
        height: 115px;
    }
    .hero-identity h1 {
        font-size: 26px;
    }
    .hero-identity .subtitle {
        font-size: 15px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn-action {
        width: 100%;
        justify-content: center;
    }

    /* --- Scorecard strip --- */
    .scorecard-strip {
        grid-template-columns: 1fr 1fr;
    }
    .scs-cell,
    .strip-cell {
        padding: 14px var(--s-4);
    }

    /* --- Profile body --- */
    .profile-body {
        padding: var(--s-5) var(--s-3);
    }

    /* --- Profile tabs --- */
    .profile-tab {
        padding: 12px 12px;
        font-size: 12px;
    }

    /* --- Psections --- */
    .psection-header {
        padding: 14px var(--s-4);
    }
    .psection-content {
        padding: var(--s-3) var(--s-4);
    }
    .psection-title {
        font-size: 18px;
    }

    /* --- Promise grid --- */
    .promise-grid {
        padding: var(--s-4);
        gap: var(--s-5);
    }
    .promise-item {
        grid-template-columns: 20px 1fr 80px 28px;
        gap: 6px;
        font-size: 12px;
        padding: 10px 0;
    }

    /* --- Breadcrumb --- */
    .breadcrumb {
        padding: 10px var(--s-3);
        font-size: 10px;
    }

    /* --- Preamble --- */
    .preamble {
        padding: var(--s-4) var(--s-3);
    }
    .preamble h1 {
        font-size: 20px;
    }
    .preamble p {
        font-size: 13px;
    }

    /* --- Topbar nav open --- */
    .nav-toggle-checkbox:checked ~ .topbar-nav a,
    .topbar-nav.open a {
        font-size: 15px;
        padding: 8px 0;
    }

    /* --- Features --- */
    .feature-card {
        padding: var(--s-4);
    }
    .feature-card h4 {
        font-size: 16px;
    }

    /* --- Search page --- */
    .search-no-results {
        padding: 36px var(--s-3);
    }
    .search-results-page .search-result-card {
        padding: 12px var(--s-3);
    }
    .search-result-name {
        font-size: 14px;
    }

    /* --- Tiles --- */
    .scorecard-tile {
        padding: 12px 14px;
    }
    .scorecard-value {
        font-size: 24px;
    }

    /* --- Record row --- */
    .record-row {
        font-size: 12px;
        padding: 10px 0;
    }

    /* --- Rep tiers --- */
    .rep-tier {
        padding: var(--s-4);
    }

    /* --- Election card --- */
    .election-card h3 {
        font-size: 18px;
    }

    /* --- Profile bio --- */
    .hero-bio {
        font-size: 13px;
    }

    /* --- Map --- */
    .map-container {
        height: 260px;
    }

    /* --- Profile footer --- */
    .profile-footer {
        padding: var(--s-5) var(--s-3);
        font-size: 11px;
    }
    .pf-meta {
        flex-direction: column;
        gap: 8px;
    }
    .pf-right a {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    /* --- Election cards CTA --- */
    .election-card {
        padding: var(--s-4);
    }

    /* --- Find options --- */
    .find-options {
        font-size: 11px;
    }

    /* --- Search filter tabs --- */
    .search-filter-tabs {
        gap: 4px;
    }
    .filter-tab {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* --- Search bar --- */
    .search-bar-row .search-input {
        font-size: 14px;
        padding: 12px 14px;
    }

    /* --- LiveSearch --- */
    .livesearch-dropdown {
        max-height: 40vh;
    }
    .livesearch-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* --- A11y button --- */
    .a11y-button {
        bottom: var(--s-3);
        right: var(--s-3);
    }

    /* --- Tags --- */
    .tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ======================================================================
   Congress Data Pages — Committees, Hearings, Nominations, Bills
   ====================================================================== */

.congress-card {
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-5) var(--s-6);
    margin-bottom: var(--s-3);
    transition: box-shadow var(--t-fast) var(--ease-out);
}
.congress-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.congress-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--civic-soft);
    color: var(--civic);
    letter-spacing: 0.02em;
}

/* Committee list */
.committee-item {
    cursor: pointer;
}
.committee-header {
    padding: 4px 0;
}

/* Chamber pills */
.chamber-pill {
    color: #fff;
}
.chamber-house {
    background: var(--civic);
}
.chamber-senate {
    background: var(--accent);
}
.chamber-joint {
    background: var(--ink-3);
}

/* Timeline for bill actions */
.congress-timeline {
    position: relative;
    padding-left: 24px;
}
.congress-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.timeline-item {
    position: relative;
    padding-bottom: var(--s-5);
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line-2);
    border: 2px solid var(--paper-3);
}
.timeline-content {
    min-height: 24px;
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: var(--s-6);
    padding: var(--s-4) var(--s-6);
    background: var(--paper-2);
    border-radius: var(--r-md);
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-serif), Georgia, serif;
}
.stat-label {
    font-size: 12px;
    color: var(--ink-3);
}

/* Tab bar for filters */
.tab-bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--paper-2);
    border-radius: var(--r-lg);
    width: fit-content;
}
.tab {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab:hover {
    color: var(--ink);
}
.tab.active {
    background: var(--paper-3);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--ink-4);
    color: var(--paper-3);
}

/* Link button for expand/collapse */
.link-btn {
    font-family: var(--font-sans);
}

/* Related bill item */
.related-bill-item a:hover {
    text-decoration: underline;
}

/* Cosponsor pill */
.cosponsor-pill {
    white-space: nowrap;
}

/* Empty state */
.empty-state p {
    margin: 0;
}

/* ===== HOMEPAGE: REPRESENTATIVE CARDS ===== */
.reps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}
@media (max-width: 1100px) { .reps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .reps-grid { grid-template-columns: 1fr; } }
.tier-head {
    display: flex; align-items: baseline; gap: var(--s-3);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.tier-label {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3); font-weight: 700;
}
.tier-label.federal { color: var(--civic); }
.tier-label.state { color: var(--accent); }
.tier-label.local { color: var(--good); }
.tier-name { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.tier-count { font-size: 12px; color: var(--ink-3); }
.rep-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: var(--s-5);
    display: flex; flex-direction: column; gap: var(--s-3);
    transition: box-shadow var(--t-fast) var(--ease-out);
}
.rep-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.rep-portrait {
    width: 72px; height: 72px; border-radius: var(--r-md);
    background: linear-gradient(135deg, #8b5cf6, #ec4899); flex-shrink: 0;
}
.rep-portrait.alt-1 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.rep-portrait.alt-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.rep-portrait.alt-3 { background: linear-gradient(135deg, #10b981, #6366f1); }
.rep-portrait.alt-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.rep-info { flex: 1; }
.rep-info .role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.rep-info .name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.rep-info .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 500; }
.rep-tag.dem { background: var(--civic-soft); color: var(--civic); }
.rep-tag.rep { background: var(--accent-soft); color: var(--accent); }
.rep-tag.ind { background: rgba(16,185,129,0.1); color: var(--good); }
.rep-tag.inc { background: rgba(22,163,74,0.1); color: var(--good); font-weight: 600; }
.rep-tag.term { color: var(--ink-3); }
.rep-card-scorecard { display: flex; gap: var(--s-4); }
.score-mini { display: flex; flex-direction: column; align-items: center; text-align: center; }
.score-mini .v { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.score-mini .v.good { color: var(--good); }
.score-mini .v.warn { color: var(--warn); }
.score-mini .v.bad { color: var(--bad); }
.score-mini .l { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; }
.rep-actions { display: flex; gap: var(--s-2); margin-top: auto; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper-3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-fast); }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .ico { width: 14px; height: 14px; color: var(--ink-2); }
.see-profile { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--paper-3); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all var(--t-fast); text-decoration: none; }
.see-profile:hover { background: var(--ink); color: white; }

/* ===== ELECTIONS BANNER ===== */
.banner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-9); align-items: start; }
@media (max-width: 900px) { .banner-grid { grid-template-columns: 1fr; } }
.banner-text h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: var(--s-2) 0 var(--s-3); }
.banner-text p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: var(--s-5); }
.banner-cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.banner-btn { font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: var(--r-sm); border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all var(--t-fast); }
.banner-btn.primary { background: var(--ink); color: white; }
.banner-btn.primary:hover { background: var(--ink-2); }
.banner-btn.secondary { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line-2); }
.banner-btn.secondary:hover { background: var(--paper-2); }
.countdown-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.countdown-card .cd-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-5); }
.cd-row { display: flex; gap: var(--s-4); margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.cd-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cd-when { font-family: var(--font-serif); font-size: 36px; font-weight: 600; color: var(--ink); line-height: 1; min-width: 70px; }
.cd-when .small { display: block; font-size: 11px; font-weight: 400; font-family: var(--font-mono); color: var(--ink-3); margin-top: 2px; }
.cd-deadline { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.cd-what .name { font-size: 15px; font-weight: 600; color: var(--ink); }
.cd-what .meta { font-size: 12px; color: var(--ink-3); }

/* ===== FEATURES GRID ===== */
.features { padding: 80px 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-7); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-7); }
.feat-card h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
.feat-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: var(--s-5); }
.feat-icon { width: 48px; height: 48px; background: var(--paper-2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.feat-icon .ico { width: 22px; height: 22px; color: var(--civic); }
.feat-link { font-size: 13px; font-weight: 600; color: var(--civic); text-decoration: none; }
.feat-link:hover { text-decoration: underline; }

/* ===== METHODOLOGY STRIP ===== */
.method-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); }
@media (max-width: 1000px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .method-grid { grid-template-columns: 1fr; } }
.method-col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.method-col p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.method-col ul { list-style: none; padding: 0; }
.method-col li { margin-bottom: 6px; }
.method-col a { font-size: 13px; color: var(--civic); text-decoration: none; }
.method-col a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer { padding: 40px 56px; background: var(--ink); color: var(--paper-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.site-footer, .site-footer a { font-size: 13px; color: var(--paper-3); opacity: 0.8; text-decoration: none; }
.site-footer a:hover { opacity: 1; }
.site-footer .footer-brand { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.site-footer .footer-brand .dot { color: var(--accent); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; }
.search-overlay-box { background: var(--paper-3); border-radius: var(--r-xl); box-shadow: 0 24px 64px rgba(0,0,0,0.2); width: 90%; max-width: 640px; overflow: hidden; }

/* ===== POST-SEARCH HOMEPAGE STATE ===== */
.home-results { padding: 80px 56px; background: var(--paper-3); border-bottom: 1px solid var(--line); }
.home-results-header { margin-bottom: var(--s-8); }
.home-results-header h2 { font-family: var(--font-serif); font-size: 42px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); margin: 0 0 var(--s-3); }
.home-results-header p { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.rep-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s-2); background: var(--paper); }
.rep-row:hover { background: var(--paper-2); }
.rep-row .rep-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #ec4899); flex-shrink: 0; }
.rep-row .rep-detail { flex: 1; min-width: 0; }
.rep-row .rep-detail .rep-name-row { display: flex; align-items: baseline; gap: var(--s-2); }
.rep-row .rep-detail .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.rep-row .rep-detail .role { font-size: 12px; color: var(--ink-3); }
.rep-row .rep-detail .party-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 600; }
.rep-row .rep-detail .party-tag.Democratic { background: var(--civic-soft); color: var(--civic); }
.rep-row .rep-detail .party-tag.Republican { background: var(--accent-soft); color: var(--accent); }
