/* Tabbed content */
i-tabbed-content,
i-tabs,
i-tab-panel{
  display: block;
}

/* Tab list */
i-tabs ul{
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: inset 0px -1px 0px rgba(var(--theme-text_light), .2);
  overflow: auto;
}
i-tabs li{
  flex: 0 0 auto;
}
/* Tabs */
i-tabs button{
  all: unset;
  display: block;
  font-size: clamp(1em, 3.3vw, 20px) !important;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  color: rgb(var(--theme-text_dark));
  padding: .7em .8em;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
i-tabs button:not(:hover, [data-active]){
  color: rgb(var(--theme-text_light));
}
/* Active/hover */
i-tabs [data-active]{
  color: rgb(var(--theme-brand_primary));
  border-color: rgb(var(--theme-brand_primary));
}
i-tabs button:hover{
  border-color: currentColor;
}
/* Hide inactive tab panels */
i-tab-panel:not([data-active]){
  display: none;
}

/* Remove widget titles from tabbed content */
i-tab-panel .ipsWidget_title{
  display: none;
}

/* Full width tabs on small screens */
@media (max-width: 600px){
  i-tabs li{
    flex-grow: 1;
  }
}