/* ENITA series switcher: full-bleed three-cell editorial navigation. */

.product-series-page .series-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.product-series-page .series-switcher a,
.product-series-page .series-switcher a:nth-child(n) {
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  justify-content: flex-start;
  padding: 12px clamp(24px, 4.8vw, 78px);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: var(--ink);
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.product-series-page .series-switcher a:not(:last-child) {
  border-right: 1px solid var(--line);
}

.product-series-page .series-switcher a[aria-current="page"] {
  background: var(--paper);
  box-shadow: inset 0 -2px var(--moss);
  color: var(--ink);
}

.product-series-page .series-switcher a[aria-current="page"] span {
  color: var(--muted);
}

.product-series-page .series-switcher a:not([aria-current="page"]):is(:hover, :focus-visible) {
  background: rgba(168, 170, 167, 0.16);
}

@media (max-width: 640px) {
  .product-series-page .series-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: 0;
  }

  .product-series-page .series-switcher a,
  .product-series-page .series-switcher a:nth-child(n) {
    min-height: 72px;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 14px;
    border-top: 0;
    border-left: 0;
  }
}
