/* Navigation surfaces share the agency's ink and electric blue. */
.ndc-header {
  --nav-ink: #10243e;
  --nav-deep: #0c1e34;
  --nav-line: #344b64;
  --nav-accent: #83d2ff;
  --nav-white: #f5f9ff;
}

html body.ndc-native .ndc-header #ndc-nav .mega-menu.ndc-services > .ndc-nav-group[open] > summary {
  color: #005fa9 !important;
  background: #eaf5ff !important;
}

.ndc-header #ndc-nav .ndc-services > details > summary {
  border-radius: 8px;
}

.ndc-header #ndc-nav .ndc-services.mega-menu > .ndc-nav-group[open] > .sub-menu.ndc-services-panel {
  isolation: isolate;
  width: min(876px, 100%) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 0 !important;
  align-content: start;
  grid-template-columns: repeat(var(--ndc-service-columns, 3), minmax(0, 1fr)) !important;
  padding: 0 !important;
  background: var(--nav-ink) !important;
  color: var(--nav-white);
  border: 1px solid #334f6b !important;
  border-top: 3px solid #30adff !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 20px 42px -11px rgba(5, 22, 45, .36) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-color: #7898b9 var(--nav-ink);
}

.ndc-header #ndc-nav .ndc-services .ndc-services-panel .ndc-service-section {
  margin: 0;
  padding: 22px 17px 14px;
  min-width: 0;
  height: 100%;
}

.ndc-header #ndc-nav .ndc-service-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  margin: 0 3px 9px;
  padding: 0 0 11px;
  border-bottom: 1px solid #496782;
  color: var(--nav-accent);
  font: 650 16px/1.25 Roboto, Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.ndc-header #ndc-nav .ndc-service-icon {
  pointer-events: none;
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--nav-accent);
  background: #1a3856;
  border: 1px solid #385671;
  border-radius: 8px;
}

.ndc-service-icon::before, .ndc-service-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.ndc-service-icon-search::before {
  inset: 6px auto auto 6px;
  width: 11px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.ndc-service-icon-search::after {
  top: 17px;
  left: 15px;
  width: 6px;
  height: 1.6px;
  background: currentColor;
  transform: rotate(45deg);
}

.ndc-service-icon-reach::before {
  inset: 5px;
  border: 1.6px solid currentColor;
  border-block-color: transparent;
  border-radius: 50%;
}

.ndc-service-icon-reach::after {
  inset: 10px;
  background: currentColor;
  border-radius: 50%;
}

.ndc-service-icon-studio::before {
  top: 7px;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 7px 0 currentColor, 0 7px currentColor, 7px 7px currentColor;
}

.ndc-header #ndc-nav .ndc-service-toggle { display: none; }

.ndc-header #ndc-nav .ndc-services .ndc-service-links.sub-menu {
  display: block;
  position: static;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ndc-header #ndc-nav .ndc-services .ndc-service-links > li {
  margin: 0;
  padding: 0;
  border: 0;
}

.ndc-header #ndc-nav .ndc-services .ndc-service-links > li + li {
  border-top: 1px solid rgba(160, 197, 228, .14);
}

html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-links a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 9px 8px;
  color: var(--nav-white) !important;
  background: transparent !important;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.ndc-header #ndc-nav .ndc-service-links a::after,
.ndc-header #ndc-nav .ndc-service-shortcuts a::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  box-sizing: border-box;
  background: linear-gradient(currentColor,currentColor) top right / 8px 1.5px no-repeat,
              linear-gradient(currentColor,currentColor) top right / 1.5px 8px no-repeat,
              linear-gradient(-45deg,transparent 43%,currentColor 47% 54%,transparent 58%) center / 100% 100% no-repeat;
  color: #77a6ca;
  transition: transform .16s ease, color .16s ease;
}

html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-links a:is(:hover,:focus-visible,[aria-current="page"]) {
  background: #214264 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.ndc-header #ndc-nav .ndc-service-links a:is(:hover,:focus-visible)::after {
  color: #a2e1ff;
  transform: translate(2px, -2px);
}

html body.ndc-native .ndc-header #ndc-nav .ndc-services :is(a,button):focus-visible,
html body.ndc-native .ndc-header #ndc-nav .ndc-nav-linked .sub-menu :is(a,summary):focus-visible {
  outline: 2px solid #98dbff !important;
  outline-offset: -2px;
}

.ndc-header #ndc-nav .ndc-services.mega-menu > .ndc-nav-group > .sub-menu.ndc-services-panel > .ndc-service-shortcuts {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 7px 22px !important;
  background: var(--nav-deep);
  border-top: 1px solid var(--nav-line) !important;
}

html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 37px;
  padding: 5px 4px;
  color: #c4d9eb !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
}

