/* Les Avisés V48.5 — mobile header: use the REAL admin-bar height.
   V48.4 wrongly assumed body.admin-bar always meant a visible 46px toolbar.
   On the user's Android frontend the body class remains while the toolbar is
   visually absent, leaving a 46px window where page content scrolls above the header. */

@media (max-width:960px){
  :root{--lav-visible-adminbar-h:0px}

  body.lav41-master{
    padding-top:62px!important;
  }

  body.lav41-master .lav41-header,
  body.admin-bar.lav41-master .lav41-header{
    position:fixed!important;
    top:var(--lav-visible-adminbar-h,0px)!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:62px!important;
    margin:0!important;
    z-index:100000!important;
  }

  /* Account tabs follow the same real offset. */
  body.lav45-space-body .lav45-mobile-tabs,
  body.admin-bar.lav45-space-body .lav45-mobile-tabs{
    top:calc(62px + var(--lav-visible-adminbar-h,0px))!important;
  }

  /* Mobile menu close/padding are also based on what is actually visible. */
  body.lav41-master .lav41-mobile-nav-panel,
  body.admin-bar.lav41-master .lav41-mobile-nav-panel{
    padding-top:calc(74px + var(--lav-visible-adminbar-h,0px))!important;
  }
  body.lav41-master .lav41-mobile-nav-close,
  body.admin-bar.lav41-master .lav41-mobile-nav-close{
    top:calc(15px + var(--lav-visible-adminbar-h,0px))!important;
  }

  /* Neutralise every historical hard-coded 46/32px offset. */
  body.admin-bar.lav41-master .lav41-header{transform:none!important}
}
