/* tabset styles */
.tabs {
  /* position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f6f7f7; */
  font-weight: bold;
  padding: 0;
  border-bottom: 2px solid;
  margin: 0 2px;
  overflow: hidden;
  display: flex;
}

.tabs > * {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  padding: 0.45em 0.8vw;
  margin: 10px 1px 0 0;
  outline: none !important;
  filter: saturate(0.25);
  transition: 0.2s;
  background-color: rgba(0, 0, 0, 0.1);
}

.mainpanel .tabs > * {
  padding-top: 0;
  padding-bottom: 0;
}

.tabs .tab-open {
  cursor: default;
  filter: saturate(1);
  background-color: #fff;
}

.tabs > * svg {
  opacity: 0.7;
}

.tabs .tab-open svg {
  opacity: 1;
}


.tabs .tab-header-small {
  padding-left: 2em;
  padding-right: 2em;
}

.tabs li:not(.tab-open):hover,
.tabs li:not(.tab-open):focus {
  opacity: 1;
  filter: saturate(1);
  background-color: rgba(255, 255, 255, 0.1);
}

.mainpanel .tabs {
  line-height: 0;
}

.tabs span {
  display: block;
}

.tabs svg {
  width: 4.5em;
  height: 3.5em;
  display: block;
  margin: 0 auto;
}

@media (max-width: 40em) {
  .tabs > * {
    flex-grow: 1;
    margin-top: 0;
  }
  .tabs svg {
    width: 3.5em;
  }
}

.tab-content {
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  max-height: 0;
  opacity: 0;
  /* transform: translateX(15px); */
  transition: 0.2s opacity, 0.2s transform;
}

.tab-content-main {
  padding: 0 2px 2px;
}

.tab-content-open {
  pointer-events: all;
  max-height: 1000em;
  overflow: visible;
  /* transform: translateX(0); */
  opacity: 1.0;
}

.settingstabs .tab-content-open {
  max-height: 0;
}


@media (min-height: 650px) {
  .tabs > * {
    padding-top: 0.9em;
    padding-bottom: 0.9em;
  }
}

.mainpanel .tab-header span span {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.1em;
  right: 0.1em;
  font-size: 0.8em;
  line-height: 1.2;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  text-shadow: 0 0 1em #fff;
  opacity: 0;
  transition: 0.2s;
}
.mainpanel .tab-header:hover span span
.mainpanel .tab-open span span {
  opacity: 0;
}