.tabs {
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}

.tabs__control {
  display: flex;
  column-gap: 24px;
  align-items: baseline;
  justify-content: space-between;
  cursor: pointer;
}
.tabs__control span {
  color: var(--primary-accent4);
  font-weight: 500;
  font-size: calc(16px - 2 * var(--window-resize));
  transition: color .3s ease;
}
.tabs__control:is(:hover, [data-tab-active="1"]) span {
  color: var(--primary-color);
}
.tabs__control .icon {
  --icon-size: 10px;
  --icon-fill: var(--primary-color);

  transform: rotate(90deg);
  transition: transform .3s ease;
}
.tabs__control[data-tab-active="1"] .icon {
  transform: rotate(0deg);
}

.tabs__contents {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin-top: -10px;
  max-height: 120px;

  @container medium (min-width: 0) {
    max-height: 100%;
  }
}
.tabs__contents[data-tab-active="1"] {
  display: block;
}