/* BankMovie V298 — iOS safe header + automatic content collision guard.
   Android/desktop are untouched. iOS gets one safe-area header footprint.
   Content clearance itself is computed by JS from the real header/content rects,
   so pages that are already clear do not move. */
@media (max-width:991.98px){
  html.bm-ios-safe-header{
    --bm-ios-safe-top:max(env(safe-area-inset-top,0px),var(--bm-ios-safe-fallback,0px));
    --bm-ios-header-row:58px;
    --bm-ios-header-total:calc(var(--bm-ios-header-row) + var(--bm-ios-safe-top));
  }

  html.bm-ios-safe-header body #siteHeader#siteHeader,
  html.bm-ios-safe-header body #siteHeader#siteHeader.header,
  html.bm-ios-safe-header body #siteHeader#siteHeader.header-solid,
  html.bm-ios-safe-header body #siteHeader#siteHeader.header-glass,
  html.bm-ios-safe-header body #siteHeader#siteHeader.header-admin,
  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-public-header-v148,
  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-mobile-header-hidden,
  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-mobile-header-compact,
  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-mobile-floating-glass-v148612{
    top:0!important;
    bottom:auto!important;
    box-sizing:border-box!important;
    height:var(--bm-ios-header-total)!important;
    min-height:var(--bm-ios-header-total)!important;
    max-height:var(--bm-ios-header-total)!important;
    padding-top:var(--bm-ios-safe-top)!important;
    padding-bottom:0!important;
    margin-top:0!important;
    transform:none!important;
    translate:none!important;
  }

  /* Safe area is owned only by the shell. Do not let page-specific header CSS
     add another top inset to the inner row. */
  html.bm-ios-safe-header body #siteHeader#siteHeader .header-inner,
  html.bm-ios-safe-header body #siteHeader#siteHeader.header-admin .header-inner,
  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-public-header-v148 .header-inner{
    box-sizing:border-box!important;
    height:var(--bm-ios-header-row)!important;
    min-height:var(--bm-ios-header-row)!important;
    max-height:var(--bm-ios-header-row)!important;
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    transform:none!important;
    translate:none!important;
  }

  html.bm-ios-safe-header body #siteHeader#siteHeader.bm-header-hidden,
  html.bm-ios-safe-header body #siteHeader#siteHeader.is-hidden,
  html.bm-ios-safe-header body #siteHeader#siteHeader.hide{
    top:0!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    translate:none!important;
  }

  /* The JS applies only the missing margin to the first real content wrapper.
     This class is intentionally paint-neutral; it is useful for debugging and
     keeps the correction isolated from Android and desktop. */
  html.bm-ios-safe-header body .bm-ios-header-clearance-anchor{
    scroll-margin-top:calc(var(--bm-ios-header-total) + 10px)!important;
  }
}
