/* Shared homepage and inner-page masthead. Menus still use the published theme tokens. */
.header.official-header {
  --official-header-height: var(--mfuu-header-height, 76px);
  --official-header-gutter: var(--home-gutter, clamp(24px, 5.55vw, 80px));
  height: var(--official-header-height);
  background: var(--white);
  box-shadow: none;
}

.official-header .header-inner {
  width: var(--home-frame, min(1280px, calc(100% - 2 * var(--official-header-gutter))));
  max-width: none;
  gap: clamp(14px, 2vw, 30px);
  padding-inline: 0;
}

.header.official-header .brand { width: auto; }
.header.official-header .brand img {
  width: clamp(112px, 12vw, 144px);
  height: auto;
}

.header.official-header .main-nav { font-size: 15px; }
.header.official-header .mega-menu { top: 100%; }

.header.official-header .managed-submenu {
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
}

.header.official-header .account-nav {
  height: auto;
  gap: clamp(10px, 1.5vw, 22px);
}

.header.official-header .account-nav > .header-cta {
  display: inline-flex;
  height: auto;
  min-height: 44px;
  padding: 0 clamp(11px, 1.25vw, 18px);
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .header.official-header .main-nav { gap: 16px; }
}

@media (max-width: 1100px) {
  .header.official-header .mobile-menu { margin-inline-start: auto; }
  .header.official-header .account-nav { margin-inline-start: 0; }
  .header.official-header .account-nav > a[href="/home.htm"] { display: none; }
  .header.official-header .account-nav > .login {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }

  .header.official-header .mobile-menu > summary > span { background: var(--blue); }
  .header.official-header .mobile-menu > nav {
    top: var(--mobile-nav-top, var(--official-header-height));
  }

  .header.official-header .mobile-nav-group {
    padding-bottom: 0;
    border-bottom-color: var(--line);
  }

  .header.official-header .mobile-nav-group > .mobile-child {
    padding-inline-start: 14px;
    color: var(--ink);
  }

  .header.official-header .mobile-menu > nav > a[aria-current="page"],
  .header.official-header .mobile-nav-group > .mobile-child[aria-current="page"] {
    color: var(--blue);
    background: var(--ice);
  }
}

@media (max-width: 1100px) and (hover: hover) and (pointer: fine) {
  .header.official-header .mobile-nav-group > .mobile-child:hover { color: var(--blue); }
}

@media (max-width: 700px) {
  .header.official-header {
    --official-header-height: var(--mfuu-header-height, 66px);
    --official-header-gutter: var(--home-gutter, clamp(16px, 6.15vw, 24px));
  }

  .official-header .header-inner { gap: clamp(4px, 1.6vw, 12px); }

  .header.official-header .account-nav > .header-cta {
    font-size: 13px;
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--home-border, var(--hmn-line, var(--line)));
  }
}
