/* ==========================================================
   AMERICA'S DATA CENTER
   States & Territories / Geographic Front Door
========================================================== */

.map-explorer {
    position: relative;

    width: min(
        1660px,
        calc(100vw - 18px)
    );

    margin: 12px auto 0;
    margin-left: 50%;

    transform: translateX(-50%);

    overflow: hidden;

    border:
        1px solid
        rgba(
            125,
            158,
            196,
            0.52
        );

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(
                236,
                246,
                255,
                0.03
            ) 0%,
            rgba(
                241,
                247,
                252,
                0.10
            ) 48%,
            rgba(
                243,
                247,
                250,
                0.23
            ) 100%
        ),
        url(
            "../img/national/explore-america-bg.jpg"
        )
        center 51%
        / cover
        no-repeat;

    box-shadow:
        0 16px 50px
        rgba(
            16,
            42,
            78,
            0.11
        );
}


.map-explorer-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                0.03
            ),
            transparent 42%,
            rgba(
                255,
                255,
                255,
                0.03
            )
        );
}


.map-explorer-content {
    position: relative;
    z-index: 1;

    padding:
        18px
        24px
        13px;
}


/* ==========================================================
   INTRO + NATIONAL KPIs
========================================================== */

.map-explorer-heading {
    display: grid;

    grid-template-columns:
        minmax(
            480px,
            1.05fr
        )
        minmax(
            650px,
            1fr
        );

    gap: 28px;

    align-items: end;
}


.map-eyebrow {
    color: #115aa5;
}


.map-intro h1 {
    max-width: 760px;

    margin:
        4px
        0
        7px;

    color: #10213f;

    font-size:
        clamp(
            35px,
            3.2vw,
            52px
        );

    line-height: 0.98;

    letter-spacing: -0.05em;
}


.map-problem,
.map-promise {
    max-width: 770px;

    margin: 0;

    color: #40556e;

    font-size: 11px;

    line-height: 1.45;
}


.map-promise {
    margin-top: 4px;

    color: #183d68;

    font-weight: 750;
}


.map-stat-row {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(
                0,
                1fr
            )
        );

    gap: 7px;
}


.map-stat {
    min-height: 76px;

    padding: 10px;

    display: grid;

    grid-template-columns:
        auto
        1fr;

    grid-template-rows:
        auto
        1fr;

    column-gap: 8px;

    border:
        1px solid
        rgba(
            145,
            174,
            207,
            0.62
        );

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    box-shadow:
        0 7px 18px
        rgba(
            27,
            64,
            108,
            0.07
        );

    backdrop-filter:
        blur(8px);
}


.map-stat-icon {
    grid-row:
        1
        / 3;

    width: 22px;
    min-width: 22px;

    color: #1671c9;

    font-size: 14px;

    line-height: 1;
}


.map-stat strong {
    color: #12366d;

    font-size: 19px;

    font-weight: 850;

    line-height: 1;

    letter-spacing: -0.025em;
}


.map-stat small {
    margin-top: 4px;

    color: #67788d;

    font-size: 7px;

    line-height: 1.2;
}


/* ==========================================================
   MAP WORKSPACE
========================================================== */

.map-workspace {
    margin-top: 11px;

    display: grid;

    grid-template-columns:
        minmax(
            0,
            1.92fr
        )
        minmax(
            315px,
            0.48fr
        );

    gap: 11px;

    align-items: stretch;
}


.map-stage {
    min-width: 0;

    padding:
        10px
        11px
        3px;

    border:
        1px solid
        rgba(
            145,
            174,
            207,
            0.30
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );
}


.map-stage-heading {
    display: flex;

    align-items: end;

    justify-content:
        space-between;

    gap: 16px;

    margin-bottom: 7px;
}


.map-stage-heading h2 {
    margin: 1px 0 0;

    color: #10213f;

    font-size: 20px;

    line-height: 1;

    letter-spacing: -0.03em;
}


.map-stage-note {
    color: #516780;

    font-size: 8px;
}


.map-search-row {
    display: grid;

    grid-template-columns:
        minmax(
            300px,
            470px
        )
        1fr;

    gap: 12px;

    align-items: center;
}


.map-search {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        0
        11px;

    border:
        1px solid
        rgba(
            119,
            153,
            193,
            0.62
        );

    border-radius: 9px;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    box-shadow:
        0 4px 12px
        rgba(
            30,
            67,
            111,
            0.05
        );
}


.map-search span {
    color: #1762b1;

    font-size: 18px;
}


.map-search input {
    width: 100%;

    padding: 9px 0;

    border: 0;

    outline: 0;

    background:
        transparent;

    color: var(--text);

    font-size: 11px;
}


.map-search-help {
    justify-self: end;

    color: #516780;

    font-size: 7.5px;

    white-space: nowrap;
}


.map-canvas-wrap {
    position: relative;

    min-height: 365px;
}


.state-map {
    width: 100%;

    height: 365px;

    margin-top: -6px;
}


.map-controls {
    position: absolute;

    left: 0;

    top: 12px;

    z-index: 8;

    display: grid;

    gap: 1px;
}


.map-controls button {
    width: 25px;

    height: 25px;

    border:
        1px solid
        rgba(
            108,
            140,
            179,
            0.55
        );

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );

    color: #174f93;

    font-size: 14px;

    font-weight: 850;

    cursor: pointer;
}


.map-controls button:first-child {
    border-radius:
        5px
        5px
        0
        0;
}


.map-controls button:last-child {
    border-radius:
        0
        0
        5px
        5px;
}


.northeast-labels {
    position: absolute;

    right: 8.8%;

    top: 48px;

    z-index: 7;

    display: grid;

    gap: 2px;
}


.northeast-state-button {
    min-width: 28px;

    height: 18px;

    padding:
        0
        4px;

    border:
        1px solid
        rgba(
            123,
            151,
            184,
            0.65
        );

    border-radius: 4px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    color: #234f7e;

    font-size: 7px;

    font-weight: 850;

    cursor: pointer;
}


/* ==========================================================
   SELECTED STATE / REPRESENTATION
========================================================== */

.state-feature-card {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(
            136,
            166,
            202,
            0.68
        );

    border-radius: 15px;

    background:
        rgba(
            255,
            255,
            255,
            0.98
        );

    box-shadow:
        0 12px 30px
        rgba(
            18,
            51,
            91,
            0.15
        );
}


.state-feature-image {
    min-height: 138px;

    position: relative;

    display: flex;

    align-items: flex-end;

    padding: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(
                7,
                29,
                62,
                0
            ) 8%,
            rgba(
                7,
                29,
                62,
                0.84
            ) 100%
        ),
        linear-gradient(
            135deg,
            #8cc6ef,
            #28588f
        );

    background-position: center;

    background-size: cover;
}


.state-feature-image-label span,
.state-feature-image-label strong {
    display: block;

    color: #ffffff;
}


.state-feature-image-label span {
    font-size: 7px;

    font-weight: 900;

    letter-spacing: 0.13em;
}


.state-feature-image-label strong {
    margin-top: 2px;

    font-size: 23px;

    line-height: 1;

    letter-spacing: -0.04em;
}


.state-feature-body {
    padding:
        11px
        12px
        12px;
}


.state-feature-title-row {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 10px;
}


.state-feature-title-row h2 {
    margin: 2px 0 0;

    color: #10213f;

    font-size: 22px;

    line-height: 1;

    letter-spacing: -0.04em;
}


.state-feature-code {
    min-width: 35px;

    height: 35px;

    display:
        inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eaf2fb;

    color: #1357a2;

    font-size: 10px;

    font-weight: 900;
}


.state-feature-representation {
    margin-top: 9px;

    padding:
        8px
        0;

    border-top:
        1px solid
        var(--border);

    border-bottom:
        1px solid
        var(--border);
}


.state-feature-section-heading {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 10px;
}


.state-feature-section-heading span {
    color: #1357a2;

    font-size: 6.2px;

    font-weight: 900;

    letter-spacing: 0.09em;
}


