:root {
    --red-900: #6b1612;
    --red-800: #922019;
    --red-700: #b52a22;
    --red-600: #D7362C;
    --red-500: #e05a52;
    --red-100: #fce0de;
    --red-50: #fef1f0;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — generic (race pages etc.) */
header {
    padding: 20px 0 0;
    text-align: center;
}

.site-logo {
    display: inline-block;
}

.site-logo img {
    height: 120px;
    width: auto;
}

/* ============================
   HOME PAGE
   ============================ */

.home-header {
    background: var(--gray-900);
    padding: 16px 0;
    text-align: center;
    border-bottom: 3px solid var(--red-600);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.home-header .site-logo img {
    height: 56px;
}

.header-tagline {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-500);
    transform: translateY(-3px);
}

.home-hero {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 40px,
            rgba(215,54,44,0.03) 40px,
            rgba(215,54,44,0.03) 80px
        );
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 20px 72px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--red-500);
    border: 1px solid rgba(215,54,44,0.3);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.home-hero h1 {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.home-hero .hero-subtitle {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--red-600);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.hero-cta:hover {
    background: var(--red-500);
    transform: translateY(-1px);
}

.hero-cta:active {
    background: var(--red-700);
    transform: translateY(0);
}

/* How It Works */
.how-it-works {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 56px 0;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.hiw-step {
    text-align: center;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red-600);
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hiw-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.hiw-step p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Home Form Section */
.home-form-section {
    padding: 48px 0 40px;
}

.home-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.home-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.home-form-header p {
    font-size: 15px;
    color: var(--gray-500);
}

.home-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}

/* Coverage Section */
.home-coverage {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 56px 0;
}

.home-coverage h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 8px;
}

.coverage-sub {
    font-size: 15px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 36px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.coverage-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.coverage-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.coverage-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Home Footer */
.home-footer {
    background: var(--gray-900);
    padding: 48px 20px;
    border-top: 3px solid var(--red-600);
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-brand strong {
    font-size: 15px;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-legal p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-copy {
    margin-top: 12px;
    color: var(--gray-600) !important;
    font-size: 12px !important;
}

/* Legacy hero (kept for non-home pages) */
.hero {
    text-align: center;
    padding: 16px 20px 24px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0 0 16px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Zip code row */
.zip-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zip-input-wrap {
    flex: 0 0 140px;
}

.zip-input-wrap input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    letter-spacing: 0.05em;
}

.zip-input-wrap input:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.zip-input-wrap input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0;
}

.zip-location {
    flex: 1;
    font-size: 16px;
    color: var(--gray-800);
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.zip-location-placeholder {
    color: var(--gray-300);
    font-weight: 400;
}

.zip-location .city-state {
    color: var(--gray-700);
}

.zip-location .zip-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--red-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.zip-error {
    font-size: 13px;
    color: var(--red-600);
    margin-top: 6px;
}

textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

textarea::placeholder {
    color: var(--gray-400);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 32px;
    background: var(--red-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
    background: var(--red-600);
}

.btn-primary:active:not(:disabled) {
    background: var(--red-800);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text, .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text[hidden], .btn-loading[hidden] {
    display: none;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading */
.loading-content {
    text-align: center;
    padding: 40px 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--red-600);
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.loading-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.loading-status {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.progress-bar {
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: var(--red-600);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Error */
.error-content {
    text-align: center;
    padding: 24px 0;
}

.error-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 15px;
}

/* Results */
.results-header {
    text-align: center;
    padding-bottom: 20px;
}

.results-location h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.results-location p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.results-meta {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.results-meta .election-date {
    font-weight: 600;
    color: var(--red-700);
}

/* Race cards */
.race-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.race-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.race-header:hover {
    background: var(--gray-50);
}

.race-title-area {
    flex: 1;
}

.race-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.race-level.federal { background: var(--gray-900); color: var(--white); }
.race-level.state { background: var(--red-700); color: var(--white); }
.race-level.county { background: var(--gray-600); color: var(--white); }
.race-level.local { background: var(--gray-400); color: var(--white); }

.race-office {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
}

.race-seats {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

.race-toggle {
    font-size: 20px;
    color: var(--gray-400);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.race-card.open .race-toggle {
    transform: rotate(180deg);
}

.race-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--gray-100);
}

.race-card.open .race-body {
    display: block;
}

/* Recommendation banner */
.recommendation-banner {
    background: var(--red-50);
    border: 2px solid var(--red-600);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.recommendation-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red-700);
    margin-bottom: 4px;
}

.recommendation-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--red-800);
    margin-bottom: 8px;
}

.recommendation-reasoning {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.confidence-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 10px;
}

.confidence-badge.high { background: var(--green-100); color: var(--green-600); }
.confidence-badge.medium { background: var(--amber-100); color: var(--amber-600); }
.confidence-badge.low { background: var(--gray-100); color: var(--gray-600); }

/* Unopposed race */
.unopposed-banner {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-top: 20px;
}

.unopposed-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.unopposed-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
}

.candidate-name .badge.unopposed {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Candidate list */
.candidates-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.candidate {
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.candidate.recommended {
    border-color: var(--red-600);
    background: var(--red-50);
}

.candidate-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.candidate-name .badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
    vertical-align: middle;
}

.candidate-name .badge.rec {
    background: var(--red-100);
    color: var(--red-700);
}

.candidate-bio {
    font-size: 13.5px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.candidate-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.position-tag {
    font-size: 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.candidate.recommended .position-tag {
    background: rgba(220,38,38,0.08);
    color: var(--red-700);
}

/* Unresearched races */
.unresearched-header {
    margin-top: 24px;
    margin-bottom: 12px;
}

.unresearched-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.unresearched-header p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.unresearched-race-item {
    padding: 14px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--gray-50);
}

.unresearched-race-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unresearched-office {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
}

.unresearched-note {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.disclaimer-card p + p {
    margin-top: 10px;
}

/* Actions */
.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 32px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 20px;
}

footer p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Print styles */
@media print {
    header, .home-header, .home-hero, .how-it-works, .home-coverage,
    .race-header-bar, .race-hero-banner,
    #form-section, .home-form-section, .race-form-wrapper, .results-actions,
    footer, .home-footer, .race-footer, .race-toggle { display: none !important; }
    body { background: white; }
    .card, .race-card { break-inside: avoid; }
    .race-body { display: block !important; }
    #results-section { display: block !important; }
    .container, main.container > * { max-width: 100%; }
}

/* Admin */
.admin-bar {
    background: var(--gray-900);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.admin-bar a { color: var(--gray-400); text-decoration: none; }
.admin-bar a:hover { color: var(--white); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.admin-table tbody tr:hover { background: var(--gray-50); }

.admin-section { margin-bottom: 32px; }

.admin-candidate-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

/* ============================
   RACE PAGE
   ============================ */

.race-header-bar {
    background: var(--gray-900);
    padding: 14px 0;
    border-bottom: 3px solid var(--red-600);
}

.race-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.race-header-bar .site-logo img {
    height: 48px;
}

.race-header-state {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-500);
    transform: translateY(-3px);
}

/* Race Hero Banner */
.race-hero-banner {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.race-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 40px,
            rgba(215,54,44,0.03) 40px,
            rgba(215,54,44,0.03) 80px
        );
    pointer-events: none;
}

.race-hero-banner-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 20px 56px;
    text-align: center;
}

.race-hero-date-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red-500);
    border: 1px solid rgba(215,54,44,0.3);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.race-hero-banner h1 {
    font-size: 38px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.race-hero-desc {
    font-size: 16px;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.race-hero-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.race-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.race-hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.race-hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.race-hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-700);
}

/* Candidates Section */
.race-candidates-section {
    padding: 48px 0 32px;
}

.race-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.race-section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.race-section-header p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.5;
}

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

.candidate-card-lg {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.candidate-card-lg:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.candidate-card-photo-wrap {
    margin-bottom: 16px;
}

.candidate-photo-lg {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gray-100);
}

.candidate-photo-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--gray-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-300);
}

.candidate-card-lg h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.candidate-bio-lg {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 14px;
}

.candidate-card-lg .candidate-positions {
    justify-content: center;
}

/* Form Wrapper */
.race-form-wrapper {
    padding: 0 0 48px;
}

.race-form-prompt {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 32px 32px 24px;
    text-align: center;
}

.race-form-prompt h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.race-form-prompt p {
    font-size: 14px;
    color: var(--gray-500);
}

.race-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 28px 32px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}

