/* Design: chandan (sandalwood) pages, kumkum-maroon sanctum panels, kesar saffron and
   genda (marigold) gold. Shekhawati cusped arch, marigold torans and lotus dividers. */
:root {
  --wall: #F8EFDF;        /* chandan */
  --wall-2: #F0E2C8;
  --paper: #FFFAF0;
  --ink: #3B1512;         /* kumkum-brown ink */
  --ink-soft: #6E4A3C;
  --rule: #E5D0AE;
  --kesar: #A84309;       /* kesar, text-safe (AA on every light surface) */
  --kesar-soft: #FBE0C2;
  --mor: #9B1C22;         /* kumkum red (links, accents) */
  --mor-soft: #F7DAD3;
  --night: #5A0F14;       /* sanctum maroon */
  --night-2: #2E0709;
  --gold: #F2B233;        /* genda */
  --on-night: #FFF3DD;
  --on-night-soft: #EBC9A6;
  --focus: #A84309;
  --f-display: "Rozha One", "Tiro Devanagari Hindi", Georgia, serif;
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-verse: "Tiro Devanagari Hindi", "Rozha One", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #1D0E0B; --wall-2: #271410; --paper: #2B1612; --ink: #F7E8D2; --ink-soft: #D2B79C; --rule: #4B2D22;
    --kesar: #F59A3C; --kesar-soft: #3C2214; --mor: #F2907F; --mor-soft: #3E1B18;
    --night: #2A0709; --night-2: #160304; --gold: #F5BE4A; --on-night: #FFF3DD; --on-night-soft: #E2C3A2; --focus: #F59A3C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #1D0E0B; --wall-2: #271410; --paper: #2B1612; --ink: #F7E8D2; --ink-soft: #D2B79C; --rule: #4B2D22;
  --kesar: #F59A3C; --kesar-soft: #3C2214; --mor: #F2907F; --mor-soft: #3E1B18;
  --night: #2A0709; --night-2: #160304; --gold: #F5BE4A; --on-night: #FFF3DD; --on-night-soft: #E2C3A2; --focus: #F59A3C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--mor); text-underline-offset: 3px; }
a:hover { color: var(--kesar); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.25; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--f-display); font-weight: 400; font-size: var(--step-4); line-height: 1.15; letter-spacing: 0.005em; }
.h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kesar); }
.eyebrow.on-dark { color: var(--gold); }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 62ch; line-height: 1.6; }
.prose { display: grid; gap: 0.9em; max-width: 66ch; }
.note { font-size: var(--step--1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; }

/* skip link */
#skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--wall); padding: 8px 14px; }
#skip:focus { left: 12px; top: 12px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1; }
.brand svg { width: 34px; height: 42px; flex: none; }
.brand-text { display: grid; min-width: 0; }
#brand-name { font-family: var(--f-display); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#brand-sub { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-actions { display: flex; gap: 8px; flex: none; }
.pill-btn { font: 600 0.9rem/1 var(--f-body); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.pill-btn:hover { background: var(--ink); color: var(--paper); }
#menu-btn { display: none; width: 46px; height: 46px; padding: 0; align-items: center; justify-content: center; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#menu-btn svg { width: 26px; height: 26px; display: block; }
#menu-btn:hover, #menu-btn[aria-expanded="true"] { border-color: var(--kesar); color: var(--kesar); }
.nav-row { border-top: 1px solid var(--rule); }
#nav-main { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav-item { position: relative; display: flex; align-items: stretch; }
#nav-main .nav-item > a { display: block; padding: 11px 6px 11px 10px; white-space: nowrap; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.98rem; border-bottom: 3px solid transparent; }
#nav-main .nav-item:not(.has-sub) > a { padding-right: 10px; }
#nav-main .nav-item > a:hover { color: var(--ink); }
#nav-main .nav-item > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--kesar); }
.sub-toggle { background: none; border: 0; color: var(--ink-soft); width: 26px; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
.nav-item.open .sub-toggle svg { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(90, 15, 20, .18); display: none; z-index: 50; }
.nav-item.open .sub { display: grid; }
@media (hover: hover) and (pointer: fine) { .has-sub:hover .sub { display: grid; } }
.sub a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.sub a:hover, .sub a:focus-visible { background: var(--wall-2); color: var(--kesar); }
.nav-item:last-child .sub { left: auto; right: 0; }
@media (max-width: 560px) { .pill-btn { padding: 8px 11px; } }
@media (max-width: 860px) {
  .nav-row { display: none; }
  #menu-btn { display: inline-flex; }
}

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
#drawer-scrim { position: absolute; inset: 0; background: rgba(30, 6, 6, 0.6); border: 0; width: 100%; cursor: pointer; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--paper); padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; display: grid; align-content: start; gap: 8px; }
#drawer-close { justify-self: end; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; cursor: pointer; }
#drawer-close svg { width: 26px; height: 26px; }
#drawer-nav ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--rule); }
#drawer-nav a { display: block; padding: 9px 4px; color: var(--ink); text-decoration: none; font-size: 1rem; }
#drawer-nav .dr-top, .dr-group summary { display: flex; align-items: center; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--rule); font-size: 1.1rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.dr-top svg { width: 20px; height: 20px; }
.dr-group summary { list-style: none; justify-content: space-between; }
.dr-group summary::-webkit-details-marker { display: none; }
.dr-group summary::after { content: "+"; color: var(--kesar); font-size: 1.4rem; line-height: 1; }
.dr-group[open] summary::after { content: "−"; }
.dr-group[open] summary { border-bottom: 0; }
.dr-group summary.is-active, #drawer-nav a[aria-current="page"] { color: var(--kesar); }
.drawer-h { margin-top: 18px; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--f-body); padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); background: var(--mor); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold); color: #3B1512; }
.btn-gold:hover { background: #F5C866; color: #3B1512; }
.btn-outline-light { color: var(--on-night); border-color: rgba(255, 243, 221, 0.5); }
.btn-outline-light:hover { color: var(--night); background: var(--on-night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--mor); text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.on-dark { color: var(--gold); }

/* hero */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, #8A1C1C 0%, var(--night) 55%, var(--night-2) 100%); color: var(--on-night); overflow: hidden; }
.toran { height: 18px; opacity: .9; background-image:
  conic-gradient(from 135deg at 50% 0, #E07A1F 0 90deg, transparent 90deg),
  conic-gradient(from 135deg at 50% 0, #2F7A3A 0 90deg, transparent 90deg),
  conic-gradient(from 135deg at 50% 0, #E9B44C 0 90deg, transparent 90deg);
  background-size: 108px 18px; background-position: 0 0, 36px 0, 72px 0; background-repeat: repeat-x; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero-title { color: var(--on-night); font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.4rem); }
.hero-dham { font-family: var(--f-display); font-size: var(--step-2); color: var(--gold); margin-top: -8px; }
.naman { margin: 6px 0 0; padding: 14px 0 14px 18px; border-left: 3px solid var(--gold); }
.naman p { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.55; color: var(--on-night); }
.naman .naman-tr { font-family: var(--f-body); font-size: var(--step--1); color: var(--on-night-soft); margin-top: 6px; }
.hero-intro { color: var(--on-night-soft); max-width: 58ch; }
.hero-art { margin: 0; display: grid; gap: 8px; justify-items: center; }
.hero-art svg { width: 100%; max-width: 380px; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero-arch-outer { fill: none; stroke: #E9B44C; stroke-width: 3; }
.hero-art figcaption { font-size: 0.78rem; color: var(--on-night-soft); }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s ease both; }
  .hero-text > *:nth-child(2) { animation-delay: .06s; } .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero-text > *:nth-child(4) { animation-delay: .18s; } .hero-text > *:nth-child(5) { animation-delay: .24s; }
  .hero-art { animation: glow 1.2s ease both .15s; }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes glow { from { transform: scale(.97); } to { transform: none; } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; } .hero-art svg { max-width: 240px; }
}

/* sections */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.band-mor + .section, .visit-band + .section { padding-top: clamp(36px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.welcome-grid > div:first-child { display: grid; gap: 12px; justify-items: start; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.duo-item { display: grid; gap: 12px; align-content: start; padding: 28px clamp(0px, 3vw, 32px) 28px 0; }
.duo-item + .duo-item { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 32px); }
@media (max-width: 760px) {
  .welcome-grid, .duo { grid-template-columns: 1fr; }
  .duo-item + .duo-item { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}
.band-mor { background: var(--night); color: #FFF3DD; padding-block: clamp(40px, 6vw, 72px); }
.band-mor .h1 { color: #FFF3DD; }
.pillars { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: p; }
.pillar { padding: 22px 24px 22px 0; display: grid; gap: 8px; align-content: start; }
.pillar + .pillar { border-left: 1px solid rgba(255,255,255,.25); padding-left: 24px; }
.pillar p { color: #F1D4B3; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; } }

/* events */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 16px; }
.ev-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(90, 15, 20, .14); }
.ev-link { display: grid; color: inherit; text-decoration: none; height: 100%; grid-template-rows: auto 1fr; }
.ev-link:hover { color: inherit; }
.ev-art { position: relative; aspect-ratio: 16 / 8; overflow: hidden; max-width: 100%; }
.ev-art svg, .art svg { width: 100%; height: 100%; display: block; }
.ev-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px; }
.ev-date { display: grid; justify-items: center; align-content: start; min-width: 62px; padding: 8px 6px; border: 1.5px solid var(--ink); border-radius: 30px 30px 6px 6px; }
.ev-day { font-family: var(--f-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-mon { font-size: 0.75rem; text-align: center; line-height: 1.3; color: var(--ink-soft); }
.ev-text { display: grid; gap: 6px; min-width: 0; }
.ev-cat { font-size: var(--step--1); color: var(--kesar); font-weight: 600; }
.ev-cat strong { color: var(--mor); }
.ev-cat.on-dark { color: var(--gold); }
.ev-tithi { display: flex; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--ink-soft); }
.ev-tithi svg { width: 15px; height: 15px; flex: none; color: var(--mor); }
.ev-sum { color: var(--ink-soft); font-size: 0.97rem; }
.empty { color: var(--ink-soft); padding: 24px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { font: 500 0.92rem var(--f-body); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--kesar); border-color: var(--kesar); color: var(--paper); }

/* event page */
.ev-hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; }
.ev-hero-art { position: absolute; inset: 0; opacity: .45; }
.ev-hero-art svg { width: 100%; height: 100%; display: block; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46,7,9,.95) 0%, rgba(46,7,9,.6) 60%, rgba(46,7,9,.2) 100%); }
.ev-hero-inner { position: relative; z-index: 1; display: grid; gap: 12px; padding-block: clamp(28px, 6vw, 64px); }
.ev-hero-inner .display { color: var(--on-night); }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--on-night-soft); text-decoration: none; font-weight: 600; width: fit-content; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--gold); }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 5vw, 56px); padding-block: 36px 64px; align-items: start; }
.ev-main { display: grid; gap: 20px; min-width: 0; }
.ev-main > .h2 { margin-top: 12px; }
.ev-side { display: grid; gap: 20px; position: sticky; top: 130px; }
@media (max-width: 860px) { .ev-layout { grid-template-columns: minmax(0, 1fr); } .ev-side { position: static; } }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.facts dt svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--kesar); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--kesar); }
.schedule li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0 10px 18px; position: relative; }
.schedule li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--wall); border: 2px solid var(--kesar); }
.sch-t { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--mor); }
@media (max-width: 480px) { .schedule li { grid-template-columns: 1fr; gap: 0; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 12px; border-radius: 3px 3px 50% 50%; background: var(--kesar); transform: rotate(180deg); }
.share-box, .related { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; width: 0; min-width: 0; font: 0.85rem var(--f-body); padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--wall); color: var(--ink); }
.copy-msg { font-size: var(--step--1); color: var(--mor); min-height: 1.2em; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rel-list a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.rel-list a:hover span:last-child { color: var(--kesar); }
.rel-date { font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* page head + article pages */
.page-head { background: var(--wall-2); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 14px; padding-block: clamp(32px, 6vw, 64px); }
.with-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: 40px 64px; align-items: start; }
.toc { position: sticky; top: 130px; }
.toc-h { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc button { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; font: 0.95rem/1.4 var(--f-body); color: var(--ink); background: none; border: 0; border-left: 2px solid var(--rule); padding: 7px 0 7px 12px; cursor: pointer; }
.toc button:hover { border-left-color: var(--kesar); color: var(--kesar); }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); }
}
.sec-list { display: grid; gap: 0; min-width: 0; }
.sec { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.sec:first-child { padding-top: 0; }
.sources ul { margin: 6px 0 0; padding-left: 1.2em; }
.sources { padding-top: 28px; display: grid; gap: 8px; font-size: 0.95rem; }

.dham-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: center; padding-block: 40px 0; }
.feature-text { display: grid; gap: 14px; justify-items: start; }
.big-quote { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.4; }
@media (max-width: 760px) { .dham-feature { grid-template-columns: 1fr; } }

