/* BMS header alignment, 2026-09-19. Scoped to the existing static header. */
:root {
  --pre-header-height: 34px;
  --pre-header-height-mobile: 34px;
  --header-height-mobile: 68px;
  --header-height-mobile-sticky: 64px;
}
.pre-header {
  height: 34px;
  min-height: 34px;
  padding: 0;
  line-height: 1.3;
}
.pre-header__inner,
.site-header__inner {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.pre-header__inner {
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
}
.pre-header__left,
.pre-header__right {
  flex-wrap: nowrap;
  gap: 16px;
}
.pre-header__separator { height: 12px; }
.pre-header a { white-space: nowrap; }
.site-header {
  top: 34px;
  height: 72px;
  background: #1e2725;
  overflow: visible !important;
}
.site-header::before { background: transparent; }
.site-header.sticky { top: 0; height: 64px; }
.site-header__inner {
  height: 100%;
  min-height: 0;
  justify-content: flex-start;
  gap: 44px;
}
.site-header .brand {
  flex: 0 0 96px !important;
  width: 96px !important;
  min-width: 0;
  max-width: 96px !important;
  height: 56px !important;
  padding: 0;
  justify-content: flex-start !important;
  overflow: visible !important;
}
.site-header .brand__logo {
  display: block;
  width: auto !important;
  max-width: 96px !important;
  height: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.site-header.sticky .brand__logo { height: 44px !important; max-height: 44px !important; }
.site-header .site-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 30px;
  white-space: nowrap;
}
.site-header .site-nav__cta { margin-left: auto; }
.site-header .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; }
.site-header a:focus-visible,
.site-header button:focus-visible,
.pre-header a:focus-visible { outline: 2px solid #e9d8b3; outline-offset: 5px; }

@media (min-width: 901px) {
  body.mobile-menu-open { overflow-y: auto; }
  .site-header .site-nav__group { display: flex; }
  .site-header .site-nav__submenu { background: #1e2725; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header__inner { gap: 28px; }
  .site-header .site-nav { gap: 22px; font-size: 11px; }
}
@media (max-width: 900px) {
  .pre-header__inner,
  .site-header__inner { width: calc(100% - 32px); }
  .pre-header { font-size: 9px; letter-spacing: .09em; text-align: left; }
  .pre-header__left { display: none; }
  .pre-header__right { width: 100%; justify-content: flex-end; gap: 22px; }
  .site-header { height: 68px; border-top: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header.sticky { height: 64px; }
  .site-header__inner { justify-content: space-between; gap: 20px; }
  .site-header .brand { flex-basis: 88px !important; width: 88px !important; max-width: 88px !important; height: 52px !important; }
  .site-header .brand__logo { height: 46px !important; max-height: 46px !important; max-width: 88px !important; }
  .site-header.sticky .brand__logo { height: 44px !important; max-height: 44px !important; }
  .site-header .menu-toggle { display: inline-block; }
  .site-header .site-nav {
    position: fixed;
    top: 102px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 102px);
    padding: 8px 16px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #fff;
    background: #1e2725;
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .site-header.sticky .site-nav { top: 64px; max-height: calc(100dvh - 64px); }
  body.mobile-menu-open .site-header .site-nav { transform: none; visibility: visible; opacity: 1; pointer-events: auto; }
  .site-header .site-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header .site-nav__group { display: grid; padding: 0; margin: 0; }
  .site-header .site-nav__group::after { content: none; }
  .site-header .site-nav__submenu,
  .site-header .site-nav__group:hover .site-nav__submenu,
  .site-header .site-nav__group:focus-within .site-nav__submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
  }
  .site-header .site-nav__submenu a { padding: 12px; }
  .site-header .site-nav__cta { margin: 12px 0 0; text-align: center; }
}
