/* Parent-site navigation uses each program's own menu typography. */
#main-nav > .corporate-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #47666b;
  white-space: nowrap;
}
#main-nav > .corporate-home img {
  width: 24px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
#main-nav > .corporate-home:hover { color: #203e44; }
#main-nav > .corporate-home:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (min-width: 701px) and (max-width: 1200px) {
  #main-nav { gap: 14px; }
  #main-nav > a { font-size: 12px; }
  .header-inner { gap: 16px; }
}
/* Fold the navigation before labels have to wrap. */
#main-nav > a { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1100px) {
  .site-header .header-inner { flex-wrap: nowrap; }
  .site-header .menu-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    color: inherit;
    background: transparent;
  }
  .site-header .header-inquiry + .menu-toggle { margin-left: 0; }
  .site-header #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    padding: 16px 22px;
    background: #fffdf8;
    border: 1px solid #e3e8dc;
    border-radius: 14px;
    box-shadow: 0 12px 30px #27393f12;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    gap: 0;
  }
  .site-header #main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .site-header #main-nav > a { font-size: 14px; padding: 12px 5px; }
  .site-header #main-nav > a::after { display: none; }
  .site-header #main-nav > .nav-cta { margin-top: 8px; padding-inline: 16px; }
}
/* Performance-site controls stay together at the right edge. */
@media (max-width: 1100px) {
  .site-header .header-inquiry { margin-left: auto; flex-shrink: 0; }
  .site-header .header-inquiry + .menu-toggle:not([hidden]) {
    margin-left: 0;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    color: #27393f;
    background: #fffdf8;
    border-color: #a7b1ac;
  }
  .site-header .header-inquiry + .menu-toggle span {
    width: 22px;
    height: 2px;
    flex: 0 0 2px;
    margin: 0;
    background: currentColor;
  }
}
