/* Dham-Māhātmya article pages (ARTICLE-SEO, D-079; design brief of 2026-10-21 evening). Loaded only on written article pages, after
   dm.css; uses the section's palette and fonts (STEP07_COMPONENTS.md). Reading comfort first: one column of about 70 characters (35em; Devanāgarī 36em),
   18 px text on wide screens and 17 px on phones, line height 1.7 (Devanāgarī 1.9); tap targets of at least 44 px; visible focus. */
.dm-art { --art-fs: 1.125rem; --art-lh: 1.7; --art-measure: 35em; --art-accent-text: #6e5834; }
.dm-art[lang="hi"] { --art-fs: 1.15rem; --art-lh: 1.9; --art-measure: 36em; }
@media (max-width: 640px) { .dm-art { --art-fs: 1.0625rem; } .dm-art[lang="hi"] { --art-fs: 1.09rem; } }
.dm-art .dm-main { max-width: 42rem; }   /* one calm column: about 70 characters of 18 px text per line */
.dm-art .dm-prose { font-size: var(--art-fs); line-height: var(--art-lh); }
.dm-art .dm-art-sec > p, .dm-art .dm-art-sec > ul, .dm-art .dm-art-sec > ol:not(.dm-timeline), .dm-art .dm-art-fold-in > p,
.dm-art .dm-art-fold-in > ul, .dm-art .dm-art-short p, .dm-art .dm-faq-a p { max-width: var(--art-measure); }
.dm-art .dm-art-sec { margin: 0 0 2.2rem; scroll-margin-top: 80px; }
.dm-art .dm-art-sec h2 { margin: 0 0 .9rem; }
.dm-art h2 > span[id], .dm-art h3[id] { scroll-margin-top: 84px; }
.dm-art a:focus-visible, .dm-art button:focus-visible, .dm-art summary:focus-visible { outline: 3px solid var(--dm-accent); outline-offset: 2px; border-radius: 6px; }

/* head: eyebrow, title, subtitle, reading time · updated · EN | हिन्दी */
.dm-art-head { margin-bottom: 1.2rem; }
.dm-art-head h1 { line-height: 1.15; }
.dm-art-sub { margin: .55rem 0 0; font-size: 1.12rem; line-height: 1.5; color: var(--dm-text-2); max-width: 60ch; }
.dm-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin: .8rem 0 0; font-size: .9rem; color: var(--dm-muted); }
.dm-art-meta > span + span::before { content: ""; }
.dm-art-lang { display: inline-flex; align-items: center; gap: .2rem; border: 1px solid var(--dm-line); border-radius: 999px; background: #fff; padding: 0 .35rem; }
.dm-art-lang a, .dm-art-lang b { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 .55rem;
  font-size: .9rem; text-decoration: none; }
.dm-art-lang a { color: var(--dm-dark); font-weight: 600; }
.dm-art-lang b { color: var(--dm-ink); font-weight: 800; }
.dm-art-lang span { color: var(--dm-sep); }

/* cover image: 16:9 with its credit line */
.dm-art-cover { margin: 0 0 1.6rem; }
.dm-art-cover img, .dm-art-cover .dm-uncleared { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--dm-radius); }
.dm-art-cover figcaption { font-size: .84rem; color: var(--dm-muted); margin-top: .45rem; line-height: 1.5; }

/* In short */
.dm-art-label { display: block; font-family: var(--dm-body); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--art-accent-text); margin: 0 0 .4rem; }
.dm-art-short { background: var(--dm-cream); border: 1px solid var(--dm-cream-2); border-left: 5px solid var(--dm-accent); border-radius: 0 var(--dm-radius) var(--dm-radius) 0;
  padding: 1rem 1.25rem; margin: 0 0 1.4rem; }
.dm-art-short h2.dm-art-label { font-size: .75rem; }
.dm-art-short p { margin: 0; font-size: calc(var(--art-fs) * 1.04); line-height: var(--art-lh); color: var(--dm-text); }

