/* ===========================
   NAVIGATION STYLES
   =========================== */

/* Container */
nav.sitelinks {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Links */
nav.sitelinks a {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px); /* subtle glass effect */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  transition: all 0.25s ease;
}

nav.sitelinks a:hover {
  background: var(--brand);
  color: #052021;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav.sitelinks a.active {
  background: var(--brand);
  color: #fff;
}

/* Dark theme adjustments */
:root[data-theme="dark"] nav.sitelinks {
  background: #0f1720;
}

:root[data-theme="dark"] nav.sitelinks a {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
}

:root[data-theme="dark"] nav.sitelinks a.active {
  background: var(--brand);
  color: #052021;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  nav.sitelinks {
    gap: 0.4rem;
    padding: 0.4rem;
  }

  nav.sitelinks a {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
  }
}
