/* ==========================================================================
   /css/the-record-index.css
   Page-specific styling for /the-record-index.html
   ========================================================================== */

body[data-page="the-record-index"] .main-grid {
  gap: 18px;
}

body[data-page="the-record-index"] .record-index-hero {
  margin-bottom: 20px;
}

body[data-page="the-record-index"] .hero-grid {
  align-items: stretch;
}

body[data-page="the-record-index"] .record-index-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body[data-page="the-record-index"] .record-index-hero h1 > span:last-child {
  display: block;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

body[data-page="the-record-index"] .hero-copy {
  max-width: 70ch;
}

body[data-page="the-record-index"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body[data-page="the-record-index"] .hero-actions .cta-pill {
  min-width: 0;
  flex: 0 0 auto;
}

body[data-page="the-record-index"] .hero-actions .hero-index-pill .hero-pill-word,
body[data-page="the-record-index"] .hero-actions .hero-index-pill .hero-pill-dot {
  display: inline-block;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: middle;
}

body[data-page="the-record-index"] .hero-actions .hero-index-pill .hero-pill-word {
  color: var(--gold);
}

body[data-page="the-record-index"] .hero-actions .hero-index-pill .hero-pill-dot {
  color: #ffffff;
  margin: 0 0.02em;
}

body[data-page="the-record-index"] .section-card,
body[data-page="the-record-index"] .footer-card {
  scroll-margin-top: 108px;
}

body[data-page="the-record-index"] .section-head {
  margin-bottom: 20px;
}

body[data-page="the-record-index"] .record-index-grid-3,
body[data-page="the-record-index"] .hero-panel,
body[data-page="the-record-index"] .entry-view-grid,
body[data-page="the-record-index"] .record-entry-grid {
  align-items: stretch;
}

body[data-page="the-record-index"] .hero-panel .index-card,
body[data-page="the-record-index"] .hero-panel .quote-card,
body[data-page="the-record-index"] .record-index-grid-3 .index-card,
body[data-page="the-record-index"] .entry-view-card,
body[data-page="the-record-index"] .record-entry-card {
  height: 100%;
}

body[data-page="the-record-index"] .hero-panel .index-card,
body[data-page="the-record-index"] .hero-panel .quote-card {
  display: flex;
  flex-direction: column;
}

body[data-page="the-record-index"] .hero-panel .index-card .index-label,
body[data-page="the-record-index"] .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-index"] .hero-panel .index-card {
  overflow: hidden;
}

body[data-page="the-record-index"] .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-index"] .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-index"] .hero-panel .mini-pills .mini-pill:nth-child(1),
body[data-page="the-record-index"] .hero-panel .mini-pills .mini-pill:nth-child(2),
body[data-page="the-record-index"] .hero-panel .mini-pills .mini-pill:nth-child(3),
body[data-page="the-record-index"] .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-index"] .entry-note-lines {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

body[data-page="the-record-index"] .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-index"] .album-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record-index"] .album-index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-page="the-record-index"] .album-index-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
}

body[data-page="the-record-index"] .album-card-record::before {
  background: linear-gradient(
    90deg,
    #ff5f6d 0%,
    #ffc371 18%,
    #fff27a 34%,
    #7bd389 50%,
    #6fb6ff 68%,
    #8b7cff 84%,
    #d96cff 100%
  );
}

body[data-page="the-record-index"] .album-card-phase-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-index"] .album-card-phase-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-index"] .album-card-phase-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-index"] .album-card-phase-4::before {
  background: linear-gradient(90deg, rgba(73, 29, 139, 0.18), var(--phase-4-readable), rgba(73, 29, 139, 0.18));
}

body[data-page="the-record-index"] .album-card-phase-5::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-index"] .album-index-card a,
body[data-page="the-record-index"] .album-index-card.record-card-record {
  text-decoration: none;
}

