/* Reference section tabs (served from /reference/reference-nav.css). */

.ref-subnav {
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 40;
  border-bottom: 1px solid var(--border, #2a3544);
  background: color-mix(in srgb, var(--bg, #0c0f12) 92%, transparent);
  backdrop-filter: blur(12px);
}

.ref-subnav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ref-subnav-inner::-webkit-scrollbar {
  display: none;
}

.ref-subnav a.ref-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted, #9aa8b8);
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ref-subnav a.ref-tab:hover {
  color: var(--text, #e8edf4);
}

.ref-subnav a.ref-tab.is-active {
  color: var(--team-primary, var(--accent, #3ee0a8));
  border-bottom-color: var(--team-primary, var(--accent, #3ee0a8));
  font-weight: 600;
}

@media (max-width: 640px) {
  .ref-subnav {
    top: 88px;
  }

  .ref-subnav-inner {
    gap: 0;
  }

  .ref-subnav a.ref-tab {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
}
