/* lulla.net verse type system (audit item T2-14).
   Source verse should never render in the same face, size and weight as the
   narration explaining it. Devi Mahatmya and the Ramcharitmanas already set the
   house idiom: a warm ground, an accent rule on the left, and a measure of its
   own. This file brings the remaining corpora up to that idiom and gives the
   four verse kinds a single contract.

   Measured before this file existed:
     Gita  .lv-shlok__dev   identical face, size AND weight to the prose beside it
     Chalisa .hc-verse      larger, but no ground and no rule

   Everything is expressed through the site's own tokens, so both themes follow. */

:root {
  --lv-verse-ground: color-mix(in srgb, var(--lv-accent, #A05C0C) 5%, var(--lv-bg-soft, #F4EEE2));
  --lv-verse-rule: var(--lv-accent, #A05C0C);
  --lv-verse-lh: 1.95;
}
:root[data-theme="dark"] {
  --lv-verse-ground: color-mix(in srgb, var(--lv-accent, #F2A24A) 9%, var(--lv-bg-soft, #1F1A14));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lv-verse-ground: color-mix(in srgb, var(--lv-accent, #F2A24A) 9%, var(--lv-bg-soft, #1F1A14));
  }
}

/* ---- the shared inset: mula sits on its own ground, marked on the left ---- */
.lv-shlok__dev,
.hc-page .hc-verse .hc-line,
.adi-granth-page .verse-devanagari,
.verse-block > .verse-devanagari {
  background: var(--lv-verse-ground);
  border-left: 3px solid var(--lv-verse-rule);
  border-radius: 0 5px 5px 0;
  padding: .85rem 1.1rem .8rem;
  line-height: var(--lv-verse-lh);
}

/* Devanagari needs room: matras collide at the leading the prose uses. */
.lv-shlok__dev {
  font-size: 1.28rem !important;
  line-height: var(--lv-verse-lh) !important;
  font-weight: 500;
  margin: .5rem 0 .45rem 1.8rem;
  letter-spacing: .004em;
}

/* The romanisation is apparatus, not scripture. Keep it quiet and secondary. */
.lv-shlok__iast {
  font-size: .9rem !important;
  color: var(--lv-ink-faint, #6B5E50);
  font-style: normal;
  letter-spacing: .015em;
  margin-top: .15rem;
}

/* Hanuman Chalisa: chaupai and doha were larger than the prose but carried no
   other mark, so the page read as one undifferentiated column. */
.hc-page .hc-verse {
  background: var(--lv-verse-ground);
  border-left: 3px solid var(--lv-verse-rule);
  border-radius: 0 5px 5px 0;
  padding: 1rem 1.15rem .9rem;
  line-height: var(--lv-verse-lh);
}
.hc-page .hc-verse p { line-height: var(--lv-verse-lh); }

/* ---- the four kinds, distinguished from one another ---- */
/* shloka: Sanskrit measure, sits apart and a little formal */
.lv-shlok__dev, .dm-page .dm-verse { text-align: left; }
/* doha: the couplet is the point, so let it breathe and sit in from the margin */
blockquote.verse.doha, .doha, .verse-block.doha {
  padding-inline-start: 1.6rem;
  font-style: normal;
}
/* pauri: numbered, so the number is furniture and the line is the text */
.pauri-number, .lv-shlok__num {
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--lv-ink-faint, #6B5E50);
  font-weight: 600;
}

@media (max-width: 600px) {
  .lv-shlok__dev { margin-left: 0; font-size: 1.18rem !important; padding: .7rem .85rem; }
  .hc-page .hc-verse { padding: .8rem .9rem; }
}
@media print {
  .lv-shlok__dev, .hc-page .hc-verse { background: none; border-left: 2px solid #999; }
}
