/* ==========================================================
   LYRICS HALL — ARCHIVIST BANNER + MANUSCRIPT DIRECTORY FIX
   Load after style.css on lyrics.html only.
   ========================================================== */

/* ---------------------------------
   "Blank does not mean empty" card
   --------------------------------- */

.lyrics-page .lyrics-warning-card,
.lyrics-page .warning-card.lyrics-thin-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: 4.1rem minmax(0, 1fr) !important;
  grid-template-areas:
    "symbol copy" !important;
  align-items: center !important;
  gap: clamp(1rem, 2.4vw, 1.45rem) !important;
  min-height: 0 !important;
  padding: clamp(1.4rem, 3vw, 2.05rem) !important;
  color: #fff5e9 !important;
  background:
    radial-gradient(
      circle at 15% 24%,
      rgba(226, 82, 122, 0.15),
      transparent 16rem
    ),
    radial-gradient(
      circle at 83% 74%,
      rgba(50, 3, 20, 0.44),
      transparent 21rem
    ),
    linear-gradient(
      145deg,
      #8b173b 0%,
      #67102f 48%,
      #48091f 100%
    ) !important;
  border: 1px solid rgba(78, 9, 33, 0.78) !important;
  border-radius: 1.25rem 1.25rem 2rem 1.25rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 216, 0.11),
    inset 0 -16px 30px rgba(34, 2, 14, 0.22),
    0 18px 45px rgba(87, 21, 43, 0.17) !important;
}

.lyrics-page .lyrics-warning-card::before,
.lyrics-page .warning-card.lyrics-thin-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.62rem;
  pointer-events: none;
  border: 1px solid rgba(255, 226, 214, 0.08);
  border-radius: 0.9rem 0.9rem 1.55rem 0.9rem;
}

.lyrics-page .lyrics-warning-card::after,
.lyrics-page .warning-card.lyrics-thin-banner::after {
  content: "✎";
  position: absolute;
  z-index: -1;
  right: 1.2rem;
  bottom: -2.2rem;
  color: rgba(255, 222, 220, 0.045);
  font-family: Georgia, serif;
  font-size: clamp(7rem, 18vw, 11rem);
  line-height: 1;
  transform: rotate(-12deg);
  pointer-events: none;
}

.lyrics-page .lyrics-warning-card > .warning-symbol,
.lyrics-page .warning-card.lyrics-thin-banner > .warning-symbol {
  grid-area: symbol;
  align-self: start;
  width: 4.1rem !important;
  height: 4.1rem !important;
  margin: 0 !important;
  color: #e3b14e !important;
  background:
    radial-gradient(
      circle at 36% 30%,
      rgba(255, 224, 151, 0.08),
      transparent 48%
    ),
    rgba(67, 5, 26, 0.17) !important;
  border-color: rgba(228, 177, 78, 0.62) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 195, 0.035),
    0 5px 12px rgba(34, 2, 13, 0.16) !important;
  font-size: 1.7rem !important;
}

.lyrics-page .lyrics-warning-card > div,
.lyrics-page .warning-card.lyrics-thin-banner > div {
  grid-area: copy;
  min-width: 0;
}

.lyrics-page .lyrics-warning-card .eyebrow,
.lyrics-page .warning-card.lyrics-thin-banner .eyebrow {
  margin: 0 0 0.45rem !important;
  color: rgba(255, 205, 217, 0.82) !important;
}

.lyrics-page .lyrics-warning-card h2,
.lyrics-page .warning-card.lyrics-thin-banner h2 {
  max-width: 15ch;
  margin: 0 !important;
  color: #fff5e8 !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem) !important;
  line-height: 0.99 !important;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(58, 3, 22, 0.42),
    0 6px 16px rgba(33, 2, 13, 0.18);
}

.lyrics-page .lyrics-warning-card p:not(.eyebrow),
.lyrics-page .warning-card.lyrics-thin-banner p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1rem 0 0 !important;
  padding-top: 0.95rem;
  color: rgba(255, 242, 232, 0.89) !important;
  border-top: 1px solid rgba(255, 228, 217, 0.16);
  font-family: Georgia, serif !important;
  font-size: clamp(0.92rem, 1.35vw, 1.03rem) !important;
  line-height: 1.7 !important;
  text-wrap: pretty;
}

/* Support a version where the paragraph is a direct third child. */
.lyrics-page .lyrics-warning-card > p:not(.eyebrow),
.lyrics-page .warning-card.lyrics-thin-banner > p:not(.eyebrow) {
  grid-column: 2 !important;
  margin-top: 0 !important;
}

/* ---------------------------------
   Manuscript directory arrangement
   --------------------------------- */

.lyrics-page .lyrics-index-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 0.9rem !important;
}

/* The finished manuscript gets its own little featured shelf. */
.lyrics-page .lyrics-index-grid > .lyric-index-card:first-of-type {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 29rem);
  min-height: 8.8rem;
  border-left: 0.28rem solid rgba(200, 150, 75, 0.7);
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 216, 229, 0.52),
      transparent 8rem
    ),
    rgba(255, 246, 237, 0.92);
  box-shadow:
    5px 6px 0 rgba(76, 22, 41, 0.07),
    0 12px 25px rgba(96, 38, 54, 0.08);
}