html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-shortcuts a:last-child,
.ndc-header #ndc-nav .ndc-service-shortcuts a::after { color: var(--nav-accent) !important; }

html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-shortcuts a:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

@media (min-width: 981px) {
  .ndc-header .ndc-header-inner { position: relative; }
  html body.ndc-native .ndc-header #ndc-nav .mega-menu.ndc-services,
  .ndc-header #ndc-nav .mega-menu.ndc-services > details { position: static !important; }

  .ndc-header #ndc-nav .ndc-services.mega-menu > .ndc-nav-group[open] > .sub-menu.ndc-services-panel {
    inset: 100% 0 auto auto !important;
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 96px) !important;
  }

  .ndc-header #ndc-nav .ndc-services-panel > li + li > .ndc-service-section {
    border-inline-start: 1px solid var(--nav-line);
  }

  html body.ndc-native .ndc-header #ndc-nav .ndc-nav-list > li:not(.mega-menu,:has(> .ndc-nav-linked),#menu-item-33) > a {
    border-radius: 5px;
    text-underline-offset: 7px;
  }
  html body.ndc-native .ndc-header #ndc-nav .ndc-nav-list > li:not(.mega-menu,:has(> .ndc-nav-linked),#menu-item-33) > a:is(:hover,[aria-current="page"]) {
    color: #0065b0 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
  }

  .ndc-header #ndc-nav .ndc-nav-list > li > .ndc-nav-linked[open] > .sub-menu {
    background: var(--nav-ink) !important;
    border: 1px solid #334f6b !important;
    border-top: 3px solid #30adff !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 16px 38px rgba(5,22,45,.23) !important;
    padding: 8px !important;
  }
  .ndc-header #ndc-nav .ndc-nav-linked .ndc-nav-linked > .sub-menu {
    background: var(--nav-deep);
    border-inline-start-color: #47647b;
  }
  html body.ndc-native .ndc-header #ndc-nav .ndc-nav-linked[open] .sub-menu :is(a,summary) {
    color: var(--nav-white) !important;
    background: transparent !important;
    border-radius: 5px;
  }
  html body.ndc-native .ndc-header #ndc-nav .ndc-nav-linked[open] .sub-menu :is(a,summary):is(:hover,:focus-visible) {
    color: #fff !important;
    background: #214264 !important;
  }
  .ndc-header #ndc-nav .ndc-nav-linked[open] .sub-menu summary::after { color: var(--nav-accent); }
}

@media (max-width: 980px) {
  html body.ndc-native .ndc-header #ndc-nav .mega-menu.ndc-services > .ndc-nav-group[open] > summary {
    padding-inline: 11px !important;
  }
  .ndc-header #ndc-nav .ndc-services.mega-menu > .ndc-nav-group[open] > .sub-menu.ndc-services-panel {
    position: static !important;
    width: 100% !important;
    grid-template-columns: minmax(0,1fr) !important;
    margin: 8px 0 14px !important;
    border-radius: 12px !important;
    max-height: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }
  .ndc-header #ndc-nav .ndc-services .ndc-services-panel .ndc-service-section {
    padding: 0 12px;
  }
  .ndc-header #ndc-nav .ndc-services-panel > li + li > .ndc-service-section {
    border-top: 1px solid var(--nav-line);
  }
  .ndc-header #ndc-nav .ndc-service-heading {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ndc-header #ndc-nav .ndc-service-heading .ndc-service-icon {
    position: absolute;
    inset-inline-start: 2px;
  }
  .ndc-header #ndc-nav .ndc-service-name { display: none; }
  .ndc-header #ndc-nav .ndc-service-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 55px;
    margin: 0;
    padding: 10px 5px 10px 41px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #d6eeff;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  .ndc-header #ndc-nav .ndc-service-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: -3px 3px 0 0;
    border: solid var(--nav-accent);
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
  }
  .ndc-header #ndc-nav .ndc-service-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
    margin-top: 4px;
  }
  .ndc-header #ndc-nav .ndc-services .ndc-service-section:not(.is-expanded) > .ndc-service-links {
    display: none;
  }
  .ndc-header #ndc-nav .ndc-service-section.is-expanded { padding-bottom: 7px; }
  html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-links a { min-height: 44px; }
  .ndc-header #ndc-nav .ndc-services.mega-menu > .ndc-nav-group > .sub-menu.ndc-services-panel > .ndc-service-shortcuts {
    padding: 2px 12px !important;
    flex-wrap: wrap;
    gap: 0 8px;
  }
  html body.ndc-native .ndc-header #ndc-nav .ndc-services .ndc-service-shortcuts a {
    min-height: 44px;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndc-header #ndc-nav .ndc-service-links a::after { transition: none; }
}