.state-feature-section-heading small {
    color: #78869a;

    font-size: 6.2px;
}


.representation-grid {
    margin-top: 7px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );
}


.representation-grid > div {
    padding-right: 6px;
}


.representation-grid > div + div {
    padding-left: 7px;

    border-left:
        1px solid
        var(--border);
}


.representation-grid span,
.representation-grid strong,
.representation-grid small {
    display: block;
}


.representation-grid span {
    color: #718096;

    font-size: 5.7px;

    font-weight: 900;

    letter-spacing: 0.08em;
}


.representation-grid strong {
    margin-top: 3px;

    color: #10213f;

    font-size: 14px;
}


.representation-grid small {
    margin-top: 2px;

    color: #78869a;

    font-size: 6.1px;

    line-height: 1.18;
}


.state-feature-question {
    margin-top: 9px;

    padding:
        8px
        9px;

    border:
        1px solid
        #dbe7f3;

    border-radius: 9px;

    background: #f6faff;
}


.state-feature-question > span {
    color: #1357a2;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: 0.09em;
}


.state-feature-question p {
    margin:
        5px
        0
        0;

    color: #51657e;

    font-size: 7.6px;

    line-height: 1.35;
}


.state-feature-button {
    margin-top: 9px;

    padding:
        8px
        10px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #1555a0 0%,
            #2478d2 100%
        );

    color: #ffffff;

    font-size: 9.5px;

    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 6px 14px
        rgba(
            32,
            105,
            190,
            0.22
        );
}


/* ==========================================================
   TERRITORIES
========================================================== */

.territory-strip {
    margin-top: 8px;

    padding-top: 8px;

    border-top:
        1px solid
        rgba(
            135,
            165,
            201,
            0.40
        );
}


.territory-strip-heading {
    margin-bottom: 6px;

    display: flex;

    align-items: end;

    justify-content:
        space-between;

    gap: 10px;
}


.territory-strip-heading h2 {
    margin: 1px 0 0;

    color: #173d68;

    font-size: 13px;
}


.territory-strip-heading small {
    color: #58708b;

    font-size: 7px;
}


.territory-card-row {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(
                0,
                1fr
            )
        );

    gap: 6px;
}


.territory-tile {
    min-height: 62px;

    padding: 7px;

    display: flex;

    align-items: flex-end;

    justify-content:
        space-between;

    gap: 6px;

    overflow: hidden;

    border:
        1px solid
        rgba(
            136,
            166,
            202,
            0.58
        );

    border-radius: 9px;

    background-color:
        #3b79b7;

    background-position:
        center;

    background-size:
        cover;

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 5px 13px
        rgba(
            20,
            60,
            101,
            0.09
        );

    transition:
        transform
        var(--transition-fast),
        box-shadow
        var(--transition-fast);
}


.territory-tile:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 9px 19px
        rgba(
            20,
            60,
            101,
            0.15
        );
}


.territory-tile div span,
.territory-tile div strong {
    display: block;
}


.territory-tile div span {
    font-size: 7px;

    font-weight: 900;
}


.territory-tile div strong {
    margin-top: 2px;

    font-size: 7.8px;

    line-height: 1.12;
}


.territory-arrow {
    font-size: 12px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (
    max-width: 1300px
) {
    .map-explorer-heading {
        grid-template-columns:
            1fr;

        gap: 12px;
    }

    .map-stat-row {
        max-width: 920px;
    }
}


@media (
    max-width: 1100px
) {
    .map-explorer {
        width:
            calc(
                100vw
                - 12px
            );
    }

    .map-workspace {
        grid-template-columns:
            1fr;
    }

    .state-feature-card {
        display: grid;

        grid-template-columns:
            minmax(
                245px,
                0.72fr
            )
            minmax(
                0,
                1.28fr
            );
    }

    .state-feature-image {
        min-height: 100%;
    }

    .territory-card-row {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }
}


@media (
    max-width: 780px
) {
    .map-explorer-content {
        padding: 15px;
    }

    .map-stat-row {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .map-search-row {
        grid-template-columns:
            1fr;
    }

    .map-search-help {
        justify-self:
            start;
    }

    .state-map,
    .map-canvas-wrap {
        height: 340px;

        min-height: 340px;
    }

    .northeast-labels {
        display: none;
    }

    .state-feature-card {
        display: block;
    }

    .state-feature-image {
        min-height: 165px;
    }
}


@media (
    max-width: 560px
) {
    .map-explorer {
        width:
            calc(
                100vw
                - 8px
            );

        border-radius: 14px;
    }

    .map-intro h1 {
        font-size: 37px;
    }

    .map-stat-row,
    .territory-card-row {
        grid-template-columns:
            1fr
            1fr;
    }

    .representation-grid {
        grid-template-columns:
            1fr;
    }

    .representation-grid > div + div {
        padding-left: 0;

        padding-top: 6px;

        border-left: 0;

        border-top:
            1px solid
            var(--border);
    }
}

/* ==========================================================
   V3 FRONT DOOR — NATIONAL CONTEXT + CLEAN EXPLORER
========================================================== */

.map-explorer {
    background: #f5f8fc;
}

.map-explorer-overlay {
    background:
        radial-gradient(circle at 8% 2%, rgba(37, 126, 213, 0.10), transparent 28%),
        radial-gradient(circle at 92% 0%, rgba(218, 164, 74, 0.10), transparent 24%);
}

.map-explorer-content {
    padding: 28px 28px 18px;
}

.map-explorer-heading-v2 {
    display: block;
    max-width: 980px;
    margin-bottom: 22px;
}

.map-explorer-heading-v2 .map-intro h1 {
    max-width: 900px;
    margin-bottom: 10px;
}

.map-explorer-heading-v2 .map-promise {
    max-width: 760px;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
    color: #38516d;
}

.america-glance {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid rgba(126, 155, 190, 0.32);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(20, 49, 84, 0.07);
}

.america-glance-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.america-glance-heading h2 {
    margin: 3px 0 0;
    color: #10213f;
    font-size: clamp(20px, 1.7vw, 28px);
    letter-spacing: -0.035em;
}

.america-glance-heading p {
    max-width: 430px;
    margin: 0;
    color: #607188;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.america-glance-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.1fr) minmax(430px, 1.35fr);
    gap: 14px;
}

.nation-card,
.chamber-card {
    min-width: 0;
    border: 1px solid #dbe5f0;
    border-radius: 15px;
    background: #fff;
}

.nation-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 10px 12px;
    padding: 18px;
}

.nation-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: #eaf4ff;
    color: #1268bd;
    font-size: 17px;
}

.nation-card-label,
.chamber-kicker {
    display: block;
    color: #1467b5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.11em;
}

.nation-card strong {
    display: block;
    margin: 2px 0 1px;
    color: #10213f;
    font-size: clamp(25px, 2.2vw, 36px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.nation-card small,
.chamber-copy small {
    color: #6a7b8f;
    font-size: 9px;
    line-height: 1.35;
}

.nation-card-change {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid #edf1f5;
}

.nation-card-change span {
    color: #183d68;
    font-size: 15px;
    font-weight: 850;
}

.chamber-card {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(160px, 1.2fr);
    gap: 14px;
    padding: 16px;
    overflow: hidden;
}

.chamber-card-house {
    grid-template-columns: minmax(170px, 0.75fr) minmax(220px, 1.25fr);
}

.chamber-copy strong {
    display: block;
    margin: 3px 0 2px;
    color: #10213f;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.035em;
}

.chamber-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 12px;
}

.chamber-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #52657c;
    font-size: 8px;
    font-weight: 700;
}

.party-dot,
.seat {
    display: inline-block;
    border-radius: 50%;
}

.party-dot {
    width: 7px;
    height: 7px;
}

