/* AAIS Medan Sticky Header v5.0
   Keeps utility bar + masthead + navband visible while scrolling.
   Heights are supplied dynamically by aais-sticky-header.js. */
:root{
  --aais-utility-h:0px;
  --aais-masthead-h:0px;
  --aais-navband-h:0px;
  --aais-sticky-total:0px;
}
html{scroll-padding-top:calc(var(--aais-sticky-total) + 14px)}
body.aais-site .utility-bar,
body.aais-site .masthead,
body.aais-site .navband{
  position:sticky!important;
  left:0;
  right:0;
  width:100%;
  isolation:isolate;
  transform:translateZ(0);
  backface-visibility:hidden;
}
body.aais-site .utility-bar{
  top:0!important;
  z-index:1200!important;
}
body.aais-site .masthead{
  top:var(--aais-utility-h)!important;
  z-index:1190!important;
}
body.aais-site .navband{
  top:calc(var(--aais-utility-h) + var(--aais-masthead-h))!important;
  z-index:1180!important;
  transition:box-shadow .18s ease,border-color .18s ease;
}
body.aais-site.aais-header-scrolled .navband{
  box-shadow:0 12px 28px rgba(18,40,72,.14);
}
body.aais-site.aais-header-scrolled .masthead{
  box-shadow:0 1px 0 rgba(18,40,72,.05);
}
/* Prevent anchored sections from hiding underneath the frozen header. */
body.aais-site [id]{scroll-margin-top:calc(var(--aais-sticky-total) + 14px)}
/* Ensure open mobile navigation appears directly under the sticky navigation band. */
@media(max-width:767px){
  body.aais-site .navband{overflow:visible!important}
  body.aais-site .navlinks.is-open{
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    z-index:1210!important;
    max-height:calc(100dvh - var(--aais-sticky-total) - 10px)!important;
    overflow:auto!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.aais-site .navband{transition:none!important}
}
