/* ================================================================
   TABS — Generic accessible tab styling
   Used by Transformation, FAQ, and other tabbed sections.
   Mobile-first. Uses var(--vc-*) tokens exclusively.
   ================================================================ */

[role="tablist"] {
  display: flex;
  gap: var(--sp-1);
}

[role="tab"] {
  background: none;
  border: none;
  padding: var(--sp-3) var(--sp-5);
  font-size: 14px;
  color: var(--vc-text-tertiary);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  white-space: nowrap;
}

[role="tab"]:hover {
  color: var(--vc-text-secondary);
}

[role="tab"][aria-selected="true"] {
  color: var(--vc-text-primary);
}

[role="tab"][aria-selected="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--vc-accent);
  border-radius: 1px;
}

[role="tab"]:focus-visible {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}

[role="tabpanel"] {
  padding-top: var(--sp-6);
}

[role="tabpanel"][hidden] {
  display: none;
}
