/* Local Testimony album-view review: music-library hierarchy with per-song controls. */
@media (width > 760px) {
  body[data-page="testimony"] .testimony-chapter {
    display: grid;
    grid-template-columns: clamp(17rem, 25vw, 21rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(1.75rem, 3vw, 3rem);
    padding: clamp(1.25rem, 2.5vw, 2rem);
  }

  body[data-page="testimony"] .testimony-chapter .song-album-header {
    grid-column: 1;
    grid-row: 1;
    border: 0;
    padding: 0;
  }

  body[data-page="testimony"] .testimony-chapter .testimony-release-header {
    display: block;
  }

  body[data-page="testimony"] .testimony-release-header .song-album-art {
    width: 100%;
    box-shadow: 0 1.1rem 2.5rem #11131a2b;
  }

  body[data-page="testimony"] .testimony-chapter-summary {
    display: block;
    margin-top: 1.15rem;
  }

  body[data-page="testimony"] .testimony-chapter-summary .root-kicker {
    margin-bottom: 0.35rem;
    text-align: left;
  }

  body[data-page="testimony"] .testimony-chapter-summary > strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.8rem);
  }

  body[data-page="testimony"] .testimony-chapter-summary .song-album-status {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
  }

  body[data-page="testimony"] .testimony-chapter > .song-album-copy {
    grid-column: 1;
    grid-row: 2;
    border: 0;
    padding: 0.8rem 0 0;
  }

  body[data-page="testimony"] .testimony-chapter > .song-index-list {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }
}

body[data-page="testimony"] .testimony-chapter .song-index-list {
  min-width: 0;
  border-top: 1px solid var(--fs-line);
}

body[data-page="testimony"] .song-album-movement {
  margin-top: 1.35rem;
}

body[data-page="testimony"] .song-album-movement > strong {
  display: block;
  margin-bottom: 0.45rem;
}

body[data-page="testimony"] .song-album-movement ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: album-movement;
}

body[data-page="testimony"] .song-album-movement li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.25rem 0;
  border-top: 1px solid var(--fs-line);
  counter-increment: album-movement;
}

body[data-page="testimony"] .song-album-movement li::before {
  content: counter(album-movement, decimal-leading-zero);
  color: var(--fs-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-page="testimony"] .testimony-chapter .song-index-link {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.7rem;
  min-height: 4.7rem;
  padding: 0.65rem 0.25rem;
  background: transparent;
  font-family: inherit;
}

body[data-page="testimony"] .testimony-chapter .song-row-art {
  display: none;
}

body[data-page="testimony"] .testimony-chapter :is(.song-row-copy, .song-row-meta) {
  display: contents;
}

body[data-page="testimony"] .testimony-chapter .song-row-number {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--fs-muted);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

body[data-page="testimony"] .testimony-chapter .song-row-copy small {
  display: none;
}

body[data-page="testimony"] .testimony-chapter .song-row-copy h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

body[data-page="testimony"] .testimony-chapter .song-row-copy h4 a {
  color: var(--fs-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="testimony"] .testimony-chapter .song-row-summary {
  grid-column: 2;
  grid-row: 2;
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--fs-muted);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="testimony"] .testimony-chapter .song-row-duration {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  min-width: 0;
  color: var(--fs-muted);
  font-size: 0.72rem;
}

body[data-page="testimony"] .testimony-chapter .song-row-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  gap: 0.2rem;
}

body[data-page="testimony"] .testimony-chapter :is(.song-row-favorite, .song-row-play, .song-row-download, .song-row-context) {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
}

body[data-page="testimony"] .testimony-chapter :is(.song-row-favorite, .song-row-play, .song-row-download, .song-row-context):is(:hover, :focus-visible),
body[data-page="testimony"] .testimony-chapter .song-row-favorite[aria-pressed="true"] {
  background: color-mix(in srgb, var(--fs-red) 12%, transparent);
  color: var(--fs-red);
}

