/* Top menu: deep green bar with the light logo. */
#navbar {
  background: #0d281d;
  border-bottom: 2px solid #c9a46a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#navbar .site-nav-shell { min-height: 88px; gap: 24px; }

/* Keep in-page jump targets clear of the fixed bar. */
#launch-list,
#make-it-your-way { scroll-margin-top: 90px; }

#navbar .brand-lockup { flex: 0 0 auto; }

/* Light version of the logo, made for the dark bar. */
#navbar .brand-logo {
  height: 76px !important;
  max-width: min(320px, 66vw);
}

#navbar .primary-nav { gap: clamp(8px, 1.6vw, 22px); }

#navbar .nav-link,
#navbar .mobile-nav-link {
  color: #f6ecdc;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
}

#navbar .nav-link { padding: 10px 4px; position: relative; }

#navbar .nav-link:hover,
#navbar .nav-link-active { color: #e6c894; }

/* One continuous underline, including the dropdown arrow. */
#navbar .nav-link:hover::after,
#navbar .nav-link-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: currentColor;
}

/* Dropdown panels */
#navbar .nav-dropdown-menu {
  background: #0d281d;
  border: 1px solid rgba(201, 164, 106, .7);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  top: 100%;
  /* Short grace period so a slightly off mouse path does not close the menu. */
  transition: opacity .16s ease .3s, visibility 0s linear .46s;
}

/* The hover area reaches the bottom of the bar, so there is no gap to cross. */
#navbar .primary-nav,
#navbar .nav-dropdown { align-self: stretch; }
#navbar .nav-dropdown { display: flex; align-items: center; }
#navbar .nav-dropdown::after { display: none; }

#navbar .nav-dropdown:hover .nav-dropdown-menu,
#navbar .nav-dropdown:focus-within .nav-dropdown-menu { transition: opacity .12s ease, visibility 0s; z-index: 71; }

/* Moving to another menu item closes the previous menu at once. */
#navbar .primary-nav:has(> :hover) > .nav-dropdown:not(:hover):not(:focus-within) .nav-dropdown-menu { transition-delay: 0s; transition-duration: 0s; }

#navbar .nav-dropdown-menu a {
  color: #f6ecdc;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
}

#navbar .nav-dropdown-menu a:hover,
#navbar .nav-dropdown-menu a:focus {
  background: rgba(246, 236, 220, .12);
  color: #e6c894;
}

#navbar .mobile-nav-sublink { padding: 8px 16px 8px 34px; font-size: 15px; font-weight: 400; }
#navbar .mobile-menu-panel { max-height: calc(100vh - 66px); overflow-y: auto; }

#navbar .nav-cta {
  background: #f6ecdc;
  color: #0d281d;
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#navbar .nav-cta:hover { background: #fffaf0; }

#navbar a:focus-visible,
#navbar button:focus-visible { outline: 2px solid #e6c894; outline-offset: 3px; }

#navbar .nav-icon-button,
#navbar .nav-icon-button:hover { color: #f6ecdc; }

#navbar .mobile-menu-panel { margin: 0; padding-bottom: 8px; border-top: 1px solid rgba(246, 236, 220, .18); }
#navbar .mobile-menu-panel .nav-cta { text-align: center; margin: 4px 16px 8px; }
#navbar .mobile-nav-link:hover { background: rgba(246, 236, 220, .1); color: #e6c894; }
#navbar .mobile-nav-label { color: #e6c894; }

@media (min-width: 1024px) {
  #navbar .utility-nav { display: none; }
}

@media (max-width: 720px) {
  #navbar .site-nav-shell { min-height: 62px; }
  #navbar .brand-logo { height: 56px !important; }
}
