/*
 * DECA Command Center — mobile navbar blur/layer repair v4.4.6
 *
 * Purpose:
 * - Keep the opened #headerNav above its dimming/backdrop layer.
 * - Prevent backdrop-filter/filter from being inherited or applied over links.
 * - Preserve the existing normal-flow mobile navigation introduced in v4.4.5.
 *
 * This file intentionally does not change navigation links, breakpoints,
 * click handling, focus handling, scrolling, database state or services.
 */

@media (max-width: 900px) {
  /* The open menu is the foreground surface. Keep it in normal document flow. */
  #headerNav.nav-active {
    position: relative !important;
    z-index: 2147483000 !important;
    isolation: isolate !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Menu content must render above any local pseudo-element/scrim. */
  #headerNav.nav-active > *,
  #headerNav.nav-active ul,
  #headerNav.nav-active li,
  #headerNav.nav-active a,
  #headerNav.nav-active button,
  #headerNav.nav-active .nav-menu,
  #headerNav.nav-active .nav-list,
  #headerNav.nav-active .navigation-menu,
  #headerNav.nav-active .mobile-menu-content {
    position: relative !important;
    z-index: 2 !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* A local decorative layer may remain, but never blur or cover the links. */
  #headerNav.nav-active::before,
  #headerNav.nav-active::after {
    z-index: 0 !important;
    pointer-events: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Lift the containing header out of a lower stacking context when supported. */
  body:has(#headerNav.nav-active) header,
  body:has(#headerNav.nav-active) .site-header,
  body:has(#headerNav.nav-active) .main-header,
  body:has(#headerNav.nav-active) .app-header,
  body:has(#headerNav.nav-active) .header-shell,
  body:has(#headerNav.nav-active) .deca-header {
    position: relative !important;
    z-index: 2147483000 !important;
    isolation: isolate !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Known navigation scrims stay below the open menu and do not blur it. */
  body:has(#headerNav.nav-active) .nav-backdrop,
  body:has(#headerNav.nav-active) .navigation-backdrop,
  body:has(#headerNav.nav-active) .mobile-nav-backdrop,
  body:has(#headerNav.nav-active) .menu-backdrop,
  body:has(#headerNav.nav-active) .mobile-menu-backdrop,
  body:has(#headerNav.nav-active) [data-nav-backdrop],
  body:has(#headerNav.nav-active) [data-menu-backdrop] {
    z-index: 2147482000 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Guard against a body pseudo-element acting as the blur scrim. */
  body:has(#headerNav.nav-active)::before,
  body:has(#headerNav.nav-active)::after {
    z-index: 2147482000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
