/* Dham-Māhātmya section stylesheet (Step 08). Derived from the approved prototype (design/prototypes/assets/dm.css) by
   implementation/build/make_css.py; media queries (not the prototype's frame-relative queries); scoped to the section; no utility classes. */
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Noto Sans Devanagari'), local('NotoSansDevanagari-Regular'), url('/dham-mahatmya/assets/fonts/NotoSansDevanagari-Regular.woff2') format('woff2');   /* PERFORMANCE-003: an installed copy needs no download or swap */
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 700; font-display: swap;
  src: local('Noto Sans Devanagari Bold'), local('NotoSansDevanagari-Bold'), url('/dham-mahatmya/assets/fonts/NotoSansDevanagari-Bold.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Bengali'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/dham-mahatmya/assets/fonts/NotoSansBengali-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1; }
/* PERFORMANCE-004 (section part): until the main site's Inter arrives, text is set in a local Arial-metric face sized to Inter's metrics, so it reflows less */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 107.1%;
  ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }

:root {
  --dm-dark: #0F4D4A; --dm-dark-2: #163f3d; --dm-dark-soft: #1f5053;
  --dm-cream: #FEFAEC; --dm-cream-2: #FAEAB1; --dm-bg: #FAF8F0; --dm-white: #ffffff;
  --dm-ink: #1a1a1a; --dm-text: #262421; --dm-text-2: #33302b; --dm-muted: #6b6255;
  --dm-line: #e6ddc8; --dm-line-2: #eee6d4; --dm-accent: #7a6238; --dm-sep: #c4bba6;
  --dm-radius: 14px;
  --dm-shadow: 0 1px 2px rgba(15,77,74,.05), 0 8px 24px rgba(15,77,74,.06);
  --dm-shadow-hover: 0 4px 8px rgba(15,77,74,.08), 0 16px 32px rgba(15,77,74,.1);
  --dm-head: 'Grift', 'Inter', 'Inter Fallback', 'Noto Sans Devanagari', 'Noto Sans Bengali', system-ui, sans-serif;
  --dm-body: 'Inter', 'Inter Fallback', 'Noto Sans Devanagari', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
}


/* base, scoped to the section (the shared stylesheet already resets the rest) */
.dm-body { background: linear-gradient(180deg, var(--dm-cream) 0%, var(--dm-bg) 380px) no-repeat, var(--dm-bg); }
.dm-page, .dm-page *, .dm-secbar, .dm-secbar * { box-sizing: border-box; }
/* the shared footer's hidden navigation labels overflow by 18 px at 1024 px on every page of the site (measured on /acharyas/,
   /songs/ and /mandir/); the section hides it on its own pages with its own CSS (viewport-level, so the sticky contents keep working), the shared files stay untouched */
