nav[data-active-classes] a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

nav[data-active-classes] a[aria-current="page"] {
  color: #4cd7f6 !important;
  font-weight: 600;
  text-shadow: 0 0 14px rgb(76 215 246 / 34%);
}

nav[data-active-classes] a:active,
nav[data-active-classes] a:focus-visible {
  color: #4cd7f6 !important;
  text-shadow: 0 0 16px rgb(76 215 246 / 48%);
  outline: none;
}

.mobile-menu {
  position: relative;
  display: block;
  flex: 0 0 auto;
}

/* Keep the brand name and mobile menu control together on the left. */
.mobile-brand-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.625rem;
}

.mobile-brand-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-trigger {
  display: flex;
  width: 3.375rem;
  height: 3.375rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid rgb(76 215 246 / 18%);
  border-radius: 0.75rem;
  background: #1c1f2a;
  color: #dfe2f1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mobile-menu-trigger::-webkit-details-marker {
  display: none;
}

.mobile-menu-trigger::marker {
  content: "";
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger:focus-visible,
.mobile-menu[open] .mobile-menu-trigger {
  border-color: rgb(76 215 246 / 55%);
  background: #262a35;
  color: #4cd7f6;
}

.mobile-menu-trigger:focus-visible {
  outline: 2px solid #4cd7f6;
  outline-offset: 3px;
}

.mobile-menu[open] .mobile-menu-open-icon,
.mobile-menu:not([open]) .mobile-menu-close-icon {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 60;
  display: flex;
  width: min(19rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  padding: 0.6rem;
  border: 1px solid rgb(76 215 246 / 16%);
  border-radius: 1rem;
  background: rgb(23 27 38 / 98%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 42%);
  backdrop-filter: blur(18px);
}

.mobile-menu:not([open]) > .mobile-nav-panel {
  display: none;
}

.mobile-menu[open] > .mobile-nav-panel {
  display: flex;
}

.mobile-nav-panel a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: #b4bdc0;
  text-decoration: none;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.mobile-nav-panel a[aria-current="page"] {
  background: rgb(76 215 246 / 10%);
  color: #4cd7f6 !important;
  outline: none;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none !important;
  }
}
