html[data-theme="light"] body.home-page > .site-header:has(+ main > .home-news-carousel:first-child) {
    --psi-header-position: sticky;
}

html[data-theme="light"] body.home-page .site-header + main:has(> .home-news-carousel:first-child) {
    padding-top: 0 !important;
}

.home-news-carousel {
    --news-navy: #0c1630;
    --news-light: #f3f5fa;
    --news-muted: #b8c0d0;
    --news-gold: #f2b53a;
    background: var(--news-navy);
    color: var(--news-light);
    font-family: Manrope, system-ui, sans-serif;
}

.home-news-banner {
    position: relative;
    isolation: isolate;
    height: 520px;
    overflow: hidden;
}

.home-news-photos,
.home-news-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-news-photo {
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.home-news-photo.is-active {
    opacity: 1;
    transform: scale(1);
}

.home-news-photo-default {
    object-position: center top;
}

@media (max-width: 360px) {
    .home-news-photo-default {
        height: calc(100% - 48px);
    }
}

.home-news-caption {
    position: absolute;
    inset: auto 0 0;
    height: 210px;
    background: linear-gradient(to top, rgba(12,22,48,0.95), rgba(12,22,48,0.7) 55%, transparent);
}

.home-news-caption-inner {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}

.home-news-caption-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    padding: 24px;
}

.home-news-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.home-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.home-news-pill {
    min-width: 0;
    max-width: 65%;
    padding: 4px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--news-gold);
    color: var(--news-navy);
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-news-date {
    color: var(--news-muted);
    white-space: nowrap;
    text-shadow: 0 1px 4px var(--news-navy);
}

html[data-theme="light"] .home-news-carousel .home-news-copy h1 {
    margin: 0;
    color: var(--news-light) !important;
    font: 800 24px/1.08 Manrope, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
}

.home-news-copy h1 a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

html[data-theme] .home-news-carousel .home-news-copy p {
    margin: 0;
    color: var(--news-muted) !important;
    font-size: 16px;
    line-height: 1.3;
}

.home-news-copy h1 a,
.home-news-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

.home-news-actions {
    display: none;
}

.home-news-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-news-counter {
    min-width: 58px;
    color: var(--news-muted);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.home-news-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 6px;
    background: var(--news-gold);
    color: var(--news-navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-news-read:hover {
    background: #ffd279;
    color: var(--news-navy);
}

.home-news-control {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 6px;
    background: rgba(12,22,48,.58);
    color: var(--news-light);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.home-news-control:hover {
    background: #293a59;
}

.home-news-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-news-control [hidden] {
    display: none;
}

.home-news-carousel :is(a, button):focus-visible {
    outline: 2px solid var(--news-gold);
    outline-offset: -2px;
}

.home-news-mobile-controls {
    display: flex;
    justify-content: flex-end;
    padding: 4px 24px 12px;
}

@media (min-width: 1024px) {
    .home-news-banner {
        height: 620px;
    }

    html[data-theme="light"] .home-news-carousel .home-news-copy h1 {
        font-size: 36px !important;
    }

    .home-news-actions {
        display: grid;
        flex-shrink: 0;
        justify-items: end;
        gap: 10px;
    }

    .home-news-mobile-controls {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-news-photo {
        transition: none;
    }
}
