/* ElenBody promo patch: fix disappearing sticky header on mobile menu open.
   Original theme body.menu-is-open { overflow:hidden } changes the scroll
   container and can cause sticky header to jump out of view. */
@media (max-width: 980px) {
  body.menu-is-open {
    overflow: visible !important;
  }
  body.menu-is-open .site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
  }
  .site-header .main-nav.is-open {
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 782px) {
  body.admin-bar.menu-is-open .site-header { top: 46px; }
  body.admin-bar .site-header .main-nav.is-open { max-height: calc(100dvh - 124px); }
}
@media (min-width: 783px) and (max-width: 980px) {
  body.admin-bar.menu-is-open .site-header { top: 32px; }
}
