header nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  color: #9eabba;
  transition: color 150ms ease, background-color 150ms ease;
}

header nav a:hover {
  background: #141e28;
  color: #eef3f7;
}

header nav a.active {
  background: #17252a;
  color: #f7fbf9;
  font-weight: 700;
}

header nav a.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px #55e6a58a;
}

header nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.navigation-loading {
  position: fixed;
  top: 82px;
  right: 5vw;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #3c6d5b;
  border-radius: 8px;
  background: #101a17eb;
  color: #c9f6e3;
  box-shadow: 0 12px 32px #0007;
  font-size: 13px;
}

.navigation-loading[hidden] {
  display: none;
}

.navigation-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #55e6a544;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: navigation-spin .7s linear infinite;
}

.is-navigating a[aria-disabled="true"] {
  cursor: progress;
}

@keyframes navigation-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .navigation-spinner { animation: none; }
}
