/* The tabs: a list of tabs over the panels they choose, the one chosen marked. Shared tokens and layout words only, on
   the root of the tabs (packages/components/src/styles.ts); logical properties only, so that the list follows the
   direction of the page. Without the script, the panels are all shown and the tabs are links to them. */
.tabs {
  display: block;
}

.tabs .tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nw-space-4);
  margin-block: 0 var(--nw-space-12);
  border-style: solid;
  border-width: 0;
  border-block-end-width: var(--nw-border-width-1);
  border-color: var(--nw-color-border);
}

.tabs .tabs-tab {
  padding-block: var(--nw-space-8);
  padding-inline: var(--nw-space-12);
  color: var(--nw-color-text-muted);
  font-weight: var(--nw-font-weight-medium);
  text-decoration: inherit;
  border-style: solid;
  border-width: 0;
  border-block-end-width: var(--nw-border-width-2);
  border-color: var(--nw-color-border);
}

.tabs .tabs-tab:hover {
  color: var(--nw-color-text);
}

.tabs .tabs-tab[data-chosen],
.tabs .tabs-tab[aria-current] {
  color: var(--nw-color-text-strong);
  border-color: var(--nw-color-rail-mark);
}

.tabs .tabs-panel[hidden] {
  display: none;
}
