.navigation-toggle {
    display: none;
}

.navigation-toggle-close {
    display: none;
}

.navigation-toggle[aria-expanded="true"] .navigation-toggle-bars {
    display: none;
}

.navigation-toggle[aria-expanded="true"] .navigation-toggle-close {
    display: block;
}

.navigation-toggle:focus-visible,
#main-navigation a:focus-visible,
#main-navigation button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

#main-navigation .subnav a:focus-visible {
    outline-color: #ab0a13;
    outline-offset: -3px;
}

@media (max-width: 1040px) {
    .js .info-header,
    .js .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 16px;
        background: #0e0e0e;
    }

    .js .info-header > .info-logo,
    .js .site-header > .site-logo {
        grid-column: 1;
        justify-self: start;
        width: min(360px, 100%);
        min-width: 0;
    }

    .js .info-header > .info-logo img,
    .js .site-header > .site-logo img {
        width: 100%;
    }

    .js .info-header > .navigation-toggle,
    .js .site-header > .navigation-toggle {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 3px;
        background: transparent;
        color: #ffffff;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
    }

    .navigation-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .js .info-header > #main-navigation,
    .js .site-header > #main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1;
        display: none;
        width: 100%;
        min-width: 0;
        max-height: 60vh;
        max-height: 60dvh;
        overflow-y: auto;
        margin: 0;
        padding: 8px 20px 16px;
        background: #0e0e0e;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    }

    .js .info-header.navigation-open > #main-navigation,
    .js .site-header.navigation-open > #main-navigation {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
    }

    #main-navigation > a,
    #main-navigation .nav-trigger {
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 10px;
        text-align: left;
        white-space: normal;
    }

    #main-navigation > a,
    #main-navigation > .nav-item {
        flex: 0 0 auto;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #main-navigation .nav-trigger[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    #main-navigation .subnav {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0 0 8px;
        box-shadow: none;
    }

    #main-navigation .subnav a {
        min-height: 44px;
        padding: 12px 16px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
