/* Match the approved sticky navigation behavior of chuyenthatcothat.net.
   Keep the HMHCG masthead visible only at the top of the page, while
   the existing red navigation bar remains at the viewport top on scroll.
   CSS-only: no changes to menu items, dropdowns, slider or layout. */
header.header {
  position: -webkit-sticky;
  position: sticky;
  top: -135px; /* approved desktop banner height */
  z-index: 9999;
}

/* Respect the WordPress admin toolbar when a site manager is logged in. */
body.admin-bar header.header {
  top: calc(32px - 135px);
}

/* Mobile/tablet: the 1920x135 header image scales naturally to 100vw.
   Unlike the reference site, its height isn't a fixed 70 or 100px. */
@media screen and (max-width: 890px) {
  header.header {
    top: -7.03125vw; /* 135 / 1920 * 100vw */
  }
  body.admin-bar header.header {
    top: calc(32px - 7.03125vw);
  }
}

/* WP admin toolbar is 46px high at <=782px. */
@media screen and (max-width: 782px) {
  body.admin-bar header.header {
    top: calc(46px - 7.03125vw);
  }
}
