/* TERASY SEDLEC · Mobile navigation R1
   The header has backdrop-filter; it establishes the containing block of a
   position:fixed descendant. Anchor the navigation to the sticky header instead.
   Only mobile navigation is affected; the desktop header remains unchanged. */
@media (max-width: 980px) {
  .premium-theme .site-header .mobile-menu {
    position: absolute;
    inset: 100% 0 auto;
    width: 100%;
    height: calc(100vh - var(--ts-header-compact, 68px));
    height: calc(100dvh - var(--ts-header-compact, 68px));
    z-index: 101;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #faf8f4;
  }
  .premium-theme .site-header .mobile-menu[hidden] {
    display: none;
  }
  .premium-theme .site-header .mobile-menu__inner {
    min-height: 100%;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}
