/* V166 — sticky navigation reliability fix
   V165 used overflow-x:hidden on body, which can stop position:sticky
   behaving correctly in some browser/layout combinations. */

html{
  overflow-x:clip!important;
}

body{
  overflow-x:visible!important;
}

/* Keep the navigation attached to the viewport while scrolling. */
.sgtm-header{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:5000!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  isolation:isolate!important;
}

/* Keep dropdowns above page content while the header is sticky. */
.sgtm-header .nav-dropdown-menu,
.sgtm-header .nav-drop-menu,
.sgtm-header .mega-menu{
  z-index:5100!important;
}

/* Anchor targets should remain visible below the sticky header. */
html{
  scroll-padding-top:88px!important;
}

@media(max-width:1280px){
  html{
    scroll-padding-top:78px!important;
  }

  .sgtm-header{
    top:0!important;
  }
}

@media(max-width:620px){
  html{
    scroll-padding-top:70px!important;
  }
}
