/* Platecraft Addons – filter tabs shared by widgets (Tabs kit): a row of tabs
   with an optional line under them (wave / zigzag mask, straight lines or
   the user's own image). */
.pl-tabhead {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: var(--pl-head-justify, flex-start);
  gap: 12px 24px;
  margin-bottom: var(--pl-head-space, 24px);
}
.pl-tabhead .pl-tabbar {
  display: flex;
  flex: var(--pl-tabs-grow, 0) 1 auto;
  flex-direction: column;
  width: var(--pl-tabs-w, auto);
  min-width: 0;
  max-width: 100%;
}
.pl-tabhead .pl-tabs {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-wrap: var(--pl-tabs-wrap, wrap);
  gap: var(--pl-tabs-gap, 8px);
  max-width: 100%;
  border: 0 solid transparent;
  box-shadow: var(--pl-tabs-bar-shadow, none);
  overflow-x: var(--pl-tabs-overflow, visible);
  /* "Scroll sideways" shows no scrollbar: swipe, trackpad or mouse wheel move the tabs. */
  scrollbar-width: none;
}
.pl-tabhead .pl-tabs::-webkit-scrollbar {
  display: none;
}
/* Stronger than theme button styles. */
.pl-tabhead .pl-tabs .pl-tab {
  flex: var(--pl-tab-grow, 0) 0 auto;
  margin: 0;
  padding: 6px 14px;
  border: 0 solid transparent;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: var(--pl-tab-shadow, none);
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pl-tabhead .pl-tabs .pl-tab:hover,
.pl-tabhead .pl-tabs .pl-tab:focus {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--pl-tab-shadow-h, var(--pl-tab-shadow, none));
  color: inherit;
}
.pl-tabhead .pl-tabs .pl-tab.is-active {
  background-color: #222;
  box-shadow: var(--pl-tab-active-shadow, var(--pl-tab-shadow, none));
  color: #fff;
}
.pl-tabhead .pl-tabs .pl-tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* The line: an element of its own, so the tab bar's padding or scrolling never hides it. */
.pl-tabhead .pl-line {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: var(--pl-line-h, 6px);
  margin-top: var(--pl-line-space, 8px);
  pointer-events: none;
}
.pl-tabhead .pl-line--row {
  flex: 0 0 100%;
  margin-top: calc(var(--pl-line-space, 8px) - 12px);
}
.pl-tabhead .pl-line--custom {
  flex-basis: var(--pl-line-w, 100%);
  width: var(--pl-line-w, 100%);
  max-width: 100%;
  margin-left: var(--pl-line-x, 0px);
}
.pl-tabhead .pl-line--wave,
.pl-tabhead .pl-line--zigzag {
  background-color: var(--pl-line-c, currentColor);
  -webkit-mask: var(--pl-line-shape) left center / var(--pl-line-len, 16px) 100% repeat-x;
  mask: var(--pl-line-shape) left center / var(--pl-line-len, 16px) 100% repeat-x;
}
.pl-tabhead .pl-line--solid,
.pl-tabhead .pl-line--dashed,
.pl-tabhead .pl-line--dotted,
.pl-tabhead .pl-line--double {
  height: 0;
  border-top: var(--pl-line-h, 2px) solid var(--pl-line-c, currentColor);
}
.pl-tabhead .pl-line--dashed { border-top-style: dashed; }
.pl-tabhead .pl-line--dotted { border-top-style: dotted; }
.pl-tabhead .pl-line--double { border-top-style: double; border-top-width: max(3px, var(--pl-line-h, 4px)); }
.pl-tabhead .pl-line--image {
  height: var(--pl-line-h, 10px);
  background-image: var(--pl-line-img, none);
  background-position: left center;
  background-repeat: var(--pl-line-repeat, repeat-x);
  background-size: var(--pl-line-bgsize, auto 100%);
}
