/* Keep the mobile document vertically scrollable and the bottom bar clear of final content. */
@media (max-width: 760px) {
  html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-block-end: calc(112px + env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    touch-action: pan-y;
  }

  .main-area {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  #page-content {
    min-height: 0;
    height: auto;
    overflow: visible;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .mobile-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 20;
  }
}