/* At a glance */
.dm-art-glance { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); box-shadow: var(--dm-shadow); padding: 1.1rem 1.25rem 1rem; margin: 0 0 2rem; }
.dm-art-glance h2 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.2rem; margin: 0 0 .6rem; }
.dm-art-glance ul { list-style: none; margin: 0; padding: 0; }
.dm-art-glance li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--dm-line-2); font-size: calc(var(--art-fs) * .94); line-height: 1.6; color: var(--dm-text); }
.dm-art-glance li:first-child { border-top: 0; }
.dm-art-glance li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dm-accent); }
.dm-art-where { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .7rem; padding-top: .8rem; border-top: 1px dashed var(--dm-line); font-size: .95rem; }
.dm-art-where-k { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--art-accent-text); }
.dm-art-where-go { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dm-art .dm-btn--small { min-height: 44px; padding: .45rem .9rem; font-size: .88rem; }
.dm-art-approx { font-size: .8rem; color: var(--dm-muted); font-style: italic; }

/* folding sections ('where the sources differ', sources): the heading stays visible and is the control */
.dm-art-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.dm-art-fold > summary::-webkit-details-marker { display: none; }
.dm-art-fold > summary h2 { margin: 0; flex: 1; }
.dm-art-fold > summary::after { content: ""; flex: none; width: .65rem; height: .65rem; border-right: 2.5px solid var(--dm-accent); border-bottom: 2.5px solid var(--dm-accent);
  transform: rotate(45deg); margin: 0 .4rem .3rem 0; transition: transform .2s; }
.dm-art-fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.dm-art-fold-in { padding-top: .8rem; }
.dm-art-differ .dm-art-fold { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .8rem 1.15rem .4rem; }

/* 'Visiting today': a note card */
.dm-art-note { background: var(--dm-white); border: 1px solid var(--dm-line); border-top: 4px solid var(--dm-dark); border-radius: var(--dm-radius); padding: 1rem 1.25rem .4rem; }

/* cards set apart: verses and Śrīla Prabhupāda's words keep their quiet backgrounds and source lines (dm.css); a little more room */
.dm-art .dm-verse, .dm-art .dm-quote, .dm-art .dm-accounts { margin: 1.3rem 0 1.6rem; }
.dm-art .dm-quote p { font-size: calc(var(--art-fs) * .96); }

/* timeline */
.dm-art .dm-timeline { list-style: none; margin: .4rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--dm-cream-2); }
.dm-timeline li { position: relative; padding: 0 0 1.1rem 1.1rem; }
.dm-timeline li::before { content: ""; position: absolute; left: -1.55rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; border: 3px solid var(--dm-accent); }
.dm-tl-year { display: block; font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.05rem; }
.dm-timeline p { margin: .15rem 0 0; font-size: calc(var(--art-fs) * .94); line-height: 1.6; max-width: var(--art-measure); }
.dm-art .dm-timeline li { margin: 0; }
.dm-art a.dm-tl-go { display: inline-flex; align-items: center; min-height: 36px; font-size: .85rem; font-weight: 600; color: var(--art-accent-text); text-decoration: none; }
.dm-art a.dm-tl-go:hover { text-decoration: underline; }
.dm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* places in this article: the section's cards */
.dm-art-places .dm-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dm-art-places .dm-card h3 { font-size: 1rem; }

/* questions and answers: accordion */
.dm-art .dm-faq-item { border-top: 1px solid var(--dm-line); }
.dm-art .dm-faq-item:last-child { border-bottom: 1px solid var(--dm-line); }
.dm-art .dm-faq-q { margin: 0; font-size: inherit; }
.dm-art .dm-faq-q button { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: .75rem .2rem; cursor: pointer; font-family: var(--dm-head); font-weight: 700; color: var(--dm-dark); font-size: calc(var(--art-fs) * 1.02); line-height: 1.4; }
.dm-art .dm-faq-q button:focus-visible { outline: 3px solid var(--dm-accent); outline-offset: 2px; border-radius: 6px; }
.dm-faq-icon { flex: none; position: relative; width: 1.1rem; height: 1.1rem; }
.dm-faq-icon::before, .dm-faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2.5px; margin-top: -1.25px; background: var(--dm-accent); border-radius: 2px; transition: transform .2s; }
.dm-faq-icon::after { transform: rotate(90deg); }
.dm-art .dm-faq-q button[aria-expanded="true"] .dm-faq-icon::after { transform: rotate(0deg); }
.dm-art .dm-faq-a { padding: 0 .2rem 1rem; }
.dm-art .dm-faq-a p { margin: 0; }

