.tab-container {

  &.hidden,
  &.subgrid.hidden {
    display: none;
  }
}

.tab-bar {
  display: flex;
  flex-direction: column;
  margin: 24px 0;
  list-style: none;
  gap: var(--semiquaver);
}

@media only screen and (min-width: 900px) {
  .tab-bar {
    flex-direction: row;
    gap: var(--minim);
  }
}

.tab-link {
  color: var(--mb-70, #B2B3AD);
  text-decoration: none;
  display: inline-block;
  border-radius: var(--quaver);
  padding: var(--semiquaver) var(--quaver);


  /* Uppercase/Semibold/.875 */
  /*font-family: Montserrat;*/
  font-size: 14px;
  font-style: normal;
  font-weight: 540;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.08em;
  text-transform: uppercase;

  &:hover {
    background-color: transparent;
    color: var(--mb);
  }

  &:active {
    /*color: var(--fg);*/
    /*background-color: var(--grey-200);*/
  }

  &[aria-selected="true"] {
    color: var(--mb);

    /*text-decoration: underline;*/
  }
}

section.tab-section {
  scroll-margin-top: 200px;
}

section.tab-section:not(:target) {
  display: none;
}

tab-section.default {
  display: block;

  &:has(~ .tab-section:target) {
    display: none;
  }
}