/**
 * Conceal the host page while the post-registration logo scene owns the screen.
 *
 * The scene (#post-reg-logo-seq) is a full-bleed fixed cover, and until now that
 * cover was the only thing between the patient and the page underneath. On
 * /enhanced-diagnostic the Get Started column stays fully laid out, painted and
 * scrollable behind it — measured at ~2500px against a 660px phone viewport —
 * with the preventative "Stay Ahead" card's photo landing in the bottom band at
 * scroll 0. On an intake host the same band is the patient's own AI questions.
 * Every under-coverage report in this series has been one of those two things
 * showing through the same strip: a dvh-tall cover mid address-bar animation, a
 * non-zero visualViewport.offsetTop mid-scroll, a mode that missed the
 * large-viewport over-cover.
 *
 * Covering is the wrong guarantee. No viewport arithmetic holds on every engine
 * in every chrome state, which is why each narrowing of the gap has been
 * followed by a thinner gap rather than none. Concealing removes the pixels
 * instead of racing to hide them, so the result stops depending on geometry —
 * and it behaves identically on Safari, Chrome and Firefox.
 *
 * `visibility: hidden`, not `display: none`: the column keeps its box, so
 * nothing reflows, the host's scroll position survives the scene, and
 * getBoundingClientRect stays usable for the care-path card the booking rise
 * clone is captured from. The scene root and the onboarding / proxy roots are
 * body-level siblings, and the flip-hosted wizard is re-parented into the
 * scene's back face (leaving #unifiedIntakeWizardSlot behind), so none of those
 * inherit this.
 *
 * The :not() guards are load-bearing, for different reasons.
 *
 * ns-prls-fading: prls--fading is set for the whole destination fade and
 * ns-prls-present is only dropped afterwards by teardown(), so concealing
 * through the fade would dissolve the wallpaper into a blank column and pop the
 * page in at the end — the exact white-flash class of bug this file exists to
 * remove.
 *
 * ns-prls-below-modal: the booking modal is *not* a body-level sibling. On
 * flow_selection.html it is included inside {% block content %}, so it renders
 * inside #main-content, and every path that raises it over the scene parks the
 * wallpaper at z-index 350 rather than re-parenting the modal. Host-column park
 * goes through PostRegScenePark (post-intake-care-handoff-modals,
 * post-reg-care-paths, queue-leave-book-flip). Waiting does not park: Join's
 * onJoined unparks once waiting is showing, and Book-instead parks only after
 * QueueLeaveBookFlip's logo cover is live. Concealing the column while parked
 * hides the modal the patient was just handed: Book from the post-intake
 * choice card would land on a dead branded screen with no control on it.
 * below-modal means something in the host column owns the screen, so the
 * conceal has to stand down; the modal's own full-bleed backdrop is what
 * covers the host from then on.
 *
 * Body-level overlays park through prls--below-overlay instead — membership
 * pay mounts #embeddedCheckoutModal / #membershipConfirmModal as
 * document.body children at z-index 2147483010, so the host column never has
 * to paint. That class has no html mirror and must never join this :not()
 * list. Routing the membership card rise through below-modal is what
 * repainted the Get Started column and put the Stay Ahead photo back in the
 * bottom band while the card was still rising.
 *
 * ns-queue-waiting-open: waiting (#globalQueueWaitingModal) also renders inside
 * #main-content, but Join's onJoined unparks the scene once waiting is showing.
 * That drops below-modal and would re-conceal the column — hiding Keep Browsing
 * / Leave on every engine, not just Safari. The waiting module mirrors
 * visibility onto this class at every hidden toggle so conceal can stand down
 * without changing park ordering (Book-instead must keep the full-bleed logo
 * until QueueLeaveBookFlip paints). Do not key this off ns-queue-wallpaper-active:
 * prepareBookInsteadUnderlay retains that class while waiting is already hidden.
 * Mirror class only — a :has() clause that a browser cannot parse invalidates
 * this whole rule and brings back the Stay-ahead strip.
 */
html.ns-prls-present:not(.ns-prls-fading):not(.ns-prls-below-modal):not(.ns-queue-waiting-open) #main-content {
    visibility: hidden;
}

/*
 * Slice 4 Appointments land. Waiting lives in #main-content and its wallpaper
 * z-index (2147483010) sits above the logo (2147483005). Showing it in boot()
 * so the first poll cannot blank the wait also stood down host conceal
 * (ns-queue-waiting-open) and made Keep Browsing tappable through the
 * pointer-events:none mark. Park waiting under the mark for the hop; restore
 * pointer-events only once the fade has started. Separate rules — do not fold
 * into the conceal :not() list, and do not use :has() here.
 */
html.ns-prls-present.ns-care-handoff-arrive:not(.ns-prls-fading):not(.ns-prls-below-modal) #main-content {
    visibility: hidden;
}

html.ns-care-handoff-arrive #globalQueueWaitingModal.queue-waiting--wallpaper {
    z-index: 2147483000;
    pointer-events: none;
}

html.ns-care-handoff-arrive.ns-prls-fading #globalQueueWaitingModal.queue-waiting--wallpaper {
    pointer-events: auto;
}
