/* ── Tabs ── */
.tabs {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--space-3);
  border-bottom: var(--border-hairline) solid var(--dx-fg);
}
.tabs::-webkit-scrollbar { display: none; }

.tabs ul {
  display: flex;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabs a {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-body);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.tabs a[aria-current="page"] {
  opacity: 1;
}

/* Sliding indicator: 2px rule on top of the hairline */
.tabs__line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: var(--border-rule);
  background: var(--dx-accent);
  transition: opacity var(--duration-fast) var(--ease-out);
}

/* Keyboard and touch focus */
.tabs a:focus-visible:not([aria-current="page"]) {
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .tabs a:not([aria-current="page"]):hover {
    opacity: 0.7;
  }
}

/* Reduced motion is handled in JS: the indicator fades instead of stretching */
