/* Music page only. Featured-song alignment and the about-the-music read-more. */

.page-intro ~ .band .band-narrow.prose {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.featured-song .featured-song-listen {
  margin-top: 0.25rem;
}

.read-more-body {
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .read-more.is-ready .read-more-body {
    transition: max-height 0.45s ease;
  }
}

.read-more.is-collapsed .read-more-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 20, 34, 0), var(--navy, #0c1422));
}

.read-more-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.read-more-toggle:hover {
  color: var(--ink);
}

/* v16.8: story-behind-the-song boxes on the All releases list only. */

.release-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Story + release card share one bordered container. */
.release-unit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 14, 24, 0.72);
  overflow: hidden;
}

.song-story-wrap {
  padding: 1rem 1.2rem 0.35rem;
  min-width: 0;
}

.song-story {
  margin: 0;
  min-width: 0;
}

.song-story summary {
  display: block;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.song-story summary::-webkit-details-marker,
.song-story summary::marker {
  display: none;
  content: "";
}

/* When open, the full passage is one block; "Show less" moves under it.
   This is CSS-only (grid row order) so it works without JavaScript. */
.song-story[open] {
  display: grid;
  grid-template-rows: auto auto;
}

.song-story[open] .story-full {
  grid-row: 1;
}

.song-story[open] summary {
  grid-row: 2;
}

.story-label {
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* Match site body copy: body uses clamp(1rem, .95rem + .2vw, 1.125rem) / 1.65
   and .prose p uses var(--ink-soft). Inherit so 1440 hits 1.125rem like the
   featured-song and "A Little About the Music" paragraphs. */
.story-teaser,
.story-full {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: break-word;
}

.song-story[open] .story-teaser,
.song-story[open] .story-toggle-open {
  display: none;
}

.story-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.song-story summary:hover .story-toggle {
  color: var(--ink);
}

.story-toggle-close {
  display: none;
}

.song-story[open] .story-toggle-close {
  display: flex;
}

.story-toggle::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.1em);
}

.song-story[open] .story-toggle::after {
  transform: rotate(225deg) translateY(-0.1em);
}

/* Card sits in the same unit; drop the second box border. */
.release-unit .post-card {
  min-width: 0;
}

.release-unit .post-card a {
  flex-direction: row;
  align-items: stretch;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.release-unit .post-card a:hover {
  background: #121a2b;
}

.release-unit .post-card picture {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  max-width: 42%;
  display: block;
  background: #090e18;
}

.release-unit .post-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #090e18;
}

.release-unit .post-body {
  min-width: 0;
  justify-content: center;
}

.release-unit .post-title {
  overflow-wrap: break-word;
}

@media (min-width: 45rem) {
  .release-unit .post-card picture {
    flex: 0 0 11rem;
    width: 11rem;
    max-width: 11rem;
  }
}

@media (min-width: 90rem) {
  .release-unit .post-card picture {
    flex: 0 0 13rem;
    width: 13rem;
    max-width: 13rem;
  }
}

/* Featured All Around Me: same story-box style, width-matched to the featured paragraph. */
.featured-song .featured-story {
  max-width: 40rem;
  margin: 0.15rem 0 1.15rem;
  padding: 1rem 1.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 14, 24, 0.72);
}

/* Reset .prose p margins/max-width so the box matches the list stories. */
.featured-song .featured-story .story-label,
.featured-song .featured-story .story-full {
  max-width: none;
}

.featured-song .featured-story .story-label {
  margin: 0 0 0.5rem;
}

.featured-song .featured-story .story-full {
  margin: 0;
}

