/* Landing page navbar: responsive refinements kept separate from the generated bundle. */
#root nav.fixed {
    padding-top: max(.5rem, env(safe-area-inset-top));
    padding-right: max(.5rem, env(safe-area-inset-right));
    padding-left: max(.5rem, env(safe-area-inset-left));
}

#root nav.fixed > div {
    width: min(72rem, 100%);
}

#root nav.fixed a,
#root nav.fixed button {
    -webkit-tap-highlight-color: transparent;
}

#root nav.fixed a:focus-visible,
#root nav.fixed button:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 3px;
}

@media (min-width: 1024px) and (max-width: 1199px) {
    #root nav.fixed > div {
        padding-inline: .75rem;
    }

    #root nav.fixed > div > div:first-child {
        gap: .65rem;
    }

    #root nav.fixed > div > div:first-child > a:first-child {
        width: 8.5rem;
    }

    #root nav.fixed > div > div:first-child > div:nth-child(2) {
        gap: .7rem;
    }

    #root nav.fixed > div > div:first-child > div:nth-child(2) a {
        font-size: .78rem;
    }
}

@media (max-width: 1023px) {
    #root nav.fixed > div {
        box-shadow: 0 10px 30px rgba(0, 0, 0, .13) !important;
    }

    #landing-mobile-menu > div {
        max-height: calc(100dvh - 6rem - env(safe-area-inset-top));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    #landing-mobile-menu a,
    #landing-mobile-menu button {
        min-height: 2.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 639px) {
    #root nav.fixed {
        padding-inline: .45rem;
    }

    #root nav.fixed > div {
        border-radius: 1rem;
        padding-inline: .55rem;
    }

    #root nav.fixed > div > div:first-child {
        min-height: 3.25rem;
    }

    #root nav.fixed > div > div:first-child > a:first-child {
        width: clamp(6rem, 31vw, 7rem);
    }

    #root nav.fixed > div > div:first-child > a:first-child svg,
    #root nav.fixed > div > div:first-child > a:first-child img {
        width: 100%;
        height: auto;
        max-height: 2.75rem;
        object-fit: contain;
    }

    #root nav.fixed > div > div:first-child > div:last-child {
        gap: .15rem;
    }

    #root nav.fixed > div > div:first-child > div:last-child > button {
        width: 2.5rem;
        height: 2.5rem;
    }

    #landing-mobile-menu > div > div:first-child {
        grid-template-columns: 1fr;
    }

    #landing-mobile-menu a,
    #landing-mobile-menu button {
        min-height: 2.75rem;
        padding-block: .65rem;
    }
}

@media (max-width: 359px) {
    #root nav.fixed > div > div:first-child > a:first-child {
        width: 5.5rem;
    }

    #root nav.fixed > div > div:first-child > div:last-child > button {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #root nav.fixed *,
    #root nav.fixed *::before,
    #root nav.fixed *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
