.tab-list {
  display: none;
}

.tab-panel {
  background: #fff;
  margin-block-start: .5rem;
  padding: 1rem 1.5rem;
}

.panel-header {
  cursor: pointer;
  position: relative;
  padding-right: 1rem;
}

.panel-header::after {
  content: "\002B";
  position: absolute;
  top: 0;
  right: 0;
}

.show-content .panel-header::after {
  content: "\2212";
}

.panel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-block-start 0.3s ease;
  margin-block-start: 0;
}

.show-content .panel-content {
  margin-block-start: 1.5rem;
}

@media (min-width: 782px) {
  .tab-container {
    position: relative;
  }

  .tab-menu {
    position: sticky;
    top: 5rem;
    align-self: flex-start;
  }

  .tab-list {
    display: block;
    padding-left: 1.3rem;
  }

  .tab-item {
    cursor: pointer;
    padding: 0 0 .5rem;
  }

  .tab-item::marker {
    color: transparent;
  }

  .tab-item.active {
    font-weight: 700;
  }

  .tab-item:hover::marker {
    color: inherit;
  }

  .tab-item.active::marker {
    color: #CD0000;
  }

  .tab-panel {
    display: none;
    pointer-events: none;
    padding: unset;
    background: unset;
    margin-block-start: unset;
  }

  .tab-panel.active {
    display: block;
    pointer-events: auto;
    margin-block-start: 0;
  }

  .panel-header {
    cursor: auto;
    display: none;
  }

  .panel-header::after, .show-content .panel-header::after {
    content: none;
  }

  .panel-content {
    max-height: unset !important;
    margin-block-start: 0;
  }
}