/* Shared shell only: 750 design pixels = 375 CSS pixels. Page bodies are separate batches. */
.md-site {
  --md-mobile-design-width: 750;
  --md-mobile-header-height: 44px;
  --md-mobile-gutter: 24px;
  --md-mobile-content-max: 720px;
  --md-mobile-touch-target: 44px;
}
@media (width < 1024px) {
  /* Hide only the page-edge scrollbar; keep native scrolling and nested controls.
     This stylesheet is enqueued only on pages using the shared Foundation. */
  html,
  body.md-foundation-page { scrollbar-width: none; }
  html::-webkit-scrollbar,
  body.md-foundation-page::-webkit-scrollbar { display: none; width: 0; height: 0; }
  body.md-mobile-menu-open {
    position: fixed;
    top: var(--md-mobile-lock-top, 0);
    right: 0;
    left: var(--md-mobile-lock-left, 0);
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    /* touch-action:none would also prevent touch scrolling inside the drawer. */
  }
  body .md-site {
    --md-mobile-gutter: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  /* Keep every page section at its natural height; the footer takes spare space
     with an auto margin instead of floating over the page's content. */
  body .md-site > * { flex-shrink: 0; }
  .md-site .md-container {
    width: min(var(--md-mobile-content-max), calc(100% - (2 * var(--md-mobile-gutter))));
  }
  body.md-foundation-page .md-back-to-top { bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .md-site { scroll-behavior: auto; }
}