/* announcements */
.ann-home { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 5vw, 64px); }
.ann-home > div:first-child { display: grid; gap: 12px; align-content: start; justify-items: start; }
@media (max-width: 760px) { .ann-home { grid-template-columns: 1fr; } }
.ann-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.ann { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ann time { font-size: var(--step--1); color: var(--kesar); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 3px; }
.ann > div { display: grid; gap: 6px; justify-items: start; }
.ann .h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ann p { color: var(--ink-soft); }
@media (max-width: 520px) { .ann { grid-template-columns: 1fr; gap: 4px; } }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 12px; }
.gal-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal-small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .gal-preview, .gal-small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal-tile { margin: 0; display: grid; gap: 8px; }
.gal-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--night); }
.gal-btn svg { width: 100%; height: 100%; display: block; transition: transform .3s ease; }
.gal-btn:hover svg { transform: scale(1.04); }
.gal-tile figcaption { display: grid; gap: 0; }
.gal-t { font-weight: 600; line-height: 1.35; }
.gal-c { font-size: var(--step--1); color: var(--ink-soft); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(22, 4, 5, 0.94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); color: #F3F1E8; }
.lb-top { display: flex; justify-content: flex-end; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 0; }
#lb-figure { position: relative; margin: 0 auto; width: 100%; max-width: 920px; max-height: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
#lb-figure svg { width: 100%; height: 100%; display: block; }
#lb-caption { max-width: 760px; margin: 14px auto 0; display: grid; gap: 6px; text-align: center; font-size: 0.97rem; color: #F1DCC4; }
.lb-t { font-weight: 700; color: #fff; font-size: 1.1rem; }
.lb-count { font-weight: 400; color: #D9B99A; font-variant-numeric: tabular-nums; margin-left: 8px; }
.lb-cat { color: #D9B99A; }
@media (max-width: 640px) {
  .lb-stage { grid-template-columns: 1fr; }
  #lb-prev, #lb-next { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  #lb-prev { left: 16px; } #lb-next { right: 16px; }
  #lb-caption { padding-bottom: 56px; }
}

/* bhajans */
.bh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-top: 12px; align-items: start; }
.bh-item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.bh-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bh-head > div { min-width: 0; }
.bh-type { font-size: var(--step--1); color: var(--kesar); font-weight: 600; }
.bh-desc { color: var(--ink-soft); font-size: 0.97rem; }
.bh-text summary { cursor: pointer; font-weight: 600; color: var(--mor); }
.verse { margin-top: 10px; padding: 16px 18px; background: var(--wall); border-radius: var(--radius); display: grid; gap: 8px; font-size: 1.02rem; }

/* visit */
.visit-band { background: var(--wall-2); padding-block: clamp(40px, 6vw, 72px); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 56px); align-items: center; }
.visit-grid > div { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }
.route { margin: 0; display: grid; gap: 6px; }
.route svg { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.route figcaption { font-size: 0.8rem; color: var(--ink-soft); }
.r-line { fill: none; stroke: var(--ink-soft); stroke-width: 2.5; }
.r-node { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.r-hub { fill: var(--ink); }
.r-dham { fill: var(--kesar); }
.r-t { font: 600 17px var(--f-body); fill: var(--ink); }
.r-acc { fill: var(--kesar); }
.r-s { font: 13px var(--f-body); fill: var(--ink-soft); }
.r-k { font: 600 14px var(--f-body); fill: var(--mor); }
.map-block { display: grid; gap: 16px; margin-top: 12px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 16 / 9; max-width: 100%; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.travel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin-top: 16px; }
.travel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.travel p { color: var(--ink-soft); }
.weather { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 56px); align-items: start; }
.two-col > div { display: grid; gap: 16px; align-content: start; justify-items: start; }
.two-col > div > * { justify-self: stretch; }
.two-col > div > .btn { justify-self: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.faq { display: grid; border-top: 1px solid var(--rule); margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--kesar); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .prose { padding-bottom: 18px; color: var(--ink-soft); }
.faq-group + .faq-group { margin-top: 40px; }
.contact-info { display: grid; gap: 14px; }

/* footer */
#footer { background: var(--night); color: var(--on-night-soft); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; font-size: 0.95rem; }
.foot-grid > div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-name { font-family: var(--f-display); font-size: 1.35rem; color: var(--on-night); line-height: 1.3; }
.foot-naman { font-family: var(--f-display); color: var(--gold); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.foot-links a { color: var(--on-night); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.foot-proto { font-size: 0.82rem; }
#footer .link-arrow { color: var(--gold); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.pillars-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pillar-year { font-family: var(--f-display); font-size: var(--step-2); color: var(--gold); line-height: 1.1; }
@media (max-width: 1000px) { .pillars-5 { grid-template-columns: 1fr; } .pillars-5 .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding-left: 0; } }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 0 0 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 150px; top: 14px; bottom: -6px; width: 2px; background: var(--rule); transform: translateX(9px); }
.timeline li:last-child::before { display: none; }
.tl-year { font-family: var(--f-display); font-size: var(--step-1); color: var(--kesar); text-align: right; line-height: 1.3; padding-top: 2px; }
.tl-body { display: grid; gap: 6px; padding-left: 28px; position: relative; }
.tl-body::before { content: ""; position: absolute; left: 3px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--wall); border: 2.5px solid var(--kesar); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; } .timeline li::before { left: 0; transform: translateX(5px); } .tl-year { text-align: left; } .tl-body { padding-left: 0; } .tl-body::before { left: -24px; } }
.fest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 16px; }
.fest-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: 140px 140px var(--radius) var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.fest-card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(90, 15, 20, .14); }
.fest-art { aspect-ratio: 16 / 9; overflow: hidden; max-width: 100%; }
.fest-art svg { width: 100%; height: 100%; display: block; }
.fest-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.fest-next { font-size: 0.95rem; color: var(--mor); margin-top: 4px; }
.ev-hero-tithi { display: flex; gap: 8px; align-items: center; color: var(--on-night-soft); }
.ev-hero-tithi svg { width: 18px; height: 18px; color: var(--gold); }
a.ev-cat.on-dark { text-decoration: none; }
.press { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.press a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.press a:hover { border-color: var(--ink); color: var(--ink); }
.press-outlet { font-family: var(--f-display); font-size: var(--step-1); }
.press-date { font-size: var(--step--1); color: var(--kesar); font-weight: 600; }
.press-note { color: var(--ink-soft); font-size: 0.95rem; }
.press-cta { display: inline-flex; gap: 6px; align-items: center; color: var(--mor); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.press-cta svg { width: 15px; height: 15px; }
.route-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-block: 16px 20px; }
.route-km { font-family: var(--f-display); font-size: var(--step-2); color: var(--kesar); line-height: 1.1; }
.via { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px dashed var(--kesar); display: grid; gap: 4px; }
.via li { position: relative; }
.via li::before { content: ""; position: absolute; left: -20px; top: 0.65em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--kesar); }
.via .via-end { font-weight: 700; color: var(--kesar); }
.r-vil { fill: var(--paper); stroke: var(--kesar); stroke-width: 2.5; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; background: var(--wall-2); padding: 1px 6px; border-radius: 4px; }
.lead-sm { color: var(--ink-soft); margin-bottom: 14px; max-width: 66ch; }
.st { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- final-site additions ---------- */
.soon { display: inline-flex; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--kesar); background: var(--kesar-soft); padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }
details.sources { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-soft); }
details.sources summary { cursor: pointer; font-weight: 600; width: fit-content; }
details.sources ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
details.sources a { color: var(--ink-soft); }
.stories { display: grid; gap: 22px; margin-top: 18px; }
.story { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); scroll-margin-top: 130px; }
.story-art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 110px 110px 8px 8px; overflow: hidden; }
.story-art svg { width: 100%; height: 100%; display: block; }
.story-n { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #3B1512; font-family: var(--f-display); display: grid; place-items: center; font-size: 1.1rem; }
.story-body { display: grid; gap: 10px; min-width: 0; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; } .story-art { max-width: 320px; } }
.story-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.story-mini { display: grid; gap: 10px; align-content: start; color: inherit; text-decoration: none; }
.story-mini:hover { color: inherit; }
.story-mini:hover .h3 { color: var(--kesar); }
.story-mini p { color: var(--ink-soft); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 12px; }
.branch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.branch > svg { width: 34px; height: 34px; color: var(--kesar); }
.branch > div { display: grid; gap: 6px; }
.branch p { color: var(--ink-soft); }
.branch-addr { display: flex; gap: 6px; align-items: center; }
.branch-addr svg { width: 16px; height: 16px; color: var(--mor); }
.bh-item.is-soon { border-style: dashed; }
.note svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--mor); }
.contact-info .h3 { margin-top: 10px; }
.schedule li { grid-template-columns: 170px minmax(0, 1fr); }
.schedule li:not(:has(.sch-t)) { grid-template-columns: 1fr; }

