.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 Bar Container - for spacing tabs and report flag */
.tab-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}

.tab-bar-container .tab-bar {
  margin: 0;
}

/* Report a Problem Trigger */
.report-problem-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--mb-70, #B2B3AD);
  transition: color 0.6s ease;
  text-decoration: none;
}

.report-problem-trigger:hover {
  color: var(--mb, #3B3933);
}

.report-problem-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border-radius: 0;
}

.report-problem-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.015rem;
  text-transform: capitalize;
  color: inherit;

  /* Hidden state (initial) */
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: visible;
  margin-right: 0;
}

.report-problem-trigger:hover .report-problem-text {
  max-width: 200px;
  opacity: 1;
  margin-right: 8px;
}

.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;
}

/* Make tab-section fill available height when it has an empty state */
section.tab-section:has(.empty-state) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height) - 150px);
}

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

section.tab-section.default {
  display: block;

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