/* Home hero stats: final loaded stylesheet so the cards match the Our Impacts glass style. */
html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip {
    display: grid !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-top: 26px !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
}

html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip .stat {
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 10px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(11, 35, 64, .58), rgba(20, 127, 168, .24)) !important;
    color: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 22px 48px -34px rgba(0, 0, 0, .72) !important;
    backdrop-filter: blur(18px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip .stat strong {
    margin: 0 !important;
    color: #7bd8f0 !important;
    font-size: clamp(17px, 1.42vw, 21px) !important;
    line-height: 1.02 !important;
}

@media (max-width: 1180px) {
    html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        max-width: 860px !important;
    }
}

@media (max-width: 900px) {
    html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 560px !important;
    }
}

@media (max-width: 560px) {
    html[data-theme] body.home-page .hero:not(.impact-hero) .stats-strip {
        grid-template-columns: 1fr !important;
    }
}

/* Gallery feature panel: improve contrast on the dark right-side card. */
html[data-theme] .gallery-feature {
    background: linear-gradient(135deg, rgba(9, 26, 51, .96), rgba(18, 58, 82, .94)) !important;
    border: 1px solid rgba(108, 204, 235, .18) !important;
}

html[data-theme] .gallery-feature-copy {
    background:
        radial-gradient(circle at top right, rgba(39, 168, 216, .14), transparent 36%),
        linear-gradient(145deg, rgba(9, 26, 51, .96), rgba(17, 42, 60, .94)) !important;
    color: #f7fafc !important;
}

html[data-theme] .gallery-feature-copy .pill {
    background: rgba(234, 248, 252, .94) !important;
    color: #147fa8 !important;
    border: 1px solid rgba(108, 204, 235, .32) !important;
    letter-spacing: .08em !important;
}

html[data-theme] .gallery-feature-copy h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22) !important;
}

html[data-theme] .gallery-feature-copy .muted,
html[data-theme] .gallery-feature-copy p {
    color: rgba(247, 250, 252, .78) !important;
}

html[data-theme] .gallery-feature-copy .btn {
    background: #27a8d8 !important;
    border-color: #6ccceb !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px -22px rgba(39, 168, 216, .85) !important;
}

html[data-theme] .gallery-feature-copy .btn:hover,
html[data-theme] .gallery-feature-copy .btn:focus-visible {
    background: #147fa8 !important;
    border-color: #27a8d8 !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    html[data-theme] .gallery-feature-copy {
        padding: 28px !important;
    }
}