/* ---------- photos & shrines ---------- */
.ph-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--night); cursor: zoom-in; border-radius: inherit; overflow: hidden; }
.ph-btn img, .gal-btn img, .fest-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ph-btn:hover img, .gal-btn:hover img { transform: scale(1.03); }
.feature-photo { margin: 0; border-radius: 180px 180px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 420px; max-height: 560px; width: 100%; justify-self: center; box-shadow: 0 20px 40px rgba(90, 15, 20, .2); }
.feature-photo .ph-btn { height: 100%; }
.shrines { display: grid; gap: 22px; margin-top: 18px; }
.shrine { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); scroll-margin-top: 130px; }
.shrine-photos { display: grid; gap: 8px; border-radius: 120px 120px 8px 8px; overflow: hidden; }
.shrine-photos .ph-btn { aspect-ratio: 3 / 4; max-width: 100%; }
.shrine-photos.two { grid-template-columns: 1fr 1fr; border-radius: 8px; }
.shrine-photos.two .ph-btn { border-radius: 8px; }
.shrine-photos:not(.two) .ph-btn:has(img[width="440"]) { aspect-ratio: 4 / 3; }
.shrine-body { display: grid; gap: 8px; min-width: 0; }
.shrine-body p:last-child { color: var(--ink-soft); }
@media (max-width: 640px) { .shrine { grid-template-columns: 1fr; } .shrine-photos:not(.two) { max-width: 300px; } }
.shrine-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .shrine-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shrine-mini { display: grid; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.shrine-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 100px 100px 8px 8px; display: block; transition: transform .3s ease; }
.shrine-mini:hover { color: var(--kesar); }
.shrine-mini:hover img { transform: translateY(-3px); }
#lb-figure img { width: 100%; height: 100%; object-fit: contain; display: block; background: #160304; }
.pillar-sub { font-size: 0.85rem; color: #F1D4B3; margin-top: -4px; }
.tl-year small { display: block; font-family: var(--f-body); font-size: 0.8rem; color: var(--ink-soft); }
.r-gate { fill: var(--gold); stroke: var(--kesar); }

/* ---------- aarti ---------- */
.aarti { list-style: none; margin: 8px 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.aarti li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.aarti .a-time { font-weight: 700; color: var(--mor); }
.aarti .a-name { font-weight: 600; }
.aarti li.is-closed { background: var(--wall-2); }
.aarti li.is-closed .a-time, .aarti li.is-closed .a-name { color: var(--ink-soft); font-weight: 500; }
.aarti li.is-now { background: var(--kesar-soft); }
.a-tag { font-size: 0.75rem; font-weight: 700; color: var(--paper); background: var(--kesar); padding: 1px 9px; border-radius: 999px; }
.aarti-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 0; }
.aarti-compact li { grid-template-columns: 140px minmax(0, 1fr) auto; border-top: 1px solid var(--rule); border-bottom: 0; }
@media (max-width: 640px) { .aarti-compact { grid-template-columns: 1fr; } .aarti li { grid-template-columns: 120px minmax(0, 1fr) auto; } }
.aarti-home { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 5vw, 56px); align-items: start; }
.aarti-home > div:first-child { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 860px) { .aarti-home { grid-template-columns: 1fr; } }

