/* ═══════════════════════════════════════════════════
   CHAPLETS PAGE — chaplets.css
   Follows the established dark/light alternating pattern.
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.chap-hero {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.chap-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(42,60,120,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(123,29,29,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 15%, rgba(184,150,62,0.12) 0%, transparent 40%);
  z-index: 0;
}

.chap-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.chap-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.chap-hero-content .btn-primary {
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

/* ── INTRO ── light section ── */
.chap-intro-section {
  padding: 5rem 2rem;
  background: var(--ivory);
}
.chap-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 769px) {
  .chap-intro-grid { grid-template-columns: 3fr 2fr; gap: 4rem; }
}
.chap-intro-section p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Index card — mirrors rosary-day-guide / lectio-tradition-card */
.chap-index-card {
  background: var(--navy);
  padding: 2rem;
  border-top: 3px solid var(--gold);
}
.chap-index-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.chap-index-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chap-index-group { padding-bottom: 1.25rem; border-bottom: 1px solid rgba(184,150,62,0.15); }
.chap-index-group:last-child { border-bottom: none; padding-bottom: 0; }
.chap-index-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.chap-index-group ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.chap-index-group a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.chap-index-group a:hover { color: var(--gold-light); }

/* ── CHAPLET GUIDE ── dark section ── */
.chap-guide-section {
  padding: 5rem 2rem;
  background: var(--navy);
  color: white;
}
.chap-guide-section .section-title { color: var(--gold-light); }
.chap-guide-section .section-lead  { color: rgba(255,255,255,0.6); }
.chap-guide-section .section-divider {
  background: linear-gradient(to right, var(--gold), transparent);
}

/* Category filter tabs */
.chap-filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(184,150,62,0.15);
  margin-bottom: 3rem;
  overflow-x: auto;
}
.chap-filter-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 1.4rem;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chap-filter-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.chap-filter-btn:hover:not(.active) { color: rgba(255,255,255,0.75); }

/* Chaplet list */
.chap-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Individual chaplet entry */
.chap-entry {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,150,62,0.15);
  border-left: 4px solid var(--gold);
  transition: border-left-color 0.2s;
}
.chap-entry[data-category="marian"] { border-left-color: rgba(184,150,62,0.5); }
.chap-entry[data-category="saintly"] { border-left-color: rgba(184,150,62,0.35); }
.chap-entry
/* Entry header — always visible */
.chap-entry-header {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
}
.chap-entry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.chap-entry-category {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.chap-entry-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.chap-entry-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}
.chap-entry-toggle {
  width: 30px; height: 30px;
  border: 1px solid rgba(184,150,62,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.3s;
}
.chap-entry.open .chap-entry-toggle { transform: rotate(45deg); }

/* Entry body — collapsible */
.chap-entry-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s;
  padding: 0 2rem;
}
.chap-entry.open .chap-entry-body {
  max-height: 6000px;
  padding: 0 2rem 2rem;
}

/* Body layout */
.chap-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 769px) {
  .chap-body-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

/* Prayer text */
.chap-prayer-block {
  border-top: 1px solid rgba(184,150,62,0.15);
  padding-top: 1.5rem;
}
.chap-prayer-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.chap-prayer-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}
.chap-prayer-text .prayer-response {
  font-weight: 600;
  font-style: normal;
  color: var(--gold-pale);
}
.chap-prayer-text .prayer-section {
  font-style: normal;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  display: block;
  margin: 1rem 0 0.4rem;
}

/* Info sidebar */
.chap-info-block {
  border-top: 1px solid rgba(184,150,62,0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chap-info-card {
  background: rgba(255,255,255,0.03);
  border-top: 2px solid rgba(184,150,62,0.3);
  padding: 1.25rem;
}
.chap-info-card-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 0.5rem;
}
.chap-info-card p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.72;
  margin: 0;
}
.chap-beads-note {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(184,150,62,0.15);
  border-left: 2px solid rgba(184,150,62,0.4);
}
