/* D22 (2026-11-10, D6 groups V04 and V05): the older chapter pages in the newer reading frame (inc/ds-chapters.php, main.ds-chap;
   loaded on those pages only, after ds/wp-page.css): the Ashtavakra, Avadhuta, Rama and Vibhishana Gitas, the Narada Bhakti Sutra and
   the Devi Mahatmya chapters. Their bodies are printed as they stand, less the outer wrappers; these rules set the parts the legacy
   sheet (custom.css, not loaded here) used to draw on the design tokens: the verse blocks, the Sanskrit and Awadhi lines in the verse
   band, the meanings, the opening and closing notes. No rule generates a word (no ::before or ::after carries text). Sizes follow
   --l-fs-read, so the reading tools' type size reaches the verses. */

.ds-chap{--chap-verse:var(--l-accent)}
:root[data-theme="light"] .ds-chap{--chap-verse:var(--l-accent-deep)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .ds-chap{--chap-verse:var(--l-accent-deep)}}
/* the one-leaf bar keeps "पूरा अध्याय · लगभग N मिनट" at every width (a chapter has no margin stop) */
.ds-chap .rail--one .rail__nowline > span{display:inline}

/* the opening of the chapter, as the body wrote it: the introduction, the positioning paragraph, the meta line */
.ds-chap .read .chapter-intro,.ds-chap .read .ag-positioning,.ds-chap .read .dm-positioning{font-size:var(--l-fs-lede);line-height:var(--l-lh-read);color:var(--l-ink)}
.ds-chap .read .ag-positioning,.ds-chap .read .dm-positioning{margin:0 0 1em;padding:2px 0 2px 18px;border-left:3px solid var(--l-accent)}
.ds-chap .read .ag-meta,.ds-chap .read .dm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 1.6em;font-family:var(--l-font-ui);font-size:var(--l-fs-ui-sm);line-height:1.6;color:var(--l-ink-soft)}
.ds-chap .read .ag-meta a,.ds-chap .read .dm-meta a{display:inline-flex;align-items:center;min-height:var(--l-target);color:var(--l-accent)}

/* a verse block: its number as a small label, the lines in the verse band, then the meaning in the reading face */
.ds-chap .read .verse,.ds-chap .read .dm-verse,.ds-chap .read .ag-verse,.ds-chap .read .upanishad-verse,.ds-chap .read .upanishad-cluster,.ds-chap .read article.upanishad{margin:1.8em 0;padding:1.2em 0 0;border-top:1px solid var(--l-line)}
.ds-chap .read .verse > h3,.ds-chap .read .dm-verse > h3,.ds-chap .read .ag-verse > h3,.ds-chap .read .upanishad-verse > h3,.ds-chap .read .upanishad-cluster > h3,.ds-chap .read article.upanishad > h3,
.ds-chap .read .v-num{margin:0 0 .7em;font-family:var(--l-font-ui);font-size:var(--l-fs-ui-sm);font-weight:600;line-height:1.5;letter-spacing:.02em;color:var(--l-accent)}
html[lang^="en"] .ds-chap .read .v-num{text-transform:uppercase;letter-spacing:.12em;font-size:13.5px}
.ds-chap .read .v-speaker{margin:0 0 .4em;font-family:var(--l-font-ui);font-size:var(--l-fs-ui-sm);font-weight:600;color:var(--chap-verse)}
.ds-chap .read .v-sanskrit,.ds-chap .read .dm-sanskrit,.ds-chap .read .ag-sanskrit,.ds-chap .read blockquote{margin:.4em calc(-1 * var(--l-leafpad)) 1em;padding:18px clamp(16px,3vw,32px);background:var(--l-band);border:0;border-top:1px solid var(--l-line-strong);border-bottom:1px solid var(--l-line-strong);font-family:var(--l-font-prose);font-style:normal;font-weight:500;font-size:calc(var(--l-fs-read) * 1.06);line-height:var(--l-lh-mula);color:var(--chap-verse);text-align:center;text-wrap:balance;overflow-wrap:anywhere}
.ds-chap .read .v-sanskrit + .v-sanskrit,.ds-chap .read .dm-sanskrit + .dm-sanskrit{margin-top:-1em;border-top:0}
@media (min-width:760px){.ds-chap .read .v-sanskrit,.ds-chap .read .dm-sanskrit,.ds-chap .read .ag-sanskrit,.ds-chap .read blockquote{margin-inline:0}}
@media (max-width:419px){.ds-chap .read .v-sanskrit,.ds-chap .read .dm-sanskrit,.ds-chap .read .ag-sanskrit,.ds-chap .read blockquote{font-size:calc(var(--l-fs-read) * .98)}}
.ds-chap .read blockquote p{margin:0;font:inherit;color:inherit}
.ds-chap .read .v-meaning,.ds-chap .read .dm-verse p:not(.dm-sanskrit),.ds-chap .read .ag-verse p:not(.ag-sanskrit){font-size:var(--l-fs-read);line-height:var(--l-lh-read);color:var(--l-ink)}
.ds-chap .read div.v-meaning{margin:0 0 1em}
.ds-chap .read .v-meaning strong,.ds-chap .read .dm-verse strong{color:var(--l-accent)}