body[data-page="the-record-index"] .album-card-record {
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

body[data-page="the-record-index"] .album-card-record:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.72);
  box-shadow: var(--cta-shadow);
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="the-record-index"] .album-index-top,
body[data-page="the-record-index"] .track-index-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body[data-page="the-record-index"] .album-index-label,
body[data-page="the-record-index"] .track-index-label,
body[data-page="the-record-index"] .entry-view-label,
body[data-page="the-record-index"] .record-entry-label {
  margin: 0;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

body[data-page="the-record-index"] .album-index-tag,
body[data-page="the-record-index"] .track-index-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.08);
  color: #f2df9b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="the-record-index"] .album-index-card h3,
body[data-page="the-record-index"] .track-index-card h3,
body[data-page="the-record-index"] .entry-view-card h3,
body[data-page="the-record-index"] .record-entry-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

body[data-page="the-record-index"] .album-index-card p:last-of-type,
body[data-page="the-record-index"] .track-index-card p:last-of-type,
body[data-page="the-record-index"] .entry-view-card p:last-of-type,
body[data-page="the-record-index"] .record-entry-card p:last-of-type {
  margin-bottom: 0;
}

body[data-page="the-record-index"] .album-index-link,
body[data-page="the-record-index"] .track-index-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2df9b;
}

body[data-page="the-record-index"] .track-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record-index"] .track-index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-page="the-record-index"] .track-index-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 22px 22px 0 0;
}

body[data-page="the-record-index"] .track-card-all::before {
  background: linear-gradient(
    90deg,
    #ff5f6d 0%,
    #ffc371 18%,
    #fff27a 34%,
    #7bd389 50%,
    #6fb6ff 68%,
    #8b7cff 84%,
    #d96cff 100%
  );
}

body[data-page="the-record-index"] .track-card-phase-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-index"] .track-card-phase-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-index"] .track-card-phase-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-index"] .track-card-phase-4::before {
  background: linear-gradient(90deg, rgba(73, 29, 139, 0.18), var(--phase-4-readable), rgba(73, 29, 139, 0.18));
}

body[data-page="the-record-index"] .track-card-phase-5::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-index"] .track-card-all {
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

body[data-page="the-record-index"] .track-card-all:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.72);
  box-shadow: var(--cta-shadow);
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="the-record-index"] .entry-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record-index"] .entry-view-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-index"] .entry-view-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-index"] .record-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="the-record-index"] .record-entry-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;
  overflow: hidden;
}

body[data-page="the-record-index"] .record-entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 18px 18px 3px 3px;
}

body[data-page="the-record-index"] .record-entry-index::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-index"] .record-entry-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-index"] .record-entry-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-index"] .record-entry-card:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.72);
  box-shadow: var(--cta-shadow);
}

body[data-page="the-record-index"] .spine-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

body[data-page="the-record-index"] .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-index"] .footer-card .spine-nav .phase-chip::before,
body[data-page="the-record-index"] .footer-card .spine-nav .phase-chip::after,
body[data-page="the-record-index"] .footer-card .spine-nav .phase-chip::marker {
  content: none !important;
  display: none !important;
}

body[data-page="the-record-index"] .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-index"] .footer-card .spine-nav .phase-chip .chip-word,
body[data-page="the-record-index"] .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-index"] .footer-card .spine-nav .phase-chip .chip-word {
  letter-spacing: 0.14em;
  color: currentColor;
}

body[data-page="the-record-index"] .footer-card .spine-nav .phase-chip .chip-dot {
  color: #ffffff;
  letter-spacing: 0;
  margin: 0 0.18em;
  padding: 0;
}

@media (max-width: 1120px) {
  body[data-page="the-record-index"] .album-index-grid,
  body[data-page="the-record-index"] .track-index-grid,
  body[data-page="the-record-index"] .entry-view-grid,
  body[data-page="the-record-index"] .record-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="the-record-index"] .record-index-hero h1 > span:last-child {
    white-space: normal;
  }

  body[data-page="the-record-index"] .hero-actions,
  body[data-page="the-record-index"] .spine-nav {
    justify-content: flex-start;
  }

  body[data-page="the-record-index"] .hero-panel .mini-pills {
    grid-template-columns: 1fr;
  }

  body[data-page="the-record-index"] .album-index-top,
  body[data-page="the-record-index"] .track-index-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}