/* Goldsvet mobile scroll fix: make the document the sole vertical scroll surface. */
@media (max-width: 767px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
    touch-action: pan-y pinch-zoom !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #app, #app > .min-h-screen {
    display: block !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
    touch-action: pan-y pinch-zoom !important;
  }
  #app > .min-h-screen > .relative.z-10.flex.isolate.items-stretch {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
  }
  #app > .min-h-screen > .relative.z-10.flex.isolate.items-stretch > .flex-1.flex.flex-col,
  #app main {
    display: block !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }
  #app main { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; }
  /* Drawer may scroll internally while open; closed drawer never captures gestures. */
  .fixed.inset-0.z-\[60\].md\:hidden { pointer-events: none !important; }
  .fixed.inset-0.z-\[60\].md\:hidden aside[role="dialog"][aria-label="Menu"] {
    pointer-events: none !important;
  }
  .fixed.inset-0.z-\[60\].md\:hidden.goldsvet-mobile-menu-open { pointer-events: auto !important; }
  .fixed.inset-0.z-\[60\].md\:hidden.goldsvet-mobile-menu-open aside[role="dialog"][aria-label="Menu"] {
    pointer-events: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }
  /* Lock the background only while the drawer is genuinely open. */
  html.goldsvet-menu-open, body.mobile-site-menu-open { overflow: hidden !important; }
}