/* the notes around the verses: the textual context, the entry and the key verses, the closing, what comes next (each the body's own
   section with its own heading), set apart on a hairline box in the column */
.ds-chap .read .av-textual-section,.ds-chap .read .ag-intro,.ds-chap .read .ag-howto,.ds-chap .read .ag-after,.ds-chap .read .dm-after,.ds-chap .read .t4-expanded,.ds-chap .read .closing{margin:1.8em 0;padding:16px 20px 4px;border:1px solid var(--l-line);border-radius:var(--l-r3);background:var(--l-leaf)}
.ds-chap .read .av-textual-section > h3,.ds-chap .read .ag-intro > h3,.ds-chap .read .ag-howto > h3,.ds-chap .read .ag-after > h3,.ds-chap .read .dm-after > h3,.ds-chap .read .t4-expanded > h3,.ds-chap .read .closing > h3{margin:0 0 .6em;font-family:var(--l-font-ui);font-size:var(--l-fs-ui);font-weight:600;line-height:1.5;color:var(--l-accent)}
.ds-chap .read .av-textual-section p,.ds-chap .read .ag-howto p,.ds-chap .read .ag-after p,.ds-chap .read .dm-after p,.ds-chap .read .closing p{font-size:calc(var(--l-fs-read) * .95)}
/* the body's callout boxes keep their own inline layout; the frame only holds them to the column */
.ds-chap .read .ashtavakra-callouts,.ds-chap .read .t4-callouts{max-width:100%}
.ds-chap .read .ashtavakra-callouts p,.ds-chap .read .t4-callouts p{max-width:none}
/* a verse-number heading that stands in the prose (the English Devi Mahatmya: "1 · 2") is a label, not a section title */
.ds-chap--devi-mahatmya .read .padav > h3,.ds-chap--devi-mahatmya .read .passage > h3,.ds-chap--avadhuta-gita .read .padav > h3,.ds-chap--avadhuta-gita .read .passage > h3{margin:1.8em 0 .6em;padding-top:1em;border-top:1px solid var(--l-line);font-family:var(--l-font-ui);font-size:var(--l-fs-ui-sm);font-weight:600;line-height:1.5;color:var(--l-accent)}

/* the chapter's foot note (footer.ag-footer, footer.dm-footer) in the interface voice on a hairline */
.ds-chap .read .ag-footer,.ds-chap .read .dm-footer{margin:2.4em 0 0;padding:14px 0 0;border-top:1px solid var(--l-line-strong);font-family:var(--l-font-ui);font-size:var(--l-fs-ui-sm);line-height:1.65;color:var(--l-ink-soft)}
.ds-chap .read .ag-footer a,.ds-chap .read .dm-footer a{color:var(--l-accent)}
/* a kicker with no part of its own (the Devi Mahatmya, the Avadhuta and Vibhishana Gitas name only the text) ends at the text's name */
.ds-chap .pagehead .l-kicker__coll:last-child::after{content:none}
