/* Redwood Academy mobile clean fix v4
   This keeps the original WebPlus 1000px mobile layout, preserves fixed nav,
   and only fixes Android/iPhone scrolling + clipped headings. */
html, body {
  overflow-x: hidden !important;
}

/* Touch devices: keep native browser scrolling, don't let niceScroll lock the page */
@media screen and (max-width: 1000px), (hover: none), (pointer: coarse) {
  html, body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  /* Preserve the fixed navigation instead of hiding it */
  #nav {
    position: fixed !important;
    top: 0 !important;
    z-index: 99999 !important;
  }

  .nicescroll-rails {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Prevent long headings from being chopped by WebPlus overflow boxes */
  .Heading-1, .Heading-2,
  h1, h2, h3,
  .C-5, .C-6, .C-7, .C-8, .C-9 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .C-6 {
    line-height: 1.15 !important;
  }
}
