/* NEI inner-page experience: brand consistency, responsive navigation and WCAG-focused interaction. */
.nei-shell .nei-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 0;
  color: transparent;
  background: url('/wp-content/themes/nexus-ei-verified/assets/nei-mark-128.webp') center / contain no-repeat;
  box-shadow: none;
  text-indent: -999px;
}

.nei-shell .nei-brand-text {
  text-wrap: balance;
}

.nei-shell .nei-menu-toggle {
  display: none;
  min-width: 86px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #4ecdc4;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.nei-shell .nei-menu-icon,
.nei-shell .nei-menu-icon::before,
.nei-shell .nei-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: '';
  transition: transform 160ms ease;
}

.nei-shell .nei-menu-icon {
  position: relative;
}

.nei-shell .nei-menu-icon::before {
  position: absolute;
  top: -6px;
}

.nei-shell .nei-menu-icon::after {
  position: absolute;
  top: 6px;
}

.nei-shell .nei-menu-toggle[aria-expanded='true'] .nei-menu-icon {
  background: transparent;
}

.nei-shell .nei-menu-toggle[aria-expanded='true'] .nei-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nei-shell .nei-menu-toggle[aria-expanded='true'] .nei-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nei-shell #nei-main:focus {
  outline: none;
}

.nei-shell :focus-visible {
  border-radius: 6px;
  outline: 3px solid #ffbf36 !important;
  outline-offset: 4px !important;
}

.nei-shell .nei-links a,
.nei-shell .nei-footer a {
  min-height: 44px;
}

.nei-shell .nei-hero--inner {
  background-color: #071d2b;
  background-image:
    linear-gradient(105deg, rgb(7 29 43 / 98%) 0%, rgb(8 47 61 / 94%) 52%, rgb(8 69 69 / 78%) 100%),
    url('/wp-content/themes/nexus-ei-verified/assets/nei-network-mobile.webp');
  background-position: center, right center;
  background-size: cover;
}

.nei-shell .nei-hero--inner h1,
.nei-shell .nei-section h2,
.nei-shell .nei-cta h2 {
  text-wrap: balance;
}

@media (max-width: 920px) {
  html.nei-enhanced .nei-shell .nei-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
  }

  html.nei-enhanced .nei-shell .nei-brand {
    min-width: 0;
    margin-right: 0;
  }

  html.nei-enhanced .nei-shell .nei-menu-toggle {
    display: inline-flex;
  }

  html.nei-enhanced .nei-shell .nei-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    max-height: min(60vh, 520px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  html.nei-enhanced .nei-shell .nei-nav.is-open .nei-links {
    display: flex;
  }

  html.nei-enhanced .nei-shell .nei-links li {
    width: 100%;
  }

  html.nei-enhanced .nei-shell .nei-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    width: 100%;
    padding: 11px 8px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  html.nei-enhanced .nei-shell .nei-nav > .nei-button {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  html.nei-enhanced .nei-shell .nei-nav.is-open > .nei-button {
    display: inline-flex !important;
  }
}

@media (max-width: 620px) {
  .nei-shell .nei-mark {
    width: 44px;
    height: 44px;
  }

  html.nei-enhanced .nei-shell .nei-brand-text {
    font-size: 14px;
  }

  html.nei-enhanced .nei-shell .nei-nav {
    padding: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nei-shell .nei-menu-icon,
  .nei-shell .nei-menu-icon::before,
  .nei-shell .nei-menu-icon::after {
    transition: none;
  }
}

