/* Frozen Phase 8 header, dropdown, and mobile navigation system. */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  height: var(--header-scrolled-height);
  background: rgba(255, 255, 255, .94);
  border-color: rgba(11, 35, 65, .1);
  box-shadow: 0 8px 28px rgba(11, 35, 65, .08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 48px), 1360px);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-inline: auto;
}

.site-logo,
.mobile-menu-brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img,
.mobile-menu-brand img,
.footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-logo img {
  width: 158px;
  max-height: 46px;
}

.mobile-menu-brand img {
  width: 168px;
  max-height: 48px;
}

.footer-logo img {
  width: 205px;
  max-height: 58px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.primary-menu,
.mobile-menu,
.nav-dropdown-panel {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-menu > li {
  display: flex;
  align-items: center;
}

.nav-link,
.nav-trigger {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  color: #334155;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.nav-trigger {
  gap: 7px;
}

.nav-link::after,
.nav-trigger::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.nav-link:hover,
.nav-trigger:hover,
.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-trigger {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-trigger:hover::after,
.current-menu-item > .nav-link::after,
.current-menu-ancestor > .nav-trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 14px);
  left: 50%;
  width: 286px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  border: 1px solid rgba(11,35,65,.12);
  border-radius: 12px;
  box-shadow: 0 24px 55px rgba(11,35,65,.16);
  transform: translate(-50%, -8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.nav-dropdown-panel::before {
  position: absolute;
  top: -15px;
  right: 0;
  left: 0;
  height: 16px;
  content: "";
}

.nav-dropdown:hover > .nav-dropdown-panel,
.nav-dropdown:focus-within > .nav-dropdown-panel,
.nav-dropdown.is-open > .nav-dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover > .nav-trigger .nav-caret,
.nav-dropdown.is-open > .nav-trigger .nav-caret,
.nav-dropdown:focus-within > .nav-trigger .nav-caret {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-panel li {
  display: block;
}

.nav-dropdown-link {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 9px 10px;
  color: #334155;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.current-menu-item > .nav-dropdown-link {
  color: #1c6eb4;
  background: #f3f5f7;
  transform: translateX(3px);
}

.nav-item-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #1c6eb4;
  background: #eef5fb;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
}

.nav-item-copy strong {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
}

.nav-item-copy small {
  display: block;
  margin-top: 3px;
  color: #7b8794;
  font-size: 9px;
  line-height: 1.3;
}

.header-cta {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: 4px;
  padding: 0 18px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  content: "";
  transition: transform .25s ease, opacity .2s ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -6px;
}

.menu-lines::after {
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 999;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 24px 34px;
  background: var(--white);
  overflow-y: auto;
}

.admin-bar .mobile-nav {
  top: calc(var(--header-height) + 32px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-menu-brand {
  width: 100%;
  min-height: 64px;
  margin-bottom: 8px;
  padding: 7px 4px 15px;
  border-bottom: 1px solid #dce3ea;
}

.mobile-menu > li > a,
.mobile-accordion-toggle {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: #0b2341;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dce3ea;
  text-align: left;
  font-size: 16px;
  font-weight: 760;
  cursor: pointer;
}

.mobile-accordion-toggle .nav-caret {
  margin-right: 6px;
}

.mobile-accordion-toggle[aria-expanded="true"] .nav-caret {
  transform: translateY(2px) rotate(225deg);
}

.mobile-submenu {
  padding: 6px 0 9px 15px;
  background: #f7f9fb;
  border-bottom: 1px solid #dce3ea;
}

.mobile-submenu[hidden] {
  display: none !important;
}

.mobile-submenu-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 12px;
  color: #445365;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus-visible,
.current-menu-item > .mobile-submenu-link {
  color: #1c6eb4;
  background: #fff;
}

.mobile-menu-cta {
  width: 100%;
  margin-top: 24px;
}
