/* Keep app pages at their designed scale while allowing native scrolling.
   Both pan axes remain available for sliders and horizontally scrolling content. */
html, body { touch-action: pan-x pan-y; }

/* Touch screens keep the approved edge-swipe guard: horizontal overscroll stays inside the app.
   Trackpads and mice (MacBook two-finger Back/Forward) leave horizontal overscroll to the browser,
   so page-level scrollers only contain the vertical axis. Inner horizontal strips keep their own containment. */
@media (hover: none) and (pointer: coarse) {
  html, body { overscroll-behavior-x: none; }
}

/* Avoid iPhone's automatic focus zoom on small form controls. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]),
  select, textarea, [contenteditable=true] { font-size: max(16px, 1em) !important; }
}

/* #821 (Fin, 4 Nov 2026): no visible scrollbars anywhere in the app. Everything still scrolls (touch, wheel, trackpad,
   keyboard, assistive technology); only the bar is hidden. The page's content scrollers keep the device's own bounce at
   the top and bottom (overscroll-behavior: contain, not none), inside the fixed header and footer, so nothing else moves;
   the page itself stays fixed (no pull-to-refresh, as before). The mouse-wheel glide is in /app-gestures.js.
   #900 (Fin, 10 Nov 2026): no client screen turns that bounce off, the consultation forms included (checks/app-gestures.cjs). */
html, body, * { scrollbar-width: none !important; }
::-webkit-scrollbar { display: none; width: 0 !important; height: 0 !important; background: transparent; }

/* #951: the "Please rotate your phone" cover (shown by /app-gestures.js only on a phone held sideways where the browser
   would not keep it portrait). It sits over everything in the app's own colours, light or dark, inside the safe areas;
   nothing under it changes, and the page underneath stays still while it shows. */
#ev-rotate { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: var(--app-page, #f5f6f3); color: var(--app-text, #17262b); text-align: center; touch-action: none; overscroll-behavior: none; }
#ev-rotate .ev-rotate-box { max-width: 360px; }
#ev-rotate .ev-rotate-icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--app-link, #22616d); }
#ev-rotate h2 { margin: 0 0 6px; font: 700 20px/1.25 var(--std-font, system-ui, -apple-system, "Segoe UI", sans-serif); color: inherit; }
#ev-rotate p { margin: 0; font: 400 15px/1.45 var(--std-font, system-ui, -apple-system, "Segoe UI", sans-serif); color: var(--app-muted, inherit); }
