/* Shared viewport rules and accessibility preferences. Load immediately after ateam-common.css. */

/* ==========================================================================
   Small-screen paired fields
   ========================================================================== */

/* ==========================================================================
   Media queries — responsive layout and motion preferences
   ========================================================================== */

/* Small phones: stack paired fields at 420px and below. */

@media (max-width: 420px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Reduced-motion accessibility preference
   ========================================================================== */

/* Accessibility preference: reduce animation, transitions and smooth scrolling. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Selected-user administration: keep the shared return control legible on narrow screens. */
@media (max-width: 700px) {
    .administrator-session-banner {
        justify-content: center;
        gap: 12px;
        padding: 14px 16px;
        text-align: center;
    }
    .administrator-session-banner strong {
        flex: 1 1 100%;
    }
    .administrator-session-banner button {
        max-width: 100%;
        white-space: normal;
    }
}
