/* ShaFX — Scroll Restore (minimal, modal-safe).
   Ensures the base document scrolls vertically on desktop + mobile + RTL, WITHOUT
   overriding intentional scroll locks. It only neutralises the known root-cause bug
   (overflow-x on <html>) and guarantees the document root is not a fixed-height clip.
   It deliberately does NOT touch position or force overflow on body, so a modal/drawer
   that sets body{overflow:hidden} while open still works. */

/* <html> must never be the horizontal scroll container (breaks iOS momentum scroll). */
html {
  overflow-x: clip;               /* clip, not hidden — does not create a scroll container */
  -webkit-overflow-scrolling: touch;
}
/* The document root grows with content; never a fixed-height vertical clip. */
html, body {
  height: auto;
  min-height: 100%;
  max-height: none;
}
/* Top-level shells grow with content (they used min-height already; make sure no clip). */
.app-shell { min-height: 100vh; }

/* RTL parity: horizontal clipping on body only, never a root scroll trap. */
[dir="rtl"] body { overflow-x: hidden; }