.party-republican { background: #c74b50; }
.party-democratic { background: #327fc4; }
.party-independent { background: #8b75aa; }
.party-vacant { background: #d5dce5; }

.seat-chamber {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 3px;
    min-height: 92px;
    padding: 13px 11px;
    border-radius: 50% 50% 12px 12px / 70% 70% 12px 12px;
    background: linear-gradient(180deg, #f4f7fb 0%, #eaf0f6 100%);
    box-shadow: inset 0 0 0 1px rgba(119, 148, 181, 0.16);
}

.seat-chamber-senate .seat {
    width: 6px;
    height: 6px;
}

.seat-chamber-house {
    gap: 2px;
}

.seat-chamber-house .seat {
    width: 4px;
    height: 4px;
}

.glance-source-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    color: #7a8999;
    font-size: 8px;
}

.map-workspace {
    padding: 16px;
    border: 1px solid rgba(126, 155, 190, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(20, 49, 84, 0.07);
}

.map-stage {
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.territory-strip {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(126, 155, 190, 0.26);
    border-radius: 18px;
    background: #fff;
}

.territory-card-row {
    gap: 10px;
}

.territory-tile {
    min-height: 88px;
}

@media (max-width: 1180px) {
    .america-glance-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nation-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .map-explorer-content { padding: 20px 14px 14px; }
    .america-glance-heading { display: block; }
    .america-glance-heading p { margin-top: 8px; text-align: left; }
    .america-glance-grid { grid-template-columns: 1fr; }
    .nation-card { grid-column: auto; }
    .chamber-card,
    .chamber-card-house { grid-template-columns: 1fr; }
    .glance-source-row { display: block; }
}


/* ==========================================================
   ACCESSIBILITY / READABILITY PASS
   Increase secondary text and infographic scale without
   changing the overall page architecture.
========================================================== */

/* America at a Glance */
.glance-card .eyebrow,
.glance-section .eyebrow,
.glance-card-label,
.chamber-card .eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
}

.glance-card h2,
.chamber-card h2 {
    font-size: 24px;
}

.glance-card p,
.chamber-card p,
.glance-card small,
.chamber-card small,
.glance-source,
.glance-note {
    font-size: 12px;
    line-height: 1.45;
}

.population-number {
    font-size: clamp(42px, 4vw, 58px);
}

.population-change {
    font-size: 16px;
}

.chamber-seat-count {
    font-size: 28px;
}

.chamber-legend,
.chamber-legend span {
    font-size: 11px;
    line-height: 1.35;
}

.chamber-seats {
    transform: scale(1.06);
    transform-origin: center;
}

/* Explore America heading + search */
.map-stage-heading h2 {
    font-size: 24px;
}

.map-stage-note,
.map-search-help {
    font-size: 10.5px;
    line-height: 1.35;
}

.map-search {
    min-height: 46px;
}

.map-search input {
    font-size: 13px;
    padding: 12px 0;
}

.map-search span {
    font-size: 19px;
}

/* Map labels and controls */
.map-controls button {
    width: 30px;
    height: 30px;
    font-size: 16px;
}

.northeast-state-button {
    min-width: 32px;
    height: 22px;
    font-size: 8px;
}

.state-map {
    min-height: 390px;
    height: 390px;
}

/* Selected geography card */
.state-feature-image-label span {
    font-size: 9px;
}

.state-feature-image-label strong {
    font-size: 26px;
}

.state-feature-title-row h2 {
    font-size: 25px;
}

.state-feature-code {
    min-width: 40px;
    height: 40px;
    font-size: 12px;
}

.state-feature-section-heading span,
.state-feature-section-heading small {
    font-size: 8px;
}

.representation-grid span {
    font-size: 7.5px;
}

.representation-grid strong {
    font-size: 17px;
}

.representation-grid small {
    font-size: 8px;
    line-height: 1.28;
}

.state-feature-question > span {
    font-size: 8px;
}

.state-feature-question p {
    font-size: 10px;
    line-height: 1.45;
}

.state-feature-button {
    padding: 10px 12px;
    font-size: 11px;
}

/* Territories */
.territory-strip-heading h2 {
    font-size: 16px;
}

.territory-strip-heading small {
    font-size: 9px;
}

.territory-tile {
    min-height: 78px;
    padding: 9px;
}

.territory-tile div span {
    font-size: 8px;
}

.territory-tile div strong {
    font-size: 9.5px;
    line-height: 1.18;
}

.territory-arrow {
    font-size: 14px;
}

/* General hierarchy */
.map-problem,
.map-promise {
    font-size: 12px;
    line-height: 1.5;
}

.map-eyebrow {
    font-size: 11px;
}

@media (max-width: 780px) {
    .state-map {
        height: 350px;
        min-height: 350px;
    }

    .map-stage-note,
    .map-search-help {
        font-size: 10px;
    }

    .territory-tile {
        min-height: 72px;
    }
}

@media (max-width: 560px) {
    .map-search input {
        font-size: 14px;
    }

    .representation-grid span,
    .representation-grid small,
    .state-feature-section-heading span,
    .state-feature-section-heading small {
        font-size: 9px;
    }

    .state-feature-question p {
        font-size: 11px;
    }
}


/* ==========================================================
   MAP EDUCATION LAYER
   Hover spotlight + congressional district boundary toggle
========================================================== */

.map-stage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.district-boundary-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(36,87,166,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #173d68;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.district-boundary-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1762b1;
}

.district-boundary-toggle.is-unavailable {
    opacity: .45;
    cursor: not-allowed;
}

.map-hover-card {
    position: absolute;
    z-index: 12;
    left: 56px;
    top: 16px;
    width: min(360px, calc(100% - 130px));
    padding: 15px 17px 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-7px);
    border: 1px solid rgba(36,87,166,.18);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 34px rgba(18,51,91,.17);
    backdrop-filter: blur(12px);
    transition:
        opacity 130ms ease,
        transform 130ms ease;
}

.map-hover-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-hover-kicker {
    display: block;
    color: #1762b1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.map-hover-name {
    display: block;
    margin-top: 3px;
    color: #10213f;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -.035em;
}

.map-hover-stats {
    margin-top: 12px;
    padding-top: 11px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 14px;
    border-top: 1px solid #e1e8f0;
}

.map-hover-stats div {
    min-width: 0;
}

.map-hover-stats span,
.map-hover-stats strong {
    display: block;
}

.map-hover-stats span {
    color: #69798d;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.25;
}

.map-hover-stats strong {
    margin-top: 2px;
    color: #12366d;
    font-size: 16px;
    line-height: 1.1;
}

.map-hover-card > small {
    display: block;
    margin-top: 11px;
    color: #5c6d82;
    font-size: 8.5px;
}

@media (max-width: 780px) {
    .map-stage-heading {
        align-items: flex-start;
    }

    .map-stage-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .map-hover-card {
        left: 46px;
        width: min(330px, calc(100% - 90px));
    }
}

@media (max-width: 560px) {
    .map-stage-actions {
        display: grid;
        gap: 8px;
    }

    .map-hover-card {
        left: 42px;
        top: 12px;
        width: calc(100% - 58px);
    }

    .map-hover-name {
        font-size: 22px;
    }
}


/* Daily GOLD entry point */
.daily-change-entry{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin:0 0 18px;padding:14px 17px;border:1px solid rgba(36,87,166,.18);border-radius:14px;background:linear-gradient(90deg,#ffffff 0%,#f3f8ff 70%,#eef6ff 100%);color:#10213f;text-decoration:none;box-shadow:0 8px 20px rgba(20,49,84,.05);transition:transform .15s ease,box-shadow .15s ease}.daily-change-entry:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(20,49,84,.09)}.daily-change-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#e5f2ff;color:#1762b1}.daily-change-copy small,.daily-change-copy strong,.daily-change-copy span{display:block}.daily-change-copy small{color:#1762b1;font-size:8px;font-weight:900;letter-spacing:.11em}.daily-change-copy strong{margin-top:2px;font-size:15px}.daily-change-copy span{margin-top:2px;color:#62748a;font-size:9.5px}.daily-change-arrow{color:#1762b1;font-size:21px;font-weight:800}@media(max-width:560px){.daily-change-entry{grid-template-columns:auto 1fr}.daily-change-arrow{display:none}.daily-change-copy span{font-size:9px}}

/* ==========================================================
   ADC STATES — MOCKUP-MATCHING VISUAL PASS V5
   Purpose: preserve all existing map functionality while
   matching the approved cinematic mockup much more closely.
========================================================== */

:root {
    --adc-night: #021426;
    --adc-night-2: #061b31;
    --adc-panel: rgba(5, 31, 55, 0.94);
    --adc-line: rgba(45, 181, 255, 0.34);
    --adc-cyan: #2ec7ff;
    --adc-blue: #168eff;
    --adc-text: #f6fbff;
    --adc-muted: #a8bfd3;
}

body,
main,
.main-content {
    background: var(--adc-night) !important;
}

main.container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- approved mockup hero proportions ---------- */
.px-hero.px-hero-america {
    min-height: 360px;
    height: 360px;
    padding: 44px 38px 34px;
    background:
        radial-gradient(circle at 82% 11%, rgba(255, 193, 108, 0.15), transparent 17%),
        #021426;
    border: 0;
}

.px-hero.px-hero-america::before {
    inset: 0;
    background-image: url('../img/adc/america-network.png');
    background-repeat: no-repeat;
    background-size: min(71vw, 1080px) auto;
    background-position: calc(100% + 8px) 48%;
    opacity: 1;
    transform: none;
}

.px-hero-america .px-hero-shade {
    background:
        linear-gradient(90deg,
            rgba(1, 16, 31, 1) 0%,
            rgba(1, 17, 32, 0.99) 22%,
            rgba(2, 20, 37, 0.91) 37%,
            rgba(2, 18, 34, 0.42) 58%,
            rgba(2, 15, 29, 0.08) 82%);
}

.px-hero-america .px-grid-overlay {
    opacity: 0.22;
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 100%);
}

.px-hero-america .px-hero-copy {
    width: 44%;
    max-width: 525px;
    padding-top: 8px;
}

.px-hero-america .px-kicker {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .18em;
}

.px-hero-america h1 {
    font-size: clamp(40px, 4.15vw, 64px);
    line-height: .96;
    letter-spacing: -.045em;
}

.px-hero-america h1 em {
    display: inline-block;
    margin-top: 2px;
    color: #2fbfff;
}

.px-hero-america p {
    max-width: 485px;
    margin-top: 12px;
    color: #ecf6fd;
    font-size: 14px;
    line-height: 1.48;
}

/* ---------- KPI strip: one row like approved mockup ---------- */
.px-kpi-row {
    position: relative;
    z-index: 3;
    gap: 8px;
    padding: 0 24px;
    margin-top: -1px;
}

.px-kpi-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.px-kpi-row article {
    min-height: 78px;
    padding: 12px 14px;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(7, 45, 76, .96), rgba(3, 27, 49, .98));
}

.px-kpi-row i {
    width: 28px;
    font-size: 22px;
}

.px-kpi-row strong {
    font-size: 21px;
}

.px-kpi-row span {
    font-size: 11px;
}

.px-kpi-row small {
    font-size: 9px;
}

/* ---------- mockup-style compact section tabs ---------- */
.px-tabs {
    margin: 18px 24px 0;
    border-color: rgba(45, 181, 255, .40);
    background: #03182b;
}

.px-tabs a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    font-size: 11px;
}

/* ---------- state-card ribbon shown before the large map ---------- */
.px-state-showcase {
    margin: 0;
    padding: 14px 24px 18px;
    background:
        linear-gradient(180deg, #03182b 0%, #021426 100%);
}

.px-state-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.px-state-search {
    position: relative;
    width: min(370px, 45vw);
}

.px-state-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adc-cyan);
    font-size: 12px;
}

.px-state-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 35px;
    border: 1px solid rgba(39, 171, 240, .48);
    border-radius: 6px;
    outline: none;
    background: rgba(4, 30, 52, .90);
    color: white;
    font-size: 12px;
}

.px-state-search input::placeholder {
    color: #8ba7bd;
}

.px-state-tools-copy {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #87a5bd;
    font-size: 10px;
}

.px-tools-label {
    color: #5bcfff;
    font-weight: 900;
    letter-spacing: .13em;
}

.px-state-tools-copy a {
    color: #dcecf8;
    text-decoration: none;
    font-weight: 700;
}

.px-state-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.px-state-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(43, 167, 235, .34);
    border-radius: 6px;
    background: #061d32;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.px-state-card:hover {
    transform: translateY(-2px);
    border-color: rgba(65, 199, 255, .82);
    box-shadow: 0 10px 24px rgba(0, 153, 255, .10);
}