.lyrics-page .lyrics-index-grid > .lyric-index-card:first-of-type::after {
  content: "featured manuscript";
  position: absolute;
  top: 0.78rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.48rem;
  color: #8f2747;
  background: rgba(255, 225, 233, 0.82);
  border: 1px solid rgba(157, 36, 63, 0.18);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Replace the confusing loose text with a clear shelf divider. */
.lyrics-page .lyrics-directory-divider {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.55rem, 1.5vw, 0.9rem);
  width: 100%;
  margin: 0.25rem 0 0.05rem !important;
  padding: 0.8rem 1rem !important;
  color: var(--ink-soft);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 228, 234, 0.42) 18%,
      rgba(255, 244, 238, 0.7) 50%,
      rgba(255, 228, 234, 0.42) 82%,
      transparent
    );
  border: 0 !important;
  font-size: 0.61rem !important;
  letter-spacing: 0.075em !important;
  line-height: 1.4;
  text-transform: uppercase;
}

.lyrics-page .lyrics-directory-divider::before {
  content: "♡";
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #a52d50;
  background: #fff1ed;
  border: 1px solid rgba(157, 36, 63, 0.22);
  border-radius: 50%;
  box-shadow:
    0 2px 0 rgba(200, 150, 75, 0.18),
    0 4px 10px rgba(83, 27, 44, 0.08);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.lyrics-page .lyrics-directory-divider::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 1.25rem;
  right: 1.25rem;
  top: 50%;
  border-top: 1px dashed rgba(157, 36, 63, 0.27);
}

.lyrics-page .lyrics-directory-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.62rem;
  color: #773046 !important;
  background: rgba(255, 248, 242, 0.96);
  border: 1px solid rgba(157, 36, 63, 0.14);
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(200, 150, 75, 0.11);
  white-space: normal;
}

.lyrics-page .lyrics-directory-divider span:first-child {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.lyrics-page .lyrics-directory-divider span:first-child::before {
  content: "↑";
  margin-right: 0.38rem;
  color: #b23b5d;
  font-size: 0.8rem;
}

.lyrics-page .lyrics-directory-divider span:last-child {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left !important;
}

.lyrics-page .lyrics-directory-divider span:last-child::after {
  content: "↓";
  margin-left: 0.38rem;
  color: #b23b5d;
  font-size: 0.8rem;
}

/* Clear visual division between the title and manuscript status on every card. */
.lyrics-page .lyric-index-card {
  min-width: 0;
  padding: 1rem 1rem 0.92rem !important;
}

.lyrics-page .lyric-index-card strong {
  overflow-wrap: anywhere;
}

.lyrics-page .lyric-index-card small {
  display: block;
  margin-top: 0.7rem !important;
  padding-top: 0.62rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(157, 36, 63, 0.22);
  line-height: 1.45;
}

.lyrics-page .lyric-index-card small::before {
  content: "✦";
  margin-right: 0.35rem;
  color: rgba(172, 54, 86, 0.65);
  font-size: 0.55rem;
}

/* Softer folded-paper corner. */
.lyrics-page .lyric-index-card::before {
  top: -2.45rem !important;
  right: -2.45rem !important;
  width: 5rem !important;
  height: 5rem !important;
  background:
    radial-gradient(
      circle at 72% 72%,
      rgba(255, 218, 228, 0.36),
      transparent 56%
    );
  border-color: rgba(157, 36, 63, 0.13) !important;
}

@media (max-width: 920px) {
  .lyrics-page .lyrics-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .lyrics-page .lyrics-warning-card,
  .lyrics-page .warning-card.lyrics-thin-banner {
    grid-template-columns: 3.55rem minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    padding: 1.2rem !important;
  }

  .lyrics-page .lyrics-warning-card > .warning-symbol,
  .lyrics-page .warning-card.lyrics-thin-banner > .warning-symbol {
    display: grid !important;
    width: 3.55rem !important;
    height: 3.55rem !important;
    font-size: 1.45rem !important;
  }

  .lyrics-page .lyrics-warning-card h2,
  .lyrics-page .warning-card.lyrics-thin-banner h2 {
    max-width: none;
    font-size: clamp(1.65rem, 9vw, 2.3rem) !important;
  }

  .lyrics-page .lyrics-warning-card p:not(.eyebrow),
  .lyrics-page .warning-card.lyrics-thin-banner p:not(.eyebrow) {
    grid-column: 1 / -1 !important;
    margin-top: 0.8rem !important;
  }

  .lyrics-page .lyrics-index-grid {
    grid-template-columns: 1fr !important;
  }

  .lyrics-page .lyrics-index-grid > .lyric-index-card:first-of-type {
    width: 100%;
  }

  .lyrics-page .lyrics-directory-divider {
    grid-template-columns: 1fr auto;
    padding-inline: 0 !important;
  }

  .lyrics-page .lyrics-directory-divider::before {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .lyrics-page .lyrics-directory-divider span:first-child,
  .lyrics-page .lyrics-directory-divider span:last-child {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    text-align: left !important;
  }

  .lyrics-page .lyrics-directory-divider span:first-child {
    grid-row: 1;
  }

  .lyrics-page .lyrics-directory-divider span:last-child {
    grid-row: 2;
  }

  .lyrics-page .lyrics-directory-divider::after {
    display: none;
  }
}
