/*
 * Homepage styles for the kcdems theme — ported from mockup/homepage-mockup-v2.html.
 * Enqueued on the front page only (see functions.php). Image paths point at assets/img/.
 */
/* ============================================
           KCDems Homepage Mockup — North Bend Digital
           Matched to kadence-child theme on kcdems.local
           Single layout — refined from Option E Sidebar Rail
           Updated: March 25, 2026
           ============================================ */

        :root {
            /* Actual child theme palette */
            --blue-primary: #0044CC;       /* Democratic Blue — child theme override */
            --blue-dark: #003399;          /* Hover states, footer bottom */
            --blue-light: #e8eeff;         /* Light tint for subtle backgrounds */
            --text-darkest: #1A1A1A;       /* palette3 — body text, headlines */
            --text-strong: #2D3748;        /* palette4 */
            --text-medium: #4A5568;        /* palette5 */
            --text-subtle: #666666;        /* palette6 — secondary text */
            --bg-subtle: #eef2f7;          /* palette7 — subtle backgrounds (increased contrast from white) */
            --white: #ffffff;              /* palette9 */
            --border: #e0e0e0;            /* card/widget borders */
            --radius: 4px;                 /* consistent border radius */
            --font-sans: 'Arimo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

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

        body {
            font-family: var(--font-sans);
            color: var(--text-strong);
            line-height: 1.6;
            background: var(--white);
            font-size: 16px;
        }

        /* ---------- Shared Header ---------- */
        .site-header {
            background: var(--white);
            border-bottom: 3px solid var(--blue-primary);
            padding: 0 24px;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
        }
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        .logo img {
            height: 48px;
            width: auto;
        }
        nav {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        nav a {
            text-decoration: none;
            color: var(--text-medium);
            font-size: 15px;
            font-weight: 600;
            padding: 8px 14px;
            border-radius: var(--radius);
            transition: all 0.2s;
        }
        nav a:hover {
            background: var(--blue-light);
            color: var(--blue-primary);
        }
        .btn-donate {
            background: var(--blue-primary);
            color: var(--white);
            font-weight: 700;
            padding: 10px 22px;
            border-radius: var(--radius);
            margin-left: 8px;
            transition: all 0.2s;
        }
        .btn-donate:hover {
            background: var(--blue-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        /* ---------- Shared Utilities ---------- */
        .section-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--blue-primary);
            margin-bottom: 8px;
        }
        .section-subtitle {
            color: var(--text-subtle);
            font-size: 1rem;
            margin-bottom: 32px;
        }
        .btn {
            display: inline-block;
            padding: 1rem 1.5rem;
            border-radius: var(--radius);
            font-weight: 600;
            font-size: 1rem;
            font-family: var(--font-sans);
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .btn:focus {
            outline: 3px solid var(--blue-primary);
            outline-offset: 3px;
            box-shadow: 0 0 0 6px rgba(0, 68, 204, 0.25);
        }
        /* Focus visible on dark/blue backgrounds */
        .hero-e .btn:focus,
        .site-footer .btn:focus,
        .stats-bar .btn:focus,
        .urgency-banner .btn:focus {
            outline-color: var(--white);
            box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
        }
        .btn-primary {
            background: var(--blue-primary);
            color: var(--white);
        }
        .btn-primary:hover { background: var(--blue-dark); }
        .btn-secondary {
            background: var(--white);
            color: var(--blue-primary);
            border: 2px solid var(--blue-primary);
        }
        .btn-secondary:hover {
            background: var(--blue-light);
        }
        .btn-white {
            background: var(--white);
            color: var(--blue-primary);
        }
        .btn-white:hover { background: var(--blue-light); }
        .btn-outline-white {
            background: transparent;
            color: var(--white);
            border: 2px solid rgba(255,255,255,0.8);
        }
        .btn-outline-white:hover {
            background: rgba(255,255,255,0.1);
            border-color: var(--white);
            color: #fff; /* keep text white on hover (Kadence's a:hover color was darkening it) */
        }
        .hero-e .btn-white:hover {
            color: var(--blue-primary); /* white button keeps blue text on hover */
        }

        /* ---------- Hero — Full-width with integrated signup ---------- */
        .hero-e {
            background: linear-gradient(135deg, rgba(0, 51, 153, 0.82) 0%, rgba(0, 68, 204, 0.72) 50%, rgba(0, 51, 153, 0.85) 100%),
                        url('../img/Seafair.jpg') center/cover no-repeat;
            color: var(--white);
            padding: 56px 24px 48px;
            min-height: 400px;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        .hero-e::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 120px;
            background: linear-gradient(to bottom, transparent, rgba(0, 51, 153, 0.95));
            pointer-events: none;
        }
        .hero-e-inner {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 48px;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        .hero-e h1 {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1.15;
            margin-bottom: 16px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            color: #fff; /* override Kadence's global h1 color (--global-palette3) on the dark hero */
        }
        .hero-e .tagline {
            font-size: 1.125rem;
            color: rgba(255, 255, 255, 0.97);
            line-height: 1.6;
            margin-bottom: 28px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }
        .hero-e .hero-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        /* Email Capture (in hero) */
        .email-capture {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius);
            padding: 28px;
        }
        .email-capture h3 {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: #fff; /* override Kadence's global h3 color on the dark hero panel */
        }
        .email-capture p {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 16px;
        }
        .email-capture input {
            width: 100%;
            padding: 12px 14px;
            border-radius: var(--radius);
            border: none;
            font-size: 1rem;
            font-family: var(--font-sans);
            margin-bottom: 10px;
        }
        .email-capture .btn {
            width: 100%;
            text-align: center;
        }

        /* Gravity Forms signup inside the hero email-capture box — match the mockup look */
        .email-capture .gform_wrapper { margin: 0; }
        .email-capture .gform_wrapper form { margin: 0; }
        .email-capture .gform_wrapper .gform_fields {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .email-capture .gform_wrapper .gfield { margin: 0 0 10px; padding: 0; }
        .email-capture .gform_wrapper .gfield_label,
        .email-capture .gform_wrapper .gfield_required { display: none; } /* hidden_label design */
        .email-capture .gform_wrapper input[type="email"],
        .email-capture .gform_wrapper input[type="text"] {
            width: 100%;
            padding: 12px 14px;
            border: none;
            border-radius: var(--radius);
            font-size: 1rem;
            font-family: var(--font-sans);
            box-sizing: border-box;
        }
        .email-capture .gform_wrapper .gform_footer { margin: 2px 0 0; padding: 0; }
        .email-capture .gform_wrapper .gform_button {
            width: 100%;
            background: var(--blue-primary);
            color: #fff;
            border: none;
            border-radius: var(--radius);
            padding: 12px 14px;
            font-size: 1rem;
            font-weight: 700;
            font-family: var(--font-sans);
            cursor: pointer;
            transition: background 0.2s;
        }
        .email-capture .gform_wrapper .gform_button:hover { background: var(--blue-dark); }
        .email-capture .gform_wrapper .gform_validation_errors,
        .email-capture .gform_wrapper .validation_message { font-size: 0.8rem; }
        .email-capture .gform_confirmation_message { color: #fff; font-weight: 600; }

        /* Stats Bar */
        .stats-bar {
            background: var(--blue-dark);
            color: var(--white);
            padding: 24px;
        }
        .stats-bar-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            text-align: center;
        }
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
        }
        .stat-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.82);
            margin-top: 2px;
        }

        /* CTA Grid */
        .cta-grid {
            padding: 56px 24px;
            background: var(--white);
        }
        .cta-grid-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .cta-card {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            text-align: center;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
        }
        .cta-card:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
            transform: translateY(-4px);
        }
        .cta-img {
            width: 100%;
            height: 240px;
            overflow: hidden;
        }
        .cta-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            transition: transform 0.3s ease;
        }
        /* Vote card: center the crop on the two volunteers' faces (mid-frame).
           The photo is a tall portrait — campaign signs sit above the faces, so
           keep this at center; top/bottom shifts crop away from the faces. */
        .cta-card:first-child .cta-img img {
            object-position: center 48%;
        }
        .cta-card:hover .cta-img img {
            transform: scale(1.04);
        }
        .cta-body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        .cta-body .btn {
            margin-top: auto;
            align-self: center;
        }
        .cta-icon {
            font-size: 36px;
            margin-bottom: 12px;
        }
        .cta-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-darkest);
        }
        .cta-card p {
            color: var(--text-subtle);
            font-size: 0.95rem;
            margin-bottom: 16px;
            line-height: 1.6;
        }

        /* Chair Section */
        .chair-section {
            padding: 56px 24px;
            background: var(--bg-subtle);
            border-top: 1px solid #d0dbe8;
            border-bottom: 1px solid #d0dbe8;
        }
        .chair-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 36px;
            align-items: start;
        }
        .chair-photo {
            width: 200px;
            height: 240px;
            background: var(--border);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-subtle);
            font-size: 13px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .chair-message h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--blue-primary);
        }
        .chair-title {
            color: var(--text-medium);
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 16px;
        }
        .chair-message blockquote {
            font-size: 1.25rem;
            line-height: 1.75;
            color: var(--text-strong);
            border-left: 3px solid var(--blue-primary);
            padding-left: 22px;
            font-style: italic;
        }

        /* Events Section */
        .events-section {
            padding: 56px 24px;
            background: var(--white);
        }
        .events-grid {
            max-width: 1200px;
            margin: 0 auto;
        }
        .events-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 8px;
        }
        .events-header .section-title {
            margin-bottom: 0;
        }
        .events-nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .events-nav .page-indicator {
            font-size: 0.85rem;
            color: var(--text-subtle);
            min-width: 60px;
            text-align: center;
        }
        .events-nav button {
            width: 40px;
            height: 40px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--white);
            color: var(--text-strong);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .events-nav button:hover:not(:disabled) {
            background: var(--blue-primary);
            color: var(--white);
            border-color: var(--blue-primary);
        }
        .events-nav button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        .event-carousel {
            overflow: hidden;
            position: relative;
        }
        .event-track {
            display: flex;
            gap: 20px;
            transition: transform 0.4s ease;
        }
        .event-card {
            min-width: calc(33.333% - 14px);
            max-width: calc(33.333% - 14px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: box-shadow 0.2s, transform 0.2s;
            flex-shrink: 0;
            cursor: pointer;
            /* card is a <button> for click access — reset native button chrome */
            background: #fff;
            -webkit-appearance: none;
            appearance: none;
            padding: 0;
            margin: 0;
            text-align: left;
            font: inherit;
            color: inherit;
            white-space: normal;
            /* flex column (not block): a <button> vertically centers its content when
               stretched taller than its content, which pushed the date bar down and left
               a white gap above it. Column layout top-aligns the date bar. */
            display: flex;
            flex-direction: column;
        }
        .event-card:hover,
        .event-card:focus {
            /* keep the card white on hover — Kadence's button:hover paints it dark blue,
               which buries the (dark) card text. Force white + a clean blue-border lift. */
            background: var(--white) !important;
            border-color: var(--blue-primary);
            box-shadow: 0 6px 16px rgba(0, 68, 204, 0.18);
            transform: translateY(-4px);
        }
        .event-date-bar {
            background: var(--blue-primary);
            color: var(--white);
            padding: 10px 16px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .event-body {
            padding: 16px;
        }
        .event-body h4 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 4px;
            color: var(--text-darkest);
        }
        .event-body p {
            font-size: 0.9rem;
            color: var(--text-subtle);
        }
        @media (max-width: 992px) {
            .event-card {
                min-width: calc(50% - 10px);
                max-width: calc(50% - 10px);
            }
        }
        @media (max-width: 600px) {
            .event-card {
                min-width: 100%;
                max-width: 100%;
            }
            .events-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }

        /* Event Modal */
        .event-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .event-modal-overlay.active {
            display: flex;
        }
        .event-modal {
            background: var(--white);
            border-radius: var(--radius);
            max-width: 520px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: modalIn 0.2s ease;
        }
        @keyframes modalIn {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .event-modal-header {
            background: var(--blue-primary);
            color: var(--white);
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .event-modal-header h3,
        #event-modal .event-modal-header h3 {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.3;
            color: var(--white) !important; /* override Kadence global heading color */
        }
        .event-modal-header .modal-date {
            font-size: 0.85rem;
            opacity: 0.85;
            margin-top: 4px;
        }
        .event-modal-close {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0 0 0 16px;
            line-height: 1;
            opacity: 0.8;
        }
        .event-modal-close:hover {
            opacity: 1;
        }
        .event-modal-body {
            padding: 24px;
        }
        .event-modal-detail {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            font-size: 0.95rem;
            color: var(--text-strong);
        }
        .event-modal-detail .detail-icon {
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }
        .event-modal-detail a {
            color: var(--blue-primary);
            text-decoration: none;
        }
        .event-modal-detail a:hover {
            text-decoration: underline;
        }
        .event-modal-desc {
            font-size: 0.95rem;
            color: var(--text-medium);
            line-height: 1.6;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }
        .event-modal-desc a {
            color: var(--blue-primary);
            text-decoration: underline;
            word-break: break-word; /* wrap long URLs (e.g. basecamp links) */
        }
        .event-modal-desc a:hover {
            color: var(--blue-dark);
        }
        .event-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .event-modal-actions .btn {
            font-size: 0.9rem;
            padding: 10px 20px;
        }

        /* News Section */
        .news-section {
            padding: 56px 24px;
        }
        .news-grid {
            max-width: calc(1200px + 320px); /* full content width (main 1200 + rail 320) */
            margin: 0 auto;
        }
        .news-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .news-card {
            background: var(--white);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: all 0.2s;
            overflow: hidden;
        }
        .news-card-img {
            width: 100%;
            height: 240px;
            object-fit: contain;
            background: var(--bg-subtle);
            border-bottom: 1px solid var(--border);
            display: block;
        }
        .news-card-body {
            padding: 20px 24px 24px;
        }
        .news-card:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
            transform: translateY(-4px);
        }
        .news-date {
            font-size: 0.8rem;
            color: var(--blue-primary);
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .news-card h4 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-darkest);
        }
        .news-card h4 a {
            color: var(--text-darkest);
            text-decoration: none;
        }
        .news-card h4 a:hover {
            color: var(--blue-primary);
        }
        .news-card p {
            font-size: 1rem;
            color: var(--text-subtle);
            margin-bottom: 12px;
            line-height: 1.6;
        }
        .news-card .read-more {
            color: var(--blue-primary);
            font-weight: 600;
            text-decoration: none;
            font-size: 0.95rem;
        }
        .news-card .read-more:hover {
            color: var(--blue-dark);
        }

        /* --- Become a PCO module (full-width band below the newsroom) --- */
        .pco-section { padding: 0 24px 56px; }
        .pco-card {
            max-width: calc(1200px + 320px); /* full content width, aligned with the newsroom */
            margin: 0 auto;
            display: flex;
            gap: 24px;
            align-items: center;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        .pco-video {
            position: relative;
            flex: 0 0 44%;
            align-self: stretch;
            display: block;
            min-height: 210px;
            background: #000;
        }
        .pco-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .pco-play {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 60px; height: 60px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.55);
            transition: background 0.2s;
        }
        .pco-video:hover .pco-play { background: var(--blue-primary); }
        .pco-play::after {
            content: "";
            position: absolute;
            top: 50%; left: 54%;
            transform: translate(-50%, -50%);
            border-style: solid;
            border-width: 12px 0 12px 20px;
            border-color: transparent transparent transparent #fff;
        }
        .pco-body { flex: 1 1 auto; padding: 24px 28px 24px 0; }
        .pco-title { font-size: 1.6rem; font-weight: 700; color: var(--text-darkest); margin: 0 0 10px; }
        .pco-body p { color: var(--text-strong); line-height: 1.6; margin: 0 0 16px; }
        .pco-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
        .pco-learn { color: var(--blue-primary); font-weight: 600; text-decoration: none; }
        .pco-learn:hover { text-decoration: underline; }
        @media (max-width: 768px) {
            .pco-card { flex-direction: column; }
            .pco-video { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
            .pco-body { padding: 20px 22px; }
        }

        /* =============================================
           Below-the-Fold Full-Width Sections
           ============================================= */

        /* --- Endorsements Highlight --- */
        .endorsements-section {
            background: var(--blue-light);
            padding: 56px 24px;
            border-top: 1px solid #d0dbe8;
            border-bottom: 1px solid #d0dbe8;
        }
        .endorsements-inner {
            max-width: 1200px;
            margin: 0 auto;
        }
        .endorsements-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin: 28px 0 32px;
        }
        .endorsement-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            border-bottom: 4px solid var(--blue-primary);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .endorsement-photo {
            aspect-ratio: 4 / 5;
            min-height: 0; /* flex child: don't let a tall image's min-content stretch the box */
            overflow: hidden; /* clip any image taller than the 4/5 box so all cards match */
            background: var(--blue-light);
        }
        .endorsement-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            display: block;
        }
        .endorsement-body {
            padding: 14px 16px 16px;
        }
        .endorsement-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-darkest);
            line-height: 1.3;
        }
        .endorsement-status {
            font-size: 0.78rem;
            font-weight: 600;
            margin-top: 4px;
        }
        .endorsement-status.confirmed {
            color: #1a7a3a;
        }
        .endorsement-status.open {
            color: var(--blue-primary);
        }

        /* --- Find Your District --- */
        .district-section {
            background: var(--white);
            padding: 56px 24px;
            border-top: 1px solid var(--border);
        }
        .district-inner {
            max-width: calc(1200px + 320px);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1.4fr;
            gap: 56px;
            align-items: center;
        }
        .district-map-wrap {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 2px 12px rgba(0,0,0,0.10);
        }
        .district-map-wrap iframe {
            display: block;
            width: 100%;
            height: 340px;
            border: none;
        }
        .district-map-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 51, 153, 0.82);
            color: var(--white);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 7px 14px;
            text-align: center;
            letter-spacing: 0.3px;
        }
        .district-ld-count {
            display: inline-flex;
            gap: 32px;
            margin: 16px 0 20px;
        }
        .district-ld-stat {
            text-align: center;
        }
        .district-ld-stat strong {
            display: block;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--blue-primary);
            line-height: 1;
        }
        .district-ld-stat span {
            font-size: 0.8rem;
            color: var(--text-subtle);
        }
        .district-finder-form {
            display: flex;
            gap: 8px;
            margin-top: 20px;
        }
        .district-finder-form input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            font-size: 1rem;
            font-family: var(--font-sans);
            color: var(--text-strong);
        }
        .district-finder-form input:focus {
            outline: none;
            border-color: var(--blue-primary);
        }
        .district-finder-form input::placeholder {
            color: var(--text-subtle);
        }
        .district-ld-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }
        .district-ld-chip {
            background: var(--blue-light);
            color: var(--blue-primary);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: var(--radius);
            text-decoration: none;
            transition: background 0.2s;
        }
        .district-ld-chip:hover {
            background: #d4deff;
        }
        .district-ld-chip-all {
            background: var(--blue-primary);
            color: var(--white);
        }
        .district-ld-chip-all:hover {
            background: var(--blue-dark);
        }
        .district-browse-label {
            font-size: 0.8rem;
            color: var(--text-subtle);
            align-self: center;
        }

        /* Responsive — below-fold sections */
        @media (max-width: 992px) {
            .endorsements-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .district-inner {
                grid-template-columns: 1fr;
            }
            .district-map-wrap iframe {
                height: 220px;
            }
        }
        /* --- Issues / Platform Teaser (#5) --- */
        .issues-section {
            background: var(--bg-subtle);
            padding: 56px 24px;
            border-top: 1px solid #d0dbe8;
            border-bottom: 1px solid #d0dbe8;
        }
        .issues-inner {
            max-width: calc(1200px + 320px);
            margin: 0 auto;
        }
        .issues-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-top: 28px;
        }
        .issue-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 28px 20px 24px;
            text-align: center;
            text-decoration: none;
            color: inherit;
            display: block;
            transition: all 0.2s;
        }
        .issue-card:hover {
            border-color: var(--blue-primary);
            box-shadow: 0 4px 14px rgba(0, 68, 204, 0.13);
            transform: translateY(-3px);
        }
        .issue-icon {
            display: block;
            margin-bottom: 14px;
            color: var(--blue-primary);
            line-height: 0;
        }
        .kcdems-icon {
            display: inline-block;
            vertical-align: middle;
        }
        .issue-card h3 {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--blue-primary);
            margin-bottom: 10px;
            line-height: 1.3;
        }
        .issue-card p {
            font-size: 0.8rem;
            color: var(--text-medium);
            line-height: 1.55;
        }
        .issues-footer-cta {
            margin-top: 28px;
            text-align: center;
        }

        /* --- Volunteer Interest Matcher (#6) --- */
        .volunteer-section {
            background: var(--white);
            padding: 56px 24px;
            border-top: 1px solid var(--border);
        }
        .volunteer-inner {
            max-width: calc(1200px + 320px);
            margin: 0 auto;
        }
        .volunteer-inner .section-title {
            color: var(--text-darkest);
        }
        .volunteer-inner .section-subtitle {
            color: var(--text-subtle);
        }
        .volunteer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 28px;
        }
        .volunteer-card {
            background: var(--bg-subtle);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 28px 24px;
            text-align: center;
            text-decoration: none;
            color: var(--text-strong);
            transition: all 0.2s;
            display: block;
        }
        .volunteer-card:hover {
            background: var(--white);
            border-color: var(--blue-primary);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }
        .volunteer-card:focus {
            outline: 3px solid var(--blue-primary);
            outline-offset: 3px;
        }
        .volunteer-icon {
            display: block;
            margin-bottom: 12px;
            color: var(--blue-primary);
            line-height: 0;
        }
        .volunteer-card h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-darkest);
        }
        .volunteer-card p {
            font-size: 0.83rem;
            color: var(--text-medium);
            line-height: 1.55;
        }
        .volunteer-footer-cta {
            margin-top: 32px;
            text-align: center;
        }
        .volunteer-footer-cta p {
            color: var(--text-subtle);
            font-size: 0.9rem;
            margin-bottom: 14px;
        }
        /* Lighten (not darken) on hover — matches the section's "light up + lift" card language. */
        .volunteer-footer-cta .btn-primary:hover {
            background: var(--blue-primary);
            filter: brightness(1.15);
        }

        /* Responsive — issues + volunteer */
        @media (max-width: 992px) {
            .issues-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .volunteer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 600px) {
            .endorsements-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .issues-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .volunteer-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Footer — matches child theme: blue bg, darker blue bottom */
        .site-footer {
            background: var(--blue-primary);
            color: var(--white);
            padding: 48px 0 0;
        }
        .footer-inner {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr;
            gap: 36px;
            padding: 0 24px;
        }
        .footer-brand .footer-heading {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 8px;
        }
        .footer-brand p {
            font-size: 0.9rem;
            line-height: 1.6;
            color: rgba(255,255,255,0.9);
            margin-top: 8px;
        }
        .footer-col h4 {
            font-size: 1.125rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            color: var(--white);
        }
        .footer-col a {
            display: block;
            color: rgba(255,255,255,0.85);
            text-decoration: none;
            font-size: 0.9rem;
            padding: 3px 0;
            transition: all 0.2s;
        }
        .footer-col a:hover {
            color: var(--white);
            padding-left: 4px;
        }
        .footer-cta {
            margin-top: 16px;
        }
        .footer-cta .btn-white {
            padding: 0.75rem 1.5rem;
        }
        .footer-cta .btn-white:hover {
            background: #f0f0f0;
        }
        .footer-bottom-wrap {
            background: var(--blue-dark);
            margin-top: 36px;
            padding: 16px 24px;
        }
        .footer-bottom-wrap p {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.7);
            text-align: center;
        }
        .footer-bottom-wrap a {
            color: rgba(255,255,255,0.7);
        }
        .footer-bottom-wrap a:hover {
            color: var(--white);
        }

        /* =============================================
           Sidebar Rail Layout
           Rail begins below the hero
           ============================================= */

        .layout-e {
            display: grid;
            grid-template-columns: 1fr 320px;
            width: 100%;
        }
        .main-e {
            min-width: 0;
        }
        .rail-e {
            border-left: 1px solid var(--border);
            background: var(--bg-subtle);
        }
        .rail-e-inner {
            padding: 0 20px 24px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
        .rail-widget {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
        }
        .rail-widget h3 {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--blue-primary);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--blue-primary);
        }
        .rail-widget .rail-link {
            display: block;
            padding: 6px 0;
            color: var(--text-strong);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            transition: color 0.2s;
        }
        .rail-widget .rail-link:hover {
            color: var(--blue-primary);
        }
        .rail-widget .rail-link + .rail-link {
            border-top: 1px solid var(--border);
        }
        .rail-news-item {
            padding: 10px 0;
        }
        .rail-news-item + .rail-news-item {
            border-top: 1px solid var(--border);
        }
        .rail-news-item .rail-news-date {
            font-size: 0.7rem;
            color: var(--blue-primary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .rail-news-item a {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-darkest);
            text-decoration: none;
            margin-top: 2px;
            line-height: 1.4;
        }
        .rail-news-item a:hover {
            color: var(--blue-primary);
        }
        .rail-news-item p {
            font-size: 0.8rem;
            color: var(--text-subtle);
            margin-top: 4px;
            line-height: 1.5;
        }
        .rail-event-item {
            padding: 8px 0;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }
        .rail-event-item + .rail-event-item {
            border-top: 1px solid var(--border);
        }
        .rail-event-date {
            background: var(--blue-primary);
            color: var(--white);
            border-radius: var(--radius);
            padding: 4px 8px;
            font-size: 0.7rem;
            font-weight: 700;
            text-align: center;
            line-height: 1.3;
            min-width: 48px;
            flex-shrink: 0;
        }
        .rail-event-date .rail-event-month {
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .rail-event-date .rail-event-day {
            display: block;
            font-size: 1.1rem;
        }
        .rail-event-info a {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-darkest);
            text-decoration: none;
            line-height: 1.3;
        }
        .rail-event-info a:hover {
            color: var(--blue-primary);
        }
        .rail-event-info .rail-event-time {
            font-size: 0.75rem;
            color: var(--text-subtle);
            margin-top: 2px;
        }
        .rail-social {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .rail-social a {
            display: inline-block;
            padding: 8px 14px;
            background: var(--blue-light);
            color: var(--blue-primary);
            border-radius: var(--radius);
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
        }
        .rail-social a:hover {
            background: var(--blue-primary);
            color: var(--white);
        }

        @media (max-width: 992px) {
            .layout-e {
                grid-template-columns: 1fr;
            }
            .rail-e {
                order: -1; /* on mobile, lift the rail above the main column (incl. the events/calendar) */
                border-left: none;
                border-top: 1px solid var(--border);
            }
            .rail-e-inner {
                flex-direction: row;
                flex-wrap: wrap;
            }
            .rail-widget {
                flex: 1;
                min-width: 250px;
            }
        }
        @media (max-width: 768px) {
            .hero-e-inner {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .hero-e h1 { font-size: 1.75rem; }
            .rail-e-inner {
                flex-direction: column;
            }
            .rail-widget {
                min-width: 100%;
            }
        }
        /* Portrait phones: the "Stay Informed" signup spans edge-to-edge. The hero
           has 24px side padding; negative margins push the box out to the viewport
           edges (the hero has overflow:hidden, so no horizontal scrollbar). */
        @media (max-width: 600px) {
            .email-capture {
                margin-left: -24px;
                margin-right: -24px;
                border-radius: 0;
                border-left: none;
                border-right: none;
            }
        }

        /* Urgency Banner — blue-based, not red */
        .urgency-banner {
            background: var(--blue-dark);
            color: var(--white);
            text-align: center;
            padding: 14px 24px;
            font-size: 0.95rem;
            font-weight: 600;
        }
        .urgency-banner a {
            color: var(--white);
            text-decoration: underline;
            margin-left: 8px;
        }

        /* ---------- Responsive ---------- */
        @media (max-width: 992px) {
            .cta-grid-inner,
            .news-list {
                grid-template-columns: repeat(2, 1fr);
            }
            .chair-inner {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .chair-photo {
                margin: 0 auto;
            }
            .footer-inner {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 768px) {
            .stats-bar-inner {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }
            .cta-grid-inner,
            .news-list {
                grid-template-columns: 1fr;
            }
            /* Hide the DESKTOP primary nav on phones — but NOT Kadence's mobile
               drawer, which is also a <nav> (#mobile-site-navigation). A bare
               `nav { display:none }` here also hid the drawer's menu items, so the
               hamburger opened to an empty black panel. Scope to the desktop nav. */
            #site-navigation { display: none; }
        }
        @media (max-width: 480px) {
            .footer-inner {
                grid-template-columns: 1fr;
            }
        }

        /* ---------- Skip to Content (a11y) ---------- */
        .skip-link {
            position: absolute;
            left: -9999px;
            top: auto;
            width: 1px;
            height: 1px;
            overflow: hidden;
            z-index: 10000;
            padding: 12px 24px;
            background: var(--blue-primary);
            color: var(--white);
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            border-radius: 0 0 4px 0;
        }
        .skip-link:focus {
            position: fixed;
            top: 0;
            left: 0;
            width: auto;
            height: auto;
            outline: 3px solid var(--white);
            outline-offset: -3px;
        }

        /* ---------------------------------------------------------------
           Pride banner — rainbow-gradient bar between header and hero
           --------------------------------------------------------------- */
        .pride-banner {
            display: block;
            text-decoration: none;
            background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303);
            background-size: 200% 100%;
            animation: kcdems-pride-shimmer 14s linear infinite;
            box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
        }
        .pride-banner-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .pride-banner-flag {
            font-size: 1.15rem;
            line-height: 1;
        }
        .pride-banner-text {
            color: #fff;
            font-weight: 700;
            font-size: 0.98rem;
            letter-spacing: 0.2px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
        }
        .pride-banner-cta {
            color: #fff;
            font-weight: 700;
            font-size: 0.9rem;
            background: rgba(0, 0, 0, 0.28);
            padding: 3px 12px;
            border-radius: 999px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .pride-banner:hover .pride-banner-cta,
        .pride-banner:focus-visible .pride-banner-cta {
            background: rgba(0, 0, 0, 0.5);
            transform: translateX(2px);
        }
        @keyframes kcdems-pride-shimmer {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }
        @media (prefers-reduced-motion: reduce) {
            .pride-banner { animation: none; }
        }
        @media (max-width: 600px) {
            .pride-banner-inner { padding: 8px 16px; gap: 8px; }
            .pride-banner-text { font-size: 0.85rem; }
            .pride-banner-cta { font-size: 0.82rem; }
        }

