/* ============================================================
   THE PATH TO WATER — Components
   Ayah blocks, hadith blocks, barakah boxes, reflect boxes,
   note boxes, collapsibles, hadith footnotes
   ============================================================ */

/* ── Quran (Ayah) Block ── */
.ayah-block {
  background: var(--bg-aside);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ayah-block p {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.7;
}
.ayah-block .ayah-ref {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-lighter);
  letter-spacing: 0.03em;
}


/* ── Hadith Block ── */
.hadith-block {
  background: #fdfcfa;
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hadith-block p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.7;
}
.hadith-block .hadith-ref {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-lighter);
}


/* ── Barakah Stack Block ── */
.barakah-box {
  background: var(--bg-barakah);
  border: 1px solid #d4e5cf;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
}
.barakah-box .barakah-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}


/* ── Reflection Block ── */
.reflect-box {
  background: var(--gold-light);
  border: 1px solid #e8d9b4;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
}
.reflect-box .reflect-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent-warm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}


/* ── Note Box ── */
.note-box {
  background: #f8f6f2;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: var(--text-light);
}


/* ── Collapsible Details ── */
details {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
details summary {
  padding: 1rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--bg-section);
  transition: background 0.2s;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '\25B8';
  font-size: 0.85rem;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}
details[open] summary::before { transform: rotate(90deg); }
details summary:hover { background: var(--bg-aside); }
details .details-content {
  padding: 1rem 1.3rem 1.3rem;
  border-top: 1px solid var(--border-light);
}


/* ── Hadith Footnote References ── */
.hadith-fn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(45,106,79,0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-decoration: none;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
  transition: background 0.2s;
}
.hadith-fn:hover {
  background: rgba(45,106,79,0.18);
}


/* ── Quran Footnote References (gold) ── */
.quran-fn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(196,155,60,0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-decoration: none;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
  transition: background 0.2s;
}
.quran-fn:hover {
  background: rgba(196,155,60,0.18);
}
