.block-tabs__nav {
  padding: 0 var(--card-spacer-x);
}

/* Equal-width tabs (spec.equal): each grows from nothing to an equal share of
   the row, but never below its own label (min-width) - so when the labels don't
   fit, the row overflows and the nav scrolls as usual (underline-nav's
   overflow-x, and its scroll of the chosen tab into view) instead of cutting
   the labels off. */
.block-tabs--equal .nav-list {
  flex: 1 0 auto;
}

.block-tabs--equal .nav-item {
  flex: 1 0 0;
  min-width: max-content;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: center;
}

.block-tabs--equal .nav-link {
  width: 100%;
}

/* Sticky tabs (spec.sticky): the row holds at the top of the page's scroller
   while the panes scroll under it, until the end of the block. Opaque, in the
   card's own colour, and over the cards' badges. Every ancestor up to the
   scroller must leave overflow visible (or `clip`) - a `hidden` one becomes the
   box it sticks in (org/org.css). */
.block-tabs--sticky .block-tabs__nav.underline-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bs-card-bg);
}
