/*
 * Stone AI — mobile web overrides
 *
 * These styles correct two Expo/react-native-web behaviours on mobile.
 *
 * 1. #root gets position:fixed so it fills the real visual viewport instead
 *    of the layout viewport.  On iOS Safari the layout viewport is taller
 *    than the visible area when the URL bar is shown; fixed + inset 0 means
 *    the app always matches what the user sees and the springy "gap" at the
 *    bottom (where the tab bar can fall outside the screen) disappears.
 *    react-native-safe-area-context's useSafeAreaInsets() then supplies the
 *    correct padding for notch / Dynamic Island / home-indicator compensation.
 *
 *    NOTE: the original Expo template used `body > div:first-child` for this
 *    rule, but Expo's static SPA output places <noscript> before <div id="root">
 *    so that selector never matched.  Use #root directly.
 *
 * 2. Tab-bar icons and heading text were clipped on web because
 *    react-native-web renders them inside overflow:hidden containers.
 *
 * NOTE: dangerouslySetInnerHTML on <style> in +html.tsx is silently dropped
 * by Expo's static SPA export pipeline (expo export --platform web).  A
 * <link rel="stylesheet"> (injected by scripts/patch-web-html.mjs) is the
 * reliable injection path.
 */

/* ── 1. Full-viewport root ─────────────────────────────────────────────── */
#root {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── 2. Tab / heading overflow ─────────────────────────────────────────── */
[role="tablist"] [role="tab"] * {
  overflow: visible !important;
}
[role="heading"],
[role="heading"] * {
  overflow: visible !important;
}
