/* The navigation stays reachable on desktop, phones and the booking pages. */
html:root body > header.tog-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  overflow: visible !important;
  background: #fffcf8;
}

html:root { scroll-padding-top: 6rem; }
html:root body main [id] { scroll-margin-top: 6rem; }

@media (max-width: 66rem) {
  /* Keep a short header; the expanded menu scrolls independently below it. */
  html:root body > header.tog-header .tog-navigation:not([hidden]) {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom));
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    background: #fffcf8;
    border-bottom: 1px solid #d9c8b6;
  }
  html:root body > header.tog-header .tog-navigation[hidden] {
    display: none !important;
  }
}

@media print {
  html:root body > header.tog-header { position: static !important; }
}
