/* ==========================================================================
   /css/the-record.css
   Page-specific styling for /the-record.html
   ========================================================================== */

body[data-page="the-record"] .main-grid {
  gap: 18px;
}

body[data-page="the-record"] .record-hero {
  margin-bottom: 20px;
}

body[data-page="the-record"] .hero-grid {
  align-items: stretch;
}

body[data-page="the-record"] .record-hero h1 > span:last-child {
  display: block;
  margin-top: 0.22em;
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  white-space: nowrap;
}

body[data-page="the-record"] .hero-copy {
  max-width: 67ch;
}

body[data-page="the-record"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body[data-page="the-record"] .hero-actions .cta-pill {
  min-width: 0;
  flex: 0 0 auto;
}

body[data-page="the-record"] .hero-actions .hero-record-pill .hero-pill-word,
body[data-page="the-record"] .hero-actions .hero-record-pill .hero-pill-dot {
  display: inline-block;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: middle;
}

body[data-page="the-record"] .hero-actions .hero-record-pill .hero-pill-word {
  color: var(--gold);
}

body[data-page="the-record"] .hero-actions .hero-record-pill .hero-pill-dot {
  color: #ffffff;
  margin: 0 0.02em;
}

body[data-page="the-record"] .section-card,
body[data-page="the-record"] .footer-card {
  scroll-margin-top: 108px;
}

body[data-page="the-record"] .section-head {
  margin-bottom: 20px;
}

body[data-page="the-record"] .record-grid-3,
body[data-page="the-record"] .entry-grid,
body[data-page="the-record"] .record-access-grid {
  align-items: stretch;
}

body[data-page="the-record"] .hero-panel .index-card,
body[data-page="the-record"] .hero-panel .quote-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body[data-page="the-record"] .hero-panel .index-card .index-label,
body[data-page="the-record"] .hero-panel .quote-card .quote-label {
  margin-bottom: 10px;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: none !important;
  color: var(--soft) !important;
}

body[data-page="the-record"] .hero-panel .index-card {
  overflow: hidden;
}

body[data-page="the-record"] .hero-panel .mini-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
}

body[data-page="the-record"] .hero-panel .mini-pills .mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 0 18px;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
}

body[data-page="the-record"] .hero-panel .mini-pills .mini-pill:nth-child(1),
body[data-page="the-record"] .hero-panel .mini-pills .mini-pill:nth-child(2),
body[data-page="the-record"] .hero-panel .mini-pills .mini-pill:nth-child(3),
body[data-page="the-record"] .hero-panel .mini-pills .mini-pill:nth-child(4) {
  grid-column: auto;
  justify-self: stretch;
  border-color: rgba(201, 162, 39, 0.72);
}

body[data-page="the-record"] .entry-note-lines {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

body[data-page="the-record"] .entry-note-text {
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

body[data-page="the-record"] .album-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record"] .album-structure-card {
  position: relative;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-page="the-record"] .album-structure-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), var(--phase-5), rgba(201, 162, 39, 0.18));
}

body[data-page="the-record"] .album-card-label,
body[data-page="the-record"] .record-access-label {
  margin-bottom: 10px;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

body[data-page="the-record"] .album-structure-card h3,
body[data-page="the-record"] .record-access-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

body[data-page="the-record"] .track-entry-card {
  position: relative;
  overflow: hidden;
}

body[data-page="the-record"] .track-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
}

body[data-page="the-record"] .track-entry-card[data-track="1"]::before {
  background: linear-gradient(90deg, rgba(99, 131, 114, 0.18), var(--phase-1), rgba(99, 131, 114, 0.18));
}

body[data-page="the-record"] .track-entry-card[data-track="2"]::before {
  background: linear-gradient(90deg, rgba(156, 45, 18, 0.18), var(--phase-2-readable), rgba(156, 45, 18, 0.18));
}

body[data-page="the-record"] .track-entry-card[data-track="3"]::before {
  background: linear-gradient(90deg, rgba(61, 86, 119, 0.18), var(--phase-3-readable), rgba(61, 86, 119, 0.18));
}

body[data-page="the-record"] .track-entry-card[data-track="4"]::before {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), var(--phase-5), rgba(201, 162, 39, 0.18));
}

body[data-page="the-record"] .record-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record"] .record-access-card {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-page="the-record"] .record-access-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}

body[data-page="the-record"] .record-card-record::before {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), var(--phase-5), rgba(201, 162, 39, 0.18));
}

body[data-page="the-record"] .record-card-albums::before {
  background: linear-gradient(90deg, rgba(125, 159, 203, 0.18), var(--phase-3-readable), rgba(125, 159, 203, 0.18));
}

body[data-page="the-record"] .record-card-tracks::before {
  background: linear-gradient(90deg, rgba(217, 106, 75, 0.18), var(--phase-2-readable), rgba(217, 106, 75, 0.18));
}

body[data-page="the-record"] .record-card-record:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.58);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2), 0 0 24px rgba(201, 162, 39, 0.16);
}

body[data-page="the-record"] .record-card-albums:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 86, 119, 0.5);
  box-shadow: 0 0 0 1px rgba(125, 159, 203, 0.2), 0 0 24px rgba(125, 159, 203, 0.16);
}

body[data-page="the-record"] .record-card-tracks:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 45, 18, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 106, 75, 0.2), 0 0 24px rgba(217, 106, 75, 0.16);
}

body[data-page="the-record"] .footer-label .gold-dot,
body[data-page="the-record"] .spine-nav .gold-dot {
  display: inline-block;
  margin-inline: 0.14em;
}

body[data-page="the-record"] .footer-card {
  margin-top: 20px;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip::before,
body[data-page="the-record"] .footer-card .spine-nav .phase-chip::after,
body[data-page="the-record"] .footer-card .spine-nav .phase-chip::marker {
  content: none !important;
  display: none !important;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip .chip-bullet {
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  margin-right: 0.5rem;
  flex: 0 0 auto;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip .chip-word,
body[data-page="the-record"] .footer-card .spine-nav .phase-chip .chip-dot {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip .chip-word {
  letter-spacing: 0.14em;
  color: currentColor;
}

body[data-page="the-record"] .footer-card .spine-nav .phase-chip .chip-dot {
  color: #ffffff;
  letter-spacing: 0;
  margin: 0 0.18em;
  padding: 0;
}

body[data-page="the-record"] .entry-card p:last-of-type,
body[data-page="the-record"] .index-card p:last-of-type,
body[data-page="the-record"] .album-structure-card p:last-of-type,
body[data-page="the-record"] .record-access-card p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  body[data-page="the-record"] .hero-grid,
  body[data-page="the-record"] .record-grid-3,
  body[data-page="the-record"] .entry-grid,
  body[data-page="the-record"] .record-access-grid,
  body[data-page="the-record"] .album-structure-grid {
    align-items: stretch;
  }

  body[data-page="the-record"] .album-structure-grid,
  body[data-page="the-record"] .record-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page="the-record"] .record-hero h1 > span:last-child {
    white-space: normal;
  }

  body[data-page="the-record"] .hero-panel .mini-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="the-record"] .record-hero {
    margin-bottom: 18px;
  }

  body[data-page="the-record"] .hero-actions {
    align-items: stretch;
  }

  body[data-page="the-record"] .hero-actions .cta-pill {
    width: 100%;
    min-width: 0;
  }
}