.topbar .primary-links, .nwo-service .desktop-nav, .legal-page .home-link { margin-inline-start: auto; }
.topbar .primary-links { gap: clamp(12px, 1.9vw, 30px); }
.topbar .primary-links > a { white-space: nowrap; }

.nwo-menu { position: relative; flex: none; }
.nwo-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px clamp(10px, 1.3vw, 17px);
  border: 1px solid #a1c9ee4f;
  border-radius: 7px;
  background: #162538;
  color: #eef7ff;
  font-size: .9375rem;
  font-weight: 630;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.nwo-menu summary::-webkit-details-marker { display: none; }
.nwo-menu summary:hover, .nwo-menu[open] summary { border-color: #9adefc9c; background: #20374c; }
.nwo-menu summary:focus-visible { outline: 2px solid #a4efff; outline-offset: 3px; }

.nwo-menu-icon { position: relative; width: 15px; height: 12px; }
.nwo-menu-icon::before, .nwo-menu-icon::after {
  content: "";
  position: absolute;
  inset: auto 0;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
}

.nwo-menu-icon::before { top: 3px; }
.nwo-menu-icon::after { bottom: 3px; }
.nwo-menu[open] .nwo-menu-icon::before { top: 5px; transform: rotate(45deg); }
.nwo-menu[open] .nwo-menu-icon::after { top: 5px; transform: rotate(-45deg); }

.nwo-menu:not([open]) .nwo-menu-panel { display: none; }
.nwo-menu-panel {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 10px) 0 auto auto;
  width: min(36rem, calc(100vw - 42px));
  max-height: min(76vh, 37rem);
  max-height: min(76svh, 37rem);
  padding: clamp(12px, 2vw, 23px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #a2d4ef55;
  border-radius: 12px;
  background: radial-gradient(ellipse at 99% 0, #233e58, transparent 70%), #0b1421;
  color: #e8f3fc;
  color-scheme: dark;
  box-shadow: 0 18px 50px #01060ed9;
}

.nwo-menu .nwo-menu-links {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 14px;
}

.nwo-menu-group + .nwo-menu-group { border-inline-start: 1px solid #a1c9ee30; padding-inline-start: 13px; }
.nwo-menu-label { padding-inline: 9px; margin-bottom: 5px; color: #b6d6ea; font-size: .875rem; font-weight: 690; }

.nwo-menu .nwo-menu-panel a {
  display: flex;
  align-items: center;
  padding: 6px 9px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e8f3fc;
  font-size: .9375rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nwo-menu .nwo-menu-panel a:hover, .nwo-menu .nwo-menu-panel a[aria-current="page"] {
  border-color: #9dd5f13a;
  background: #a4eaff16;
  color: #b9efff;
}

.nwo-menu .nwo-menu-panel a:focus-visible { outline: 2px solid #a4efff; outline-offset: -2px; }
.nwo-menu .nwo-menu-local { display: none; }

@media (max-width: 1050px) {
  .topbar .primary-links, .nwo-service .desktop-nav, .legal-page .home-link { display: none; }
  .topbar .topbar-inner { flex-direction: row; align-items: center; gap: 9px; padding-block: 0; }
  .topbar .wordmark { align-self: center; }

  .nwo-menu .nwo-menu-local {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #a1c9ee30;
  }

  .nwo-menu-local > div { display: flex; flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 360px) {
  .topbar .topbar-inner { gap: 7px; }
  .topbar .wordmark { gap: 6px; }
  .topbar .wordmark-name { padding-inline-start: 6px; letter-spacing: 0; }
  .nwo-menu summary { gap: 7px; padding-inline: 8px; }
  .nwo-menu-icon { width: 12px; }
}

@media (max-width: 500px) {
  .nwo-menu .nwo-menu-links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nwo-menu-group + .nwo-menu-group {
    border-inline-start: 0;
    border-top: 1px solid #a1c9ee30;
    padding: 9px 0 0;
  }
}
