/*
 * Desktop break-out for the phone-first .device pages. app.py (inject_desktop_break)
 * links this on every HTML response EXCEPT the pages in _DESKTOP_BREAK_SKIP (terms,
 * privacy, manage, wallet, events, tasks), which carry their own wider inline
 * layouts. In
 * practice that means the flow pages — landing, renewal, renew, new-user pre/post,
 * onboard — plus any other/error page, which is harmless: they share the same frame.
 *
 * Those pages are 390px .device mockups. Above the phone width this leaves the
 * phone frame behind and presents the content as a centred column on the plain
 * page — forms and the consent gate read best in a column, not full-bleed.
 * Everything is gated to min-width:421px, so the mobile edge-to-edge experience is
 * untouched (the pages' own max-width:420px rules own that). The wider
 * dashboard/document pages (manage, wallet, events, tasks, terms, privacy) carry
 * their own desktop layouts inline and opt out of this sheet in app.py.
 *
 * --bg / --ink etc. resolve from each page's :root (custom properties are global).
 */

@media (min-width: 421px) {
    body {
        display: block;
        background: var(--bg, #F9F8F4);
        min-height: 0;
    }

    /* Leave the phone frame: the device becomes a centred content column that grows
       with its content and scrolls with the page (no inner frame scroll). */
    .device {
        width: 100%;
        max-width: 560px;
        min-height: 100vh;
        margin: 0 auto;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }
    .main-content { overflow: visible; }

    /* Full-bleed overlays (splash, onboard intro, consent gate) inherited the
       frame's rounded corners — square them off now the frame is gone. */
    .splash,
    .intro-anim,
    .tcg-overlay { border-radius: 0; }
}
