/* =========================================================
   MUGR homepage — mobile header bar
   Moved out of index.php (inline <style> blocks) on 2026-11-30.
   Load order matters: see the <link> in index.php.
   ========================================================= */

/* ---- mugr-home-mobile-header-alignment-v5 ---- */
/* Mobile only: center header controls vertically; no ribbon reservation. */
@media (max-width:991px){
  /* Keep the floating accessibility widget on desktop only. */
  body.body-index-page #sdgsAccessibilityWidget{display:none!important;} 
  body.body-index-page nav.navbar-main-custom.pt-20px{padding-top:0!important;padding-bottom:12px!important;height:80px!important;min-height:80px!important;max-height:none!important;box-sizing:border-box!important;}
  body.body-index-page nav.navbar-main-custom > .container-fluid{padding-top:0!important;padding-bottom:0!important;height:auto!important;min-height:68px!important;max-height:none!important;}
  body.body-index-page .navbar-main-custom .navbar-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 40px auto 40px;
    grid-template-areas:"brand search language menu";
    align-items:center!important;
    column-gap:7px;
    box-sizing:border-box;
    width:100%!important;
    min-height:68px!important;
    height:68px!important;
    margin:0!important;
    padding:0!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header::before,
  body.body-index-page .navbar-main-custom .navbar-header::after{display:none!important;content:none!important}
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-brand-main{
    grid-area:brand;display:flex!important;align-items:center!important;
    justify-content:flex-start;position:static!important;float:none!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    height:auto!important;margin:0!important;padding:0!important;transform:none!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-brand-main img{
    display:block!important;width:100%!important;max-width:190px!important;
    height:auto!important;max-height:40px!important;margin:0!important;object-fit:contain;object-position:left center;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-hs-btn--mobile,
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-home-mobile-language,
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-toggle-main{
    position:static!important;inset:auto!important;float:none!important;
    transform:none!important;margin:0!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    align-self:center!important;line-height:1!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-hs-btn--mobile{
    grid-area:search;width:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;aspect-ratio:1 / 1;appearance:none;
    border:1px solid rgba(255,255,255,.35)!important;border-radius:50%!important;
    background:rgba(255,255,255,.10)!important;color:#fff!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-hs-btn--mobile svg{display:block;width:20px!important;height:20px!important;margin:0!important;flex:none}
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-home-mobile-language{
    grid-area:language;width:auto!important;min-width:56px!important;padding:0 8px!important;
    gap:5px!important;border-radius:999px!important;white-space:nowrap;
    height:28px!important;min-height:28px!important;max-height:28px!important;
    font-size:12px!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-toggle-main{
    grid-area:menu;width:40px!important;min-width:40px!important;padding:0!important;
    flex-direction:column!important;gap:5px!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-toggle-main .icon-bar{
    width:25px!important;height:3px!important;margin:0!important;border-radius:3px!important;
  }
}
@media (max-width:360px){
  body.body-index-page .navbar-main-custom .navbar-header{
    grid-template-columns:minmax(0,1fr) 36px auto 36px;column-gap:4px;
    padding-left:0!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-hs-btn--mobile,
  body.body-index-page .navbar-main-custom .navbar-header>.navbar-toggle-main{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important}
  body.body-index-page .navbar-main-custom .navbar-header>.mugr-home-mobile-language{min-width:49px!important;padding:0 5px!important}
}

/* ---- mugr-home-mobile-header-center-v6 ---- */
/* Mobile only: the navy sticky band is the legacy
   ".navbar-main-custom .container-fluid::before" in style-css-custom-index-68.css
   (60px tall, starting 10px above the bar). The control row is taller, so the
   logo/search/language/menu sat on the band's bottom edge. One height for the
   nav, the control row and that band keeps everything centred. */
@media (max-width:991px){
  body.body-index-page{--mugr-mobile-header-h:64px;}
  body.body-index-page nav.navbar-main-custom,
  body.body-index-page nav.navbar-main-custom.pt-20px{
    height:var(--mugr-mobile-header-h)!important;min-height:var(--mugr-mobile-header-h)!important;
    padding-top:0!important;padding-bottom:0!important;
  }
  body.body-index-page nav.navbar-main-custom > .container-fluid{
    min-height:var(--mugr-mobile-header-h)!important;height:var(--mugr-mobile-header-h)!important;
  }
  body.body-index-page nav.navbar-main-custom > .container-fluid::before{
    top:0!important;height:100%!important;
  }
  body.body-index-page .navbar-main-custom .navbar-header{
    min-height:var(--mugr-mobile-header-h)!important;height:var(--mugr-mobile-header-h)!important;
  }
}
@media (max-width:360px){
  body.body-index-page{--mugr-mobile-header-h:58px;}
}

/* ---- mobile drawer close button (was an inline style="" on the button) ---- */
#navbar-collapse-custom .mugr-mobile-close{
  position:relative!important;flex:0 0 58px!important;
  width:58px!important;min-width:58px!important;max-width:58px!important;
  height:58px!important;min-height:58px!important;max-height:58px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;
  background:#f6c746!important;background-image:none!important;color:#fff!important;
  box-shadow:none!important;text-shadow:none!important;transform:none!important;opacity:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
}