.dm-body { overflow-x: hidden; }
.dm-page { font-family: var(--dm-body); color: var(--dm-ink); font-size: 16px; line-height: 1.5; padding-top: 1rem; }
.dm-page p, .dm-page h1, .dm-page h2, .dm-page h3, .dm-page h4, .dm-page figure, .dm-page blockquote { margin: 0; }
.dm-page img { max-width: 100%; height: auto; display: block; }
.dm-page h1, .dm-page h2, .dm-page h3, .dm-page h4 { font-family: var(--dm-head); }
.dm-page ul, .dm-page ol { margin: 0; padding: 0; }
.dm-prose ul, .dm-prose ol { margin: 0 0 1.1rem 1.25rem; }
.dm-prose ul { list-style: disc; } .dm-prose ol { list-style: decimal; }
.dm-skip { position: absolute; left: -9999px; } .dm-skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }
.dm-preview-banner { background: #fff3cd; border-bottom: 1px solid #e2cf9e; color: #6a5427; font-size: .8rem; padding: .45rem 1rem; text-align: center; }
.dm-planned { color: var(--dm-text-2); cursor: default; }
.dm-planned::after { content: ""; }
.dm-uncleared { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.dm-uncleared::after { content: attr(data-note); position: absolute; left: .5rem; top: .5rem; background: rgba(43,42,39,.82); color: #fff; font-size: .68rem;
  padding: .15rem .5rem; border-radius: 999px; }
.dm-mapview .dm-mapscroll img { max-width: none; }
.dm-search-box { display: flex; gap: .5rem; max-width: 40rem; margin: 1rem 0 1.4rem; }
.dm-search-box input { flex: 1; min-width: 0; font: inherit; padding: .7rem 1rem; border: 1px solid var(--dm-line); border-radius: 999px; background: #fff; color: var(--dm-ink); }
.dm-search-box input:focus { outline: 2px solid var(--dm-accent); outline-offset: 1px; }
.dm-results { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.dm-results li { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .65rem .9rem; }
.dm-results b { color: var(--dm-dark); display: block; font-size: .98rem; }
.dm-results small { color: var(--dm-muted); font-size: .8rem; }
/* one bar at a time: reading mode hides the site header (as /acharyas/ reading.js: opacity and pointer-events only, never
   transform, because the shared header animates its own position) and shows the slim section bar */
.dm-body.dm-reading #desktop-nav-wrapper, .dm-body.dm-reading #mobile-fixed-header-wrapper, .dm-body.dm-reading #mobile-nav { opacity: 0; pointer-events: none; }
.dm-secbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transform: translateY(-110%); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .2s ease; background: rgba(254,250,236,.97); border-bottom: 1px solid var(--dm-line);
  box-shadow: 0 6px 18px rgba(15,77,74,.07); backdrop-filter: blur(6px); font-family: var(--dm-body); }
.dm-body.dm-reading .dm-secbar { transform: none; opacity: 1; pointer-events: auto; }
.dm-secbar-in { max-width: 1120px; margin: 0 auto; padding: .5rem 1.15rem; display: flex; align-items: center; gap: 1.1rem; }
.dm-secbar .dm-wordmark { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: .98rem; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.dm-secbar .dm-wordmark small { display: block; margin-top: .12rem; font-family: var(--dm-body); font-weight: 600; font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-accent); }
html[lang="hi-IN"] .dm-secbar .dm-wordmark small { text-transform: none; letter-spacing: 0; font-size: .72rem; }
.dm-secbar-links { display: flex; gap: 1rem; font-size: .86rem; font-weight: 600; }
.dm-secbar a.dm-secbar-link { color: var(--dm-dark-soft); text-decoration: none; }
.dm-secbar a.dm-secbar-link[aria-current] { color: var(--dm-dark); box-shadow: inset 0 -2px 0 var(--dm-accent); }
.dm-secbar-now { margin-left: auto; font-size: .8rem; color: var(--dm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem; }
.dm-secbar-now b { color: var(--dm-accent); font-weight: 700; }
.dm-secbar-tools { display: flex; gap: .4rem; align-items: center; }
.dm-secbar a.dm-secbar-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--dm-line); background: #fff; color: var(--dm-dark); }
.dm-secbar-icon svg { width: 15px; height: 15px; }
.dm-secbar a.dm-langpill { display: inline-flex; align-items: center; height: 2rem; padding: 0 .7rem; border-radius: 999px; background: var(--dm-cream); border: 1px solid #ecdcae; color: var(--dm-accent); font-size: .8rem; font-weight: 600; text-decoration: none; }
.dm-secbar-menu { display: none; position: relative; }
.dm-secbar-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--dm-dark); color: #fff; font-size: 1rem; }
.dm-secbar-menu summary::-webkit-details-marker { display: none; }
.dm-secbar-sheet { position: absolute; right: 0; top: 2.5rem; min-width: 13rem; background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; box-shadow: var(--dm-shadow-hover); padding: .4rem; display: flex; flex-direction: column; }
.dm-secbar-sheet a { padding: .55rem .7rem; border-radius: 8px; color: var(--dm-dark); text-decoration: none; font-size: .9rem; font-weight: 600; }
.dm-secbar-sheet a[aria-current] { background: var(--dm-bg); }
@media (max-width: 860px) {
  .dm-secbar-links { display: none; }
  .dm-secbar-in { gap: .6rem; padding: .45rem .9rem; }
  .dm-secbar-now { max-width: 10.5rem; margin-left: .2rem; } .dm-secbar-now b { display: none; }
  .dm-secbar-tools .dm-langpill { display: none; }
  .dm-secbar-menu { display: block; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .dm-secbar { transition: none; } }
/* Step 09: pages with written text */
.dm-readmore { display: inline-block; margin-left: .25rem; font-weight: 600; font-size: .9rem; color: var(--dm-dark); text-decoration: none; border-bottom: 1px solid var(--dm-accent); }
.dm-readmore--proposed { color: var(--dm-muted); border-bottom-style: dashed; }
.dm-loc-note { display: block; width: 100%; font-size: .78rem; color: #8a5a00; margin-top: .35rem; }
.dm-actions { flex-wrap: wrap; }
.dm-btn svg { width: 16px; height: 16px; flex: none; }
details.dm-more { margin: .4rem 0 0; }
details.dm-more > summary { cursor: pointer; color: var(--dm-dark); font-weight: 600; font-size: .86rem; list-style: none; }
details.dm-more > summary::-webkit-details-marker { display: none; }
details.dm-more > summary::before { content: "+ "; color: var(--dm-accent); }
details.dm-more[open] > summary::before { content: "− "; }
.dm-more-list { columns: 2 14rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.dm-more-list li { margin: 0 0 .3rem; break-inside: avoid; }
.dm-hosted { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.dm-hosted small { color: var(--dm-muted); }
.dm-hosted li:target { background: var(--dm-cream-2); border-radius: 6px; padding: 0 .3rem; }
.dm-proposal { background: #fff; border: 1px dashed var(--dm-line); border-radius: var(--dm-radius); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.dm-group details.dm-more ul { margin-top: .3rem; }
/* long reference lists: compact, two columns on wide screens, the rest folded */
.dm-refs { font-size: .84rem; }
@media (min-width: 1100px) { .dm-refs { columns: 2 24rem; column-gap: 2.2rem; } .dm-refs li { break-inside: avoid; } }
details.dm-refs-more > summary { cursor: pointer; font-weight: 600; color: var(--dm-dark); margin: .6rem 0; }
.dm-ref-hit { background: var(--dm-cream-2); transition: background .3s; }
.dm-fn { white-space: nowrap; }
/* Step 10: the map page */
.dm-route-warning { background: #fff3cd; border: 1px solid #e2cf9e; color: #5d4a1f; border-radius: 12px; padding: .7rem 1rem; margin: 0 0 1.1rem; font-size: .9rem; }
.dm-route-warning span { display: block; font-size: .8rem; color: #7a6334; margin-top: .2rem; }
.dm-map-filters { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: 0 0 1rem; font-size: .86rem; }
.dm-map-filters select, .dm-map-filters input[type=search] { font: inherit; padding: .45rem .7rem; border: 1px solid var(--dm-line); border-radius: 10px; background: #fff; max-width: 100%; }
.dm-map-filters label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--dm-dark); }
.dm-map-filters .dm-mf-check { font-weight: 400; color: var(--dm-muted); }
.dm-map-filters output { color: var(--dm-muted); font-size: .8rem; }
.dm-ml { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .45rem .8rem; }
.dm-ml li { background: #fff; border: 1px solid var(--dm-line); border-radius: 10px; padding: .45rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.dm-ml li[hidden], .dm-ml-region[hidden] { display: none; }
.dm-ml small { color: var(--dm-muted); font-size: .76rem; }
.dm-pin-state { align-self: flex-start; font-size: .68rem; border-radius: 999px; padding: .05rem .5rem; margin-top: .15rem; }
.dm-pin-state--checked { background: #dff1e9; color: #14532d; }
.dm-pin-state--unchecked { background: #f4ecda; color: #7a6334; }
.dm-pin-state--uncertain { background: #fde2e2; color: #8a1f1f; }
.dm-gmap-shell { border: 1px solid var(--dm-line); border-radius: var(--dm-radius); background: #fff; overflow: hidden; }
.dm-gmap-cover { padding: 1.4rem 1.2rem; text-align: center; color: var(--dm-text-2); }
.dm-gmap-count { font-size: .85rem; color: var(--dm-muted); }
.dm-gmap { height: 70vh; min-height: 22rem; }
@media (max-width: 640px) { .dm-gmap { height: 62vh; } }
.dm-gmap-legend { list-style: none; margin: 0; padding: .6rem .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .76rem; color: var(--dm-muted); border-top: 1px solid var(--dm-line); }
.dm-lg { display: inline-block; width: 1.4rem; height: .55rem; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }
.dm-lg--checked { background: #0F4D4A; width: .7rem; height: .7rem; border-radius: 50%; }
.dm-lg--candidate { background: #c89b3c; width: .7rem; height: .7rem; border-radius: 50%; }
.dm-lg--trad { background: repeating-linear-gradient(90deg, #8c7247 0 6px, transparent 6px 10px); height: .25rem; }
.dm-lg--road { background: #2a6fdb; height: .25rem; }
.dm-gpanel { max-width: 18rem; font-family: var(--dm-body); font-size: .85rem; color: var(--dm-text); }
.dm-gpanel h3 { font-family: var(--dm-head); font-size: 1rem; margin: 0 0 .2rem; color: var(--dm-dark); }
.dm-gpanel p { margin: .2rem 0; }
.dm-gpanel-meta { color: var(--dm-muted); font-size: .78rem; }
.dm-gpanel-state.is-unchecked { color: #7a6334; } .dm-gpanel-state.is-checked { color: #14532d; }
.dm-gpanel-h { font-weight: 600; margin-top: .5rem !important; }
.dm-gpanel-near { margin: .1rem 0 .4rem 1rem; padding: 0; }
.dm-road-note { font-size: .78rem; color: #1f4f9a; }
.dm-pchart { margin: 0 0 1.4rem; }
.dm-pchart-svg { width: 100%; height: auto; max-height: none; background: #fffdf6; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); }
.dm-pchart-line { fill: none; stroke: #8c7247; stroke-width: 3; stroke-dasharray: 10 7; }
.dm-pchart-dot { fill: #0F4D4A; } .dm-pchart-dot--turn { fill: #8c7247; }
.dm-pchart-no { fill: #fff; font: 700 15px/1 Inter, sans-serif; text-anchor: middle; }
.dm-pchart-label { fill: #262421; font: 600 20px/1.1 Inter, 'Noto Sans Devanagari', sans-serif; }
.dm-pchart-key { fill: #8c7247; font-weight: 400; font-size: 12px; }
.dm-pchart a:hover .dm-pchart-label { fill: #0F4D4A; text-decoration: underline; }
.dm-pchart figcaption { font-size: .8rem; color: var(--dm-muted); margin-top: .4rem; }
.dm-pchart-inter { display: block; color: #7a6334; }
@media (max-width: 640px) { .dm-pchart-svg { display: none; } }
/* PARIKRAMA-UX (2026-11-17): the chart is unreadable on phones, so its section, caption and contents line go too; the station cards stay */
@media (max-width: 640px) { .dm-pchart figcaption, section#chart, .dm-toc li:has(> a[href="#chart"]) { display: none; } }
.dm-pchart-no--wide { font-size: 13px; }
.dm-route-card details.dm-route-src { margin-top: .4rem; }
.dm-route-card details.dm-route-src > summary { font-size: .78rem; color: var(--dm-muted); gap: .3em; }
.dm-route-card .dm-route-src p { font-size: .78rem; line-height: 1.5; color: var(--dm-muted); margin: .2rem 0 0; }
/* PARIKRAMA-UX part 2 (2026-11-17, owner "Yes, do 6-10") */
.dm-page .dm-route .dm-route-card h3 a { color: var(--dm-dark); text-decoration: none; } .dm-page .dm-route .dm-route-card h3 a:hover { text-decoration: underline; }
.dm-route .dm-route-card .dm-route-links { font-size: .86rem; align-items: center; }
.dm-route .dm-route-card .dm-route-links { gap: .4rem 1.2rem; padding: .35rem 0; }
.dm-route .dm-route-card .dm-route-links a { position: relative; }
/* a larger tap area without changing how the link looks */
.dm-route .dm-route-card .dm-route-links a::before { content: ""; position: absolute; inset: -10px -6px; }
@media (pointer: coarse) { .dm-route .dm-route-card .dm-route-links a::before { inset: -14px -8px; } }
.dm-route > li[id] { scroll-margin-top: 5rem; }
.dm-route .dm-route-card .dm-route-thumb { float: right; display: block; width: 112px; height: auto; aspect-ratio: 4 / 3; margin: .1rem 0 .45rem .85rem;
  border-radius: 8px; overflow: hidden; background: var(--dm-cream-2); font-size: 0; }
.dm-route .dm-route-card .dm-route-thumb > span { display: block; width: 100%; height: 100%; margin: 0; }
.dm-route .dm-route-card .dm-route-thumb img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; }
@media (max-width: 640px) { .dm-route .dm-route-card .dm-route-thumb { width: 84px; } }
.dm-figure.dm-route-hero { margin: .2rem 0 1.4rem; }
.dm-figure.dm-route-hero img { display: block; width: 100%; max-height: none; aspect-ratio: 16 / 7; object-fit: cover; }
.dm-figure.dm-route-hero .dm-uncleared { display: block; width: 100%; }
@media (max-width: 640px) { .dm-figure.dm-route-hero img { aspect-ratio: 16 / 10; } }
.dm-stopjump { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .9rem 1rem; box-shadow: var(--dm-shadow); }
.dm-stopjump ol { position: relative; list-style: none; margin: .55rem 0 0; padding: 0 2px 2px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(2.15rem, 1fr));
  gap: .35rem; max-height: 40vh; overflow: auto; }
.dm-stopjump a { display: flex; align-items: center; justify-content: center; height: 2.15rem; border-radius: 50%; background: var(--dm-cream-2);
  color: var(--dm-dark); font-weight: 700; font-size: .78rem; text-decoration: none; }
.dm-stopjump a:hover, .dm-stopjump a.is-active { background: var(--dm-dark); color: #fff; }
/* PARIKRAMA-UX part 3 (2026-11-17, Vṛndāvana review) */
.dm-page .dm-route-hero img:is([src$="/IMG-0114-002-1.webp"]) { object-position: 50% 62%; }   /* tall book page: sky and printed caption above the temple */
.dm-stopjump a.on-guide { box-shadow: inset 0 0 0 2px var(--dm-dark); }
.dm-stopjump-key { display: flex; align-items: center; gap: .45rem; margin: .65rem 0 0; font-size: .76rem; color: var(--dm-muted); }
.dm-stopjump-key i { flex: none; width: .95rem; height: .95rem; border-radius: 50%; background: var(--dm-cream-2); box-shadow: inset 0 0 0 2px var(--dm-dark); }
/* PARIKRAMA-UX K1 (2026-11-18, Kāmyavana review): the stop numbers as a fold where the side column is hidden (routes of 20+ stops) */
.dm-jumpfold { display: none; margin: 0 0 1.2rem; background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; }
.dm-jumpfold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .55rem .95rem;
  font-weight: 600; color: var(--dm-dark); font-size: .92rem; }
.dm-jumpfold summary::-webkit-details-marker { display: none; }
.dm-jumpfold summary span { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--dm-muted); }
.dm-jumpfold summary::after { content: "▾"; color: var(--dm-accent); }
.dm-jumpfold[open] summary::after { content: "▴"; }
.dm-jumpfold ol { list-style: none; margin: 0; padding: .3rem .95rem .9rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); gap: .4rem; }
.dm-jumpfold a { display: flex; align-items: center; justify-content: center; height: 2.6rem; border-radius: 50%; background: var(--dm-cream-2);
  color: var(--dm-dark); font-weight: 700; font-size: .82rem; text-decoration: none; }
.dm-jumpfold a:hover, .dm-jumpfold a:focus-visible { background: var(--dm-dark); color: #fff; }
.dm-jumpfold a.on-guide { box-shadow: inset 0 0 0 2px var(--dm-dark); }
.dm-jumpfold .dm-stopjump-key { margin: 0; padding: 0 .95rem .9rem; }
@media (max-width: 1099px) { .dm-jumpfold { display: block; } }
@media print { .dm-jumpfold { display: none !important; } }
.dm-route-card .dm-route-tag { display: inline-block; margin-top: .3rem; padding: .12rem .6rem; border-radius: 999px; background: #e3efec; color: var(--dm-dark);
  font-size: .74rem; font-weight: 600; }
.dm-facts details.dm-order-more, details.dm-order-more { margin-top: .45rem; }
details.dm-order-more > p { margin-top: .35rem; font-size: .9em; color: var(--dm-text-2); }
details.dm-order-more > summary { gap: .3em; }
/* PARIKRAMA-UX part 4 (2026-11-17, Mathurā review) */
.dm-page .dm-route-hero img:is([src$="/IMG-0112-053-3.webp"]) { object-position: 50% 15%; }   /* the river and the battlements are in the top half */
.dm-route .dm-route-card--end { background: var(--dm-bg); padding: .65rem .95rem; }
.dm-route .dm-route-card--end p { margin: 0; font-size: .9rem; color: var(--dm-text-2); }
.dm-page .dm-route .dm-route-card--end a { color: var(--dm-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--dm-accent); }
.dm-route .dm-route-card p.dm-route-also { font-size: .84rem; margin-top: .35rem; color: var(--dm-text-2); }   /* PARIKRAMA-UX N1 */
.dm-figure .dm-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }   /* PARIKRAMA-UX N4 */
/* PARIKRAMA-UX G2: a headed run of stops */
.dm-route > li.dm-route-grp { padding: .35rem 0 .75rem 3rem; }
.dm-route > li.dm-route-grp::before { content: ""; position: absolute; left: .7rem; top: .62rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--dm-accent); box-shadow: 0 0 0 4px var(--dm-bg); }
.dm-route > li.dm-route-grp p { margin: 0; font-family: var(--dm-head); font-weight: 800; font-size: .95rem; color: var(--dm-accent); }
.dm-route > li.dm-route-grp p span { font-family: var(--dm-body); font-weight: 500; font-size: .8rem; color: var(--dm-muted); margin-left: .35rem; }
.dm-route > li.dm-route-in-grp .dm-route-card { border-left: 4px solid var(--dm-accent); }
.dm-route .dm-route-card p.dm-route-flag { font-size: .8rem; color: var(--dm-accent); margin-top: .35rem; }
.dm-guide.dm-guide--low { padding: .8rem 1rem .9rem; box-shadow: none; }
.dm-guide--low h2 { font-size: 1.05rem; }
.dm-page .dm-guide.dm-guide--low .dm-gd-go { font-size: .95rem; padding: .55rem 1.1rem; min-height: 44px; }
/* uncleared images (preview only) fill their card and hero boxes */
.dm-card-img .dm-uncleared, .dm-hero-fig .dm-uncleared { width: 100%; height: 100%; margin: 0; }
.dm-card-img .dm-uncleared img { width: 100%; height: 100%; object-fit: cover; }
/* D-080: a credited guidebook picture outside a figure (cards, tiles) carries its credit line on the picture */
.dm-credited { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.dm-credited::after { content: attr(data-credit); position: absolute; right: 0; bottom: 0; max-width: 100%; box-sizing: border-box;
  background: rgba(43,42,39,.62); color: #fff; font-size: .6rem; line-height: 1.3; padding: .1rem .4rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; pointer-events: none; }
.dm-card-img .dm-credited, .dm-hero-fig .dm-credited { width: 100%; height: 100%; margin: 0; }
.dm-card-img .dm-credited img { width: 100%; height: 100%; object-fit: cover; }
@media print { .dm-secbar, .dm-toolrow .dm-tools, .dm-aside, .dm-toc-fold, .dm-actions { display: none !important; } }

/* ---------- page shell and layout ---------- */
.dm-page { padding-bottom: 4rem; }
.dm-shell { max-width: 1120px; margin: 0 auto; padding: 0 1.15rem; }
.dm-crumbs { margin: 1.1rem 0 .4rem; font-size: .8125rem; color: var(--dm-muted); }
.dm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .4rem; }
.dm-crumbs li + li::before { content: "/"; color: var(--dm-sep); margin-right: .4rem; }
.dm-page .dm-crumbs a { color: var(--dm-muted); text-decoration: none; }
.dm-crumbs [aria-current] { color: var(--dm-dark); font-weight: 600; }
.dm-crumbs .dm-crumb-up { display: none; }
@media (max-width: 640px) {
  .dm-crumbs ol { display: none; }
  .dm-crumbs .dm-crumb-up { display: inline-flex; gap: .3rem; align-items: center; font-weight: 600; color: var(--dm-dark); }
}
.dm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 2.6rem; align-items: start; }
.dm-main { min-width: 0; max-width: 74ch; }
.dm-aside { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 1rem; }
.dm-wide { max-width: none; }
@media (max-width: 1099px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dm-aside { position: static; display: none; }
}

/* ---------- title block ---------- */
.dm-head { margin: .4rem 0 1.4rem; }
.dm-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--dm-accent); }
.dm-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--dm-accent); }
.dm-head h1 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: clamp(1.75rem, 4.6cqi, 2.6rem);
  line-height: 1.12; letter-spacing: -.015em; margin: .45rem 0 .35rem; }
.dm-hi-name { font-family: 'Noto Sans Devanagari', var(--dm-body); font-size: 1.12rem; color: var(--dm-text-2); font-weight: 600; }
.dm-hi-name .dm-tag { margin-left: .4rem; }
.dm-aka { margin-top: .45rem; font-size: .9rem; color: var(--dm-muted); }
.dm-aka b { font-weight: 600; color: var(--dm-text-2); }
.dm-lead { margin-top: 1rem; font-size: 1.06rem; line-height: 1.75; color: var(--dm-text); }
.dm-summary-label { display: inline-block; margin-top: .55rem; font-size: .72rem; color: var(--dm-muted); font-style: italic; }
.dm-tag { display: inline-block; font-family: var(--dm-body); font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; border: 1px solid var(--dm-line); color: var(--dm-muted); background: #fff; }
.dm-tag--proposed { border-color: #e2cf9e; color: #7a6127; background: #fff8e6; }

/* hero: image or plain typographic band */
.dm-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; margin: .6rem 0 1.8rem; }
.dm-hero-img { border-radius: var(--dm-radius); overflow: hidden; box-shadow: var(--dm-shadow); background: #ece4cf; aspect-ratio: 4 / 3; }
.dm-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.dm-hero-credit { margin-top: .45rem; font-size: .72rem; color: var(--dm-accent); }
@media (max-width: 760px) { .dm-hero { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- reading text ---------- */
.dm-prose { font-size: 1.03rem; line-height: 1.78; color: var(--dm-text); }
.dm-prose p { margin: 0 0 1.1rem; }
.dm-prose h2, .dm-h2 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: clamp(1.25rem, 3.2cqi, 1.55rem);
  line-height: 1.25; margin: 2.4rem 0 .9rem; padding-bottom: .45rem; border-bottom: 2px solid var(--dm-line); scroll-margin-top: 5rem; }
.dm-prose h3, .dm-h3 { font-family: var(--dm-head); font-weight: 700; color: var(--dm-accent); font-size: clamp(1.05rem, 2.6cqi, 1.18rem);
  margin: 1.8rem 0 .6rem; scroll-margin-top: 5rem; }
.dm-prose ul, .dm-prose ol { margin: 0 0 1.1rem 1.25rem; padding: 0; }
.dm-prose li { margin: .3rem 0; }
.dm-prose ul li::marker { color: var(--dm-accent); }
.dm-page .dm-prose a.dm-inlink, .dm-page a.dm-inlink { color: var(--dm-dark); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--dm-accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  background: linear-gradient(transparent 78%, rgba(250,234,177,.75) 78%); }
.dm-page a.dm-exlink { color: var(--dm-dark); text-decoration: underline dotted; text-underline-offset: 3px; }
.dm-fn { font-size: .72em; vertical-align: super; line-height: 0; margin-left: .1em; }
.dm-page a.dm-fn { text-decoration: none; color: var(--dm-accent); font-weight: 700; }
.dm-note { font-size: .9rem; color: var(--dm-muted); line-height: 1.65; }

/* status labels (plain words, quiet) */
.dm-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .14rem .55rem; border-radius: 999px; white-space: nowrap; vertical-align: .12em; }
.dm-label--scripture { background: #e3efe9; color: #1d5b46; }
.dm-label--tradition { background: #f6efdc; color: #7a6127; }
.dm-label--source { background: #eef0f3; color: #3f4a5a; }
.dm-label--differ { background: #f8e6df; color: #8a3f22; }
.dm-label--history { background: #ece8f3; color: #4b3f6b; }
.dm-label--today { background: #e5f1f1; color: #1f5053; }

/* ---------- key facts (the /acharyas/ table style) ---------- */
.dm-facts { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius); overflow: hidden; box-shadow: var(--dm-shadow); font-size: .92rem; margin: 0 0 1rem; }
.dm-facts th, .dm-facts td { text-align: left; vertical-align: top; padding: .62rem .9rem; border-bottom: 1px solid var(--dm-line-2); line-height: 1.55; }
.dm-facts tr:last-child th, .dm-facts tr:last-child td { border-bottom: 0; }
.dm-facts th { width: 30%; font-weight: 700; color: var(--dm-dark); background: var(--dm-bg); }
.dm-facts td { color: var(--dm-text); }
.dm-facts .dm-ref { color: var(--dm-muted); font-size: .82rem; }
@media (max-width: 640px) {
  .dm-facts th, .dm-facts td { display: block; width: 100%; }
  .dm-facts th { border-bottom: 0; padding-bottom: .15rem; background: transparent; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dm-accent); }
  .dm-facts td { padding-top: 0; }
}
.dm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 1.6rem; }
.dm-page a.dm-btn, .dm-btn { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .6rem 1.15rem;
  font-size: .88rem; font-weight: 600; text-decoration: none; background: var(--dm-dark); color: #fff; border: 1px solid var(--dm-dark); }
.dm-page a.dm-btn--ghost, .dm-btn--ghost { background: #fff; color: var(--dm-dark); border-color: var(--dm-line); }
.dm-btn svg { width: 16px; height: 16px; }

/* ---------- contents (sticky aside on desktop, folded panel on phones) ---------- */
.dm-toc { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .9rem 1rem; box-shadow: var(--dm-shadow); }
.dm-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-accent); margin-bottom: .5rem; }
.dm-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.dm-toc li { counter-increment: toc; }
.dm-page .dm-toc a { display: flex; gap: .55rem; padding: .32rem .35rem; border-radius: 8px; text-decoration: none; color: var(--dm-text-2); font-size: .86rem; line-height: 1.35; }
.dm-toc a::before { content: counter(toc); flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--dm-cream-2);
  color: var(--dm-dark); font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dm-page .dm-toc a.is-active { background: var(--dm-bg); color: var(--dm-dark); font-weight: 600; }
.dm-toc-fold { display: none; margin: 0 0 1.4rem; }
.dm-toc-fold summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .7rem .95rem; font-weight: 600; color: var(--dm-dark); font-size: .92rem; }
.dm-toc-fold summary::-webkit-details-marker { display: none; }
.dm-toc-fold summary::after { content: "▾"; color: var(--dm-accent); }
.dm-toc-fold[open] summary { border-radius: 12px 12px 0 0; }
.dm-toc-fold .dm-toc { border-radius: 0 0 12px 12px; border-top: 0; box-shadow: none; }
@media (max-width: 1099px) { .dm-toc-fold { display: block; } }
.dm-mini { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .9rem 1rem; font-size: .86rem; box-shadow: var(--dm-shadow); }
.dm-mini h4 { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-accent); margin: 0 0 .45rem; }
.dm-mini p { color: var(--dm-text-2); line-height: 1.55; margin: 0 0 .6rem; }

/* ---------- verse card ---------- */
.dm-verse { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: 1.15rem 1.25rem 1rem;
  margin: 1.1rem 0 1.4rem; box-shadow: var(--dm-shadow); }
.dm-verse-top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; margin-bottom: .6rem; flex-wrap: wrap; }
.dm-verse-cite { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dm-accent); }
.dm-verse-script { font-family: 'Noto Sans Devanagari', var(--dm-body); font-size: 1.06rem; line-height: 1.95; color: var(--dm-accent); text-align: center; }
.dm-verse-script[lang="bn"] { font-family: 'Noto Sans Bengali', 'Vrinda', 'Shonar Bangla', var(--dm-body); }
.dm-verse-iast { font-size: 1rem; line-height: 1.9; color: var(--dm-dark); font-style: italic; font-weight: 500; text-align: center; margin-top: .45rem; }
.dm-verse-trans { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--dm-line-2); font-size: .98rem; line-height: 1.72; color: var(--dm-text); }
.dm-verse-trans .dm-who { display: block; margin-top: .35rem; font-size: .78rem; color: var(--dm-muted); }
.dm-verse-summary { margin-top: .9rem; padding: .75rem .9rem; background: var(--dm-bg); border-radius: 10px; font-size: .92rem; line-height: 1.65; color: var(--dm-text-2); }
.dm-verse-summary b { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--dm-accent); display: block; margin-bottom: .2rem; }
.dm-verse-about { margin-top: .75rem; font-size: .88rem; line-height: 1.6; color: var(--dm-muted); }
.dm-verse-about b { color: var(--dm-text-2); font-weight: 600; }
.dm-verse details { margin-top: .5rem; font-size: .86rem; color: var(--dm-muted); }
.dm-verse details summary { cursor: pointer; color: var(--dm-dark); font-weight: 600; font-size: .82rem; }

/* statements (claims) */
.dm-claims { list-style: none; margin: .4rem 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.dm-claim { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .8rem 1rem; line-height: 1.68; font-size: .98rem; color: var(--dm-text); }
.dm-claim .dm-label { margin-right: .45rem; }
.dm-claim-src { display: block; margin-top: .3rem; font-size: .8rem; color: var(--dm-muted); }

/* Śrīla Prabhupāda quote */
.dm-quote { background: var(--dm-cream); border-left: 4px solid var(--dm-accent); border-radius: 0 12px 12px 0; padding: .9rem 1.1rem; margin: .9rem 0 1.2rem; }
.dm-quote p { font-style: italic; line-height: 1.7; color: var(--dm-text-2); }
.dm-quote cite { display: block; margin-top: .45rem; font-style: normal; font-size: .8rem; color: var(--dm-muted); }
.dm-quote .dm-label { margin-bottom: .45rem; }

/* accounts differ */
.dm-accounts { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); margin: 1rem 0 1.4rem; overflow: hidden; }
.dm-accounts > p { padding: .85rem 1.05rem; font-weight: 600; color: var(--dm-dark); border-bottom: 1px solid var(--dm-line-2); font-size: .96rem; line-height: 1.5; }
.dm-accounts ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dm-accounts li { padding: .8rem 1.05rem; border-right: 1px solid var(--dm-line-2); font-size: .9rem; line-height: 1.6; color: var(--dm-text); }
.dm-accounts li:last-child { border-right: 0; }
.dm-accounts li b { display: block; font-size: .78rem; color: var(--dm-accent); margin-bottom: .2rem; }
@media (max-width: 640px) { .dm-accounts li { border-right: 0; border-bottom: 1px solid var(--dm-line-2); } }

/* lists of people and songs */
.dm-people { list-style: none; margin: .4rem 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.dm-people li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .7rem .9rem; }
.dm-avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--dm-cream-2); color: var(--dm-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--dm-head); font-weight: 800; }
.dm-people p { font-size: .92rem; line-height: 1.55; color: var(--dm-text); }
.dm-people p b { display: block; color: var(--dm-dark); font-size: .96rem; }
.dm-song { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: 1rem 1.15rem; margin: .8rem 0 1.4rem; }
.dm-song-lines { font-weight: 550; color: var(--dm-dark); line-height: 1.85; }
.dm-song-meta { font-size: .82rem; color: var(--dm-muted); margin-top: .5rem; }

/* figures */
.dm-figure { margin: 1.3rem 0 1.6rem; }
.dm-figure img { border-radius: 12px; box-shadow: var(--dm-shadow); max-height: 440px; width: auto; max-width: 100%; margin: 0 auto; }
.dm-figure figcaption { margin-top: .5rem; font-size: .8rem; line-height: 1.55; color: var(--dm-muted); }
.dm-credit { display: block; color: var(--dm-accent); font-size: .74rem; margin-top: .15rem; }
.dm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; margin: 1rem 0 1.6rem; }
.dm-gallery figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 10px; }
.dm-gallery figcaption { font-size: .76rem; color: var(--dm-muted); margin-top: .35rem; line-height: 1.45; }

/* references */
.dm-refs { background: var(--dm-bg); border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: 1rem 1.15rem 1rem 2.6rem; margin: 1.2rem 0; font-size: .86rem; line-height: 1.6; color: var(--dm-text-2); }
.dm-refs li { margin: .25rem 0; padding-left: .2rem; }
.dm-refs li::marker { color: var(--dm-accent); font-weight: 700; }
.dm-refs .dm-ref-src { font-weight: 600; color: var(--dm-dark); }
.dm-research-link { display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius); padding: .9rem 1.1rem; margin: 1.4rem 0; }
.dm-research-link p { font-size: .9rem; color: var(--dm-text-2); line-height: 1.55; }
.dm-research-link p b { display: block; color: var(--dm-dark); }

/* cards and lists of places */
.dm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0 1.8rem; }
.dm-page a.dm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius);
  overflow: hidden; text-decoration: none; color: var(--dm-ink); box-shadow: var(--dm-shadow); transition: transform .16s ease, box-shadow .16s ease; }
.dm-page a.dm-card:hover { transform: translateY(-2px); box-shadow: var(--dm-shadow-hover); }
.dm-card-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #f3ead2, #e9dfc3); display: flex; align-items: center; justify-content: center; }
.dm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dm-card-img span { font-family: var(--dm-head); font-weight: 800; color: rgba(15,77,74,.28); font-size: 2.2rem; }
.dm-card-body { padding: .8rem .95rem 1rem; }
.dm-card-body h3 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.05rem; line-height: 1.25; margin: 0 0 .2rem; }
.dm-card-body .dm-card-hi { font-family: 'Noto Sans Devanagari', var(--dm-body); font-size: .85rem; color: var(--dm-muted); }
.dm-card-body p { font-size: .84rem; line-height: 1.5; color: var(--dm-text-2); margin-top: .4rem; }
.dm-card-meta { font-size: .72rem; color: var(--dm-accent); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: .55rem; }

.dm-placelist { list-style: none; margin: .5rem 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dm-page .dm-placelist a, .dm-placelist .dm-pl-row { display: flex; gap: .85rem; align-items: center; padding: .6rem .8rem; background: var(--dm-bg);
  border: 1px solid transparent; border-radius: 12px; text-decoration: none; color: var(--dm-ink); }
.dm-page .dm-placelist a:hover { border-color: var(--dm-line); background: #fff; }
.dm-pl-no { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--dm-dark); color: var(--dm-cream-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.dm-pl-no--soft { background: var(--dm-cream-2); color: var(--dm-dark); }
.dm-pl-text { flex: 1; min-width: 0; }
.dm-pl-text b { display: block; color: var(--dm-dark); font-size: .95rem; }
.dm-pl-text small { display: block; color: var(--dm-muted); font-size: .8rem; line-height: 1.45; }
.dm-pl-go { color: var(--dm-accent); font-weight: 700; }

/* short entries for places without their own page */
.dm-entry { border-top: 1px solid var(--dm-line); padding: .9rem 0; scroll-margin-top: 5rem; }
.dm-entry h3 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.02rem; margin: 0 0 .25rem; }
.dm-entry p { font-size: .94rem; line-height: 1.65; color: var(--dm-text); }

/* route stepper (the /prabhupada/sampradaya/ gp-list style) */
.dm-route { list-style: none; margin: 1rem 0 2rem; padding: 0; position: relative; }
.dm-route::before { content: ""; position: absolute; left: 1.05rem; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(var(--dm-accent), var(--dm-line)); }
.dm-route > li { position: relative; padding: 0 0 1rem 3rem; }
.dm-route-no { position: absolute; left: 0; top: .2rem; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--dm-dark);
  color: var(--dm-cream-2); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; box-shadow: 0 0 0 4px var(--dm-bg); }
.dm-route-card { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .75rem .95rem; }
.dm-route-card h3 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1rem; margin: 0; }
.dm-route-card h3 small { font-family: 'Noto Sans Devanagari', var(--dm-body); font-weight: 500; color: var(--dm-muted); font-size: .82rem; margin-left: .35rem; }
.dm-route-card p { font-size: .88rem; line-height: 1.6; color: var(--dm-text-2); margin-top: .3rem; }
.dm-route-card .dm-route-links { margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; }
.dm-route-card--plain { background: var(--dm-bg); }
.dm-route-printed { font-size: .76rem; color: var(--dm-muted); }

/* pager */
.dm-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 2rem 0 1rem; }
.dm-page a.dm-pager-link { display: block; background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .8rem 1rem;
  text-decoration: none; color: var(--dm-dark); box-shadow: var(--dm-shadow); }
.dm-pager-link small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dm-accent); }
.dm-pager-link b { font-family: var(--dm-head); font-weight: 800; font-size: 1rem; }
.dm-pager-link:last-child { text-align: right; }
@media (max-width: 640px) { .dm-pager { grid-template-columns: 1fr; } .dm-pager-link:last-child { text-align: left; } }

/* editorial box (the /acharyas/ E-E-A-T box, reworded) */
.dm-eeat { margin: 2rem 0 0; background: #fff; border: 1px solid var(--dm-line); border-radius: 16px; padding: 1rem 1.2rem; font-size: .86rem; color: var(--dm-text-2); line-height: 1.6; }
.dm-eeat b { color: var(--dm-dark); }
.dm-eeat .dm-eeat-row { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: .4rem; color: var(--dm-muted); }

/* home page */
.dm-home-head { text-align: center; max-width: 52rem; margin: 2.2rem auto 1.6rem; }
.dm-home-head h1 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: clamp(1.9rem, 5.2cqi, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin: .5rem 0 .6rem; }
.dm-home-head .dm-lead { color: var(--dm-muted); }
.dm-home-verse { max-width: 46rem; margin: 0 auto 2rem; }
.dm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 46rem; margin: 0 auto 2.2rem; }
.dm-stat { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .75rem .6rem; text-align: center; }
.dm-stat b { display: block; font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.45rem; }
.dm-stat span { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--dm-accent); font-weight: 700; }
@media (max-width: 640px) { .dm-stats { grid-template-columns: repeat(2, 1fr); } }
.dm-band { background: linear-gradient(135deg, var(--dm-dark), var(--dm-dark-2)); color: var(--dm-cream); border-radius: 18px; padding: 1.4rem 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.6rem 0 2rem; }
.dm-page .dm-band a { color: var(--dm-cream); text-decoration: none; display: block; padding: .6rem .2rem; }
.dm-band b { display: block; font-family: var(--dm-head); font-weight: 800; font-size: 1.08rem; color: #fff; }
.dm-band span { font-size: .85rem; color: var(--dm-cream-2); line-height: 1.5; }
.dm-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .7rem; margin: .8rem 0 1.6rem; }
.dm-legend div { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .7rem .85rem; font-size: .86rem; line-height: 1.55; color: var(--dm-text-2); }
.dm-legend .dm-label { margin-bottom: .35rem; }

/* map page */
.dm-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--dm-line); margin: 1rem 0 1.2rem; flex-wrap: nowrap; overflow-x: auto; }
.dm-tabs button { white-space: nowrap; flex: none; }
.dm-tabs button { border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--dm-muted); padding: .6rem .9rem;
  border-bottom: 2px solid transparent; cursor: pointer; }
.dm-tabs button[aria-selected="true"] { color: var(--dm-dark); border-bottom-color: var(--dm-accent); }
.dm-tabpanel[hidden] { display: none; }
.dm-mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .dm-mapgrid { grid-template-columns: 1fr; } }
.dm-mapview { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); overflow: hidden; box-shadow: var(--dm-shadow); }
.dm-mapview-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .8rem; border-bottom: 1px solid var(--dm-line-2); font-size: .8rem; color: var(--dm-muted); flex-wrap: wrap; }
.dm-mapview-bar button { border: 1px solid var(--dm-line); background: var(--dm-bg); border-radius: 8px; width: 2rem; height: 2rem; font-size: 1rem; cursor: pointer; color: var(--dm-dark); }
.dm-mapscroll { overflow: auto; max-height: 520px; background: #f4efe2; }
.dm-mapscroll img { max-width: none; transform-origin: 0 0; }
.dm-keylist { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); max-height: 580px; overflow: auto; }
.dm-keylist ol { list-style: none; margin: 0; padding: .4rem; }
.dm-keylist li { display: flex; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; font-size: .86rem; align-items: baseline; }
.dm-keylist li:hover { background: var(--dm-bg); }
.dm-keylist .dm-k { flex: none; min-width: 1.7rem; text-align: right; font-weight: 700; color: var(--dm-accent); }
.dm-keylist small { color: var(--dm-muted); }
.dm-placeholder { border: 2px dashed var(--dm-line); border-radius: var(--dm-radius); padding: 2.4rem 1.4rem; text-align: center; color: var(--dm-muted);
  background: repeating-linear-gradient(45deg, #fbf8ef, #fbf8ef 12px, #f6f1e3 12px, #f6f1e3 24px); }
.dm-placeholder b { display: block; color: var(--dm-dark); font-size: 1.05rem; margin-bottom: .4rem; }
.dm-region-block { margin: 0 0 1.4rem; }
.dm-region-block > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: #fff;
  border: 1px solid var(--dm-line); border-radius: 12px; padding: .7rem .95rem; font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); }