.px-state-card-image {
    position: relative;
    height: 93px;
    background-size: cover;
    background-position: center;
}

.px-state-card-image span {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 28px;
    padding: 3px 7px;
    border: 1px solid rgba(84, 205, 255, .35);
    border-radius: 999px;
    background: rgba(2, 21, 37, .72);
    color: #b9eaff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.px-state-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 10px;
}

.px-state-card-footer strong {
    overflow: hidden;
    color: white;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-state-card-footer span {
    color: #7ed6ff;
    font-size: 15px;
}

/* ---------- restore + darken the functional interactive map ---------- */
.map-explorer {
    width: calc(100% - 48px) !important;
    max-width: 1500px !important;
    margin: 8px auto 34px !important;
    margin-left: auto !important;
    transform: none !important;
    overflow: hidden;
    border: 1px solid rgba(42, 166, 232, .28) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(4, 29, 50, .98), rgba(2, 20, 37, .98)) !important;
    box-shadow: none !important;
}

.map-explorer-overlay {
    display: none !important;
}

.map-explorer-content {
    padding: 20px !important;
}

.map-explorer-heading-v2,
.daily-change-entry,
.america-glance {
    display: none !important;
}

.map-workspace {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .62fr) !important;
    gap: 14px !important;
}

.map-stage,
.state-feature-card,
.territory-strip {
    border-color: rgba(42, 166, 232, .28) !important;
    background: rgba(3, 27, 47, .92) !important;
    box-shadow: none !important;
}

.map-stage-heading h2,
.state-feature-title-row h2,
.territory-strip-heading h2,
.state-feature-question p,
.map-stage-note,
.map-search-help,
.state-feature-section-heading,
.state-feature-representation strong,
.state-feature-question span {
    color: #f4fbff !important;
}

.map-stage-note,
.map-search-help,
.state-feature-section-heading small,
.state-feature-representation small,
.territory-strip-heading small {
    color: #91acc2 !important;
}

.map-search {
    border-color: rgba(49, 180, 244, .42) !important;
    background: #05233c !important;
}

.map-search input {
    color: #fff !important;
}

.map-canvas-wrap {
    min-height: 500px !important;
    border-color: rgba(53, 181, 244, .34) !important;
    background: #041a2e !important;
}

.state-map {
    min-height: 500px !important;
}

.map-hover-card {
    border-color: rgba(62, 193, 255, .42) !important;
    background: rgba(2, 20, 36, .94) !important;
    color: white !important;
}

.northeast-state-button,
.map-controls button {
    border-color: rgba(48, 178, 239, .42) !important;
    background: #0a3555 !important;
    color: #fff !important;
}

.state-feature-image {
    min-height: 190px !important;
}

.state-feature-body {
    background: transparent !important;
}

.state-feature-code {
    border-color: rgba(47, 183, 248, .36) !important;
    background: rgba(25, 143, 220, .12) !important;
    color: #6fd6ff !important;
}

.state-feature-representation > div,
.representation-grid > div {
    border-color: rgba(46, 165, 228, .22) !important;
}

