/* Legacy-style header with admin-managed carousel, logo/motto, and centered navigation */
.site-header--legacy-media {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8,8,9,.94);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.site-header--legacy-media .brand-bar {
    height: 4.9px;
}

.legacy-header-top {
    display: grid;
    grid-template-columns: 199px 405px;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: .61rem 0 .28rem;
}

.legacy-header-carousel {
    position: relative;
    height: 183px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: #050505;
    box-shadow: 0 10px 28px rgba(0,0,0,.32);
}

.legacy-header-carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transition: opacity .85s ease, visibility 0s linear .85s;
}

.legacy-header-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
    transition: opacity .85s ease, visibility 0s linear 0s;
}

.legacy-header-carousel > img.legacy-header-carousel-slide,
.legacy-header-carousel a.legacy-header-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-header-carousel a.legacy-header-carousel-slide img {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .legacy-header-carousel-slide {
        transition: none;
    }
}

.legacy-header-motto {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 405px;
    height: 183px;
    min-width: 0;
    overflow: hidden;
    background: #000;
    border: 0;
    position: relative;
    z-index: 1;
}

.legacy-header-motto img {
    display: block;
    width: 418px;
    max-width: none;
    height: 183px;
    max-height: none;
    object-fit: contain;
    object-position: right top;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}

.legacy-header-nav-row {
    background: rgba(0,0,0,.7);
    border-top: 1px solid rgba(255,255,255,.08);
}

.legacy-header-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    position: relative;
}

.legacy-header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    position: relative;
    z-index: 5;
}

.legacy-header-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.71rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.legacy-header-nav li,
.legacy-header-nav a {
    white-space: nowrap;
}

.legacy-header-nav a {
    position: relative;
    z-index: 6;
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-decoration: none;
}

.legacy-header-nav a:hover {
    color: #f6d365;
}

.site-header--legacy-media .nav-toggle {
    display: none;
}

@media (max-width: 1050px) {
    .legacy-header-top {
        grid-template-columns: 199px 405px;
    }

    .legacy-header-nav ul {
        gap: 1.08rem;
    }
}

@media (max-width: 860px) {
    .legacy-header-top {
        grid-template-columns: 1fr;
        gap: .61rem;
    }

    .legacy-header-carousel {
        height: 154px;
    }

    .legacy-header-motto {
        width: 100%;
        height: auto;
    }

    .legacy-header-motto img {
        width: 100%;
        height: auto;
        max-width: 418px;
        max-height: none;
    }

    .legacy-header-nav-inner {
        justify-content: space-between;
        min-height: auto;
        padding: .52rem 0;
    }

    .site-header--legacy-media .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .legacy-header-nav {
        display: none;
        width: 100%;
    }

    .legacy-header-nav.is-open {
        display: block;
    }

    .legacy-header-nav ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: .52rem;
        justify-items: center;
        padding: .68rem 0;
    }
}

@media (max-width: 560px) {
    .legacy-header-carousel {
        height: 122px;
    }

    .legacy-header-motto img {
        max-height: none;
    }
}