.dm-region-block > summary::-webkit-details-marker { display: none; }
.dm-region-block > summary small { font-family: var(--dm-body); font-weight: 500; color: var(--dm-muted); font-size: .8rem; }

/* research record */
.dm-rtable { width: 100%; border-collapse: collapse; font-size: .84rem; background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; overflow: hidden; margin: .6rem 0 1.4rem; }
.dm-rtable th { background: var(--dm-dark); color: #fff; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .7rem; }
.dm-rtable td { padding: .55rem .7rem; border-top: 1px solid var(--dm-line-2); vertical-align: top; line-height: 1.5; color: var(--dm-text); }
.dm-rtable tr:nth-child(even) td { background: var(--dm-bg); }
.dm-rtable .dm-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; color: var(--dm-muted); white-space: nowrap; }
.dm-scroll-x { overflow-x: auto; }
.dm-counts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1.4rem; }
.dm-counts span { background: #fff; border: 1px solid var(--dm-line); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; color: var(--dm-text-2); }
.dm-counts b { color: var(--dm-dark); }
.dm-searched { font-size: .82rem; color: var(--dm-muted); line-height: 1.6; }
.dm-searched li { margin: .2rem 0; }
.dm-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.dm-filter span { border: 1px solid var(--dm-line); background: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; color: var(--dm-dark); }
.dm-filter span.is-on { background: var(--dm-dark); color: #fff; border-color: var(--dm-dark); }
.dm-srcgroup { margin: 0 0 1.6rem; }
.dm-srclist { list-style: none; margin: .4rem 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.dm-srclist li { background: #fff; border: 1px solid var(--dm-line); border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; line-height: 1.55; }
.dm-srclist b { color: var(--dm-dark); }
.dm-srclist small { display: block; color: var(--dm-muted); font-size: .78rem; margin-top: .15rem; }

/* Hindi pages: no italics in Devanāgarī, taller lines */
html[lang="hi-IN"] .dm-prose, html[lang="hi-IN"] .dm-lead { line-height: 1.9; }
html[lang="hi-IN"] .dm-verse-iast, html[lang="hi-IN"] .dm-quote p { font-style: normal; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- one navbar only (owner 2026-10-20): the section's own links sit in the breadcrumb row ---------- */
.dm-toolrow { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; margin: 1.1rem 0 .4rem; }
.dm-toolrow .dm-crumbs { margin: 0; }
.dm-tools { display: flex; align-items: center; gap: .5rem; }
.dm-page a.dm-toolbtn, .dm-toolbtn { display: inline-flex; align-items: center; gap: .35rem; height: 2.1rem; padding: 0 .75rem; border-radius: 999px;
  border: 1px solid var(--dm-line); background: #fff; color: var(--dm-dark); font-size: .8rem; font-weight: 600; text-decoration: none; }
.dm-toolbtn svg { width: 15px; height: 15px; }
.dm-page a.dm-langpill, .dm-secbar a.dm-langpill { display: inline-flex; align-items: center; gap: .35rem; height: 2.1rem; padding: 0 .8rem; border-radius: 999px;
  background: var(--dm-cream); border: 1px solid #ecdcae; color: var(--dm-accent); font-size: .82rem; font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .dm-toolrow { margin-top: .9rem; }
  .dm-tools .dm-toolbtn span { display: none; }
  .dm-tools .dm-toolbtn { padding: 0 .55rem; }
}
.dm-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--dm-muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.dm-home-search { max-width: 34rem; margin: 1.2rem auto 0; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--dm-line);
  border-radius: 999px; padding: .65rem 1.1rem; color: var(--dm-muted); font-size: .92rem; box-shadow: var(--dm-shadow); }
.dm-home-search svg { width: 18px; height: 18px; flex: none; color: var(--dm-accent); }
/* grouped places of a region */
.dm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; margin: .8rem 0 1.8rem; }
.dm-group { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); padding: .85rem 1rem; }
.dm-group h3 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1rem; margin: 0 0 .1rem; }
.dm-group small { color: var(--dm-accent); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.dm-group ul { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .86rem; line-height: 1.5; }
.dm-group li { padding: .18rem 0; border-top: 1px dashed var(--dm-line-2); }
.dm-group li:first-child { border-top: 0; }
.dm-page .dm-group a { color: var(--dm-text-2); text-decoration: none; }
.dm-page .dm-group a:hover { color: var(--dm-dark); text-decoration: underline; }
.dm-group .dm-more { color: var(--dm-muted); font-size: .8rem; }
/* regions index */
.dm-regtable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); overflow: hidden; font-size: .9rem; margin: .8rem 0 1.6rem; box-shadow: var(--dm-shadow); }
.dm-regtable th { background: var(--dm-dark); color: #fff; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .6rem .8rem; }
.dm-regtable td { padding: .65rem .8rem; border-top: 1px solid var(--dm-line-2); vertical-align: top; line-height: 1.5; }
.dm-regtable tr:nth-child(even) td { background: var(--dm-bg); }
.dm-regtable code { font-size: .8rem; color: var(--dm-dark); background: var(--dm-cream); padding: .05rem .35rem; border-radius: 6px; white-space: nowrap; }
.dm-regtable .dm-rname b { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1rem; display: block; }
@media (max-width: 760px) {
  .dm-regtable thead { display: none; }
  .dm-regtable tr { display: block; border-top: 1px solid var(--dm-line); padding: .5rem 0; }
  .dm-regtable td { display: block; border: 0; padding: .2rem .9rem; background: transparent !important; }
}


/* RENDER-FIX F-08: Devanāgarī labels: no letter-spacing or capitals (they break the conjuncts), never smaller than .8rem */
html[lang="hi-IN"] :is(.dm-eyebrow, .dm-facts th, .dm-toc-title, .dm-mini h4, .dm-verse-summary b, .dm-card-meta, .dm-pager-link small, .dm-stat span,
  .dm-group small, .dm-label, .dm-art-label, .dm-art-where-k, .dm-wordmark small) { letter-spacing: 0; text-transform: none; font-size: max(.8rem, 1em * .8); }
/* F-13: long labels wrap inside the box on phones */
.dm-label { white-space: normal; max-width: 100%; }
/* F-15: a comfortable line on wide screens (place, area and region pages; the article column has its own measure) */
.dm-main .dm-prose > p, .dm-main .dm-prose > ul, .dm-main .dm-prose > ol, .dm-lead, .dm-main .dm-claims { max-width: 68ch; }
/* F-16: an anchor jump lands below the sticky section bar (the links point at sections and list rows, not only at headings) */
.dm-page section[id], .dm-page [id^="ref-"], .dm-page .dm-placelist li[id], .dm-page .dm-hosted li[id], .dm-page .dm-hosted-grid li[id],
  .dm-page .dm-groups li[id], .dm-page .dm-ml li[id], .dm-page details[id] { scroll-margin-top: 5rem; }
/* F-17/F-18: the 'also described on this page' lists: no stray list markers; the home list is a sorted grid */
.dm-prose ul.dm-hosted { list-style: none; margin: .4rem 0 1.1rem; }
.dm-prose ul.dm-hosted-grid { list-style: none; margin: .4rem 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .35rem 1.2rem; }
.dm-hosted-grid li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; line-height: 1.45; padding: .2rem 0; border-bottom: 1px solid var(--dm-line-2); }
.dm-hosted-grid small { color: var(--dm-muted); font-size: .8rem; }
.dm-hosted-grid .dm-hosted-hi { color: var(--dm-text-2); font-size: .9rem; }
.dm-hosted-grid li:target, .dm-placelist li:target, .dm-groups li:target { background: var(--dm-cream-2); border-radius: 6px; }
/* F-07 / F-02: the line under an 'Accounts differ' box; four accounts in two columns, not three and one */
.dm-accounts-more, .dm-accounts-note { padding: .6rem 1.05rem; margin: 0; font-size: .86rem; color: var(--dm-text-2); border-top: 1px solid var(--dm-line-2); }
.dm-accounts-note { font-style: italic; color: var(--dm-muted); }
.dm-accounts > p.dm-accounts-more, .dm-accounts > p.dm-accounts-note { font-weight: 400; font-size: .86rem; color: var(--dm-text-2); border-bottom: 0; padding: .6rem 1.05rem; }   /* beat the box title rule .dm-accounts > p */
.dm-accounts > p.dm-accounts-note { color: var(--dm-muted); }
@media (min-width: 641px) { .dm-accounts--4 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dm-accounts--4 li:nth-child(2n) { border-right: 0; }
  .dm-accounts--4 li:nth-child(-n+2) { border-bottom: 1px solid var(--dm-line-2); } }
/* F-05: the map list, one fold per region */
details.dm-ml-region { margin: 0 0 .6rem; }
details.dm-ml-region > summary { cursor: pointer; list-style: none; padding: .55rem .2rem; min-height: 44px; }
details.dm-ml-region > summary::-webkit-details-marker { display: none; }
details.dm-ml-region > summary h3 { display: inline; margin: 0; }
details.dm-ml-region > summary::before { content: "+ "; color: var(--dm-accent); font-weight: 700; }
details.dm-ml-region[open] > summary::before { content: "− "; }
.dm-pin-legend { margin: 0 0 .8rem; }
/* F-10: the Hindi line under an English quotation on a Hindi page */
.dm-quote-gloss { display: block; margin-top: .45rem; font-size: .82rem; color: var(--dm-muted); font-style: normal; }
/* F-22: a portrait page scan as hero does not fill the first phone screen */
@media (max-width: 640px) { .dm-hero-fig img { aspect-ratio: 4 / 3; max-height: 62vw; width: 100%; object-fit: cover; } }
/* F-23: tap targets of at least 44 px on phones */
@media (max-width: 760px) {
  .dm-page a.dm-toolbtn, .dm-toolbtn, .dm-page a.dm-langpill { min-height: 44px; min-width: 44px; justify-content: center; }
  .dm-crumbs .dm-crumb-up { min-height: 44px; }
  .dm-readmore { padding-block: .6rem; }
  details.dm-more > summary, details.dm-refs-more > summary, .dm-toc-fold summary { min-height: 44px; display: flex; align-items: center; }
  .dm-map-filters select, .dm-map-filters input[type=search] { min-height: 44px; }
}
/* ---------- STEP13 FIX-FRONT (D-094, 2026-10-27): fixes from the Step 13 audit ---------- */
/* A11Y-META-006: the hidden section bar leaves the Tab order (visibility switches after the slide-out, at once on the way in) */
.dm-secbar { visibility: hidden; transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s; }
.dm-body.dm-reading .dm-secbar { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .dm-secbar, .dm-body.dm-reading .dm-secbar { transition: none; } }
/* A11Y-META-010: form fields get a boundary of at least 3:1 (#857a66: 4.2:1 on white, 4.0:1 on the page); card borders keep --dm-line */
.dm-search-box input, .dm-map-filters select, .dm-map-filters input[type=search] { border-color: #857a66; }
/* RESPONSIVE-VISUAL-002 (D-080): the credit of a card picture is a full caption line under the picture (wrapping, 11.5 px), not a cut overlay */
.dm-credited::after { position: static; display: block; width: 0; min-width: 100%; max-width: none; background: none; color: var(--dm-muted);
  font-size: .72rem; line-height: 1.4; padding: .3rem 0 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; text-align: left; }
.dm-card-img:has(> .dm-credited) { aspect-ratio: auto; display: block; background: #fff; }
.dm-card-img .dm-credited { height: auto; }
.dm-card-img .dm-credited img { height: auto; aspect-ratio: 16 / 10; }
/* 2026-10-29 owner: every card picture in one 16:10 box, portraits too (cropped from the top, img.dm-portrait object-position 50% 12%) */
.dm-card-img .dm-credited::after { padding: .4rem .95rem 0; }
/* the article's compact phone card (thumbnail left, text right, F-26): the credit runs as a full line under thumbnail and text */
@media (max-width: 640px) {
  .dm-art-places a.dm-card:has(.dm-credited), .dm-art-places div.dm-card:has(.dm-credited) { flex-wrap: wrap; }
  .dm-art-places .dm-card-img:has(> .dm-credited), .dm-art-places .dm-card-img .dm-credited { display: contents; }
  .dm-art-places .dm-card-img .dm-credited img { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; object-fit: cover; }
  .dm-art-places .dm-card:has(.dm-credited) .dm-card-body { flex: 1 1 0; }
  .dm-art-places .dm-card-img .dm-credited::after { order: 2; flex: 0 0 100%; width: auto; min-width: 0; padding: 0 .75rem .5rem; }
}
/* RESPONSIVE-VISUAL-005: component lists inside the prose keep no bullets or numbers ('.dm-prose ul/ol' outranked their resets) */
.dm-prose .dm-placelist, .dm-prose .dm-route, .dm-prose .dm-more-list, .dm-prose .dm-srclist { list-style: none; margin-left: 0; }
.dm-prose .dm-placelist { margin-bottom: 1.6rem; } .dm-prose .dm-route { margin-bottom: 2rem; } .dm-prose .dm-more-list { margin-bottom: 0; } .dm-prose .dm-srclist { margin-bottom: .4rem; }
/* RESPONSIVE-VISUAL-006: on phones the section bar has no room for the 'On this page' indicator (it shrank to a few letters) */
@media (max-width: 480px) { .dm-secbar-now { display: none; } }
/* RESPONSIVE-VISUAL-012: the article language switch shows the current language filled, the other one as an underlined link */
.dm-page .dm-art-lang b[aria-current] { background: var(--dm-dark); color: #fff; border-radius: 999px; min-height: 34px; font-weight: 700; }
.dm-page .dm-art-lang a { font-weight: 400; text-decoration: underline; text-underline-offset: .2em; color: var(--dm-dark); }
/* PERFORMANCE-003: on phones the tools with the language pill take their own row from the start, so the Devanagari font arriving
   later cannot re-wrap the row and push the page down */
@media (max-width: 640px) { .dm-toolrow .dm-tools:has(.dm-langpill) { flex-basis: 100%; } }
/* search page: the results area keeps its room, so the list arriving after the index loads does not move the footer (CLS) */
.dm-results { min-height: 70vh; }
/* IMAGES-MECH-004: portrait pictures (img.dm-portrait) in fixed-ratio boxes keep their upper part (Deities' crowns and heads) */
.dm-page img.dm-portrait { object-position: 50% 12%; }
/* D-112 (OWNER9-ROUTE-MAPS): the parikramā guides: the "Google Maps" link on each stop card (D-113: the label only; the note is one line
   above the list, p.dm-note), and the map of the stops (assets/dm-route-map.js) */
.dm-prose .dm-rmap .dm-gmap-cover p { margin: 0 0 .6rem; }
.dm-prose .dm-rmap .dm-rmap-status { margin: 0; padding: .5rem .9rem 0; font-size: .82rem; }
.dm-prose .dm-rmap .dm-gmap-legend { list-style: none; margin: 0; padding: .6rem .9rem; }
.dm-prose .dm-rmap .dm-gmap-legend li { margin: 0; }
.dm-prose .dm-rmap .dm-gpanel h3 { font-size: 1rem; margin: 0 0 .2rem; color: var(--dm-dark); }
.dm-prose .dm-rmap .dm-gpanel p { margin: .2rem 0; font-size: .85rem; line-height: 1.5; }
.dm-lg--pid { background: #6b7280; width: .7rem; height: .7rem; border-radius: 50%; }
/* D-112 FIX (mechanics verifier N1): the route map sits inside .dm-prose (the map page's map does not): Google's own controls there get
   no prose bullets or list margins (only what .dm-prose adds is undone; UNVERIFIED with real Google until the owner's first opening) */
.dm-prose .dm-rmap .dm-gmap :is(ul, ol) { list-style: none; margin: 0; }
.dm-prose .dm-rmap .dm-gmap li { margin: 0; }
/* 2026-10-29 owner: hub maṇḍala tiles: two equal half-width picture tiles from 768px, stacked on phones; name over the picture,
   credit line under it (D-080), stats + call to action below */
.dm-mandalas { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.8rem 0 2.6rem; }
@media (min-width: 768px) { .dm-mandalas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; } }
.dm-page .dm-mtile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dm-line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--dm-shadow); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.dm-page a.dm-mtile:hover, .dm-page a.dm-mtile:focus-visible { transform: translateY(-3px); box-shadow: var(--dm-shadow-hover); }
.dm-page a.dm-mtile:focus-visible { outline: 3px solid var(--dm-dark); outline-offset: 3px; }
.dm-mtile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #f3ead2, #e9dfc3); }
.dm-mtile-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease; }
.dm-page .dm-mtile-media > img.dm-portrait { object-position: 50% 35%; }
.dm-page a.dm-mtile:hover .dm-mtile-media > img { transform: scale(1.04); }
.dm-mtile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,38,36,.82) 0%, rgba(8,38,36,.35) 32%, rgba(8,38,36,0) 58%); pointer-events: none; }
.dm-mtile-letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--dm-head); font-weight: 800; font-size: 5rem; color: rgba(15,77,74,.25); }
.dm-page .dm-mtile-name { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem; z-index: 1; margin: 0; font-family: var(--dm-head); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.1; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.dm-mtile-badge { position: absolute; top: .9rem; right: .9rem; z-index: 1; padding: .3rem .7rem; border-radius: 999px; background: rgba(254,250,236,.94);
  color: var(--dm-accent); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dm-mtile-credit { padding: .45rem 1.25rem 0; font-size: .7rem; line-height: 1.4; color: var(--dm-muted); }
.dm-mtile-body { display: flex; flex-direction: column; flex: 1; padding: .8rem 1.25rem 1.2rem; }
.dm-page .dm-mtile-body p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--dm-text-2); }
.dm-mtile-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.dm-mtile-stat { padding: .3rem .7rem; border-radius: 999px; background: var(--dm-bg); border: 1px solid var(--dm-line-2); font-size: .8rem; color: var(--dm-text-2); }
.dm-mtile-stat b { color: var(--dm-dark); font-weight: 800; }
.dm-mtile-foot { margin-top: auto; padding-top: 1rem; }
.dm-mtile-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.05rem; border-radius: 999px; background: var(--dm-dark); color: #fff;
  font-weight: 700; font-size: .88rem; transition: background .2s ease; }
