/* Shared, accessible site menu. Loaded by every public page. */
nav .ax-menu {
    position: relative;
    z-index: 1101;
}

nav .ax-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 126px;
    min-height: 42px;
    padding: 0 15px 0 17px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .92);
    font: 500 .84rem/1 'Poppins', sans-serif;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

nav .ax-menu-toggle:hover,
nav .ax-menu-toggle:focus-visible,
nav .ax-menu-toggle[aria-expanded="true"] {
    border-color: rgba(0, 212, 255, .48);
    background: rgba(0, 212, 255, .09);
    color: #fff;
    outline: none;
}

nav .ax-menu-chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

nav .ax-menu-toggle[aria-expanded="true"] .ax-menu-chevron {
    transform: translateY(2px) rotate(225deg);
}

nav .ax-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(352px, calc(100vw - 32px));
    max-height: min(650px, calc(100dvh - 112px));
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(5, 7, 22, .985);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    backdrop-filter: blur(18px);
}

nav .ax-menu-panel[hidden] {
    display: none;
}

nav .ax-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 5px;
    color: rgba(255, 255, 255, .77);
    font: 400 .87rem/1.25 'Poppins', sans-serif;
    letter-spacing: .85px;
    text-decoration: none;
}

nav .ax-menu-panel a:hover,
nav .ax-menu-panel a:focus-visible,
nav .ax-menu-panel a[aria-current="page"] {
    background: rgba(255, 255, 255, .075);
    color: #fff;
    outline: none;
}

nav .ax-menu-group {
    margin: 5px 0;
    padding: 5px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

nav .ax-menu-group-title {
    color: #fff !important;
    font-weight: 600 !important;
}

nav .ax-menu-group-title::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .72;
}

nav .ax-menu-group-links {
    display: grid;
    gap: 1px;
    margin: 3px 0 0 20px;
    padding-left: 9px;
    border-left: 1px solid rgba(255, 255, 255, .13);
}

nav .ax-menu-group-links a {
    min-height: 35px;
    padding-left: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: .79rem;
}

/* The previous homepage drawer remains in the document but is deliberately disabled. */
nav .hamburger,
.nav-overlay {
    display: none !important;
}

@media (max-width: 720px) {
    nav .ax-menu-toggle {
        min-width: 112px;
        min-height: 40px;
        padding-left: 13px;
        padding-right: 12px;
        font-size: .78rem;
        letter-spacing: 1px;
    }

    nav .ax-menu-panel {
        position: fixed;
        top: 76px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100dvh - 94px);
        padding: 9px;
    }

    nav .ax-menu-panel a {
        min-height: 41px;
        font-size: .84rem;
    }
}

@media (max-width: 380px) {
    nav .ax-menu-toggle {
        min-width: 104px;
    }
}
