
/* =========================================================
   RGK 2027 ELECTION COUNTDOWN
   Self-contained. No framework dependency.
   RGK palette only: #141741 #C63690 #FFFFFF #E5E7EB
========================================================= */
.rgkElection2027,
.rgkElection2027 * { box-sizing: border-box; }

.rgkElection2027 {
    --rgk-navy: #141741;
    --rgk-magenta: #C63690;
    --rgk-white: #FFFFFF;
    --rgk-grey: #E5E7EB;
    --rgk-muted: #696B78;
    width: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.rgkElection2027-link {
    position: relative;
    min-height: 96px;
    width: 100%;
    display: flex;
    align-items: stretch;
    color: var(--rgk-navy);
    background:
        linear-gradient(90deg, rgba(198,54,144,.045), transparent 31%),
        var(--rgk-white);
    border-top: 4px solid var(--rgk-magenta);
    border-bottom: 1px solid var(--rgk-grey);
    text-decoration: none;
    overflow: hidden;
}

.rgkElection2027-link:hover {
    color: var(--rgk-navy);
    text-decoration: none;
    background:
        linear-gradient(90deg, rgba(198,54,144,.08), transparent 36%),
        var(--rgk-white);
}

.rgkElection2027-link:focus-visible {
    outline: 3px solid rgba(198,54,144,.24);
    outline-offset: -3px;
}

.rgkElection2027-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 24px 17px max(22px, calc((100vw - 1320px) / 2));
}

.rgkElection2027-brandBar {
    width: 8px;
    height: 52px;
    flex: 0 0 8px;
    background: var(--rgk-magenta);
    border-radius: 999px;
}

.rgkElection2027-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--rgk-magenta);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rgkElection2027-year {
    display: block;
    color: var(--rgk-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.04em;
}

.rgkElection2027-divider {
    width: 1px;
    align-self: stretch;
    margin: 18px 0;
    background: var(--rgk-grey);
}

.rgkElection2027-body {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(165px,.7fr) minmax(410px,1.35fr) auto;
    align-items: center;
    column-gap: 26px;
    padding: 11px 22px;
}

.rgkElection2027-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rgk-navy);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rgkElection2027-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--rgk-magenta);
    box-shadow: 0 0 0 4px rgba(198,54,144,.10);
}

.rgkElection2027-timer {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-variant-numeric: tabular-nums;
}

.rgkElection2027-unit {
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rgkElection2027-unit strong {
    display: block;
    color: var(--rgk-navy);
    font-size: clamp(25px,2.25vw,35px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.045em;
}

.rgkElection2027-unit span {
    display: block;
    margin-top: 7px;
    color: var(--rgk-muted);
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.rgkElection2027-colon {
    align-self: flex-start;
    margin-top: 2px;
    color: #B8BAC2;
    font-size: 25px;
    line-height: 1;
    font-weight: 300;
}

.rgkElection2027-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    color: #4F5260;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}

.rgkElection2027-metaDot { color: var(--rgk-magenta); }

.rgkElection2027-arrow {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rgk-magenta);
    font-size: 21px;
    border-left: 1px solid var(--rgk-grey);
    transition: color .16s ease, background-color .16s ease;
}

.rgkElection2027-link:hover .rgkElection2027-arrow {
    color: var(--rgk-white);
    background: var(--rgk-magenta);
}

.rgkElection2027-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1199.98px) {
    .rgkElection2027-brand { padding-left: 17px; padding-right: 18px; }
    .rgkElection2027-body {
        grid-template-columns: 145px minmax(365px,1fr) auto;
        column-gap: 17px;
        padding-left: 18px;
        padding-right: 16px;
    }
    .rgkElection2027-unit { min-width: 60px; }
    .rgkElection2027-timer { gap: 6px; }
    .rgkElection2027-meta { font-size: 10.5px; }
}

@media (max-width: 991.98px) {
    .rgkElection2027-link { min-height: 104px; }
    .rgkElection2027-brand { padding: 15px 18px 15px 16px; }
    .rgkElection2027-brandBar { height: 47px; }
    .rgkElection2027-year { font-size: 31px; }

    .rgkElection2027-body {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 18px;
        row-gap: 8px;
        padding: 12px 15px;
    }

    .rgkElection2027-title { grid-column: 1; grid-row: 1; }
    .rgkElection2027-timer {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-content: flex-end;
    }
    .rgkElection2027-meta {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        white-space: normal;
    }
    .rgkElection2027-arrow { flex-basis: 42px; }
}

@media (max-width: 767.98px) {
    .rgkElection2027-link {
        min-height: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        border-top-width: 3px;
    }

    .rgkElection2027-brand {
        grid-column: 1;
        grid-row: 1;
        gap: 8px;
        padding: 13px 10px 7px 13px;
    }

    .rgkElection2027-brandBar {
        width: 6px;
        height: 35px;
        flex-basis: 6px;
    }

    .rgkElection2027-kicker { font-size: 8px; letter-spacing: .09em; }
    .rgkElection2027-year { font-size: 27px; }
    .rgkElection2027-divider { display: none; }

    .rgkElection2027-body {
        grid-column: 1 / -1;
        grid-row: 2;
        display: block;
        padding: 4px 13px 12px;
    }

    .rgkElection2027-title {
        position: absolute;
        top: 17px;
        right: 42px;
        justify-content: flex-end;
        font-size: 9px;
        letter-spacing: .045em;
    }

    .rgkElection2027-dot {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
        box-shadow: 0 0 0 3px rgba(198,54,144,.10);
    }

    .rgkElection2027-timer {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        gap: 4px;
        justify-content: stretch;
    }

    .rgkElection2027-unit { min-width: 0; }
    .rgkElection2027-unit strong { font-size: clamp(25px,8.1vw,34px); }
    .rgkElection2027-unit span { margin-top: 5px; font-size: 7.5px; letter-spacing: .07em; }
    .rgkElection2027-colon { margin-top: 2px; font-size: 22px; }

    .rgkElection2027-meta {
        margin-top: 9px;
        justify-content: center;
        gap: 5px;
        font-size: 9.5px;
        text-align: center;
        white-space: normal;
    }

    .rgkElection2027-arrow {
        position: absolute;
        top: 11px;
        right: 7px;
        width: 28px;
        height: 28px;
        border: 0;
        font-size: 16px;
    }

    .rgkElection2027-link:hover .rgkElection2027-arrow {
        color: var(--rgk-magenta);
        background: transparent;
    }
}

@media (max-width: 389.98px) {
    .rgkElection2027-brand { padding-left: 10px; }
    .rgkElection2027-body { padding-left: 10px; padding-right: 10px; }
    .rgkElection2027-title { font-size: 8px; }
    .rgkElection2027-unit strong { font-size: 25px; }
    .rgkElection2027-unit span { font-size: 6.8px; }
    .rgkElection2027-meta { font-size: 8.8px; }
}

@media (prefers-reduced-motion: reduce) {
    .rgkElection2027-arrow { transition: none; }
}

@media print {
    .rgkElection2027 { display: none !important; }
}
