/* One compact header across home, articles, pages and archives. */
body.mh-site .mh-header.mh-global-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--mh-card); border-bottom: 1px solid var(--mh-border);
}
body.mh-site .mh-global-header .mh-header-inner {
  width: min(1200px,calc(100% - 64px)); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; min-height: 76px;
}
body.mh-site .mh-global-header .mh-header-inner > .mh-brand {
  display: inline-flex; flex: 0 0 180px; width: 180px; height: auto;
  justify-content: flex-start; visibility: visible; pointer-events: auto;
}
body.mh-site .mh-global-header .mh-brand .mm-brand--mobile-wordmark { display: inline-flex; width: 100%; }
body.mh-site .mh-global-header .mh-brand .mm-brand__picture { width: 100% !important; }
body.mh-site .mh-global-header .mh-brand .mm-brand__image { width: 100% !important; max-width: 100% !important; height: auto !important; }
body.mh-site .mh-global-header .mh-header-actions {
  display: flex; align-items: center; flex: 1; min-width: 0; width: auto; gap: 10px;
}
body.mh-site .mh-global-header .mh-desktop-nav {
  display: flex; flex: 1; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; min-width: 0; gap: 0 16px; padding: 0;
}
body.mh-site .mh-global-header .mh-desktop-nav > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
/* Active navigation keeps the text color of its theme. */
body.mh-site .mh-global-header .mh-desktop-nav > a[aria-current],
body.mh-site .mh-global-header .mh-mobile-menu nav a[aria-current] {
  color: #181818 !important; border-bottom-color: var(--mh-blue);
}
html.dark body.mh-site .mh-global-header .mh-desktop-nav > a[aria-current],
html.dark body.mh-site .mh-global-header .mh-mobile-menu nav a[aria-current] {
  color: #fff !important;
}
body.mh-site .mh-global-header .mh-header-account-links {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px;
  min-height: 36px; padding: 0 10px; border: 0;
  border-radius: 0; background: transparent; color: var(--ui-text);
  font-size: 13px; line-height: 1.4; white-space: nowrap;
}
body.mh-site .mh-global-header .mh-header-account-links > svg {
  width: 16px; height: 16px; flex: 0 0 16px; margin-right: 3px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.mh-site .mh-global-header .mh-header-account-links .mh-account-link {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0;
  color: inherit; background: transparent; border: 0; border-radius: 0;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none;
}
body.mh-site .mh-global-header .mh-header-account-links .mh-account-link:hover {
  color: inherit; background: transparent; text-decoration: underline; text-underline-offset: 3px;
}
body.mh-site .mh-global-header .mh-account-separator { opacity: .6; }
body.mh-site .mh-global-header .mh-icon-button {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 8px;
}
body.mh-site .mh-global-header .mh-mobile-menu { display: none; }
body.mh-site .mh-global-header :is(a,button,summary):focus-visible {
  outline: 2px solid var(--mh-blue); outline-offset: 3px;
}
@media screen and (min-width:1101px) and (max-width:1250px) {
  body.mh-site .mh-global-header .mh-header-inner { gap: 18px; }
  body.mh-site .mh-global-header .mh-header-inner > .mh-brand { flex-basis: 160px; width: 160px; }
  body.mh-site .mh-global-header .mh-desktop-nav { gap: 0 12px; }
  body.mh-site .mh-global-header .mh-desktop-nav > a { font-size: 13px; }
}
@media screen and (max-width:1100px) {
  body.mh-site .mh-global-header .mh-header-inner {
    display: grid; grid-template-columns: 92px minmax(0,1fr) 92px;
    min-height: 72px; gap: 0;
  }
  body.mh-site .mh-global-header .mh-header-inner > .mh-brand {
    justify-self: center; justify-content: center; width: min(175px,calc(100vw - 216px)); max-width: 100%; min-width: 0;
  }
  body.mh-site .mh-global-header .mh-header-actions {
    justify-self: end; justify-content: flex-end; width: auto; gap: 4px;
  }
  body.mh-site .mh-global-header .mh-desktop-nav,
  body.mh-site .mh-global-header .mh-header-account-links { display: none; }
  body.mh-site .mh-global-header .mh-mobile-menu { display: block; justify-self: start; }
  body.mh-site .mh-global-header .mh-mobile-menu summary {
    display: flex; align-items: center; justify-content: center;
    width: 44px; min-height: 44px; padding: 0;
  }
  body.mh-site .mh-global-header .mh-mobile-menu summary span { display: none; }
  body.mh-site .mh-global-header .mh-mobile-menu nav {
    left: 0; right: auto; top: calc(100% + 12px);
    width: min(320px,calc(100vw - 32px)); max-height: 75dvh; overflow-y: auto;
  }
  body.mh-site .mh-global-header .mh-mobile-menu nav a { min-height: 44px; }
}
@media screen and (max-width:767px) {
  body.mh-site .mh-global-header .mh-header-inner { width: calc(100% - 32px); }
}
@media print { body.mh-site .mh-header.mh-global-header { display: none !important; } }
