/* V13 — soft curved paths instead of a rigid hierarchy bracket. */

.view-panel > .view-heading {
  min-height: 112px;
  border-top-color: rgba(134, 125, 107, .12);
  background:
    radial-gradient(42% 80% at 50% 6%, rgba(227, 169, 174, .075), transparent 72%);
}

.view-panel > .view-heading::before,
.lens-switch::before,
.series-switch::before,
.lens-switch button::before,
.series-switch button::before {
  display: none;
}

.branch-map {
  position: absolute;
  top: 0;
  left: 50%;
  height: 76px;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
}

.branch-map--three { width: min(660px, calc(100% - 36px)) !important; }
.branch-map--two { width: min(480px, calc(100% - 36px)) !important; }

.branch-map path {
  fill: none;
  stroke: rgba(134, 125, 107, .38);
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: path-reveal 720ms var(--expo) forwards;
}

.branch-map path:nth-of-type(2) { animation-delay: 70ms; }
.branch-map path:nth-of-type(3) { animation-delay: 120ms; }
.branch-map path:nth-of-type(4) { animation-delay: 170ms; }

.branch-map circle {
  fill: var(--pink);
  opacity: 0;
  animation: path-point 300ms ease 580ms forwards;
}

@keyframes path-reveal { to { stroke-dashoffset: 0; } }
@keyframes path-point { to { opacity: .72; } }

.lens-switch,
.series-switch {
  z-index: 1;
  padding-top: 56px;
}

.lens-switch {
  width: min(660px, calc(100% - 36px)) !important;
}

.series-switch {
  width: min(480px, calc(100% - 36px)) !important;
}

.lens-switch button,
.series-switch button {
  min-height: 55px;
  padding: 8px 10px 0;
  transition: color 260ms ease, transform 420ms var(--expo);
}

.lens-switch button:hover,
.series-switch button:hover,
.lens-switch button:focus-visible,
.series-switch button:focus-visible {
  transform: translateY(-2px);
}

.lens-switch button::after,
.series-switch button::after {
  right: calc(50% - 8px);
  left: calc(50% - 8px);
  height: 2px;
  border-radius: 999px;
  background: var(--pink-ink);
}

@media (prefers-reduced-motion: reduce) {
  .branch-map path { animation: none; stroke-dashoffset: 0; }
  .branch-map circle { animation: none; opacity: .72; }
}

@media (max-width: 760px) {
  .view-panel > .view-heading {
    min-height: 102px;
  }

  .branch-map--three,
  .lens-switch {
    width: calc(100% - 22px) !important;
  }

  .branch-map--two,
  .series-switch {
    width: min(330px, calc(100% - 36px)) !important;
  }

  .branch-map {
    height: 70px;
  }

  .lens-switch,
  .series-switch {
    padding-top: 52px;
  }

  .lens-switch button,
  .series-switch button {
    min-height: 50px;
    padding-inline: 4px;
  }
}
