/* NOVOALAUDIT / mobile menu fix v3: the mobile drawer must start BELOW the
   entire header, including the thin status strip above it. Desktop unchanged. */
@media (max-width: 1000px) {
  #header.header {
    overflow: visible !important;
    z-index: 1100 !important;
  }
  #header.header #main-nav.nav {
    /* JS measures the header's real viewport bottom (e.g. 29 + 70 = 99px).
       99px is a safe fallback while JS initializes. */
    top: var(--novoalaudit-mobile-nav-top, 99px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - var(--novoalaudit-mobile-nav-top, 99px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    z-index: 90 !important;
  }
  #header.header #main-nav.nav:not(.is-open) {
    display: none !important;
  }
  #header.header #main-nav.nav.is-open {
    display: flex !important;
  }
  /* Submenu remains inside the scrollable mobile drawer, not a popup on top
     of the brand or adjacent navigation items. */
  #header.header #main-nav details.nav-submenu > .nav-dropdown {
    position: static !important;
    margin-bottom: 16px;
    max-height: none;
    transform: none !important;
  }
}