.contact-single .contact-info { max-width: 760px; }
.branch-addr a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

/* ===== devotional layer ===== */
/* marigold garland: alternating kesar and genda beads */
.toran, .site-header::after, #footer::before {
  background-image:
    radial-gradient(circle at 6px 6px, #F7A51C 5px, transparent 5.6px),
    radial-gradient(circle at 18px 6px, #E8590C 5px, transparent 5.6px);
  background-size: 24px 12px; background-repeat: repeat-x; opacity: 1;
}
.toran { height: 22px; background-image:
    radial-gradient(circle at 6px 6px, #F7A51C 5px, transparent 5.6px),
    radial-gradient(circle at 18px 6px, #E8590C 5px, transparent 5.6px),
    conic-gradient(from 150deg at 50% 0, #2F7A3A 0 60deg, transparent 60deg);
  background-size: 24px 12px, 24px 12px, 48px 22px; background-position: 0 0, 0 0, 0 0; }
.site-header { border-bottom: 0; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; pointer-events: none; }
.nav-row { border-top-color: var(--rule); }

/* hero: sanctum maroon with a golden prabhamandal behind Baba Ji */
.hero { background: radial-gradient(110% 90% at 78% 40%, #8A1C1C 0%, var(--night) 45%, var(--night-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 76% 52%, rgba(245, 190, 74, .13) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle at 76% 52%, #000 0, #000 24%, transparent 58%);
          mask-image: radial-gradient(circle at 76% 52%, #000 0, #000 24%, transparent 58%); }
.hero-grid { position: relative; z-index: 1; }
.hero-arch-outer { stroke: #F5BE4A; stroke-width: 4; filter: drop-shadow(0 0 14px rgba(245, 190, 74, .55)); }
.naman { border-left: 0; padding: 14px 0; text-align: left; }
.naman p { font-family: var(--f-verse); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); color: #FFE7B0; }
.naman p[lang="hi"]::before { content: "॥\a0"; color: var(--gold); }
.naman p[lang="hi"]::after { content: "\a0॥"; color: var(--gold); }
.btn-gold { background: linear-gradient(180deg, #F7C45A, #E9A21B); color: #3B1512; box-shadow: 0 6px 18px rgba(233, 162, 27, .35); }
.btn-primary { background: var(--mor); color: #FFF7EA; }
.btn-primary:hover { background: var(--kesar); color: #FFF7EA; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #2A0709; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #2A0709; } }

/* headings get a small marigold garland */
.section-head .h1::after, .welcome-grid .h1::after, .sec > .h2::after, .page-head .display::after, .two-col .h1::after, .ann-home .h1::after, .aarti-home .h1::after {
  content: ""; display: block; width: 132px; height: 12px; margin-top: 10px;
  background-image:
    radial-gradient(circle at 6px 6px, #F7A51C 5px, transparent 5.6px),
    radial-gradient(circle at 18px 6px, #E8590C 5px, transparent 5.6px);
  background-size: 24px 12px; background-repeat: repeat-x;
}
.section-head { align-items: flex-end; }

/* lotus dividers between article sections */
.sec { border-bottom: 0; position: relative; padding-bottom: 44px; }
.sec::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath d='M0 12h92M148 12h92' stroke='%23D9A441' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='12' r='2.2' fill='%23D9A441'/%3E%3Ccircle cx='140' cy='12' r='2.2' fill='%23D9A441'/%3E%3Cg fill='%23E2641A'%3E%3Cpath d='M120 2c-5 5-5 13 0 19 5-6 5-14 0-19z'/%3E%3Cpath d='M120 21c-8-1-13-6-14-13 7 1 12 6 14 13z' opacity='.8'/%3E%3Cpath d='M120 21c8-1 13-6 14-13-7 1-12 6-14 13z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") center / 240px 24px no-repeat; }
.sec:last-of-type::after { display: none; }

/* home: lotus between sections */
#app > .section.wrap + .section.wrap::before { content: ""; display: block; height: 24px; margin: 0 auto 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath d='M0 12h92M148 12h92' stroke='%23D9A441' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='12' r='2.2' fill='%23D9A441'/%3E%3Ccircle cx='140' cy='12' r='2.2' fill='%23D9A441'/%3E%3Cg fill='%23E2641A'%3E%3Cpath d='M120 2c-5 5-5 13 0 19 5-6 5-14 0-19z'/%3E%3Cpath d='M120 21c-8-1-13-6-14-13 7 1 12 6 14 13z' opacity='.8'/%3E%3Cpath d='M120 21c8-1 13-6 14-13-7 1-12 6-14 13z' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") center / 240px 24px no-repeat; }

/* golden glow around deity photos */
.feature-photo, .shrine-photos, .shrine-mini img, .gal-btn, .fest-art {
  box-shadow: 0 0 0 3px #E9B44C, 0 0 0 6px rgba(233, 180, 76, .25), 0 14px 34px rgba(155, 28, 34, .18);
}
.shrine-photos { padding: 0; }
.shrine-mini img { margin: 6px; width: calc(100% - 12px); }
.gal-btn { border-radius: 120px 120px 10px 10px; }

/* cards: warm borders, saffron top line */
.ev-card, .fest-card, .shrine, .story, .branch, .travel, .bh-item, .share-box, .related, .press a { border-color: var(--rule); }
.shrine, .story, .branch, .bh-item { border-top: 3px solid var(--kesar); }

/* verse typeface */
.big-quote, .verse, .lead, .press-outlet { font-family: var(--f-verse); }
.big-quote { color: var(--mor); }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }

/* journey band and footer in sanctum maroon */
.band-mor { background: radial-gradient(120% 140% at 50% 0%, #7A161B 0%, #4A0B0F 70%); }
.band-mor .pillar p, .pillar-sub { color: #F1D4B3; }
.pillar + .pillar { border-left-color: rgba(245, 190, 74, .35); }
.pillar-year { color: #F5BE4A; }
#footer { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
#footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; }
.page-head { background: radial-gradient(90% 140% at 100% 0%, #F7DDB0 0%, var(--wall-2) 60%); }
:root[data-theme="dark"] .page-head { background: radial-gradient(90% 140% at 100% 0%, #3A1A10 0%, var(--wall-2) 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head { background: radial-gradient(90% 140% at 100% 0%, #3A1A10 0%, var(--wall-2) 60%); } }
.visit-band { background: var(--wall-2); }
.chip[aria-pressed="true"] { background: var(--mor); border-color: var(--mor); }
#nav-main .nav-item > a[aria-current="page"] { border-bottom-color: var(--gold); }
.aarti li.is-now { background: linear-gradient(90deg, #FDE7B8, #FBE0C2); }
:root[data-theme="dark"] .aarti li.is-now { background: #4A2A12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aarti li.is-now { background: #4A2A12; } }
.r-hub { fill: var(--mor); } .r-dham { fill: var(--kesar); }
@media (max-width: 820px) {
  .hero::before {
    background: repeating-conic-gradient(from 0deg at 50% 210px, rgba(245, 190, 74, .13) 0deg 5deg, transparent 5deg 15deg);
    -webkit-mask-image: radial-gradient(circle at 50% 210px, #000 0, #000 150px, transparent 420px);
            mask-image: radial-gradient(circle at 50% 210px, #000 0, #000 150px, transparent 420px);
  }
}

/* ===== phones ===== */
.pill-btn { min-height: 44px; }
@media (max-width: 560px) {
  .head-row { gap: 10px; padding-block: 8px; }
  .brand { gap: 9px; }
  .brand svg { width: 28px; height: 35px; }
  #brand-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1.02rem; line-height: 1.25; }
  #brand-sub { display: none; }
  .pill-btn { padding: 8px 12px; font-size: 0.86rem; }
}
@media (max-width: 860px) { html { scroll-padding-top: 76px; } }
.drawer-panel { animation: drawer-in .22s ease both; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
#drawer-nav .dr-group ul a { padding-block: 11px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.drawer-title { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.drawer-lang { margin-top: 14px; justify-self: start; }
.foot-naman::before { content: "॥\a0"; color: var(--gold); }
.foot-naman::after { content: "\a0॥"; color: var(--gold); }

/* touch screens: comfortable tap targets */
@media (pointer: coarse) {
  .link-arrow { min-height: 44px; }
  .toc button { min-height: 44px; }
  details.sources > summary, .bh-text > summary { min-height: 44px; display: flex; align-items: center; }
  .chip { min-height: 44px; }
  .btn.sm { min-height: 44px; }
}
/* route sketch: keep labels readable on phones, scroll sideways if needed */
@media (max-width: 640px) {
  .route-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
  .route-scroll svg { min-width: 600px; }
}

/* devotional books (PDF) */
.books { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; max-width: 940px; }
.book { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--kesar); border-radius: var(--radius); }
.book-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px #E9B44C, 0 10px 22px rgba(90, 15, 20, .22); transition: transform .15s ease; }
.book-cover:hover { transform: translateY(-2px); }
.book-cover img { display: block; width: 100%; height: auto; }
.book-body { display: grid; gap: 8px; min-width: 0; }
.book-body .h3 { font-family: var(--f-verse); font-weight: 400; font-size: 1.28rem; color: var(--mor); }
.book-sub { margin-top: -6px; color: var(--ink-soft); font-size: 0.95rem; }
.book-meta { font-size: 0.85rem; font-weight: 600; color: var(--kesar); letter-spacing: .02em; }
.book-by { font-size: 0.88rem; color: var(--ink-soft); }
.book-parts { border-top: 1px dashed var(--rule); padding-top: 10px; }
.book-parts-h { font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.book-parts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 18px; }
.book-parts a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 600; }
.book-parts a svg { width: 18px; height: 18px; color: var(--kesar); flex: none; }
.book-parts a .muted { font-weight: 400; }
.book-parts a:hover { color: var(--kesar); }
.btn-ghost svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .book { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; } }
@media (max-width: 420px) { .book-parts a .muted { margin-left: 26px; width: 100%; } }
.foot-credit { margin-top: 36px; }
.foot-credit p { border-top: 1px solid rgba(245, 190, 74, .25); padding-top: 18px; text-align: center; font-size: 0.85rem; color: var(--on-night-soft); }
.foot-credit a, .foot-maker { color: var(--on-night); font-weight: 600; text-decoration: none; }
.foot-credit a:hover { color: var(--gold); }
