/* Scoped to the original classic Astra bar only after geometry was verified.
 * No normal-state logo/header overrides; menus and cart controls stay native. */
/* Synchronous geometry read only: suppress native transitions until the compact
 * class and its previous placeholder have been restored, all before repaint. */
#masthead.hier-header-measuring > .main-header-bar-wrap,
#masthead.hier-header-measuring > .main-header-bar-wrap > .main-header-bar,
#masthead.hier-header-measuring .main-header-container,
#masthead.hier-header-measuring .site-branding,
#masthead.hier-header-measuring .site-branding * {
  transition: none !important;
  animation: none !important;
}
#masthead.hier-header-compact > .main-header-bar-wrap > .main-header-bar {
  position: fixed;
  top: var(--hier-header-top, 0px);
  left: var(--hier-header-left, 0px);
  width: var(--hier-header-width, 100%);
  box-sizing: border-box;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e1e5dd;
  box-shadow: 0 3px 12px rgb(24 49 24 / 8%);
  padding-top: 4px;
  padding-bottom: 4px;
  overflow: visible;
}
#masthead.hier-header-compact .site-branding,
#masthead.hier-header-compact .ast-site-identity {
  padding-top: 0;
  padding-bottom: 0;
}
#masthead.hier-header-compact .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
#masthead.hier-header-compact .custom-logo-link img {
  width: 56px;
  max-width: 56px;
  height: auto;
}
#masthead.hier-header-compact .main-header-bar-navigation,
#masthead.hier-header-compact .ast-main-header-bar-alignment {
  overflow: visible;
}
#masthead.hier-header-compact .main-header-menu > .menu-item > .menu-link,
#masthead.hier-header-compact .main-header-menu > .menu-item > .wpmenucart-contents {
  min-height: 44px;
}
#masthead.hier-header-compact .main-header-menu-toggle {
  min-width: 44px;
  min-height: 44px;
}
body.hier-header-ready :target {
  scroll-margin-top: var(--hier-header-obstruction, 16px);
}
@media (min-width: 922px) {
  #masthead.hier-header-compact > .main-header-bar-wrap > .main-header-bar {
    min-height: 68px;
  }
}
@media (max-width: 921px) {
  #masthead.hier-header-compact > .main-header-bar-wrap > .main-header-bar {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 60px;
  }
  /* Tablet can compact to 56px; the already small native mobile logo stays 38px. */
  #masthead.hier-header-compact .custom-logo-link img {
    width: min(56px, 100%);
    max-width: 56px;
  }
  #masthead.hier-header-compact .main-header-bar-navigation {
    max-height: max(0px, calc(100vh - var(--hier-header-top, 0px) - 76px));
    max-height: max(0px, calc(100dvh - var(--hier-header-top, 0px) - 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}
@media (max-width: 544px) {
  #masthead.hier-header-compact > .main-header-bar-wrap > .main-header-bar {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  #masthead.hier-header-compact .custom-logo-link img {
    width: 38px;
    max-width: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #masthead.hier-header-compact .main-header-bar,
  #masthead.hier-header-compact .custom-logo-link img {
    transition: none !important;
    animation: none !important;
  }
}