.dm-page a.dm-mtile:hover .dm-mtile-cta { background: var(--dm-dark-2); }
.dm-mtile-soon { display: inline-block; padding: .55rem 0 .1rem; font-size: .82rem; font-weight: 600; color: var(--dm-accent); }
html[lang="hi-IN"] .dm-mtile-badge { letter-spacing: 0; text-transform: none; font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .dm-page .dm-mtile, .dm-mtile-media > img { transition: none; } .dm-page a.dm-mtile:hover .dm-mtile-media > img { transform: none; } }
/* 2026-10-29 owner: no "rights not cleared" badge on the live preview pictures (held pictures still have no credit line; the rights list stays in OWNER_REVIEW_CREDITS_RIGHTS.md) */
.dm-uncleared::after { content: none; display: none; }
/* 2026-10-29 owner: a held (uncredited) card picture gets the same 16:10 box as the credited ones */
.dm-card-img:has(> .dm-uncleared) { aspect-ratio: auto; display: block; }
.dm-card-img .dm-uncleared { display: block; height: auto; }
.dm-card-img .dm-uncleared img { display: block; height: auto; aspect-ratio: 16 / 10; }
/* 2026-10-29: two tall book pages are mostly sky at the top; their 16:10 card crop shows the temple / the river lower down */
.dm-page .dm-card-img img:is([src$="/IMG-0114-002-1.webp"], [src$="/IMG-0114-008-1.webp"]) { object-position: 50% 75%; }
/* 2026-10-29 owner: "no need to mention photo credit" on listing cards; the credit stays on the inside pages (hero, figures) */
.dm-card-img .dm-credited::after { content: none; display: none; }
.dm-card-img .dm-credited { display: block; }

