/* Global public navbar: fixed on every page */
html{scroll-behavior:smooth;scroll-padding-top:90px}

body:has(.new-header),
body:has(.site-header),
body.purchases-page,
body.dashboard-page{
  padding-top:78px;
}

.new-header,
.site-header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:1000 !important;
  box-shadow:0 1px 0 rgba(16,24,40,.06),0 6px 22px rgba(16,24,40,.05);
}

.new-header{height:76px;}
.site-header{height:78px;}
body > .site-header, body > .new-header{position:fixed !important; top:0 !important;}

/* Keep dropdown above page content */
.profile-dropdown{z-index:1100 !important;}

/* Anchor sections should never hide under the fixed navbar */
#series,#features,#popular,#free-test,#pricing,#rankings{
  scroll-margin-top:90px;
}

@media(max-width:700px){
  body:has(.new-header),
  body:has(.site-header),
  body.purchases-page,
  body.dashboard-page{
    padding-top:66px;
  }

  .new-header{height:76px;}
  .site-header{height:66px;}

  .nav-inner nav.mobile-open{
    top:66px !important;
    z-index:1090;
  }

  .new-nav nav.mobile-open{
    top:76px !important;
    z-index:1090;
  }

  .category-nav{top:76px !important;}

  #series,#features,#popular,#free-test,#pricing,#rankings{
    scroll-margin-top:84px;
  }
}