.state-feature-button {
    border: 1px solid #219cff !important;
    background: linear-gradient(180deg, #24a5ff, #127fe8) !important;
    color: #fff !important;
}

.territory-card-row {
    gap: 9px !important;
}

.territory-tile {
    min-height: 105px !important;
    border-color: rgba(44, 167, 230, .28) !important;
    border-radius: 6px !important;
}

/* ---------- responsive behavior tuned later than before ---------- */
@media (max-width: 980px) {
    .px-hero.px-hero-america {
        height: 335px;
        min-height: 335px;
        padding: 38px 30px 28px;
    }

    .px-hero.px-hero-america::before {
        background-size: 76vw auto;
        background-position: calc(100% + 32px) 50%;
    }

    .px-hero-america .px-hero-copy {
        width: 48%;
    }

    .px-hero-america h1 {
        font-size: clamp(37px, 5.8vw, 52px);
    }

    .px-hero-america p {
        font-size: 13px;
    }

    .px-kpi-five {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .px-kpi-row article {
        gap: 8px;
        min-height: 72px;
        padding: 10px;
    }

    .px-kpi-row i {
        width: 22px;
        font-size: 19px;
    }

    .px-kpi-row strong {
        font-size: 18px;
    }

    .px-state-card-image {
        height: 78px;
    }

    .map-workspace {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .px-hero.px-hero-america {
        height: auto;
        min-height: 430px;
        padding: 34px 22px 26px;
    }

    .px-hero.px-hero-america::before {
        background-size: auto 58%;
        background-position: 64% 100%;
        opacity: .78;
    }

    .px-hero-america .px-hero-shade {
        background: linear-gradient(180deg, rgba(1,15,29,.98) 0%, rgba(1,17,32,.95) 54%, rgba(1,17,31,.30) 100%);
    }

    .px-hero-america .px-hero-copy {
        width: 100%;
        max-width: 520px;
    }

    .px-kpi-row {
        padding: 0 12px;
    }

    .px-kpi-five {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .px-tabs {
        margin: 14px 12px 0;
        grid-template-columns: repeat(3, 1fr);
    }

    .px-state-showcase {
        padding: 14px 12px 16px;
    }

    .px-state-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .px-state-search {
        width: 100%;
    }

    .px-state-card-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .px-state-card:last-child {
        display: none;
    }

    .map-explorer {
        width: calc(100% - 24px) !important;
    }

    .map-explorer-content {
        padding: 12px !important;
    }

    .map-canvas-wrap,
    .state-map {
        min-height: 410px !important;
    }
}

/* ==========================================================
   V6 FINAL POLISH — tighter match to approved concept
========================================================== */

/* Keep the national composition elegant and deliberately zoomed out. */
.px-hero.px-hero-america {
    min-height: 322px !important;
    height: 322px !important;
    padding: 38px 36px 28px !important;
    isolation: isolate;
}

.px-hero.px-hero-america::before {
    background-size: min(62vw, 930px) auto !important;
    background-position: calc(100% - 8px) 50% !important;
    filter: saturate(1.02) contrast(1.02) brightness(.96);
}

.px-hero-america::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,205,125,.18), transparent 16%),
        radial-gradient(circle at 70% 55%, rgba(32,168,255,.09), transparent 28%),
        linear-gradient(180deg, transparent 68%, rgba(1,14,27,.22));
}

.px-hero-america .px-hero-shade,
.px-hero-america .px-grid-overlay,
.px-hero-america .px-hero-copy,
.px-hero-america .px-outline {
    z-index: 1;
}

.px-hero-america .px-hero-copy {
    width: 41% !important;
    max-width: 500px !important;
    padding-top: 3px !important;
}

.px-hero-america .px-kicker {
    margin-bottom: 7px !important;
    color: #72d8ff !important;
    font-size: 10px !important;
    letter-spacing: .19em !important;
}

.px-hero-america h1 {
    margin: 0 !important;
    font-size: clamp(36px, 3.65vw, 56px) !important;
    line-height: .93 !important;
    letter-spacing: -.04em !important;
}

.px-hero-america p {
    max-width: 465px !important;
    margin-top: 11px !important;
    font-size: 12.5px !important;
    line-height: 1.48 !important;
    color: #d8e8f5 !important;
}

/* The concept image does not need another visible U.S. outline over it. */
.px-outline-us { display: none !important; }

/* KPI rail — compact, glassy, one continuous visual rhythm. */
.px-kpi-row {
    max-width: 1500px;
    margin: 0 auto !important;
    padding: 10px 24px 0 !important;
}

.px-kpi-row article {
    min-height: 70px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(53,184,247,.38) !important;
    background:
        linear-gradient(180deg, rgba(8,48,80,.94), rgba(3,27,48,.97)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.12) !important;
}

.px-kpi-row article:hover {
    border-color: rgba(87,211,255,.75) !important;
    transform: translateY(-1px);
}

.px-kpi-row i { font-size: 19px !important; }
.px-kpi-row strong { font-size: 19px !important; }
.px-kpi-row span { font-size: 10px !important; }
.px-kpi-row small { font-size: 8px !important; color:#84a6bf !important; }

/* Tabs become the thin navigation rail shown in the concept. */
.px-tabs {
    max-width: 1452px;
    margin: 14px auto 0 !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.px-tabs a {
    min-height: 36px !important;
    border-right: 1px solid rgba(60,180,240,.18);
    color: #d4e6f4 !important;
    font-size: 10px !important;
}

.px-tabs a:last-child { border-right: 0; }
.px-tabs a.active {
    background: linear-gradient(180deg,#24a8ff,#1488eb) !important;
    color: white !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.15);
}

/* Search + working sort controls, matching the approved ribbon. */
.px-state-showcase {
    max-width: 1500px;
    margin: 0 auto !important;
    padding: 12px 24px 18px !important;
}

.px-state-tools {
    margin-bottom: 10px !important;
}

.px-state-search { width: min(330px, 42vw) !important; }
.px-state-search input {
    height: 34px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
}

.px-state-sort {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9eb8cc;
    font-size: 9px;
}

.px-state-sort > span { margin-right: 3px; }

.px-state-sort button {
    min-width: 70px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(53,175,238,.32);
    border-radius: 5px;
    background: rgba(4,28,49,.88);
    color: #d8e8f4;
    font: inherit;
    cursor: pointer;
}

.px-state-sort button:hover,
.px-state-sort button.active {
    border-color: rgba(82,203,255,.72);
    background: linear-gradient(180deg,#249df2,#157dcc);
    color: white;
}

/* State cards: make the photographs the star, as in the concept. */
.px-state-card-grid { gap: 9px !important; }
.px-state-card {
    border-color: rgba(50,167,228,.30) !important;
    border-radius: 5px !important;
    background: #061d32 !important;
}

.px-state-card-image {
    height: 94px !important;
    background-position: center 48% !important;
    transition: transform .22s ease, filter .22s ease;
}

.px-state-card:hover .px-state-card-image {
    transform: scale(1.025);
    filter: saturate(1.06) brightness(1.04);
}

.px-state-card-footer {
    position: relative;
    z-index: 1;
    min-height: 34px !important;
    padding: 0 9px !important;
    background: linear-gradient(180deg,#08243d,#061b30);
}

.px-state-card-footer strong { font-size: 10px !important; }
.px-state-card-footer span { font-size: 13px !important; }

/* The interactive workspace should feel like a second intelligence panel, not a raw widget. */
.map-explorer {
    margin-top: 5px !important;
    border-radius: 7px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(19,119,183,.07), transparent 32%),
        linear-gradient(180deg,#03192b,#021323) !important;
}

.map-stage {
    padding: 14px 14px 8px !important;
    border-radius: 8px !important;
}

.map-stage-heading {
    margin-bottom: 9px !important;
}

.map-stage-heading h2 {
    margin-top: 2px !important;
    font-size: 21px !important;
    letter-spacing: -.025em;
}

.map-search-row {
    margin-bottom: 9px !important;
}

.map-canvas-wrap {
    min-height: 465px !important;
    border-radius: 7px !important;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(90,205,255,.025);
}

.state-map { min-height: 465px !important; }

.state-feature-card {
    border-radius: 8px !important;
    overflow: hidden;
}

.state-feature-image::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    box-shadow: inset 0 -70px 80px rgba(1,15,28,.38);
}

/* Responsive: preserve the desktop concept farther down before stacking. */
@media (min-width: 761px) and (max-width: 1100px) {
    .px-hero.px-hero-america {
        height: 300px !important;
        min-height: 300px !important;
        padding: 30px 24px 24px !important;
    }
    .px-hero.px-hero-america::before {
        background-size: 61vw auto !important;
        background-position: 100% 50% !important;
    }
    .px-hero-america .px-hero-copy { width: 43% !important; }
    .px-hero-america h1 { font-size: clamp(34px,4.5vw,48px) !important; }
    .px-hero-america p { font-size: 11.5px !important; }
    .px-kpi-five { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
    .px-kpi-row article { min-height: 66px !important; padding:8px !important; }
    .px-kpi-row i { width:20px !important; font-size:16px !important; }
    .px-kpi-row strong { font-size:16px !important; }
    .px-kpi-row span { font-size:8.5px !important; }
    .px-kpi-row small { font-size:7px !important; }
    .px-state-card-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
    .px-state-card-image { height:76px !important; }
}

@media (max-width: 760px) {
    .px-state-sort { width:100%; flex-wrap:wrap; }
    .px-state-sort button { flex:1 1 72px; }
}

/* ==========================================================
   V7 HARDENING PATCH — self-contained mockup layout
   Removes accidental dependency on older shared px-* rules.
========================================================== */

/* Hero primitives */
.px-hero.px-hero-america {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    color: #f6fbff !important;
}

.px-hero.px-hero-america::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image: url('../img/adc/america-network.png') !important;
    background-repeat: no-repeat !important;
    background-size: min(62vw, 930px) auto !important;
    background-position: calc(100% - 8px) 50% !important;
    opacity: 1 !important;
}

.px-hero-america .px-hero-shade,
.px-hero-america .px-grid-overlay {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
}

.px-hero-america .px-hero-shade {
    z-index: 1 !important;
    background: linear-gradient(90deg,
        #021426 0%,
        rgba(2,20,38,.99) 24%,
        rgba(2,20,38,.92) 38%,
        rgba(2,20,38,.52) 54%,
        rgba(2,20,38,.10) 76%,
        rgba(2,20,38,.02) 100%) !important;
}

.px-hero-america .px-grid-overlay {
    z-index: 2 !important;
    opacity: .16 !important;
    background-image:
        linear-gradient(rgba(54,181,241,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54,181,241,.08) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 34%, #000 100%) !important;
}

.px-hero-america .px-hero-copy {
    position: relative !important;
    z-index: 4 !important;
    color: #f6fbff !important;
}

.px-hero-america .px-kicker {
    display: block !important;
    color: #72d8ff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.px-hero-america h1,
.px-hero-america h1 * {
    color: #f7fbff !important;
}

.px-hero-america h1 em {
    display: inline-block !important;
    color: #2fbfff !important;
    font-style: normal !important;
    font-weight: 800 !important;
}

.px-hero-america p {
    color: #d8e8f5 !important;
}

/* KPI primitives */
.px-kpi-row {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.px-kpi-five {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.px-kpi-row article {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f6fbff !important;
    box-sizing: border-box !important;
}

.px-kpi-row article > div {
    min-width: 0 !important;
}

.px-kpi-row i {
    color: #35c4ff !important;
}

.px-kpi-row strong,
.px-kpi-row span,
.px-kpi-row small {
    display: block !important;
}

.px-kpi-row strong { color: #ffffff !important; font-weight: 900 !important; }
.px-kpi-row span { color: #e8f5fd !important; }
.px-kpi-row small { color: #84a6bf !important; }

/* Tab primitives */
.px-tabs {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(45,181,255,.40) !important;
    background: #03182b !important;
}

.px-tabs a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* Featured-state ribbon primitives */
.px-state-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.px-state-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.px-state-search i {
    position: absolute !important;
    left: 11px !important;
    z-index: 2 !important;
    color: #35c4ff !important;
}

.px-state-search input {
    width: 100% !important;
    padding: 0 12px 0 32px !important;
    border: 1px solid rgba(53,175,238,.42) !important;
    background: rgba(4,28,49,.92) !important;
    color: #f3f9fd !important;
    outline: none !important;
}

.px-state-card-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.px-state-card {
    display: block !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.px-state-card-image {
    width: 100% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.px-state-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #f6fbff !important;
}

/* Tablet keeps the desktop visual language; only typography tightens. */
@media (min-width: 761px) and (max-width: 1100px) {
    .px-kpi-five { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .px-state-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .px-tabs { grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
}

/* True mobile stacking only. */
@media (max-width: 760px) {
    .px-hero.px-hero-america::before {
        background-size: auto 58% !important;
        background-position: 68% 100% !important;
        opacity: .78 !important;
    }
    .px-kpi-five { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .px-tabs { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
    .px-state-tools { align-items: stretch !important; flex-direction: column !important; }
    .px-state-search { width: 100% !important; }
    .px-state-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 460px) {
    .px-kpi-five,
    .px-state-card-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================
   V8 UX REFINEMENT — aligned tabs, scrollable states,
   clearer imagery, premium GOLD teaser, stronger map UI.
========================================================== */

/* One mathematical content grid across hero-adjacent controls. */
.px-tabs,
.px-state-showcase,
.map-explorer {
    width: calc(100% - 48px) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Four purposeful destinations — no duplicate States/Map tabs. */
.px-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 14px !important;
}
.px-tabs a {
    position: relative;
    gap: 8px;
    min-height: 40px !important;
}
.px-tabs .px-tab-premium {
    flex-wrap: wrap;
    gap: 5px;
}
.px-tab-premium small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid rgba(242,194,90,.38);
    border-radius: 999px;
    background: rgba(242,194,90,.08);
    color: #f3cc72;
    font-size: 6.5px;
    font-weight: 900;
    letter-spacing: .08em;
}

/* Full state directory becomes a horizontal browse rail. */
.px-state-showcase {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.px-state-card-grid {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 9px !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(55,190,250,.50) rgba(4,27,47,.32);
}
.px-state-card-grid::-webkit-scrollbar { height: 6px; }
.px-state-card-grid::-webkit-scrollbar-track { background: rgba(4,27,47,.32); border-radius: 999px; }
.px-state-card-grid::-webkit-scrollbar-thumb { background: rgba(55,190,250,.50); border-radius: 999px; }
.px-state-card {
    flex: 0 0 clamp(168px, 13.2vw, 205px) !important;
    scroll-snap-align: start;
}
.px-state-card[hidden] { display: none !important; }
.px-state-card-image {
    height: 104px !important;
    background-position: center !important;
    background-size: cover !important;
    filter: saturate(1.10) contrast(1.045) brightness(1.035) !important;
    transform: none !important;
}
.px-state-card:hover .px-state-card-image {
    transform: none !important;
    filter: saturate(1.16) contrast(1.06) brightness(1.07) !important;
}
.px-state-card-footer { min-height: 36px !important; }

/* Keep the approved search; refine only the adjacent sort controls. */
.px-state-sort { flex-wrap: nowrap !important; }
.px-state-sort button { min-width: 72px; }
.px-carousel-divider {
    width: 1px;
    height: 24px;
    margin: 0 1px;
    background: rgba(74,187,240,.24);
}
.px-state-sort .px-scroll-button {
    min-width: 34px !important;
    width: 34px;
    padding: 0 !important;
}

/* Make the map feel like a visual product, not GIS software. */
.map-canvas-wrap {
    background:
        radial-gradient(circle at 48% 42%, rgba(29,144,205,.10), transparent 42%),
        linear-gradient(180deg,#031c31,#021727) !important;
}
.map-hover-card {
    max-width: 330px;
    padding: 15px 17px !important;
    border: 1px solid rgba(74,205,255,.62) !important;
    border-radius: 14px !important;
    background: rgba(2,18,34,.97) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04) !important;
    backdrop-filter: blur(16px) !important;
}
.map-hover-card,
.map-hover-card * { color: #eef9ff !important; }
.map-hover-card .map-hover-kicker { color: #55d0ff !important; }
.map-hover-card .map-hover-name { color: #ffffff !important; }
.map-hover-card .map-hover-stats span,
.map-hover-card small { color: #8faec5 !important; }
.map-hover-card .map-hover-stats strong { color: #48c7ff !important; }

/* Selected-state panel should stay fully dark; remove the old pale question box. */
.state-feature-card { background: #041d32 !important; }
.state-feature-body { background: #041d32 !important; }
.state-feature-question { display: none !important; }
.state-feature-title-row h2,
.state-feature-representation strong { color: #ffffff !important; }
.state-feature-code {
    background: rgba(29,157,224,.16) !important;
    color: #5dd2ff !important;
}
.state-feature-button {
    border: 1px solid rgba(70,200,255,.45) !important;
    background: linear-gradient(180deg,#159be9,#0876c7) !important;
    box-shadow: 0 8px 22px rgba(10,112,181,.20);
}
.state-feature-image {
    filter: saturate(1.08) contrast(1.04) !important;
}

@media (max-width: 760px) {
    .px-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .px-state-sort { overflow-x:auto; padding-bottom:3px; }
    .px-state-card { flex-basis: 172px !important; }
}

/* ==========================================================
   V9 — navigation simplification + stronger coverage cards
========================================================== */
.px-tabs { display: none !important; }

.px-kpi-row {
    margin-top: 0 !important;
    gap: 12px !important;
}

.px-kpi-row article {
    min-height: 92px !important;
    padding: 16px 18px !important;
    border-color: rgba(55, 177, 255, 0.42) !important;
    background:
        linear-gradient(145deg, rgba(6, 43, 73, 0.96), rgba(4, 31, 56, 0.97)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 28px rgba(0, 19, 38, .18) !important;
}

.px-kpi-row article::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #20b8ff, #6adfff);
    transition: width .22s ease;
}

.px-kpi-row article:hover::after { width: 100%; }

.px-kpi-row i {
    width: 32px !important;
    font-size: 23px !important;
    color: #31baff !important;
}

.px-kpi-row strong {
    font-size: 24px !important;
    letter-spacing: -.025em !important;
}

.px-kpi-row span { font-size: 11px !important; }

.px-kpi-row small {
    margin-top: 5px !important;
    font-size: 8.5px !important;
    letter-spacing: .02em !important;
}

.px-kpi-row small b {
    color: #6bd5ff;
    font-weight: 900;
}

.px-state-showcase {
    margin-top: 16px !important;
}

.px-gold-promo {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 17px 20px;
    border: 1px solid rgba(237, 190, 72, .34);
    border-radius: 15px;
    background:
        linear-gradient(100deg, rgba(12, 38, 62, .96), rgba(8, 32, 55, .96)),
        radial-gradient(circle at 85% 30%, rgba(232, 187, 61, .10), transparent 35%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.px-gold-promo-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(238, 192, 74, .42);
    border-radius: 12px;
    background: rgba(234, 184, 54, .08);
    color: #f2c95b;
    font-size: 17px;
}

.px-gold-promo-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    color: #70ccff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.px-gold-promo-kicker span {
    padding: 3px 7px;
    border: 1px solid rgba(237, 190, 72, .42);
    border-radius: 999px;
    color: #f2c95b;
    font-size: 7px;
    letter-spacing: .10em;
}

.px-gold-promo-copy > strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}

.px-gold-promo-copy p {
    margin: 4px 0 0;
    max-width: 760px;
    color: #8caac2;
    font-size: 9.5px;
    line-height: 1.45;
}

.px-gold-promo > a {
    white-space: nowrap;
    padding: 10px 13px;
    border: 1px solid rgba(86, 190, 255, .36);
    border-radius: 9px;
    background: rgba(25, 125, 202, .12);
    color: #a9deff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
}

.px-gold-promo > a:hover {
    background: #168fdc;
    border-color: #39b7ff;
    color: #fff;
}

@media (max-width: 900px) {
    .px-gold-promo {
        grid-template-columns: auto 1fr;
    }
    .px-gold-promo > a {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .px-kpi-row article { min-height: 78px !important; }
    .px-gold-promo { padding: 14px; gap: 12px; }
}

/* ==========================================================
   ADC STATES V10 — STATE INTELLIGENCE PREVIEW
========================================================== */
.map-hover-card{width:min(410px,calc(100% - 130px))!important;padding:18px 20px 16px!important;background:rgba(2,22,40,.96)!important;border:1px solid rgba(46,199,255,.62)!important;box-shadow:0 22px 54px rgba(0,0,0,.42),0 0 28px rgba(46,199,255,.08)!important}
.map-hover-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 16px!important;border-top-color:rgba(255,255,255,.16)!important}
.map-hover-story{margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.12)}
.map-hover-story span{display:block;color:#55d0ff!important;font-size:8px;font-weight:900;letter-spacing:.14em}
.map-hover-story small{display:block;margin-top:4px;color:#a8c2d6!important;font-size:8.5px;line-height:1.45}
.map-hover-explore{display:none;margin-top:12px;align-items:center;justify-content:space-between;padding:11px 13px;border:1px solid rgba(46,199,255,.4);border-radius:9px;background:linear-gradient(135deg,#168eff,#16b7e9);color:#fff!important;text-decoration:none;font-size:11px;font-weight:850}
.state-feature-everyday{padding-top:14px;border-top:1px solid rgba(255,255,255,.16)}
.everyday-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:9px;border:1px solid rgba(46,199,255,.14);border-radius:10px;overflow:hidden;background:rgba(3,25,44,.46)}
.everyday-grid>div{padding:10px 11px;border-right:1px solid rgba(46,199,255,.12);border-bottom:1px solid rgba(46,199,255,.12)}
.everyday-grid>div:nth-child(2n){border-right:0}.everyday-grid>div:nth-last-child(-n+2){border-bottom:0}
.everyday-grid span,.everyday-grid strong{display:block}.everyday-grid span{color:#7fa4bf;font-size:7px;font-weight:850;letter-spacing:.09em}.everyday-grid strong{margin-top:3px;color:#fff;font-size:15px}
@media(max-width:700px){
 .map-hover-card{position:fixed!important;z-index:1000!important;left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;max-height:62vh;overflow:auto;pointer-events:auto!important;border-radius:16px!important;transform:translateY(24px)!important}
 .map-hover-card.is-visible{transform:translateY(0)!important}
 .map-hover-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .map-hover-explore{display:flex}
 .map-hover-desktop-hint{display:none!important}
}

/* ============================================================
   V13 — state rail image containment + clean card separation
   Keeps each landscape fully clipped to its own state card.
   ============================================================ */
.px-state-card-grid {
    gap: 14px !important;
    padding-inline: 2px !important;
}

.px-state-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border-radius: 9px !important;
    background: #06243b !important;
    border: 1px solid rgba(49, 181, 241, .48) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset !important;
}

.px-state-card-image {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
    background-repeat: no-repeat !important;
    background-clip: padding-box !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

.px-state-card-footer {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #06243b !important;
    border-top: 1px solid rgba(86, 203, 255, .14) !important;
}

.px-state-card:hover {
    border-color: rgba(75, 199, 255, .82) !important;
    box-shadow: 0 10px 26px rgba(0, 14, 27, .30), 0 0 0 1px rgba(50, 190, 250, .08) inset !important;
}

/* ADC mobile refinement: scoped to Explore America; desktop unaffected. */
@media (max-width: 760px) {
  .px-hero.px-hero-america { min-height: 220px !important; height: auto !important; padding: 30px 18px 24px !important; }
  .px-hero-america .px-hero-copy { width: 100% !important; max-width: 100% !important; }
  .px-hero-america h1 { font-size: clamp(30px, 9vw, 42px) !important; line-height: 1.07 !important; }
  .px-hero-america p { font-size: 13px !important; line-height: 1.45 !important; }
  .px-state-showcase { width: 100% !important; padding: 12px 12px 16px !important; box-sizing: border-box; }
  .px-state-tools { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .px-state-search { width: 100% !important; max-width: none !important; }
  .px-state-search input { width: 100% !important; height: 44px !important; font-size: 14px !important; }
  .px-state-sort { width: 100%; min-width: 0; flex-wrap: wrap; gap: 6px !important; }
  .px-state-sort button { min-width: 0 !important; min-height: 40px; padding: 0 10px !important; }
  .px-state-card-grid { max-width: 100%; }
  .map-explorer { width: 100% !important; margin: 8px 0 0 !important; margin-left: 0 !important; transform: none !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
  .map-explorer-content { padding: 10px !important; }
  .map-workspace { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .map-stage { min-width: 0; padding: 12px 8px 8px !important; }
  .map-stage-heading h2 { font-size: 19px !important; line-height: 1.2 !important; }
  .map-stage-actions, .map-search-row { flex-wrap: wrap; min-width: 0; }
  .map-canvas-wrap, .state-map { min-height: 0 !important; width: 100%; max-width: 100%; }
  .map-canvas-wrap { aspect-ratio: 1.3 / 1; }
  .state-map { height: 100% !important; }
  .state-feature-card, .territory-strip { min-width: 0; }
}
@media (max-width: 390px) {
  .px-state-showcase { padding-inline: 9px !important; }
  .map-explorer-content { padding: 7px !important; }
  .map-stage { padding-inline: 6px !important; }
}


/* ADC Explore mobile V2: focused, single-purpose layout.
   Desktop rules are unchanged. Existing map IDs/JS bindings are preserved. */
@media (max-width: 760px) {
  .px-hero.px-hero-america {
    height: auto !important; min-height: 0 !important;
    padding: 22px 16px 18px !important;
  }
  .px-hero-america .px-hero-copy { max-width: none !important; }
  .px-hero-america .px-kicker { font-size: 10px !important; letter-spacing: .16em !important; }
  .px-hero-america h1 { margin: 7px 0 !important; font-size: clamp(28px, 8vw, 38px) !important; line-height: 1.12 !important; }
  .px-hero-america h1 em { display: inline !important; }
  .px-hero-america p { max-width: 35ch !important; margin: 8px 0 0 !important; font-size: 13px !important; line-height: 1.45 !important; }
  .px-hero-america .px-outline { display: none !important; }
  .px-kpi-row.px-kpi-five {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important; padding: 8px 12px !important; margin: 0 !important;
  }
  .px-kpi-row.px-kpi-five article {
    display: flex !important; flex-direction: column !important; justify-content: center !important;
    min-width: 0 !important; min-height: 68px !important; padding: 9px 5px !important;
    gap: 2px !important; text-align: center !important; border-radius: 10px !important;
  }
  .px-kpi-row.px-kpi-five article i, .px-kpi-row.px-kpi-five article small { display: none !important; }
  .px-kpi-row.px-kpi-five article strong { font-size: clamp(16px, 4.5vw, 21px) !important; line-height: 1.1 !important; }
  .px-kpi-row.px-kpi-five article span { font-size: 10px !important; line-height: 1.25 !important; }
  .px-kpi-row.px-kpi-five article:nth-child(n+4) { display: none !important; }
  .px-state-showcase { padding: 8px 12px 12px !important; margin: 0 !important; }
  .px-state-tools { gap: 7px !important; }
  .px-state-sort { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; }
  .px-state-sort > span:first-child { display: none !important; }
  .px-state-sort button { flex: 0 0 auto !important; font-size: 11px !important; min-height: 34px !important; }
  .px-state-card-grid { gap: 8px !important; }
  .px-state-card-image { height: 92px !important; }
  .map-explorer { margin-top: 6px !important; }
  .map-explorer-content { padding: 8px 10px 12px !important; }
  .map-explorer-heading, .america-glance { margin-bottom: 12px !important; }
  .map-explorer-heading .map-intro h1 { font-size: clamp(21px, 6vw, 28px) !important; }
  .map-explorer-heading .map-promise { font-size: 12px !important; line-height: 1.4 !important; }
  .map-workspace {
    display: grid !important; grid-template-columns: minmax(0,1fr) !important;
    padding: 0 !important; margin-top: 8px !important; gap: 10px !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important;
  }
  .map-stage {
    min-width: 0 !important; padding: 10px !important;
    border: 1px solid rgba(42,166,232,.24) !important;
    border-radius: 12px !important; background: #041b30 !important;
  }
  .map-stage-heading { display: flex !important; flex-direction: column !important; gap: 7px !important; }
  .map-stage-heading h2 { font-size: 18px !important; }
  .map-stage-actions { display: flex !important; flex-direction: row !important; align-items: center !important; }
  .map-stage-note, .map-search-help { display: none !important; }
  .district-boundary-toggle {
    font-size: 11px !important; padding: 6px 10px !important;
    color: #e7f5ff !important; background: #0a3555 !important;
    border: 1px solid rgba(60,178,240,.35) !important;
  }
  .map-search-row { margin: 8px 0 !important; }
  .map-search { width: 100% !important; }
  .map-search input { width: 100% !important; min-width: 0 !important; font-size: 14px !important; }
  .map-canvas-wrap {
    width: 100% !important; min-height: 0 !important; height: auto !important;
    aspect-ratio: 1.45 / 1 !important; overflow: hidden !important;
    border-radius: 10px !important;
  }
  .state-map { height: 100% !important; min-height: 0 !important; margin-top: 0 !important; }
  .map-controls { left: 6px !important; top: 6px !important; }
  .map-controls button { width: 32px !important; height: 32px !important; }
  .map-hover-card {
    position: fixed !important; z-index: 1000 !important;
    left: 10px !important; right: 10px !important; top: auto !important; bottom: 10px !important;
    width: auto !important; max-height: 34vh !important; overflow: auto !important;
    padding: 12px 14px !important; border-radius: 13px !important;
    pointer-events: none !important;
  }
  .map-hover-card.is-visible { pointer-events: auto !important; }
  .map-hover-name { font-size: 21px !important; }
  .map-hover-stats { display: block !important; margin-top: 7px !important; padding-top: 6px !important; }
  .map-hover-stats > div { display: none !important; }
  .map-hover-stats > div:first-child { display: flex !important; align-items: baseline !important; gap: 9px !important; }
  .map-hover-stats > div:first-child span { font-size: 11px !important; }
  .map-hover-stats > div:first-child strong { font-size: 15px !important; }
  .map-hover-story, .map-hover-desktop-hint { display: none !important; }
  .map-hover-explore { display: flex !important; margin-top: 8px !important; padding: 10px 12px !important; font-size: 12px !important; }
  .state-feature-card { min-width: 0 !important; }
}
@media (max-width: 370px) {
  .px-kpi-row.px-kpi-five { gap: 4px !important; padding-inline: 8px !important; }
  .map-explorer-content { padding-inline: 6px !important; }
}

/* ==========================================================
   iPhone state browsing and map-control spacing
   Targeted override; preserves existing desktop styling.
========================================================== */
.px-state-card-grid {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scroll-padding-inline: 2px;
}

@media (max-width: 760px) {
    /* Keep every state available in the horizontal rail. */
    .px-state-card-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        padding-right: 22px !important;
    }
    .px-state-card,
    .px-state-card:last-child {
        display: block !important;
        flex: 0 0 172px !important;
        scroll-snap-align: start;
    }
    .px-state-card[hidden] { display: none !important; }
    /* Move controls away from the map's western edge. */
    .map-controls { left: 12px !important; top: 10px !important; }
}