/* ---------------------------------------------------------------- PLACE-SLIM (2026-11-16, owner "Yes, apply live")
   long place pages: "Before you go" card, tabs, folded sections, compact cards, short reference marks, readable small text */
.dm-preview-banner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-visitcard { background: var(--dm-cream); border: 1px solid var(--dm-cream-2); border-left: 4px solid var(--dm-dark); border-radius: var(--dm-radius);
  padding: 1rem 1.1rem 1.1rem; margin: 1.2rem 0 1.4rem; box-shadow: var(--dm-shadow); }
.dm-vc-h { font: 700 .78rem/1 var(--dm-body); letter-spacing: .09em; text-transform: uppercase; color: var(--dm-dark); margin-bottom: .75rem; }
.dm-visitcard dl { margin: 0; display: grid; gap: .3rem; }
.dm-visitcard dt { font-weight: 700; color: var(--dm-dark); font-size: .92rem; }
.dm-visitcard dd { margin: 0 0 .45rem; color: var(--dm-text); font-size: .97rem; line-height: 1.55; }
.dm-visitcard dd small { color: var(--dm-muted); white-space: nowrap; }
.dm-vc-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.dm-vc-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--dm-dark);
  color: #fff !important; font-weight: 600; font-size: .92rem; text-decoration: none !important; }
