﻿/* kc-v2 v1.5.7 -- tabs */
/* Full class contract and conventions: see README.md and kc-v2-base.css. */

/* ---------------------------------------------------------------------------
 * Tabs
 *
 * Follows the WAI-ARIA tabs pattern (roving tabindex -- kc-v2.js manages
 * tabindex on click/arrow-key, do not hardcode tabindex="0" on more than one
 * tab in markup). Distinct from the site header's own nav in
 * kc-v2-navigation.css -- tabs switch panels of content on one page, nav
 * goes to a different page.
 * ------------------------------------------------------------------------- */

.kc-v2-tablist {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--kc-v2-ink-100);
  list-style: none;
  margin: 0;
  padding: 0;
}

.kc-v2-tab {
  box-sizing: border-box;
  margin: 0 0 -1px; /* the tab's own bottom border sits exactly on the
                        tablist's border-bottom, not 1px below it */
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  color: var(--kc-v2-ink-500);
  font-family: var(--kc-v2-font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.kc-v2-tab:hover {
  color: var(--kc-v2-ink-800);
}
.kc-v2-tab:focus-visible {
  outline: var(--kc-v2-focus-ring-width) solid var(--kc-v2-focus-ring-color);
  outline-offset: 2px;
}
.kc-v2-tab[aria-selected="true"] {
  border-bottom-color: var(--kc-v2-blue);
  color: var(--kc-v2-blue);
}

.kc-v2-tab-panel {
  padding-top: var(--kc-v2-space-4);
  color: var(--kc-v2-ink-500);
  font-family: var(--kc-v2-font-family);
  font-size: 13.5px;
  line-height: 1.5;
}
