/**
 * Header stack coordination: promo strip (optional) + fixed main nav.
 * Does not edit minified theme CSS — overrides only.
 */
:root{
  --mff-promo-h: 0px;
  --mff-nav-offset: var(--mff-promo-h);
}

/* Promo occupies its own row above the fixed nav */
.mff-wb-top{
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
html.mff-has-promo .mtn .mtn-bar{
  top: var(--mff-nav-offset) !important;
}

/* One visible logo; hide alternate theme duplicates if both are in DOM */
.mtn .mtn-logo img + img,
.mtn .mtn-logo .mff-logo-alt{
  display: none !important;
}
.mtn .mtn-logo img[data-theme-logo="white"]{
  display: none !important;
}
html[data-mff-theme="white"] .mtn .mtn-logo img[data-theme-logo="dark"]{
  display: none !important;
}
html[data-mff-theme="white"] .mtn .mtn-logo img[data-theme-logo="white"]{
  display: block !important;
}

/* Keep logo readable */
.mtn .mtn-logo img{
  height: 34px;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

/* Collapse desktop links before overlap; burger already exists in theme */
@media (max-width: 1100px){
  .mtn .mtn-links{ gap: 6px; }
  .mtn .mtn-dd-btn,
  .mtn .mtn-links > a{
    font-size: .88rem;
  }
}
@media (max-width: 980px){
  .mtn .mtn-links{ display: none; }
}

/* Mobile drawer: ensure panel clears promo + is scrollable */
.mtn .mtn-panel,
.mtn .mtn-drawer,
.mtn .mtn-menu{
  max-height: calc(100dvh - var(--mff-nav-offset) - 72px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.mtn .mtn-act a,
.mtn .mtn-act button,
.mtn .mtn-burger,
.mtn .mtn-x{
  min-height: 44px;
  min-width: 44px;
}
