/* ============================================================
   CCG RESPONSIVE NAV DRAWER — VIEWPORT OWNERSHIP LOCK
   ------------------------------------------------------------
   The responsive drawer lives inside the shared header. Some
   narrow-desktop/mobile performance rules give that header paint
   containment or a transform, which makes position: fixed resolve
   against the header box instead of the browser viewport.

   This layer is intentionally limited to widths where the Menu
   toggle is used. It leaves the >=1200px desktop navigation alone.
============================================================ */

@media (max-width: 1199px) {
    /* A fixed descendant must not inherit a transformed/contained
       header as its containing block while the drawer is open. */
    .ccg-header.ccg-header--nav-open {
        contain: none !important;
        content-visibility: visible !important;
        transform: none !important;
        transform-style: flat !important;
        perspective: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        will-change: auto !important;
        overflow: visible !important;
    }

    /* Own the complete viewport at every responsive Menu width,
       including the 901–1199px small-desktop breakpoint. */
    .ccg-header.ccg-header--nav-open .ccg-nav-drawer {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        width: 100dvw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-width: 100vw !important;
        min-width: 100dvw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: visible !important;
        z-index: 2147483000 !important;
    }

    .ccg-header.ccg-header--nav-open .ccg-nav-drawer__backdrop {
        min-width: 0;
        min-height: 100%;
    }

    .ccg-header.ccg-header--nav-open .ccg-nav-drawer__panel {
        height: 100%;
        max-height: 100dvh !important;
        align-self: stretch;
    }

    body.ccg-body--nav-open {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }
}
