/* Shared accessibility enhancements for public EAIMS pages. */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #2f1452;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid #b5417a !important;
    outline-offset: 3px !important;
}

.nav-toggle {
    min-width: 44px;
    min-height: 44px;
}

.day-checkbox[role="checkbox"] {
    min-width: 44px;
    min-height: 44px;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

/* Switch the full navigation to its compact menu before links collide on
   laptops, tablets, or browser windows using larger text/zoom. */
@media (max-width: 1320px) {
    nav {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }

    nav .logo {
        min-width: 0;
        flex: 1;
        gap: 0.55rem;
        line-height: 1.1;
    }

    nav .logo-img {
        flex-shrink: 0;
    }

    nav .nav-toggle {
        display: inline-flex;
    }

    nav .nav-links {
        display: none;
        width: 100%;
        margin-top: 0.9rem;
        padding: 1rem;
        border-radius: 14px;
        background: rgba(253, 251, 247, 0.98);
        border: 1px solid rgba(107, 45, 158, 0.14);
        flex-direction: column;
        gap: 0.9rem;
    }

    nav .nav-links.open {
        display: flex;
    }

    nav .nav-links li {
        width: 100%;
    }

    nav .nav-links a {
        display: block;
    }

    nav .nav-links .nav-cta {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
