/* ── mobile-warning.css — the phone-only "this app is optimised for desktop" bar ──
   Shared by index.html, login.html, welcome.html and security.html (it used to be
   pasted inline into each page). mobile-warning.js handles showing it and
   remembering a dismissal; this file only styles it.
   Public: listed in SecurityConfig permitAll + FamilyStatusFilter, because the
   login/welcome/security pages load it without a session. */

/* Hidden on desktop; the .dismissed class (set by mobile-warning.js) always wins. */
.mobile-warning { display: none; }
.mobile-warning.dismissed { display: none !important; }

@media (max-width: 640px) {
    /* A fixed amber bar across the top of the viewport. */
    .mobile-warning:not(.dismissed) {
        display: block !important;
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 2000;
        background: var(--warning-bg);
        border-bottom: 1px solid var(--warning);
        color: var(--warning-text);
        font-size: var(--fs-base);
        box-shadow: var(--shadow-md);
    }
    .mobile-warning__inner {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }
    /* "OK" dismiss button: dark text on the amber fill. (It was white on amber,
       about 2.1:1 and hard to read; --text on --warning is 8.3:1.) */
    .mobile-warning__close {
        margin-left: auto;
        flex-shrink: 0;
        background: var(--warning);
        color: var(--text);
        border: none;
        border-radius: var(--radius-xs);
        padding: 4px 10px;
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .mobile-warning__close:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
}
