/* Senate / Governor forecast hubs — merged hero (no flag, photos, or win-chance line) */

body.senate-hub-page .forecast-hub-page-head--forecast-hero,
body.gov-hub-page .forecast-hub-page-head--forecast-hero {
    border-bottom: none;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-pad,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-pad {
    padding-top: 1.35rem;
    padding-bottom: 1.5rem;
    overflow: visible;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-text--with-detail,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .state-race-page-head-text--with-detail {
    display: block;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem 1.75rem;
    margin-bottom: 0;
    overflow: visible;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    flex: 0 0 auto;
    gap: 0.85rem 1rem;
    margin-left: auto;
    min-height: 100%;
    transform: translateY(9px);
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-head-countdown-slot,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-head-countdown-slot {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-left: auto;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero {
    --hub-cd-box-size: 62px;
    pointer-events: auto;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover {
    margin-right: 18px;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover-line1,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover-line1,
body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover-line2,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__hover-line2 {
    font-size: 0.85rem;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__boxes,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__boxes {
    gap: 0.5rem;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__box,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero .forecast-hub-midterm-countdown__box {
    border-radius: 0.4rem;
    background: rgba(75, 85, 99, 0.92);
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    align-self: flex-end;
    margin-right: auto;
    transform: translateY(4px);
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-flag-row,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-flag-row {
    display: flex;
    align-items: center;
    gap: calc(0.65rem + 3px);
    margin: 0;
    font-size: clamp(1.9rem, 3.65vw, 2.35rem);
    line-height: 1.2;
    transform: none;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-state,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-state {
    margin: 0;
    font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1em;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-race.forecast-hub-head-eyebrow,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-race.forecast-hub-head-eyebrow {
    margin: 0 0 0.55rem;
    padding: 0;
    transform: none;
    font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.85vw, 1.12rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #94a3b8;
    text-align: left;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details {
    flex: 0 0 auto;
    align-self: flex-end;
    width: auto;
    padding-top: 0;
    margin-top: auto;
    margin-left: 0;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-detail-row,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-detail-row {
    display: block;
    margin: 0;
    width: auto;
    text-align: right;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle {
    margin: 0 !important;
    margin-top: 0 !important;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-control--chevron-right,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-control--chevron-right {
    flex-direction: row;
    gap: 0.4rem;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more {
    width: 100%;
    min-width: 0;
    margin-top: 0.85rem;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more .state-race-page-more-panel,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-more .state-race-page-more-panel {
    margin-top: 0.65rem;
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-chevron,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-chevron {
    transform: rotate(180deg);
}

body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle[aria-expanded="true"] .state-race-page-more-chevron,
body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary .state-race-page-more-toggle[aria-expanded="true"] .state-race-page-more-chevron {
    transform: rotate(0deg);
}

@media (max-width: 900px) {
    body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-top {
        flex-wrap: wrap;
        align-items: flex-end;
    }

    body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-identity {
        flex: 1 1 auto;
        min-width: min(100%, 12rem);
        margin-right: 0;
    }

    body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-right.forecast-hub-head-right {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 0.75rem 1rem;
    }

    body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero {
        --hub-cd-box-size: 52px;
    }

    body.senate-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .rf-head-summary.forecast-hub-head-election-details {
        margin-top: 0;
    }
}

@media (min-width: 901px) {
    body.senate-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero,
    body.gov-hub-page .forecast-hub-page-head--forecast-hero .forecast-hub-midterm-countdown--hero {
        --hub-cd-box-size: 66px;
    }
}
