/* ==========================================================
   QUOTE SYSTEM — FINAL
   ----------------------------------------------------------
   Supports:
   • .quote-ref   (legacy / current usage)
   • .qs-quote    (new inline quote)
   • .qs-side     (side citation)
   • footnotes
   ----------------------------------------------------------
   Theme + night compatible via CSS variables
   ========================================================== */


/* ==========================================================
   VARIABLE FALLBACKS (SAFE)
========================================================== */
:root {
  --qs-bg: #ffffff;
  --qs-border: #cccccc;
  --qs-text: #222222;
  --qs-ref: #666666;
}


/* ==========================================================
   BASE BLOCKQUOTE RESET
========================================================== */
blockquote {
  margin: 0;
  padding: 0;
	
}


/* ==========================================================
   INLINE QUOTE (NEW SYSTEM)
   <blockquote class="qs-quote">
========================================================== */
.qs-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--qs-bg);
  border-left: 0px solid var(--qs-border);
  color: var(--qs-text);
}

.qs-quote p {
  margin: 0;
	 font-size: 1.2em;
  font-style: italic;
  line-height: 1.7;
}

/* Citation — ALWAYS RIGHT */
.qs-quote > cite {
  display: block;
  width: 100%;
  margin-top: 1rem;
  text-align: right !important;
  font-size: 0.78em;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.85;
  font-style: normal;
}

.qs-quote cite time,
.qs-quote cite span {
  display: block;
  font-size: 0.95em;
}


/* ==========================================================
   INLINE QUOTE (LEGACY SUPPORT)
   <blockquote class="quote-ref">
========================================================== */
blockquote.quote-ref {
 margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--qs-bg);
  border-left: 0px solid var(--qs-border);
  color: var(--qs-text);
	
}

blockquote.quote-ref p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
	
}

/* Citation — GUARANTEED RIGHT */
blockquote.quote-ref > cite {
  display: block !important;
  width: 100%;
  margin-top: 1rem;
  text-align: right !important;
  font-size: 0.78em;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.85;
  font-style: normal;
}

blockquote.quote-ref cite time,
blockquote.quote-ref cite span {
  display: block;
  font-size: 0.95em;
}


/* ==========================================================
   SIDE REFERENCE QUOTE
   <div class="qs-side">
========================================================== */
.qs-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin: 2rem 0;
}

.qs-side blockquote {
  margin: 0;
  padding-left: 1.25rem;
  background: var(--qs-bg);
  border-left: 4px solid var(--qs-border);
  color: var(--qs-text);
}

.qs-side blockquote p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}

/* Side citation */
.qs-ref {
  max-width: 180px;
  font-size: 0.75em;
  line-height: 1.35;
  color: var(--qs-ref);
  text-align: right !important;
  align-self: end;
  justify-self: end;
  opacity: 0.9;
}

/* Mobile stacking */
@media (max-width: 640px) {
  .qs-side {
    grid-template-columns: 1fr;
  }
  .qs-ref {
    text-align: left !important;
    justify-self: start;
    margin-top: 0.75rem;
  }
}


/* ==========================================================
   FOOTNOTE STYLE QUOTES
========================================================== */
.qs-footnote-text {
  font-style: italic;
}

.qs-footnote-text sup {
  font-size: 0.7rem;
  vertical-align: super;
}

.qs-footnotes {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--qs-ref);
}

.qs-footnotes ol {
  padding-left: 1.25rem;
}

.qs-footnotes li {
  margin-bottom: 0.5rem;
}


/* ==========================================================
   OPTIONAL — SUBTLE DIVINE SEPARATOR
========================================================== */
.qs-quote cite::before,
blockquote.quote-ref cite::before {
  content: "— ";
  opacity: 0.6;
}
/* ==========================================================
   CENTERED DEVOTIONAL QUOTE
   ----------------------------------------------------------
   For prayerful / mantric quotations
========================================================== */

.quote-devotional {
  text-align: center;
  border-left: none;
  border-top: 2px solid var(--qs-border);
  border-bottom: 2px solid var(--qs-border);
  padding: 2.25rem 2rem;
  background: color-mix(in srgb, var(--qs-bg) 92%, transparent);
}

/* Quote text */
.quote-devotional p {
  font-style: italic;
  font-size: 1.55em;
  line-height: 1.2;
  margin: 0;
}

/* Citation — centered, subtle */
.quote-devotional > cite {
  margin-top: 1.25rem;
  text-align: center !important;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Remove dash for devotional style */
.quote-devotional cite::before {
  content: "";
}

/* Optional: sacred spacing on mobile */
@media (max-width: 640px) {
  .quote-devotional {
    padding: 1.75rem 1.25rem;
  }
}