.dm-vc-btn svg { width: 18px; height: 18px; }
.dm-vc-btn--ghost { background: #fff; color: var(--dm-dark) !important; border: 1px solid var(--dm-line); }
.dm-visitcard--side { display: none; margin-top: 0; }
@media (min-width: 1100px) {
  .dm-visitcard--main { display: none; }
  .dm-visitcard--side { display: block; }
}
.dm-ptabs { position: sticky; top: var(--dm-tabs-top, 0px); z-index: 40; display: flex; gap: .25rem; margin: .6rem -1rem 1.3rem; padding: .45rem 1rem;
  background: rgba(250, 248, 240, .97); border-bottom: 1px solid var(--dm-line); overflow-x: auto; scrollbar-width: none; transition: top .2s ease; }
.dm-ptabs::-webkit-scrollbar { display: none; }
.dm-ptabs [role=tab] { flex: 1 0 auto; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 .98rem var(--dm-body); color: var(--dm-muted); }
.dm-ptabs [role=tab]:hover { color: var(--dm-dark); }
.dm-ptabs [role=tab][aria-selected="true"] { background: var(--dm-dark); color: #fff; }
.dm-ptabs [role=tab]:focus-visible { outline: 3px solid var(--dm-cream-2); outline-offset: 1px; }
@media (min-width: 700px) { .dm-ptabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } .dm-ptabs [role=tab] { flex: 0 0 auto; } }
.dm-panel[hidden] { display: none !important; }
details.dm-fold { border: 1px solid var(--dm-line); border-radius: var(--dm-radius); background: #fff; margin: 0 0 .8rem; }
details.dm-fold > summary { list-style: none; cursor: pointer; padding: .95rem 2.8rem .95rem 1.1rem; position: relative; min-height: 44px; }
details.dm-fold > summary::-webkit-details-marker { display: none; }
details.dm-fold > summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font: 400 1.5rem/1 var(--dm-body); color: var(--dm-dark); }
details.dm-fold[open] > summary::after { content: "–"; }
details.dm-fold > summary h2 { margin: 0; padding: 0; border: 0; font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.15rem; line-height: 1.3; }
details.dm-fold > summary h2::after { display: none; }
.dm-fold-s { display: block; margin-top: .25rem; font-size: .9rem; line-height: 1.45; color: var(--dm-muted); }
details.dm-fold[open] > summary .dm-fold-s { display: none; }
details.dm-fold > section.dm-prose { padding: 0 1.1rem .7rem; margin: 0; }
details.dm-fold--sub { margin-top: .7rem; background: var(--dm-bg); }
details.dm-fold--sub > summary h3.dm-h3 { margin: 0; font-size: 1.03rem; }
details.dm-fold--sub > .dm-fold-b { padding: 0 1.1rem .5rem; }
.dm-page a.dm-fn { color: var(--dm-muted); font-weight: 600; padding: .4em .12em; }
.dm-card.dm-card--noimg .dm-card-body { padding: .85rem 1rem; }
.dm-card.dm-card--noimg p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .2rem 0 0; }
.dm-card.dm-card--noimg .dm-card-meta { margin-top: .35rem; }
.dm-page .dm-credit, .dm-page figcaption, .dm-page .dm-card-meta { color: #5c4a28; }
.dm-page .dm-credit { font-size: .8rem; }
.dm-page .dm-hi-name { font-size: 1.22rem; }
.dm-page .dm-card-body .dm-card-hi { font-size: .93rem; }
html[lang="hi"] .dm-page .dm-prose > p, html[lang="hi"] .dm-page .dm-prose li { font-size: 1.05em; }
@media print { .dm-ptabs, .dm-visitcard { display: none !important; } .dm-panel[hidden] { display: block !important; } }
/* the section bar names the part being read through the old contents list; a tabbed page shows its tabs instead */
.dm-body:has(.dm-ptabs) .dm-secbar-now { display: none; }
/* PLACE-SLIM hub (2026-11-16): four ways in, compact region cards, folded long text */
.dm-hub-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0 1.4rem; }
@media (min-width: 760px) { .dm-hub-start { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dm-hub-start > .dm-hub-tile:nth-child(5):last-child { grid-column: 1 / -1; }   /* D-159: the fifth tile (planner) spans its row */
@media (min-width: 1000px) { .dm-hub-start:has(> .dm-hub-tile:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dm-hub-start > .dm-hub-tile:nth-child(5):last-child { grid-column: auto; } }
.dm-hub-tile { display: flex; flex-direction: column; gap: .2rem; min-height: 96px; padding: .9rem 1rem; background: #fff; border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius); box-shadow: var(--dm-shadow); text-decoration: none !important; color: var(--dm-ink); transition: box-shadow .16s ease, transform .16s ease; }
.dm-hub-tile:hover { box-shadow: var(--dm-shadow-hover); transform: translateY(-1px); }
.dm-hub-tile svg { width: 24px; height: 24px; color: var(--dm-dark); margin-bottom: .2rem; }
.dm-hub-tile b { font: 800 1.05rem/1.2 var(--dm-head); color: var(--dm-dark); }
.dm-hub-tile small { font-size: .82rem; line-height: 1.35; color: var(--dm-muted); }
@media (max-width: 640px) {
  .dm-hub-regions .dm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .dm-hub-regions .dm-card-body { padding: .6rem .75rem .7rem; }
  .dm-hub-regions .dm-card-body p, .dm-hub-regions .dm-card-meta { display: none; }
  .dm-hub-regions .dm-card-body h3 { font-size: 1rem; margin: 0; }
}
.dm-hub-more { margin: 2.2rem 0 1rem; }
/* PLACE-SLIM map: on phones the four map tabs wrap instead of running off the screen */
@media (max-width: 640px) { .dm-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 0; } .dm-tabs button { min-height: 44px; } }

/* HI-TOP20 (D-118, 2026-11-17): the short Hindi page note */
.dm-hi-short { background: var(--dm-cream); border: 1px solid var(--dm-cream-2); border-left: 4px solid var(--dm-accent, var(--dm-dark));
  border-radius: var(--dm-radius); padding: .8rem 1rem; margin: 1rem 0 1.2rem; font-size: 1rem; line-height: 1.6; color: var(--dm-text); }
.dm-hi-short b { display: block; color: var(--dm-dark); margin-bottom: .2rem; }
.dm-hi-short a { color: var(--dm-dark); font-weight: 600; text-decoration: underline; }
