/* Shared disclosure navigation for all site pages. */
.header .official-brand {
  flex-shrink: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.header .official-brand img { width: 272px; height: auto; }
.header nav { gap: 28px; font-size: 16px; }
@media (max-width: 1100px) {
  .header .official-brand img { width: 240px; }
  .header nav { gap: 20px; font-size: 15px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .header .official-brand img { width: 188px; }
  .header nav { gap: 13px; font-size: 14px; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .header .official-brand img { width: 168px; }
  .header nav { gap: 9px; font-size: 12px; }
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] { color: var(--purple); }
.nav-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron {
  transform: translateY(1px) rotate(225deg);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 25;
  width: 184px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(202,197,235,.25);
  border-top: 2px solid var(--purple);
  border-radius: 4px;
  background: #101626;
  box-shadow: 0 16px 40px #0006;
}
.nav-submenu-products { width: 280px; }
/* Bridge the small visual gap so a pointer can reach the submenu. */
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-submenu[hidden] { display: none; }
.nav-submenu:not([hidden]) { animation: submenu-reveal .16s ease-out; }
.header nav .nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 2px;
  color: #eff0f8;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.header nav .nav-submenu a:hover,
.header nav .nav-submenu a:focus-visible,
.header nav .nav-submenu a[aria-current="page"] {
  color: #d8c7ff;
  background: #b99cff1a;
}
.header nav .nav-submenu a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}
@keyframes submenu-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  .header .official-brand img { width: 220px; }
  .header nav {
    gap: 0;
    font-size: 16px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 16px 8px;
    font-size: 16px;
  }
  .nav-chevron { margin-right: 4px; }
  .nav-submenu {
    position: static;
    width: auto;
    margin: 0 8px 10px;
    padding: 4px 8px;
    transform: none;
    border: 0;
    border-left: 2px solid var(--purple);
    border-radius: 0;
    background: #ffffff05;
    box-shadow: none;
  }
  .nav-submenu::before { display: none; }
  .header nav .nav-submenu a { font-size: 15px; }
}
@media (max-width: 360px) {
  .header .official-brand img { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-submenu:not([hidden]) { animation: none; }
  .nav-chevron, .nav-dropdown-toggle, .header nav .nav-submenu a { transition: none; }
}