/* Race Footer */
.race-footer {
    background: var(--gray-900);
    padding: 40px 20px;
    border-top: 3px solid var(--red-600);
    margin-top: 16px;
}

.race-footer-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.race-footer-inner strong {
    font-size: 14px;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}

.race-footer-inner p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.race-footer-inner .footer-copy {
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 12px;
}

/* Race Results Styling */
.race-comparison-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.race-comparison-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.race-comparison-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.race-candidate-analysis {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 8px 0;
}

.race-tag-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .hiw-grid { grid-template-columns: 1fr; gap: 24px; }
    .hiw-step { text-align: left; flex-direction: row; align-items: flex-start; gap: 16px; padding: 0; }
    .hiw-number { flex-shrink: 0; margin-bottom: 0; }
    .hiw-text { min-width: 0; }
    .coverage-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
    .race-header { padding: 16px 20px; }
    .race-body { padding: 0 20px 20px; }
    .hero { padding: 12px 20px 20px; }
    .site-logo img { height: 80px; }
    .home-header .site-logo img { height: 40px; }
    .race-header-bar .site-logo img { height: 36px; }
    .home-hero-inner { padding: 40px 20px 48px; }
    .home-hero h1 { font-size: 30px; }
    .home-hero .hero-subtitle { font-size: 15px; }
    .home-form-card { padding: 24px 20px; }
    .home-form-section { padding: 32px 0; }
    .how-it-works { padding: 40px 0; }
    .home-coverage { padding: 40px 0; }
    .coverage-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .coverage-item { padding: 14px; }
    .race-hero-banner-inner { padding: 32px 20px 40px; }
    .race-hero-banner h1 { font-size: 26px; }
    .race-hero-desc { font-size: 15px; margin-bottom: 24px; }
    .race-hero-stat-row { gap: 16px; }
    .race-hero-stat-num { font-size: 18px; }
    .race-hero-stat-label { font-size: 10px; }
    .race-hero-stat-divider { height: 24px; }
    .race-candidates-section { padding: 32px 0 24px; }
    .candidate-grid { grid-template-columns: 1fr; gap: 16px; }
    .race-form-prompt { padding: 24px 20px 20px; }
    .race-form-prompt h2 { font-size: 19px; }
    .race-form-card { padding: 20px; }
    .race-form-wrapper { padding: 0 0 32px; }
    .zip-row { flex-direction: column; align-items: stretch; gap: 0; }
    .zip-input-wrap { flex: auto; }
    .zip-location {
        min-height: 0;
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-500);
        padding: 6px 4px 0;
    }
    .zip-location-placeholder { font-size: 13px; }
    .zip-location .city-state { color: var(--gray-600); }
}
