.l-header {
    position: sticky;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: 4px 16px;
    background-color: rgba(163, 33, 33, 0.9);
    border-bottom: 1px solid var(--gold);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.l-header h1 {
    margin: 0;
}

.l-header .c-logo {
    color: #f5f5f5;
    font-size: 1.75rem;
}

.l-header summary {
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.l-header__summary__icon {
    position: relative;
    width: 1rem;
    height: 1rem;
}

.l-header__summary__icon__line {
    position: absolute;
    left: 0;
    display: block;
    height: 2px;
    border-radius: 9999px;
    width: 1rem;
    background-color: #f5f5f5;
    transition: all 200ms ease;
}

.l-header__summary__icon__line--top {
    top: 0.25rem;
}

.l-header__summary__icon__line--bottom {
    top: 0.625rem;
}

.l-header details[open] .l-header__summary__icon__line--top {
    top: 0.4rem;
    transform: rotate(-45deg);
}

.l-header details[open] .l-header__summary__icon__line--bottom {
    top: 0.4rem;
    transform: rotate(45deg);
}

.l-header__details__content {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    right: 16px;
    min-width: 260px;
    top: 4rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(33, 33, 33, 0.3);
    backdrop-filter: blur(10px);
}

.l-header__details__content .c-global-nav a {
    font-size: 1rem;
}

.l-header details {
    &::details-content {
        @media (prefers-reduced-motion: no-preference) {
            transition-duration: 300ms;
            transition-property: content-visibility, opacity;
            transition-behavior: allow-discrete;
        }
    }

    &:not([open])::details-content {
        opacity: 0;
    }
}

@media (min-width: 1024px) {
    .l-header {
        display: none;
    }
}