/* Navigation — desktop dropdown & mobile drawer */

[data-layout="site-main-navigation"] {
  isolation: isolate;
}

[data-layout="site-main-navigation"] [data-static-nav-node] {
  position: relative;
}

/* ── Desktop dropdown ── */
.client-static-nav-dropdown {
  position: absolute;
  z-index: 90;
  top: calc(100% + 0.375rem);
  left: 0;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border: 1px solid var(--nh-border);
  border-radius: var(--nh-radius-md);
  background: #fff;
  box-shadow: var(--nh-shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -0.35rem, 0);
  transform-origin: top left;
  transition:
    opacity 0.2s var(--nh-ease),
    transform 0.2s var(--nh-ease),
    visibility 0.2s;
  visibility: hidden;
}

.nh-nav__item:nth-last-child(-n+4) .client-static-nav-dropdown,
.nh-nav__item--cta .client-static-nav-dropdown {
  left: auto;
  right: 0;
  transform-origin: top right;
}

[data-static-nav-node][data-open="true"] > .client-static-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.client-static-nav-dropdown__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: calc(var(--nh-radius-md) - 2px);
  color: var(--nh-navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--nh-ease),
    color 0.18s var(--nh-ease);
}

.client-static-nav-dropdown__button {
  appearance: none;
  width: 100%;
  border: 0;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
}

.nh-header .client-static-nav-dropdown__link:hover,
.nh-header .client-static-nav-dropdown__link:focus-visible,
.client-static-nav-dropdown__link:hover,
.client-static-nav-dropdown__link:focus-visible {
  background: var(--nh-yellow-muted);
  color: var(--nh-navy-deep);
  outline: none;
}

.client-static-nav-account-status {
  margin: 0.25rem 0 0;
  color: var(--nh-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* ── Mobile drawer ── */
.client-static-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--nh-z-drawer) - 1);
  background: rgba(26, 45, 74, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s var(--nh-ease);
}

.client-static-mobile-backdrop.is-open {
  opacity: 1;
}

.client-static-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: var(--nh-z-drawer);
  width: min(100vw, 22.5rem);
  height: 100dvh;
  overflow-y: auto;
  background: var(--nh-warm-white);
  color: var(--nh-navy);
  padding: 1rem 1.5rem 2.5rem;
  box-shadow: -0.5rem 0 2rem rgba(26, 45, 74, 0.12);
  outline: none;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s var(--nh-ease);
}

.client-static-mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.client-static-mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  margin-bottom: 0.5rem;
}

.client-static-mobile-logo {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
}

.client-static-mobile-logo .nh-logo--parts,
.client-static-mobile-logo span[aria-hidden] {
  height: 2.75rem !important;
}

.client-static-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--nh-radius-md);
  background: transparent;
  color: var(--nh-navy);
  cursor: pointer;
  transition: background 0.18s var(--nh-ease);
}

.client-static-mobile-close:hover {
  background: var(--nh-yellow-muted);
}

.client-static-mobile-close svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.client-static-mobile-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--nh-radius-pill);
  background: var(--nh-navy);
  color: var(--nh-yellow);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.client-static-mobile-account {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.client-static-mobile-account > p:first-child {
  margin: 0 0 0.25rem;
  color: var(--nh-navy);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
}

.client-static-mobile-account-link,
.client-static-mobile-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--nh-radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.client-static-mobile-account-link {
  background: var(--nh-navy);
  color: var(--nh-yellow);
}

.client-static-mobile-account-logout {
  border: 1px solid var(--nh-border);
  background: #fff;
  color: var(--nh-navy);
}

.client-static-mobile-account-link:hover,
.client-static-mobile-account-link:focus-visible {
  background: var(--nh-navy-deep);
}

.client-static-mobile-account-logout:hover,
.client-static-mobile-account-logout:focus-visible {
  background: var(--nh-yellow-muted);
}

.client-static-mobile-nav {
  margin-top: 1.25rem;
}

.client-static-mobile-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-static-mobile-nav__item + .client-static-mobile-nav__item {
  border-top: 1px solid var(--nh-border);
}

.client-static-mobile-link,
.client-static-mobile-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--nh-navy);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.client-static-mobile-parent__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.client-static-mobile-parent__icon::before,
.client-static-mobile-parent__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--nh-ease);
}

.client-static-mobile-parent__icon::before {
  transform: translate(-50%, -50%);
}

.client-static-mobile-parent__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.client-static-mobile-parent[aria-expanded="true"] .client-static-mobile-parent__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.client-static-mobile-panel {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0 0 0.5rem 0.75rem;
}

.client-static-mobile-child {
  display: block;
  padding: 0.625rem 0;
  color: var(--nh-text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.18s var(--nh-ease);
}

.client-static-mobile-child:hover {
  color: var(--nh-navy);
}
