/* Jyotishvanii — public site design system (2026)
   Brand palette from the logo: kesar = marigold #F6A61F (the disc), surya = sun yellow,
   raat = the logo's black, ivory = white. sindoor/pital are deep marigold for text-level use
   on white (AA contrast). Type: Lora (display) + Work Sans (UI), the brand's original pair,
   with Tiro Devanagari Hindi / Mukta covering Devanagari. */

:root {
  --raat-900: #121110;
  --raat-800: #1c1a18;
  --raat-700: #34302b;
  --raat-500: #6b6258;
  --sindoor: #a85a00;
  --sindoor-deep: #804400;
  --kesar: #f6a61f;
  --kesar-soft: #ffe2a3;
  --pital: #b36b00;
  --pital-light: #f6b73c;
  --chandan: #fde8c2;
  --chandan-soft: #fff5e3;
  --ivory: #ffffff;
  --ink: #1f1d1a;
  --ink-soft: #4a453f;
  --muted: #736b61;
  --line: rgba(31, 29, 26, 0.14);
  --line-strong: rgba(31, 29, 26, 0.28);
  --tulsi: #2f7d52;
  --tulsi-soft: #dcefe2;
  --busy: #b7791f;
  --danger: #b3261e;
  --surya: #ffd23f;
  --kesar-deep: #ff8700;

  --f-display: "Lora", "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --f-ui: "Work Sans", "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: 16px;
  --max: 1240px;
  --r-s: 6px;
  --r-m: 12px;
  --arch: 999px 999px 10px 10px;
  --shadow-lift: 0 18px 40px -22px rgba(18, 17, 16, 0.45);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 64px;
  --bottombar-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --header-h: 72px; --bottombar-h: 0px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
html[lang="hi"] body { font-size: 18px; line-height: 1.65; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--kesar); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--raat-800); color: var(--ivory); padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); color: var(--raat-800); letter-spacing: -0.01em; }
.display { font-size: clamp(2.35rem, 7.2vw, 4.6rem); line-height: 1.02; }
.h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.08; }
.h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); line-height: 1.12; }
.h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.2; }
html[lang="hi"] .display, html[lang="hi"] .h1, html[lang="hi"] .h2 { line-height: 1.25; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 36em; }
:is(.display, .h1, .h2, .h3) + .lede { margin-top: var(--s-3); }
.section-head > :is(.display, .h1, .h2, .h3) + .lede { margin-top: 0; }
.section-head .btn { justify-self: start; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.deva { font-family: var(--f-display); }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--sindoor); }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding: var(--s-8) 0; }
@media (min-width: 1024px) { .section { padding: var(--s-9) 0; } }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1fr auto; } }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.dark { background: var(--raat-800); color: var(--chandan-soft); }
.dark .display, .dark .h1, .dark .h2, .dark .h3 { color: var(--ivory); }
.dark .lede, .dark .muted { color: #cfc7bb; }
.chandan-bg { background: var(--chandan-soft); }
/* marigold field: the logo's disc, used for the home hero and one closing band */
.sun { background: var(--kesar); color: var(--raat-900); }
.sun .display, .sun .h1, .sun .h2, .sun .h3 { color: var(--raat-900); }
.sun .lede, .sun .muted { color: var(--raat-700); }
.sun .link { color: var(--raat-900); }
.sun .store-badge { color: var(--raat-900); border-color: rgba(18, 17, 16, 0.4); background: rgba(255, 255, 255, 0.25); }
.sun .store-badge:hover { border-color: var(--raat-900); background: #fff; }

/* ---------- buttons & links ---------- */
.btn {
  --b-bg: var(--kesar); --b-fg: var(--raat-900); --b-bd: var(--kesar);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  color: var(--b-fg); background: var(--b-bg); border: 1.5px solid var(--b-bd);
  border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { --b-bg: var(--kesar-deep); --b-bd: var(--kesar-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--raat-800); --b-bd: var(--line-strong); }
.btn-ghost:hover { --b-bg: var(--raat-800); --b-fg: var(--ivory); --b-bd: var(--raat-800); }
.dark .btn-ghost { --b-fg: var(--ivory); --b-bd: rgba(255, 255, 255, 0.35); }
.dark .btn-ghost:hover { --b-bg: var(--ivory); --b-fg: var(--raat-800); }
.btn-ink { --b-bg: var(--raat-800); --b-fg: #fff; --b-bd: var(--raat-800); }
.btn-ink:hover { --b-bg: var(--raat-900); --b-fg: var(--kesar); --b-bd: var(--raat-900); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.92rem; border-radius: 8px; }
.btn-block { width: 100%; }
.link { color: var(--sindoor); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--sindoor-deep); }
.dark .link { color: var(--kesar); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: 0.93rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--raat-800); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--raat-800); color: var(--ivory); border-color: var(--raat-800); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--chandan); color: var(--ink-soft); font-size: 0.82rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-online { color: var(--tulsi); }
.status-online::before { box-shadow: 0 0 0 0 rgba(47, 125, 82, 0.5); animation: pulse 2.4s infinite; }
.status-busy { color: var(--busy); }
.status-offline { color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 82, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(47, 125, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 125, 82, 0); } }
.stars { color: var(--kesar); letter-spacing: 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark:not(.is-scrolled) { background: transparent; color: var(--ivory); }
.site-header.on-dark:not(.is-scrolled) .brand-name { color: var(--ivory); }
.site-header.on-sun:not(.is-scrolled) { background: transparent; }
.site-header.on-sun:not(.is-scrolled) .header-cta { --b-bg: var(--raat-900); --b-fg: #fff; --b-bd: var(--raat-900); }
.site-header.on-sun:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, 0.35); }
.site-header.on-sun:not(.is-scrolled) .nav-trigger::after { background: var(--raat-900); }
.site-header.on-sun:not(.is-scrolled) .brand img { box-shadow: 0 0 0 2px var(--raat-900); border-radius: 50%; }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--f-ui); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--raat-800); line-height: 1; }
.primary-nav { display: none; }
@media (min-width: 1024px) {
  .brand { margin-right: var(--s-5); }
  .primary-nav { display: flex; align-items: stretch; height: 100%; margin-right: auto; }
}
.nav-item { position: static; display: flex; }
.nav-trigger {
  display: flex; align-items: center; gap: 4px; padding: 0 14px; border: 0; background: none;
  font-weight: 500; font-size: 1rem; cursor: pointer; text-decoration: none; position: relative;
}
.nav-trigger::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 2px; background: var(--kesar); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav-trigger[aria-current="page"]::after, .nav-item.is-open .nav-trigger::after { transform: scaleX(1); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform 0.25s; }
.nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(18, 17, 16, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s, transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: var(--s-6); padding: var(--s-6) var(--gutter) var(--s-7); max-width: var(--max); margin: 0 auto; }
.mega h3 { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: var(--s-3); font-family: var(--f-ui); }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega a:not(.btn) { display: block; padding: 6px 0; text-decoration: none; }
.mega a:not(.btn):hover .m-title { color: var(--sindoor); }
.m-title { display: block; font-weight: 600; }
.m-sub { display: block; font-size: 0.86rem; color: var(--muted); }
.mega-feature { background: var(--raat-800); color: var(--chandan-soft); border-radius: var(--r-m); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.mega-feature .h3 { color: var(--ivory); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(31, 29, 26, 0.06); }
.icon-btn .count {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--sindoor); color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 18px; text-align: center;
}
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; margin: 0 4px; }
.lang-toggle a { padding: 3px 10px; border-radius: 999px; text-decoration: none; font-size: 0.85rem; font-weight: 600; line-height: 1.5; }
.lang-toggle a[aria-current="true"] { background: var(--raat-800); color: var(--ivory); }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; margin-left: 8px; } .menu-btn { display: none !important; } }
@media (max-width: 1023px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* ---------- home page dropdowns: a floating night-sky card ---------- */
.site-header.on-sun .mega { background: transparent; border: 0; box-shadow: none; padding: 10px var(--gutter) 0; transform: none; }
.site-header.on-sun .mega-inner {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--raat-900); color: #efe9df; border-radius: 22px; padding: var(--s-6) var(--s-6) var(--s-6);
  box-shadow: 0 40px 70px -30px rgba(18, 17, 16, 0.7), inset 0 0 0 1px rgba(246, 166, 31, 0.18);
  transform-origin: 50% 0; transform: translateY(-10px) scale(0.985); clip-path: inset(0 0 100% 0 round 22px);
  transition: clip-path 0.5s var(--ease-in-out), transform 0.5s var(--ease-out);
}
.site-header.on-sun .nav-item.is-open .mega-inner { clip-path: inset(0 0 0 0 round 22px); transform: none; }
/* the logo's sun rays, turning slowly in the corner */
.site-header.on-sun .mega-inner::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -170px; top: -230px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(246, 166, 31, 0.16) 0deg 1.4deg, transparent 1.4deg 9deg);
  -webkit-mask: radial-gradient(closest-side, transparent 22%, #000 26%, transparent 100%); mask: radial-gradient(closest-side, transparent 22%, #000 26%, transparent 100%);
  animation: spin 90s linear infinite;
}
.site-header.on-sun .mega-inner::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--kesar), var(--surya), var(--kesar-deep)); }
.site-header.on-sun .mega h3 { color: var(--kesar); }
.site-header.on-sun .m-title { color: #fbf6ee; transition: color 0.2s; }
.site-header.on-sun .m-sub { color: #aaa194; }
.site-header.on-sun .mega a:not(.btn) { position: relative; padding: 7px 0 7px 0; transition: transform 0.25s var(--ease-out), padding 0.25s var(--ease-out); }
.site-header.on-sun .mega a:not(.btn)::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--kesar); transform: scale(0); transition: transform 0.25s var(--ease-out); }
.site-header.on-sun .mega a:not(.btn):hover, .site-header.on-sun .mega a:not(.btn):focus-visible { transform: translateX(6px); }
.site-header.on-sun .mega a:not(.btn):hover::before, .site-header.on-sun .mega a:not(.btn):focus-visible::before { transform: scale(1); }
.site-header.on-sun .mega a:not(.btn):hover .m-title { color: var(--kesar); }
.site-header.on-sun .mega-feature { background: var(--kesar); color: var(--raat-900); box-shadow: 0 20px 40px -24px rgba(246, 166, 31, 0.6); }
.site-header.on-sun .mega-feature .h3, .site-header.on-sun .mega-feature p { color: var(--raat-900); }
.site-header.on-sun .mega-feature .status-online { color: #0f5c30; }
.site-header.on-sun .mega-feature .btn { --b-bg: var(--raat-900); --b-fg: #fff; --b-bd: var(--raat-900); }
.site-header.on-sun .mega-feature .btn:hover { --b-fg: var(--kesar); }
/* staggered entrance: columns, then their links */
@keyframes mega-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.site-header.on-sun .nav-item.is-open .mega-inner > * { animation: mega-in 0.5s var(--ease-out) both; }
.site-header.on-sun .nav-item.is-open .mega-inner > :nth-child(2) { animation-delay: 0.06s; }
.site-header.on-sun .nav-item.is-open .mega-inner > :nth-child(3) { animation-delay: 0.12s; }
.site-header.on-sun .nav-item.is-open .mega-inner > :nth-child(4) { animation-delay: 0.18s; }
.site-header.on-sun .nav-item.is-open .mega li { animation: mega-in 0.45s var(--ease-out) both; }
.site-header.on-sun .nav-item.is-open .mega li:nth-child(2) { animation-delay: 0.08s; }
.site-header.on-sun .nav-item.is-open .mega li:nth-child(3) { animation-delay: 0.12s; }
.site-header.on-sun .nav-item.is-open .mega li:nth-child(4) { animation-delay: 0.16s; }
.site-header.on-sun .nav-item.is-open .mega li:nth-child(5) { animation-delay: 0.2s; }
.site-header.on-sun .nav-item.is-open .mega li:nth-child(n+6) { animation-delay: 0.24s; }
.site-header.on-sun .nav-item.is-open .nav-trigger svg { transform: rotate(180deg); }

/* ---------- bottom bar (mobile) ---------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--ivory); border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .bottombar { display: none; } }
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.74rem; font-weight: 600; text-decoration: none; color: var(--muted); position: relative; }
.bottombar a[aria-current="page"] { color: var(--raat-800); }
.bottombar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--kesar); border-radius: 0 0 2px 2px; }
.bottombar .icon { width: 22px; height: 22px; }
.bottombar .bb-consult { color: var(--raat-900); }
.bottombar .bb-consult span.bb-disc { color: var(--raat-900); width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--kesar); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(200, 120, 0, 0.55); }
.bottombar .bb-consult .bb-label { color: var(--muted); }
.bottombar .bb-consult[aria-current="page"] .bb-label { color: var(--raat-800); }

/* ---------- drawers, sheets, modals ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(18, 17, 16, 0.5); opacity: 0; transition: opacity 0.3s; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; z-index: 90; top: 0; bottom: 0; right: 0; width: min(420px, 100%);
  background: var(--ivory); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.42s var(--ease-out); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.3);
}
.drawer.from-left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-5); overscroll-behavior: contain; }
.drawer-foot { padding: var(--s-4) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--chandan-soft); }
.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: var(--ivory); border-radius: 18px 18px 0 0; padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.45s var(--ease-out);
}
.sheet.is-open { transform: none; }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: -8px auto var(--s-4); }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: 16px; transform: translate(-50%, -46%) scale(0.98); opacity: 0; transition: transform 0.35s var(--ease-out), opacity 0.25s; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet::before { display: none; }
}
.sheet-close { position: absolute; top: 12px; right: 12px; }
body.is-locked { overflow: hidden; }

/* menu drawer */
.menu-list { list-style: none; }
.menu-list > li { border-bottom: 1px solid var(--line); }
.menu-list a, .menu-list summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; text-decoration: none; font-size: 1.08rem; font-weight: 600; cursor: pointer; list-style: none; }
.menu-list summary::-webkit-details-marker { display: none; }
.menu-list details[open] summary svg { transform: rotate(180deg); }
.menu-list details ul { list-style: none; padding: 0 0 12px 12px; }
.menu-list details a { font-size: 1rem; font-weight: 500; padding: 9px 0; }

/* ---------- search overlay ---------- */
.search-panel { position: fixed; z-index: 95; inset: 0 0 auto 0; background: var(--ivory); padding: var(--s-4) 0 var(--s-5); transform: translateY(-105%); transition: transform 0.4s var(--ease-out); max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); }
.search-panel.is-open { transform: none; }
.search-field { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--raat-800); padding: 6px 0; }
.search-field input { flex: 1; border: 0; background: none; font-size: 1.35rem; padding: 8px 0; outline: none; font-family: var(--f-display); }
.search-results { margin-top: var(--s-4); display: grid; gap: var(--s-5); }
.search-group h3 { font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.search-group ul { list-style: none; }
.search-group a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; }
.search-group a:hover, .search-group a.is-active { background: var(--chandan-soft); }
.search-group img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--chandan); }
.search-hint { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--raat-700); box-shadow: 0 0 0 3px rgba(246, 166, 31, 0.3); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.88rem; font-weight: 600; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1d1a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.97rem; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--raat-800); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--raat-800); border-radius: 12px; overflow: hidden; }
.seg button, .seg label { border: 0; background: none; padding: 10px 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--raat-800); color: var(--ivory); }
.seg label { padding: 0; }
.seg label span { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 10px 16px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.place-field { position: relative; }
.place-box { position: relative; }
.search-field input::-webkit-search-cancel-button, .dir-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.dark .status-online, .mega-feature .status-online { color: #7ed19c; }
.mega-feature .btn { align-self: flex-start; }
.place-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; list-style: none; max-height: 280px; overflow-y: auto; box-shadow: var(--shadow-lift); }
.place-list li { padding: 10px 14px; cursor: pointer; }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--chandan-soft); }
.place-list small { color: var(--muted); display: block; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--bottombar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--raat-900); color: var(--ivory); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lift); display: flex; gap: 10px; align-items: center; animation: toast-in 0.35s var(--ease-out); }
.toast.error { background: var(--danger); }
.toast.success::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ed19c; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- skeletons ---------- */
.skeleton { background: linear-gradient(90deg, var(--chandan-soft) 25%, var(--chandan) 50%, var(--chandan-soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--raat-900); color: #d6cfc4; padding: var(--s-8) 0 var(--s-6); position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.footer-top { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(4, 1fr); } }
.footer-brand p { margin-top: var(--s-3); max-width: 28ch; }
.footer-col h3 { font-family: var(--f-ui); font-size: 0.92rem; font-weight: 600; color: var(--pital-light); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(246, 166, 31, 0.2); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; font-size: 0.88rem; }
.footer-mandala { position: absolute; right: -120px; bottom: -160px; width: 460px; opacity: 0.08; pointer-events: none; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; color: var(--ivory); text-decoration: none; }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.8; line-height: 1.1; }
.store-badge b { display: block; font-size: 1.02rem; line-height: 1.1; }
.store-badge:hover { border-color: var(--ivory); }
.light-badges .store-badge { color: var(--raat-800); border-color: var(--line-strong); }

/* ---------- shared bits ---------- */
.breadcrumbs { font-size: 0.88rem; color: var(--muted); padding: var(--s-4) 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-head { padding: var(--s-5) 0 var(--s-6); }
.page-head .lede { margin-top: var(--s-3); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.brass-rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--pital-light), transparent); margin: 0; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-m); padding: var(--s-6) var(--s-5); text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.empty .h3 { max-width: 24ch; }
.notice { border-left: 3px solid var(--kesar); background: var(--chandan-soft); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-s) var(--r-s) 0; }
.notice.info { border-left-color: var(--raat-500); }
.h-scroll { display: grid; grid-auto-flow: column; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }
.arrows { display: flex; gap: 8px; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: none; cursor: pointer; display: grid; place-items: center; }
.arrow-btn:hover { background: var(--raat-800); color: var(--ivory); border-color: var(--raat-800); }
.dark .arrow-btn { border-color: rgba(255, 255, 255, 0.3); }
.dark .arrow-btn:hover { background: var(--ivory); color: var(--raat-800); }

/* avatars: temple-arch portrait frame (jharokha) */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--chandan); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--chandan); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; font-family: var(--f-display); font-size: 1.4rem; color: var(--raat-700); background: var(--chandan); width: 100%; height: 100%; }

.deity-medal { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--kesar); background: var(--chandan); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.deity-medal img { width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.pooja-arch .deity-medal { width: 96px; height: 96px; left: 18px; bottom: 18px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.mask-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-in-out); }
.mask-reveal.is-in { clip-path: inset(0 0 0 0); }
.mask-reveal img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.mask-reveal.is-in img { transform: scale(1); }
.slide-in-x { opacity: 0; transform: translateX(-18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.slide-in-x.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .mask-reveal, .no-js .slide-in-x { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .mask-reveal, .slide-in-x { opacity: 1; transform: none; clip-path: none; }
  .mask-reveal img { transform: none; }
}

@media print {
  .site-header, .bottombar, .site-footer, .no-print, .toasts { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .dark { background: #fff !important; color: #000 !important; }
  .section { padding: 16px 0; }
  a { text-decoration: none; }
}