/* more in this region · previous / next · back */
.dm-art-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.dm-art-mini { display: flex; flex-direction: column; gap: .25rem; min-height: 44px; padding: .85rem 1rem; background: #fff; border: 1px solid var(--dm-line);
  border-radius: 12px; text-decoration: none; color: var(--dm-dark); box-shadow: var(--dm-shadow); }
.dm-art-mini:hover { box-shadow: var(--dm-shadow-hover); }
.dm-art-mini small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--art-accent-text); }
.dm-art-mini b { font-size: 1rem; line-height: 1.4; }
.dm-art-mini--proposed { background: var(--dm-bg); box-shadow: none; }
.dm-art-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 0 1.4rem; }
.dm-art-pn a { display: flex; flex-direction: column; gap: .2rem; min-height: 44px; padding: .8rem 1rem; border: 1px solid var(--dm-line); border-radius: 12px;
  background: #fff; text-decoration: none; color: var(--dm-dark); }
.dm-art .dm-art-pn a b, .dm-art a.dm-art-mini b { color: var(--dm-dark); }
.dm-art-pn small { font-size: .8rem; color: var(--dm-muted); }
.dm-art-pn-next { text-align: right; }
.dm-art-back { margin: 0 0 1rem; font-size: 1rem; }
.dm-art-back a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) { .dm-art-pn { grid-template-columns: 1fr; } .dm-art-pn-next { text-align: left; } }

@media (prefers-reduced-motion: reduce) { .dm-art *, .dm-art *::before, .dm-art *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .dm-art-lang, .dm-art-pn, .dm-faq-icon { display: none !important; } .dm-art .dm-faq-a[hidden] { display: block !important; } .dm-art-fold:not([open]) > .dm-art-fold-in { display: block !important; } }
/* RENDER-FIX F-26: places in this article on phones: a compact horizontal card (thumbnail left, text right) */
@media (max-width: 640px) {
  .dm-art-places .dm-cards { grid-template-columns: 1fr; gap: .6rem; }
  .dm-art-places .dm-page a.dm-card, .dm-art-places a.dm-card, .dm-art-places div.dm-card { flex-direction: row; align-items: stretch; }
  .dm-art-places .dm-card-img { flex: 0 0 96px; width: 96px; aspect-ratio: auto; min-height: 96px; }
  .dm-art-places .dm-card-body { padding: .55rem .75rem; min-width: 0; }
  .dm-art-places .dm-card-body p { margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* F-08: Devanāgarī labels of the article */
html[lang="hi-IN"] :is(.dm-art-mini small, .dm-art-label, .dm-art-where-k) { letter-spacing: 0; text-transform: none; }

/* ART-UX (D-168): more in this region: the first cards, the rest behind one button; each card names its place */
.dm-art-more-all { margin-top: .8rem; }
.dm-art-more-all > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 1.1rem;
  border: 1px solid var(--dm-line); border-radius: 999px; background: #fff; color: var(--dm-dark); font-weight: 700; font-size: .95rem; }
.dm-art-more-all > summary::-webkit-details-marker { display: none; }
.dm-art-more-all > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--dm-accent); border-bottom: 2px solid var(--dm-accent);
  transform: rotate(45deg); margin-top: -.25rem; }
.dm-art-more-all > summary:hover { box-shadow: var(--dm-shadow); }
.dm-art-more-all[open] > summary { display: none; }
@media (max-width: 640px) { .dm-art-minis { gap: .6rem; } .dm-art-mini { padding: .7rem .9rem; } }
@media print { .dm-art-more-all { display: none !important; } }
/* ART-UX (D-168): a very long Sanskrit compound in a verse line breaks inside the word rather than pushing the page sideways */
.dm-art :is(.dm-verse-iast, .dm-verse-script, .dm-verse-trans, .dm-accounts) { overflow-wrap: anywhere; }
