/* Sticky-header auto-hide across desktop, tablet, and mobile.
 * Use the sticky `top` offset instead of transform so the fixed off-canvas
 * drawer inside the header keeps its viewport positioning context.
 */
.site-header.header-autohide-enabled {
  top: 0;
  transition: top .2s cubic-bezier(.22, .61, .36, 1);
  will-change: top;
}

.site-header.header-autohide-enabled.is-hidden {
  top: -82px;
}

body.mobile-nav-open .site-header.header-autohide-enabled,
.site-header.header-autohide-enabled:focus-within {
  top: 0 !important;
}

@media (max-width: 767.98px) {
  .site-header.header-autohide-enabled.is-hidden {
    top: -70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.header-autohide-enabled {
    transition: none !important;
  }
}
