/* Dham-Māhātmya: "Near me" and the parikramā walking guide (owner request D-114, 2026-10-29). Loaded only on Near me and the parikramā
   guides (render.php dm_layout). Big touch targets (44–52 px), plain contrast; the arrival card sits at the bottom of the screen. */
.dm-guide [hidden], .dm-gd-arrive[hidden] { display: none !important; }
.dm-guide { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); box-shadow: var(--dm-shadow); padding: 1.1rem 1.1rem 1.2rem; margin: 0 0 1.6rem; }
.dm-guide--route h2 { font-family: var(--dm-head); font-weight: 800; color: var(--dm-dark); font-size: 1.25rem; line-height: 1.3; margin: 0 0 .45rem; }
.dm-gd-intro { font-size: .95rem; line-height: 1.6; color: var(--dm-text-2); margin: 0 0 .9rem; }
.dm-page .dm-btn.dm-gd-go, .dm-gd-go { font-size: 1.12rem; padding: .85rem 1.7rem; min-height: 52px; cursor: pointer; }
.dm-btn.dm-gd-go svg { width: 22px; height: 22px; }
.dm-gd-start { display: block; }
.dm-gd-private { display: flex; gap: .45rem; align-items: flex-start; margin: 1.5rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--dm-text-2); }
.dm-page .dm-guide .dm-gd-start .dm-gd-private { margin: 1.5rem 0 0; }   /* space below the Start button (beats the page's paragraph reset) */
.dm-gd-private svg { width: 18px; height: 18px; flex: none; margin-top: .12rem; color: var(--dm-dark); }
.dm-guide .dm-gd-how { list-style: none; counter-reset: gd; margin: 1rem 0 .4rem; padding: 0; font-size: .98rem; line-height: 1.6; color: var(--dm-text); }   /* flush left, under Start */
.dm-guide .dm-gd-how li { counter-increment: gd; position: relative; margin: 0; padding: 0 0 0 2.1rem; min-height: 1.6rem; }
.dm-guide .dm-gd-how li + li { margin-top: .5rem; }
.dm-guide .dm-gd-how li::before { content: counter(gd); position: absolute; left: 0; top: .12rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--dm-dark); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; }
.dm-gd-count { margin: .6rem 0 0; }
.dm-gd-live { scroll-margin-top: 76px; }   /* below the fixed section bar when Start scrolls it into view */
.dm-gd-status { margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--dm-bg); border: 1px solid var(--dm-line-2); font-size: .95rem; line-height: 1.5; color: var(--dm-text); }
.dm-gd-status.is-weak { background: #fff3cd; border-color: #e2cf9e; color: #5d4a1f; }
.dm-gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dm-gd-item { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .65rem; border: 1px solid var(--dm-line); border-radius: 12px; background: #fff; min-height: 64px; }
.dm-gd-dial { position: relative; display: block; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--dm-cream); border: 2px solid #ecdcae; }
.dm-gd-ring { position: absolute; inset: 0; display: block; }
.dm-gd-n { position: absolute; top: 1px; left: 0; right: 0; text-align: center; font-style: normal; font-weight: 800; font-size: .62rem; line-height: 1; color: #b3261e; }
.dm-gd-arrow { position: absolute; inset: 9px; display: block; }
.dm-gd-arrow svg { display: block; width: 100%; height: 100%; fill: var(--dm-dark); }
.dm-gd-main { min-width: 0; }
.dm-gd-name { display: block; font-weight: 700; font-size: 1.04rem; line-height: 1.3; color: var(--dm-dark); overflow-wrap: anywhere; }
.dm-page a.dm-gd-name { color: var(--dm-dark); text-decoration: underline; text-decoration-color: var(--dm-line); text-underline-offset: 3px; }
.dm-gd-meta { display: block; margin-top: .15rem; font-size: .9rem; line-height: 1.45; color: var(--dm-text-2); }
.dm-gd-d { color: var(--dm-ink); font-weight: 800; }
.dm-gd-meta small { color: var(--dm-muted); font-size: .82rem; }
.dm-gd-meta small.dm-gd-ok { color: #1f6b45; }
.dm-page a.dm-gd-walk, .dm-gd-walk { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .85rem; border-radius: 999px; background: var(--dm-dark); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dm-gd-more { margin-top: .7rem; }
.dm-gd-tools { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 .3rem; }
.dm-gd-tog { min-height: 44px; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--dm-line); background: #fff; color: var(--dm-dark); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.dm-gd-tog::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .45rem; border-radius: 50%; border: 2px solid var(--dm-sep); vertical-align: -.05rem; box-sizing: border-box; }
.dm-gd-tog[aria-pressed="true"] { background: var(--dm-dark); color: #fff; border-color: var(--dm-dark); }
.dm-gd-tog[aria-pressed="true"]::before { background: #9fe0b8; border-color: #9fe0b8; }
.dm-gd-hint { margin: .3rem 0 0; }
.dm-gd-mapbox { margin-top: 1rem; }
.dm-gd-mapbox .dm-note { margin: .4rem 0 0; }
.dm-gd-map { height: 62vh; min-height: 320px; margin-top: .7rem; border-radius: 12px; border: 1px solid var(--dm-line); overflow: hidden; }
.dm-gd-stop { margin-top: 1rem; cursor: pointer; }
.dm-gd-help { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fff3cd; border: 1px solid #e2cf9e; color: #5d4a1f; font-size: .95rem; line-height: 1.55; }
.dm-gd-help-t { font-weight: 800; margin: 0 0 .4rem; }
.dm-gd-help ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.dm-gd-help li + li { margin-top: .35rem; }
/* a parikramā: the next stop */
.dm-gd-target { text-align: center; }
.dm-gd-stopno { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--dm-accent); }
.dm-guide .dm-gd-tname { margin: .2rem 0 .6rem; font-family: var(--dm-head); font-weight: 800; font-size: 1.35rem; line-height: 1.25; color: var(--dm-dark); }
.dm-gd-big { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .4rem 0 .6rem; }
.dm-gd-dial--big { width: 96px; height: 96px; }
.dm-gd-dial--big .dm-gd-arrow { inset: 16px; }
.dm-gd-dial--big .dm-gd-n { top: 3px; font-size: .8rem; }
.dm-gd-bigtxt { text-align: left; }
.dm-gd-bigtxt .dm-gd-d { display: block; font-size: 2rem; line-height: 1.1; }
.dm-gd-bigtxt .dm-gd-w { display: block; margin-top: .15rem; font-size: 1rem; color: var(--dm-text-2); }
.dm-gd-onway { text-align: left; margin: .2rem 0 .7rem; }
.dm-gd-acts, .dm-gd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .6rem; }
.dm-gd-nav { grid-template-columns: 1fr 1fr 1fr; }
.dm-gd-acts .dm-btn, .dm-gd-nav .dm-btn { justify-content: center; min-height: 48px; font-size: .92rem; cursor: pointer; }
.dm-gd-nav .dm-btn[disabled], .dm-gd-acts .dm-btn[disabled] { opacity: .45; cursor: default; }
.dm-gd-again { margin-top: .8rem; padding: .5rem; border: 0; background: none; color: var(--dm-dark); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.dm-gd-msg { margin: .7rem 0 0; padding: .55rem .8rem; border-radius: 10px; background: #e8f5ee; color: #1f4d36; font-size: .92rem; line-height: 1.5; }
/* arrival: a card fixed at the bottom of the screen (appended to body) */
.dm-gd-arrive { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 560px; margin: 0 auto; padding: .9rem 1rem 1rem; border-radius: 16px; background: #fff; border: 2px solid #2e7d4f; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: var(--dm-body); }
.dm-gd-arrive-t { margin: 0; font-size: 1.12rem; line-height: 1.45; color: var(--dm-ink); }
.dm-gd-arrive-t b { color: #1f6b45; }
.dm-gd-also { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--dm-text-2); }
.dm-gd-arrive-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.dm-gd-arrive .dm-btn { min-height: 46px; cursor: pointer; }
.dm-gd-arrive a.dm-btn { color: #fff; text-decoration: none; }
.dm-gd-arrive .dm-btn--ghost { color: var(--dm-dark); }
/* the parikramā index: one line to Near me */
.dm-gd-promo { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 1.4rem; padding: .75rem .95rem; border-radius: 12px; background: var(--dm-cream); border: 1px solid #ecdcae; font-size: .95rem; line-height: 1.55; color: var(--dm-text); }
.dm-gd-promo svg { width: 20px; height: 20px; flex: none; margin-top: .12rem; color: var(--dm-dark); }
@media (max-width: 480px) {
  .dm-guide { padding: .9rem .8rem 1rem; }
  .dm-gd-item { grid-template-columns: 46px minmax(0, 1fr); }
  .dm-gd-item .dm-gd-walk { grid-column: 2; justify-self: start; }
  .dm-gd-nav { grid-template-columns: 1fr 1fr; }
  .dm-gd-nav .dm-btn:last-child { grid-column: 1 / -1; }
}