@media (width <= 760px) {
  body[data-page="testimony"] .testimony-chapter {
    display: block;
    border-inline: 0;
  }

  body[data-page="testimony"] .testimony-chapter .song-album-header {
    border: 0;
    padding: 1rem;
  }

  body[data-page="testimony"] .testimony-chapter .testimony-release-header {
    display: block;
  }

  body[data-page="testimony"] .testimony-release-header .song-album-art {
    width: min(100%, 22rem);
    margin-inline: auto;
    box-shadow: 0 1rem 2.25rem #11131a2b;
  }

  body[data-page="testimony"] .testimony-chapter-summary {
    display: block;
    margin-top: 1rem;
  }

  body[data-page="testimony"] .testimony-chapter-summary .root-kicker {
    max-width: none;
    margin-bottom: 0.3rem;
    text-align: left;
  }

  body[data-page="testimony"] .testimony-chapter-summary > strong {
    display: block;
    font-size: 2rem;
  }

  body[data-page="testimony"] .testimony-chapter-summary .song-album-status {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.76rem;
  }

  body[data-page="testimony"] .testimony-chapter > .song-album-copy {
    border: 0;
    padding: 0 1rem 1.2rem;
  }

  body[data-page="testimony"] .testimony-chapter > .song-album-copy :is(.song-album-subtitle, .song-album-description) {
    font-size: 1rem;
    line-height: 1.45;
  }

  body[data-page="testimony"] .testimony-chapter .song-index-link {
    grid-template-columns: 1.8rem minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.18rem 0.45rem;
    min-height: 4.45rem;
    padding: 0.58rem 0.45rem;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-number {
    font-size: 0.9rem;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-copy h4 a {
    font-size: 0.93rem;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-summary {
    font-size: 0.76rem;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-duration {
    display: none;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-actions {
    grid-row: 1 / span 2;
    align-self: center;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-actions > * {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-actions :is(span, b) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-play::before {
    content: "▶";
    font-size: 0.8rem;
  }

  body[data-page="testimony"] .testimony-chapter .song-row-download::before {
    content: "↓";
    font-size: 1.15rem;
    font-weight: 900;
  }
}
/* Album browser: compact section tabs and artwork-first release cards. */
body[data-page="testimony"] .testimony-album-navigator {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 0;
  overflow: hidden;
  border-top: 3px solid var(--fs-red);
  background: transparent;
  color: var(--fs-ink);
}

body[data-page="testimony"] .testimony-album-navigator-heading {
  padding: 0.75rem 0 0.55rem;
}

body[data-page="testimony"] .testimony-album-navigator-heading .root-kicker {
  color: var(--fs-red);
}

body[data-page="testimony"] .testimony-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
}

body[data-page="testimony"] .testimony-lane {
  display: contents;
}

body[data-page="testimony"] .testimony-lane + .testimony-lane {
  border: 0;
}

body[data-page="testimony"] .testimony-lane > summary {
  order: 1;
  flex: 1 1 10rem;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--fs-line);
  background: var(--fs-surface);
  color: var(--fs-ink);
}

body[data-page="testimony"] .testimony-lane > summary strong {
  color: inherit;
  font-size: 0.9rem;
}

body[data-page="testimony"] .testimony-lane > summary small {
  display: none;
}

body[data-page="testimony"] .testimony-lane > summary::after {
  color: var(--fs-red);
}

body[data-page="testimony"] .testimony-lane[open] > summary {
  border-color: var(--fs-red);
  box-shadow: inset 0 -3px 0 var(--fs-red);
}

body[data-page="testimony"] .testimony-lane-description {
  order: 2;
  flex: 1 0 100%;
  max-width: 64rem;
  margin: 0;
  padding: 0.8rem 0 0.65rem;
  color: var(--fs-muted);
  font-size: 0.86rem;
}

body[data-page="testimony"] .testimony-album-rail {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
}

body[data-page="testimony"] .testimony-album-choice {
  flex: 0 0 clamp(9.5rem, 15vw, 12rem);
  display: block;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fs-line);
  border-left: 1px solid var(--fs-line);
  background: var(--fs-surface);
  color: var(--fs-ink);
}

body[data-page="testimony"] .testimony-choice-art,
body[data-page="testimony"] .testimony-album-choice img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

body[data-page="testimony"] .testimony-album-choice > span:last-child {
  min-width: 0;
  padding: 0.65rem;
}

body[data-page="testimony"] .testimony-album-choice strong {
  color: inherit;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

body[data-page="testimony"] .testimony-album-choice small {
  color: var(--fs-muted);
  font-size: 0.72rem;
}

body[data-page="testimony"] .testimony-album-choice[aria-pressed="true"] {
  border-color: var(--fs-red);
  border-left-color: var(--fs-red);
  background: var(--fs-surface);
  color: var(--fs-ink);
  box-shadow: inset 0 -3px 0 var(--fs-red);
}

body[data-page="testimony"] .testimony-album-choice[aria-pressed="true"] :is(strong, small) {
  color: inherit;
}

@media (width <= 760px) {
  body[data-page="testimony"] .testimony-lane > summary {
    flex-basis: calc(50% - 0.2rem);
  }

  body[data-page="testimony"] .testimony-lane-description {
    display: none;
  }

  body[data-page="testimony"] .testimony-album-choice {
    flex-basis: 9.25rem;
  }
}

body[data-page="testimony"] .testimony-lanes[role="tablist"] {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
  padding-bottom: 0.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  scrollbar-width: none;
}

body[data-page="testimony"] .testimony-lanes[role="tablist"]::-webkit-scrollbar {
  display: none;
}

body[data-page="testimony"] [data-testimony-lane-tab] {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--fs-line);
  background: var(--fs-surface);
  color: var(--fs-ink);
  padding: 0.55rem 0.8rem;
  font: 800 0.78rem/1.1 inherit;
  text-transform: uppercase;
  cursor: pointer;
}

body[data-page="testimony"] [data-testimony-lane-tab][aria-selected="true"] {
  border-color: var(--fs-red);
  box-shadow: inset 0 -3px 0 var(--fs-red);
  color: var(--fs-red);
}

body[data-page="testimony"] .testimony-lane-panels,
body[data-page="testimony"] .testimony-lane-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body[data-page="testimony"] .testimony-lane-panel[hidden] {
  display: none;
}

body[data-page="testimony"] .testimony-lane-panel .testimony-album-rail {
  padding-top: 0;
}

/* Invitation into the testimony; the album and track presentation below is unchanged. */
body[data-page="testimony"] .testimony-invitation {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(20rem, 1.18fr);
  gap: 1rem clamp(2rem, 6vw, 6rem);
  max-width: none;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--fs-line);
}

body[data-page="testimony"] .testimony-invitation > .root-kicker {
  grid-column: 1 / -1;
  margin: 0 0 0.4rem;
}

body[data-page="testimony"] .testimony-invitation h2 {
  grid-column: 1;
  grid-row: 2 / span 3;
  max-width: 9ch;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
}

body[data-page="testimony"] .testimony-invitation-testimony {
  grid-column: 2;
  max-width: 46rem;
}

body[data-page="testimony"] .testimony-invitation-testimony p {
  margin: 0;
  font-family: FS Serif, Georgia, serif;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.58;
}

body[data-page="testimony"] .testimony-invitation-testimony p + p {
  margin-top: 1.15rem;
}

@media (width <= 760px) {
  body[data-page="testimony"] .testimony-invitation {
    display: block;
    padding-bottom: 2.5rem;
  }

  body[data-page="testimony"] .testimony-invitation h2 {
    max-width: 9ch;
    margin-top: 0.65rem;
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  body[data-page="testimony"] .testimony-invitation-testimony {
    margin-top: 1.5rem;
  }
}
