/* Vertical path screens — one person per scroll page, full timeline always visible */

.vpath-screen h2 {
  margin-bottom: 14px;
}

.vpath-screen h2 em {
  display: inline;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
}

.vpath-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

.vpath-intro {
  display: grid;
  gap: 12px;
  align-content: start;
  position: sticky;
  top: 0;
}

.vpath-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.vpath-intro .story-points {
  border-top: 1px solid var(--line);
}

.vpath-intro .story-points span {
  padding: 10px 0;
  font-size: 13px;
}

.vpath-side-photo {
  position: relative;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0a1628;
  max-height: 168px;
}

.vpath-side-photo img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.vpath-side-photo figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  background: rgba(8, 25, 45, 0.8);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: 9px;
}

.vpath-scroll-cue {
  margin: 8px 0 0;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.vpath-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.vpath-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.vpath-axis {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vpath-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(196, 40, 69, 0.12);
  flex: 0 0 auto;
  margin-top: 6px;
}

.vpath-line {
  flex: 1;
  width: 2px;
  min-height: 24px;
  margin-top: 6px;
  background: linear-gradient(
    180deg,
    rgba(196, 40, 69, 0.45),
    rgba(26, 74, 122, 0.2)
  );
}

.vpath-step:last-child .vpath-line {
  display: none;
}

.vpath-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 21, 37, 0.04);
}

.vpath-meta {
  display: grid;
  gap: 4px;
  align-content: start;
}

.vpath-index {
  color: var(--red);
  font-family: "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.vpath-year {
  display: block;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.vpath-body {
  min-width: 0;
}

.vpath-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.vpath-text {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.vpath-photo {
  margin: 0;
  width: 120px;
  height: 84px;
  overflow: hidden;
  border-radius: 6px;
  background: #0a1628;
  justify-self: end;
}

.vpath-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Song path: more photo presence */
.vpath-song .vpath-photo {
  width: 132px;
  height: 92px;
}

.vpath-soft .vpath-card,
.screen.soft .vpath-card {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .vpath-layout {
    grid-template-columns: 1fr;
  }

  .vpath-intro {
    position: static;
  }

  .vpath-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .vpath-photo {
    grid-column: 1 / -1;
    width: 100%;
    height: 140px;
    justify-self: stretch;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  body.deck-live .vpath-screen {
    padding-top: calc(var(--header-height) + 8px);
    padding-bottom: 18px;
  }

  .vpath-screen h2 {
    margin-bottom: 4px;
    font-size: clamp(28px, 4.6vh, 42px);
  }

  .vpath-intro {
    gap: 8px;
  }

  .vpath-summary {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .vpath-side-photo,
  .vpath-side-photo img {
    max-height: 120px;
    height: 120px;
  }

  .vpath-card {
    margin-bottom: 4px;
    padding: 6px 10px;
    gap: 8px 12px;
  }

  .vpath-title {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .vpath-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .vpath-photo {
    width: 100px;
    height: 70px;
  }

  .vpath-intro .story-points span {
    padding: 4px 0;
    font-size: 12px;
  }

  .vpath-scroll-cue {
    display: none;
  }
}
