/* === Safe Area Fix v1 (2026-09-17) === */

/* 
 * Strategy: 
 * - Tab pages: inline paddingTop from JS handles spacing per-page
 *   Home: calc(20px + safe-top), Others: calc(16px + safe-top)
 * - Non-tab pages: H5 navbar placeholder (44px) + status bar height
 * - CSS fallback for browsers without :has() support
 */

/* Non-tab pages with H5 navbar: 44px navbar + status bar height */
body.h5-navbar-visible .taro_page {
  padding-top: calc(44px + var(--status-bar-height, 20px)) !important;
}

/* Fallback: if :has() not supported, apply minimum safe padding to all pages */
@supports not (selector(:has(*))) {
  .taro_page {
    padding-top: calc(44px + var(--status-bar-height, 20px)) !important;
  }
}
