/* ========================================================================
   Divya Pooja Path — Sacred Editorial
   Aesthetic: Aged ivory manuscript, maroon-gold-orange, classical serif
   ======================================================================== */

/* --- Design Tokens ------------------------------------------------------ */
:root {
  /* Surface */
  --ivory:        #FBF6E9;
  --ivory-warm:   #F5EBD0;
  --cream:        #FFF8E7;
  --paper:        #FFFCF4;
  --vellum:       #F0E4C7;

  /* Brand pulled from logo */
  --maroon:       #6B1F1F;
  --maroon-deep:  #4A1515;
  --maroon-soft:  #8C3636;
  --gold:         #C9962B;
  --gold-bright:  #E8B547;
  --gold-pale:    #E8D9A8;
  --orange:       #D97A2D;
  --orange-warm:  #E89554;

  /* Ink */
  --ink:          #2A1810;
  --ink-soft:     #5A4A3A;
  --ink-mute:     #8A7860;
  --rule:         rgba(107, 31, 31, 0.12);
  --rule-soft:    rgba(107, 31, 31, 0.06);

  /* Semantic */
  --bg:           var(--ivory);
  --surface:      var(--cream);
  --surface-2:    var(--paper);
  --accent:       var(--maroon);
  --accent-2:     var(--gold);

  /* Type scale */
  --display:      'Cinzel', 'Marcellus', serif;
  --serif:        'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --body:         'Lora', Georgia, serif;
  --hindi:        'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  /* Layout */
  --container:    1240px;
  --gutter:       clamp(20px, 4vw, 48px);
  --radius:       4px;
  --radius-lg:    10px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hindi mode – swap fonts when html[data-lang="hi"] */
html[data-lang="hi"] {
  --serif: var(--hindi);
  --body:  var(--hindi);
}

/* --- Reset & Base ------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "onum";
  /* Subtle paper texture using SVG noise — atmosphere without heavy assets */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(217, 122, 45, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201, 150, 43, 0.07), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.30  0 0 0 0 0.18  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--orange); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Selection */
::selection { background: var(--gold-pale); color: var(--maroon-deep); }

/* --- Type --------------------------------------------------------------- */
.font-display { font-family: var(--display); letter-spacing: 0.04em; }
.font-serif   { font-family: var(--serif); }
.font-hindi   { font-family: var(--hindi); }

h1,h2,h3,h4 { font-family: var(--serif); color: var(--maroon-deep); margin: 0 0 .4em; line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--gold);
  display: inline-block;
}
.eyebrow.left::after  { display: none; }
.eyebrow.right::before { display: none; }

/* Devanagari co-display: when both scripts are shown together */
.bilingual-stack { display: flex; flex-direction: column; gap: 6px; }
.bilingual-stack .hi {
  font-family: var(--hindi);
  font-size: 0.68em;
  color: var(--maroon-soft);
  font-style: italic;
}

/* --- Container ---------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Decorative motifs -------------------------------------------------- */
.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  margin: 64px 0;
  color: var(--gold);
}
.divider-ornament::before, .divider-ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  max-width: 200px;
}
.divider-ornament svg { margin: 0 18px; }

/* --- Top utility bar ---------------------------------------------------- */
.top-bar {
  background: var(--maroon-deep);
  color: var(--gold-pale);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.top-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
  padding-top: 8px; padding-bottom: 8px;
}
.top-bar .blessing {
  font-family: var(--serif); font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.top-bar .blessing .om { color: var(--gold-bright); margin-right: 6px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232, 181, 71, 0.25);
  border-radius: 999px; padding: 3px;
  position: relative; flex-shrink: 0;
}
.lang-toggle button {
  padding: 4px 14px; font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--gold-pale); border-radius: 999px; transition: all .3s var(--ease);
  font-family: var(--display);
}
.lang-toggle button.active {
  background: var(--gold); color: var(--maroon-deep); font-weight: 600;
}
.lang-toggle button:nth-child(2) { font-family: var(--hindi); }

/* --- Site Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  min-height: 78px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--maroon-deep);
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.08em;
  flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .en { font-weight: 600; }
.brand .hi { font-family: var(--hindi); font-size: 0.85rem; color: var(--gold); margin-top: 4px; letter-spacing: 0; }

.primary-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.primary-nav a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--serif); font-size: 1rem;
  color: var(--ink); letter-spacing: 0.02em;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }

/* ============================================================
   MEGA-NAV — applies when the header menu uses dropdowns / mega panels.
   The .primary-nav-mega class on <nav> enables the rules below; the old
   flat .primary-nav style continues to work when the rules aren't present
   (e.g. on legacy pages or first-time installs without admin menus).
   ============================================================ */
.primary-nav-mega { align-items: stretch; position: relative; }

/* Top-level container — wraps each item (button OR plain link). */
.primary-nav-item { position: relative; display: flex; align-items: stretch; }

/* Trigger button — visually identical to the link style above so the
   user can't tell from typography which items have dropdowns. */
.primary-nav-trigger,
.primary-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.primary-nav-trigger { font: inherit; font-family: var(--serif); font-size: 1rem; }
.primary-nav-trigger::after,
.primary-nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.primary-nav-trigger:hover::after,
.primary-nav-link:hover::after,
.primary-nav-item.is-open .primary-nav-trigger::after { transform: scaleX(1); }
.primary-nav-trigger:focus-visible,
.primary-nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.primary-nav-chev {
  transition: transform 0.22s var(--ease);
  color: var(--gold);
  margin-top: 1px;
}
.primary-nav-item.is-open .primary-nav-chev { transform: rotate(180deg); }

/* Panel — common base for both mega-wide and simple-narrow dropdowns. */
.mega-panel {
  position: absolute;
  top: 100%;
  z-index: 80;
  margin-top: 10px;
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 14px;
  /* Warm-tinted layered shadow + a faint inner gold edge so the panel
     reads as a polished surface rather than a generic dropdown. */
  box-shadow:
    0 24px 60px -28px rgba(74,21,21,0.40),
    0 8px 20px -12px rgba(74,21,21,0.18),
    0 0 0 1px rgba(232,181,71,0.08) inset;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.20s var(--ease), transform 0.20s var(--ease);
}
.mega-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* Decorative gold hairline along the top edge — anchors the panel
   visually to the trigger and matches the site's gold accents.
   Positioned flush with the top edge so it reads as a border, not
   a floating line above empty space. */
.mega-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 12%, var(--gold) 32%, var(--gold) 68%, transparent 88%);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  opacity: 0.7;
  pointer-events: none;
}

/* Narrow variant — for items with only a flat list of children.
   Anchored to the trigger's left edge, sized to its content.
   Tighter overall — the previous version had a big gap between
   the top hairline and the first item that made the panel feel
   half-empty. */
.mega-panel-narrow {
  left: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 8px 8px;
}
.mega-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mega-simple a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), padding-left 0.15s var(--ease);
}
/* Left accent bar slides in on hover — gives the item a clear "is being targeted"
   affordance without changing the layout heavily. */
.mega-simple a::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  width: 3px; height: 0;
  background: var(--gold);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.18s var(--ease);
}
.mega-simple a:hover, .mega-simple a:focus-visible {
  background: var(--cream);
  color: var(--maroon-deep);
  padding-left: 18px;
  outline: none;
}
.mega-simple a:hover::before, .mega-simple a:focus-visible::before {
  height: 60%;
}
.mega-simple-text {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.mega-simple a .lang-hi {
  color: var(--gold);
  font-family: var(--hindi);
  font-size: 0.84rem;
  line-height: 1.3;
}
.mega-simple-chev {
  flex-shrink: 0;
  color: var(--gold-pale);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease);
}
.mega-simple a:hover .mega-simple-chev,
.mega-simple a:focus-visible .mega-simple-chev {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}

/* Wide variant — multi-column panel for top-level mega items. Centred
   under the trigger by default; the JS doesn't reposition (intentional —
   the visual rhythm is more important than perfect optical centering). */
.mega-panel-wide {
  left: 50%;
  /* Keep the same scale-fade animation as the base .mega-panel but with
     the additional -50% horizontal centering. Order in transform matters:
     translate first, then scale, so the panel stays centred while it grows. */
  transform: translate(-50%, -8px) scale(0.985);
  min-width: 560px;
  max-width: min(980px, calc(100vw - 32px));
  padding: 24px 26px;
}
.mega-panel-wide:not([hidden]) {
  transform: translate(-50%, 0) scale(1);
}
.mega-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.mega-panel-inner.has-featured {
  grid-template-columns: minmax(0, 1.8fr) minmax(200px, 1fr);
}

/* Column grid — auto-fit so 2, 3, or 4 columns all look balanced. */
.mega-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px 32px;
}
.mega-col-heading {
  display: block;
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-pale);
  text-decoration: none;
  position: relative;
  transition: color 0.15s var(--ease);
}
/* Linked headings get a sliding gold underline that grows on hover. */
.mega-col-heading:not(.mega-col-heading-static)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.22s var(--ease);
}
.mega-col-heading:hover { color: var(--maroon); }
.mega-col-heading:hover::after { width: 100%; }
.mega-col-heading-static { color: var(--ink-mute); cursor: default; }
.mega-col-heading .lang-hi {
  display: block;
  font-family: var(--hindi);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 3px;
}
.mega-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mega-col-list a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px 7px 12px;
  margin: 0 -10px;
  border-radius: 7px;
  font-size: 0.94rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), padding-left 0.15s var(--ease);
}
.mega-col-list a::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 3px; height: 0;
  background: var(--gold);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.18s var(--ease);
}
.mega-col-list a:hover, .mega-col-list a:focus-visible {
  background: var(--cream);
  color: var(--maroon-deep);
  padding-left: 16px;
  outline: none;
}
.mega-col-list a:hover::before, .mega-col-list a:focus-visible::before {
  height: 60%;
}
.mega-col-list a .lang-hi { color: var(--gold); font-family: var(--hindi); font-size: 0.84rem; line-height: 1.3; }

/* Featured card in the mega panel — anchored to the right when present.
   Slightly larger image, refined typography, soft inner gradient on hover. */
.mega-featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, var(--cream), var(--ivory-warm));
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mega-featured:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(74,21,21,0.22);
}
.mega-featured-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ivory-warm);
}
.mega-featured-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease);
}
.mega-featured:hover .mega-featured-img img { transform: scale(1.04); }
.mega-featured-eyebrow {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mega-featured-title {
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 1.02rem;
  line-height: 1.3;
}
.mega-featured-title .lang-hi { display: block; font-family: var(--hindi); color: var(--maroon); font-size: 0.92rem; margin-top: 3px; }
.mega-featured-excerpt {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-featured-cta {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.18s var(--ease);
}
.mega-featured:hover .mega-featured-cta { gap: 8px; }

/* On narrower desktops, drop the featured card into a row below. */
@media (max-width: 1080px) {
  .mega-panel-inner.has-featured {
    grid-template-columns: 1fr;
  }
}

/* Narrow panel — when its trigger sits near the right side of the nav,
   anchoring `left: 0` to the trigger pushes the panel off the viewport.
   The renderer adds `data-anchor="right"` to the parent .primary-nav-item
   for any nav item past the midpoint (handled by the existing JS). For
   safety here we also accept the more declarative `.primary-nav-item:nth-last-child(-n+2)`
   selectors — the last two top-level items always anchor right. */
.primary-nav-item:nth-last-child(-n+2) .mega-panel-narrow {
  left: auto;
  right: 0;
}
.primary-nav-item:nth-last-child(-n+2) .mega-panel::before {
  /* Move the hairline to align with the panel's new right edge. */
  left: auto;
}

/* Hide the desktop mega panels entirely on mobile — the drawer takes over. */
@media (max-width: 900px) {
  .primary-nav-mega { display: none; }
}

/* ============================================================
   MOBILE DRAWER ACCORDION — second-tier nav inside the slide-in panel
   ============================================================ */
.drawer-nav-tree { padding: 4px 0; }
.drawer-acc { border-bottom: 1px solid rgba(232,217,168,0.08); }
.drawer-acc:last-child { border-bottom: 0; }
.drawer-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  color: var(--gold-pale);
  cursor: pointer;
  text-align: left;
}
.drawer-acc-trigger .drawer-acc-chev {
  margin-left: auto;
  color: var(--gold);
  transition: transform 0.2s var(--ease);
}
.drawer-acc.is-open .drawer-acc-chev { transform: rotate(180deg); }
.drawer-acc-panel {
  background: rgba(0,0,0,0.18);
  padding: 4px 0 8px;
}
.drawer-acc-overview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 36px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.drawer-acc-overview .arrow { margin-left: auto; }
.drawer-acc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 36px;
  color: var(--gold-pale);
  text-decoration: none;
}
.drawer-acc-link:hover { color: var(--gold); background: rgba(0,0,0,0.12); }
.drawer-acc-link .arrow { margin-left: auto; color: var(--gold); }
.drawer-acc-leaf { padding-left: 52px; font-size: 0.92rem; }
.drawer-acc-group {
  padding: 14px 20px 4px 36px;
  font-family: var(--display);
  color: var(--orange);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--maroon); transition: all .25s var(--ease);
}
.icon-btn:hover { background: var(--gold-pale); color: var(--maroon-deep); }

/* Hamburger – mobile only */
.hamburger { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-mandala {
  position: absolute; right: -180px; top: -120px;
  width: 720px; height: 720px;
  opacity: 0.15;
  pointer-events: none;
  animation: mandala-spin 240s linear infinite;
}
@keyframes mandala-spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-family: var(--serif);
  margin-top: 22px;
  letter-spacing: -0.005em;
}
.hero h1 .accent { color: var(--orange); font-style: italic; }
.hero h1 .hi-line {
  display: block; font-family: var(--hindi);
  font-size: 0.55em; color: var(--maroon-soft);
  margin-top: 8px; font-style: normal;
}
.hero p.lede {
  max-width: 540px; font-size: 1.1rem; color: var(--ink-soft);
  margin: 24px 0 32px;
}

/* Big invitation search */
.invocation-search {
  position: relative; max-width: 580px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 40px -24px rgba(74,21,21,0.25);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.invocation-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,181,71,0.18), 0 18px 40px -24px rgba(74,21,21,0.3);
}
.invocation-search svg.search-icon { color: var(--maroon); flex-shrink: 0; }
.invocation-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  padding: 14px 0;
}
.invocation-search input::placeholder { color: var(--ink-mute); font-style: italic; }
.invocation-search .voice-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ivory-warm); color: var(--maroon);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.invocation-search .voice-btn:hover { background: var(--gold-pale); }
.invocation-search .submit-btn {
  background: var(--maroon); color: var(--gold-pale);
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.16em;
}
.invocation-search .submit-btn:hover { background: var(--maroon-deep); color: var(--gold-bright); }

/* Hero side – Today's panchang card */
.panchang-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 60px -36px rgba(74,21,21,0.3);
}
.panchang-card::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-pale);
  border-radius: 6px; pointer-events: none;
}
.panchang-card .label { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.28em; color: var(--gold); }
.panchang-card .date { font-family: var(--serif); font-size: 2rem; color: var(--maroon-deep); margin: 6px 0 4px; }
.panchang-card .date-hi { font-family: var(--hindi); color: var(--orange); font-size: 1.05rem; }
.panchang-card .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.panchang-card .row:last-child { border-bottom: 0; }
.panchang-card .row .k { color: var(--ink-mute); font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; }
.panchang-card .row .v { color: var(--maroon-deep); font-family: var(--serif); }
.panchang-card .row .v.hi { font-family: var(--hindi); }
.panchang-card .muhurat {
  margin-top: 18px; padding: 14px 18px;
  background: linear-gradient(180deg, rgba(232,181,71,0.18), rgba(232,181,71,0.06));
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.panchang-card .muhurat .k { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-family: var(--display); }
.panchang-card .muhurat .v { font-family: var(--serif); color: var(--maroon-deep); margin-top: 2px; }

/* --- Section title pattern ---------------------------------------------- */
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  margin-top: 14px;
  display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}
.section-title h2 .hi-sub { font-family: var(--hindi); font-size: 0.5em; color: var(--gold); font-style: normal; }
.section-title p { color: var(--ink-soft); max-width: 580px; margin: 8px auto 0; }

/* --- Categories grid ---------------------------------------------------- */
.categories { padding: 80px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.cat-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  text-decoration: none; color: var(--ink);
  display: block;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(280px 180px at 100% 0%, rgba(217,122,45,0.0), transparent 70%);
  transition: background .4s var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -36px rgba(107,31,31,0.35);
}
.cat-card:hover::before {
  background: radial-gradient(280px 180px at 100% 0%, rgba(217,122,45,0.16), transparent 70%);
}
.cat-card .icon-wrap {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), var(--orange-warm));
  color: var(--maroon-deep);
  margin-bottom: 16px;
  position: relative;
}
.cat-card .icon-wrap::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px dashed var(--gold);
  opacity: 0.6;
}
.cat-card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.cat-card .hi { font-family: var(--hindi); color: var(--orange); font-size: 0.95rem; margin-bottom: 10px; }
.cat-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 8px 0 16px; line-height: 1.55; }
.cat-card .count {
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--gold); border-top: 1px solid var(--rule-soft); padding-top: 12px;
}

/* --- Featured editorial section ---------------------------------------- */
.featured { padding: 60px 0 80px; background: linear-gradient(180deg, transparent, var(--ivory-warm) 30%, transparent); }
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr; } }

.feat-main {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.feat-main::before {
  content: "ॐ"; position: absolute; right: -20px; bottom: -40px;
  font-family: var(--hindi); font-size: 16rem; line-height: 1;
  color: var(--gold-pale); opacity: 0.4; pointer-events: none;
}
.feat-main .kicker {
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.28em;
  color: var(--orange); text-transform: uppercase;
}
.feat-main h2 { margin: 14px 0 6px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.feat-main .hi-title { font-family: var(--hindi); color: var(--orange); font-size: 1.4rem; margin-bottom: 18px; }
.feat-main p.excerpt { color: var(--ink-soft); }
.feat-main .read-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-family: var(--display);
  font-size: 0.82rem; letter-spacing: 0.18em; color: var(--maroon);
}
.feat-main .read-link:hover { color: var(--orange); gap: 14px; transition: gap .3s var(--ease), color .3s var(--ease); }

.feat-list { display: flex; flex-direction: column; gap: 18px; }
.feat-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: block;
}
.feat-item:hover { border-color: var(--gold); }
.feat-item .tag {
  font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
}
.feat-item h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--maroon-deep); margin: 8px 0 4px; }
.feat-item .hi { font-family: var(--hindi); color: var(--orange); font-size: 0.9rem; }
.feat-item .meta { font-size: 0.82rem; color: var(--ink-mute); margin-top: 10px; }

/* --- Shloka showcase (the marquee layout) ------------------------------ */
.shloka-showcase {
  padding: 80px 0;
  background:
    linear-gradient(180deg, var(--ivory-warm), var(--ivory)),
    radial-gradient(1000px 500px at 50% 0%, rgba(232,181,71,0.18), transparent 60%);
}
.shloka-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .shloka-layout { grid-template-columns: 1fr; } }

.shloka-content { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 48px; }
.shloka-content .breadcrumb { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 16px; text-transform: uppercase; }
.shloka-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.shloka-content .hi-title { font-family: var(--hindi); color: var(--orange); font-size: 1.5rem; margin: 4px 0 28px; }
.shloka-content .meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 16px 0; margin: 0 0 24px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--ink-mute);
}
.shloka-content .meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.verse {
  font-family: var(--hindi); font-size: 1.4rem; line-height: 2;
  color: var(--maroon-deep); text-align: center;
  padding: 32px 20px; margin: 24px 0;
  background:
    linear-gradient(180deg, rgba(232,181,71,0.08), rgba(232,181,71,0.02));
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  border-radius: 4px;
  position: relative;
}
.verse .num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--maroon-deep);
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.18em;
  padding: 4px 14px; border-radius: 999px;
}
.shloka-content .translation {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: var(--ink-soft); padding: 0 12px; margin: 8px 0 28px;
  border-left: 2px solid var(--gold-pale);
  padding-left: 18px;
}
.shloka-content p { margin: 0 0 18px; }
.shloka-content h3 { margin-top: 32px; color: var(--maroon-deep); }

/* Sidebar – fixed/sticky */
.shloka-aside {
  position: sticky; top: 96px; /* below sticky header */
  display: flex; flex-direction: column; gap: 18px;
}
.aside-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.aside-card .label {
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}

/* Embedded media tabs */
.media-tabs { display: flex; gap: 4px; margin-bottom: 14px; background: var(--ivory-warm); padding: 4px; border-radius: 999px; }
.media-tabs button {
  flex: 1; padding: 8px 10px; font-family: var(--display);
  font-size: 0.74rem; letter-spacing: 0.16em; color: var(--ink-soft);
  border-radius: 999px; transition: all .25s var(--ease);
}
.media-tabs button.active { background: var(--maroon); color: var(--gold-pale); }

.media-frame {
  aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-pale);
}
.media-frame .play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(232,181,71,0.95);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--maroon-deep);
  transition: transform .3s var(--ease);
}
.media-frame .play-btn:hover { transform: scale(1.08); }
.media-frame .video-title { position: absolute; left: 16px; bottom: 14px; right: 16px; font-family: var(--serif); font-size: 0.95rem; }

/* Inline audio bar */
.audio-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--ivory-warm); border-radius: 999px;
}
.audio-bar .play {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--maroon); color: var(--gold-pale);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audio-bar .progress {
  flex: 1; height: 4px; background: var(--rule); border-radius: 2px; position: relative;
}
.audio-bar .progress::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 35%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 2px;
}
.audio-bar .time { font-size: 0.78rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* Download list */
.download-list { display: flex; flex-direction: column; gap: 8px; }
.download-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--ivory-warm); border-radius: 8px;
  color: var(--ink); font-family: var(--serif); font-size: 0.92rem;
  transition: all .25s var(--ease);
}
.download-list a:hover { background: var(--gold-pale); }
.download-list a .icon { color: var(--maroon); flex-shrink: 0; }
.download-list a .meta { font-size: 0.74rem; color: var(--ink-mute); margin-top: 1px; }
.download-list a .dl-icon { margin-left: auto; color: var(--gold); }

/* --- Native ad slot ---------------------------------------------------- */
.native-ad {
  margin: 60px auto;
  max-width: var(--container);
  padding: 0 var(--gutter);
}
.ad-slot {
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 0.86rem; color: var(--ink-mute);
}
.ad-slot .ad-label {
  font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.24em;
  color: var(--gold); text-transform: uppercase;
}
.ad-slot.banner { min-height: 110px; justify-content: center; }
.ad-slot.banner .placeholder { font-family: var(--serif); font-style: italic; color: var(--ink-mute); }

/* --- Festivals timeline ------------------------------------------------- */
.festivals { padding: 80px 0; }
.fest-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .fest-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fest-track { grid-template-columns: 1fr; } }

.fest-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.fest-card .pill {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--maroon-deep);
  font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 999px;
}
.fest-card .month {
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em; color: var(--orange);
  text-transform: uppercase;
}
.fest-card .day { font-family: var(--serif); font-size: 2.6rem; color: var(--maroon-deep); line-height: 1; margin: 4px 0 10px; }
.fest-card h4 { font-size: 1.2rem; margin: 8px 0 2px; }
.fest-card .hi { font-family: var(--hindi); color: var(--orange); font-size: 0.95rem; }
.fest-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 10px 0 0; }

/* --- Guruji section ----------------------------------------------------- */
.guruji-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  position: relative; overflow: hidden;
}
.guruji-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 50%, rgba(232,181,71,0.18), transparent 60%);
  pointer-events: none;
}
.guruji-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; position: relative; }
@media (max-width: 900px) { .guruji-grid { grid-template-columns: 1fr; gap: 36px; } }

.guruji-portrait {
  aspect-ratio: 1; max-width: 380px; margin: 0 auto;
  position: relative;
}
.guruji-portrait .halo {
  position: absolute; inset: -10%;
  background: radial-gradient(circle, rgba(232,181,71,0.4), transparent 60%);
  border-radius: 50%; animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
.guruji-portrait .avatar {
  position: relative; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 40%, var(--cream), var(--ivory-warm));
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -30px rgba(74,21,21,0.4);
}

.guruji-side h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.guruji-side h2 .hi { font-family: var(--hindi); display: block; color: var(--orange); font-size: 0.7em; margin-top: 6px; }
.guruji-side p { color: var(--ink-soft); max-width: 540px; }
.guruji-prompts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.guruji-prompts button {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--serif); font-size: 0.9rem; color: var(--maroon-deep);
  transition: all .25s var(--ease);
}
.guruji-prompts button:hover { background: var(--gold-pale); border-color: var(--gold); }
.btn-primary {
  background: var(--maroon); color: var(--gold-pale);
  padding: 14px 32px; border-radius: 999px;
  font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.2em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s var(--ease);
}
.btn-primary:hover { background: var(--maroon-deep); color: var(--gold-bright); transform: translateY(-1px); }

/* --- Footer ------------------------------------------------------------- */
footer {
  background: var(--maroon-deep); color: var(--gold-pale);
  padding: 80px 0 30px; margin-top: 60px;
  position: relative;
}
/* When the subscribe band sits directly above the footer, drop the
   60px cream gap. Multiple selectors for defence in depth in case the
   DOM order changes (e.g. a hidden ad slot or a wrapper element is
   inserted between them). !important is justified here because there
   is only one valid value when the band is present — there can never
   be cream space between the band and the footer. */
.sub-band + footer,
body:has(.sub-band) footer { margin-top: 0 !important; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* Default: 4 columns (Brand wider + 3 menu cols). When the optional
   5th column ("footer-extra") is enabled by the operator, we switch
   to 5-column layout. This prevents dead space on the right when
   the extra column is absent — which used to show as an empty band. */
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.foot-grid.foot-grid--has-extra {
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .foot-grid, .foot-grid.foot-grid--has-extra { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .foot-grid, .foot-grid.foot-grid--has-extra { grid-template-columns: 1fr; } }

.foot-brand .brand img { width: 56px; height: 56px; }
.foot-brand .brand { color: var(--gold-pale); }
.foot-brand p { font-size: 0.92rem; color: rgba(232,217,168,0.72); margin-top: 12px; max-width: 320px; }

footer h5 {
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-bright);
  margin: 0 0 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: rgba(232,217,168,0.85); font-size: 0.92rem; }
footer ul a:hover { color: var(--gold-bright); }

.newsletter input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,181,71,0.25);
  border-radius: 6px;
  color: var(--gold-pale); font-family: var(--serif);
  margin: 8px 0 12px;
}
.newsletter input::placeholder { color: rgba(232,217,168,0.5); }
.newsletter button {
  background: var(--gold); color: var(--maroon-deep);
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em;
}
.newsletter button:hover { background: var(--gold-bright); }

.foot-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(232,181,71,0.18);
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(232,217,168,0.6);
}
.foot-bottom a { color: rgba(232,217,168,0.7); }

/* --- Mobile bottom nav -------------------------------------------------- */
.bottom-nav {
  display: none; /* hidden on desktop */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(251,246,233,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--rule);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; color: var(--ink-mute);
  font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--display);
  border-radius: 8px;
  transition: all .25s var(--ease);
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--maroon); background: var(--gold-pale); }
.bottom-nav a.active svg { color: var(--maroon-deep); }

/* --- Guruji floating FAB ----------------------------------------------- */
.guruji-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--orange));
  color: var(--maroon-deep);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -10px rgba(217,122,45,0.5), 0 0 0 6px rgba(232,181,71,0.18);
  transition: transform .3s var(--ease);
}
.guruji-fab:hover { transform: translateY(-3px) scale(1.04); }
.guruji-fab img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.guruji-fab::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0.5;
  animation: ring-pulse 2.4s ease-out infinite;
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 720px) { .guruji-fab { right: 16px; bottom: 84px; } }

/* ===========================================================
   Guruji — Divine Sanctum
   Full-screen sacred conversation experience
   =========================================================== */

/* The dark overlay backdrop with subtle radial light from above */
.guruji-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at center top,
      rgba(232, 181, 71, 0.20) 0%,
      rgba(74, 21, 21, 0.85) 50%,
      rgba(20, 12, 8, 0.96) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.guruji-overlay.active { display: flex; opacity: 1; }

/* Subtle light rays from above */
.guruji-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 800px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top,
    rgba(232, 181, 71, 0.15) 0%,
    transparent 70%);
  pointer-events: none;
  animation: divineLight 8s ease-in-out infinite;
}
@keyframes divineLight {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1.0; transform: translateX(-50%) scale(1.05); }
}

/* The sacred panel itself */
.guruji-panel {
  position: relative;
  width: 90vw; height: 90vh;
  max-width: 1100px;
  background:
    radial-gradient(ellipse at top, rgba(232, 181, 71, 0.08), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
  border-radius: 28px;
  box-shadow:
    0 0 100px -10px rgba(232, 181, 71, 0.35),
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(232, 181, 71, 0.4);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.16,.84,.23,1.04),
              opacity 0.5s var(--ease);
}
.guruji-overlay.active .guruji-panel {
  transform: scale(1);
  opacity: 1;
}

/* Inner gold filigree frame */
.guruji-panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 150, 43, 0.25);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

/* Decorative corner motifs */
.guruji-corner {
  position: absolute; width: 64px; height: 64px;
  pointer-events: none; z-index: 2;
  color: var(--gold);
  opacity: 0.7;
}
.guruji-corner.tl { top: 18px; left: 18px; }
.guruji-corner.tr { top: 18px; right: 18px; transform: scaleX(-1); }
.guruji-corner.bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.guruji-corner.br { bottom: 18px; right: 18px; transform: scale(-1); }

/* ============== HEADER (sanctum entrance) ============== */
.guruji-head {
  position: relative;
  padding: 36px 60px 28px;
  background:
    radial-gradient(ellipse at center top, rgba(232, 181, 71, 0.18), transparent 65%),
    linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: var(--gold-pale);
  border-radius: 28px 28px 0 0;
  text-align: center;
  overflow: hidden;
  z-index: 0;
}

/* Slowly rotating mandala behind the avatar */
.guruji-head .mandala-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: mandalaRotate 90s linear infinite;
  pointer-events: none;
}
@keyframes mandalaRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.guruji-head .om-emboss {
  font-family: var(--hindi);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.2em;
  opacity: 0.9;
  text-shadow: 0 0 20px rgba(232, 181, 71, 0.5);
}

.guruji-identity {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

/* Avatar with rotating aura rays */
.guruji-avatar {
  position: relative;
  width: 86px; height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.guruji-avatar .aura {
  position: absolute;
  inset: -22px;
  color: var(--gold-bright);
  animation: auraRotate 24s linear infinite;
  filter: drop-shadow(0 0 12px rgba(232, 181, 71, 0.45));
}
@keyframes auraRotate { to { transform: rotate(360deg); } }

.guruji-avatar .diya {
  width: 86px; height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, var(--gold-bright) 0%, var(--orange) 60%, var(--maroon-soft) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-deep);
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 30px rgba(232, 181, 71, 0.6),
    inset 0 -6px 12px rgba(74, 21, 21, 0.3),
    inset 0 4px 8px rgba(255, 248, 231, 0.4);
  animation: diyaGlow 4s ease-in-out infinite;
}
@keyframes diyaGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(232, 181, 71, 0.6), inset 0 -6px 12px rgba(74, 21, 21, 0.3), inset 0 4px 8px rgba(255, 248, 231, 0.4); }
  50%      { box-shadow: 0 0 50px rgba(232, 181, 71, 0.8), inset 0 -6px 12px rgba(74, 21, 21, 0.3), inset 0 4px 8px rgba(255, 248, 231, 0.5); }
}

.guruji-name h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}
.guruji-name h2 .hi {
  display: block;
  font-family: var(--hindi);
  font-size: 1.05rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--gold-pale);
  margin-top: 4px;
  opacity: 0.85;
}
.guruji-name .role {
  margin: 8px 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--gold-pale);
  opacity: 0.7;
  font-style: italic;
}
.guruji-name .role .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: #7fce8f;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 8px;
  box-shadow: 0 0 8px rgba(127,206,143,0.7);
}

/* Close button */
.guruji-close-btn {
  position: absolute;
  top: 22px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 248, 231, 0.1);
  border: 1px solid rgba(232, 181, 71, 0.3);
  color: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
}
.guruji-close-btn:hover {
  background: rgba(255, 248, 231, 0.2);
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* ============== BODY (sacred conversation scroll) ============== */
.guruji-body {
  overflow-y: auto;
  padding: 36px 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(201, 150, 43, 0.025) 28px, rgba(201, 150, 43, 0.025) 29px);
  scroll-behavior: smooth;
}

/* Ornamental separators between conversation segments */
.guruji-body::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 80%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(201, 150, 43, 0.4), transparent);
}

/* Custom scrollbar (subtle gold) */
.guruji-body::-webkit-scrollbar { width: 8px; }
.guruji-body::-webkit-scrollbar-track { background: transparent; }
.guruji-body::-webkit-scrollbar-thumb {
  background: rgba(201, 150, 43, 0.3);
  border-radius: 8px;
}
.guruji-body::-webkit-scrollbar-thumb:hover { background: rgba(201, 150, 43, 0.5); }

/* Messages */
.msg {
  display: flex;
  max-width: 78%;
  animation: msgIn 0.5s var(--ease) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg .bubble {
  padding: 18px 24px;
  border-radius: 16px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
  position: relative;
}

/* Guruji's messages - sacred parchment with gold left border */
.msg.guru .bubble {
  background:
    linear-gradient(135deg, var(--paper) 0%, var(--cream) 100%);
  color: var(--ink);
  border-left: 3px solid var(--gold);
  border-radius: 4px 16px 16px 16px;
  box-shadow:
    0 6px 20px -8px rgba(74, 21, 21, 0.15),
    inset 0 0 0 1px rgba(201, 150, 43, 0.15);
}
.msg.guru .bubble::before {
  content: '';
  position: absolute;
  top: -1px; left: -3px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-bright);
}
.msg.guru .bubble .attribution {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg.guru .bubble .attribution::before {
  content: '🪔';
  font-size: 0.95rem;
}
.msg.guru .bubble .hi {
  font-family: var(--hindi);
  font-size: 1.0rem;
  color: var(--maroon-deep);
  margin-top: 12px;
  display: block;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 150, 43, 0.3);
}
.msg.guru .bubble p { margin: 0 0 8px; }
.msg.guru .bubble p:last-child { margin-bottom: 0; }
.msg.guru .bubble .namaste {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--maroon-deep);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* Markdown content inside Guruji's bubble */
.msg.guru .guruji-md > *:first-child { margin-top: 0; }
.msg.guru .guruji-md > *:last-child  { margin-bottom: 0; }
.msg.guru .guruji-md p {
  margin: 0 0 12px;
  line-height: 1.7;
}
.msg.guru .guruji-md p:last-child { margin-bottom: 0; }
.msg.guru .guruji-md h2,
.msg.guru .guruji-md h3,
.msg.guru .guruji-md h4 {
  font-family: var(--display);
  color: var(--maroon-deep);
  margin: 18px 0 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.msg.guru .guruji-md h2 { font-size: 1.18rem; }
.msg.guru .guruji-md h3 { font-size: 1.05rem; }
.msg.guru .guruji-md h4 { font-size: 0.96rem; }
.msg.guru .guruji-md ul,
.msg.guru .guruji-md ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}
.msg.guru .guruji-md li {
  margin-bottom: 6px;
  line-height: 1.65;
}
.msg.guru .guruji-md li::marker { color: var(--gold); }
.msg.guru .guruji-md strong {
  color: var(--maroon-deep);
  font-weight: 600;
}
.msg.guru .guruji-md em {
  font-style: italic;
  color: var(--gold);
}
.msg.guru .guruji-md code {
  background: var(--ivory-warm);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.88em;
  color: var(--maroon-deep);
  border: 1px solid rgba(201, 150, 43, 0.18);
}
.msg.guru .guruji-md blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 16px;
  margin: 12px 0;
  background: rgba(232, 181, 71, 0.06);
  font-style: italic;
  color: var(--ink-soft);
  border-radius: 0 6px 6px 0;
}
.msg.guru .guruji-md a {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-color: rgba(201, 150, 43, 0.6);
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.msg.guru .guruji-md a:hover {
  color: var(--maroon-deep);
  text-decoration-color: var(--gold);
}

/* User's messages - maroon temple stone */
.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--gold-pale);
  border-radius: 16px 4px 16px 16px;
  box-shadow:
    0 6px 20px -8px rgba(74, 21, 21, 0.4),
    inset 0 0 0 1px rgba(232, 181, 71, 0.2);
}
.msg.user .bubble::before {
  content: '';
  position: absolute;
  top: -1px; right: -3px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

/* Welcome message gets extra reverence */
.msg.welcome .bubble {
  background:
    radial-gradient(ellipse at top, rgba(232, 181, 71, 0.12), transparent 70%),
    linear-gradient(135deg, var(--paper) 0%, var(--cream) 100%);
  padding: 28px 32px;
  border-left-width: 4px;
}

/* Typing indicator */
.msg.typing .bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}
.msg.typing .bubble span {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.msg.typing .bubble span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing .bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ============== FOOT (offering tray) ============== */
.guruji-foot {
  padding: 22px 60px 28px;
  border-top: 1px solid rgba(201, 150, 43, 0.25);
  background:
    linear-gradient(180deg, transparent, rgba(232, 181, 71, 0.04));
  position: relative;
  z-index: 3;
}

/* Suggestion chips (welcome only) */
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  justify-content: center;
}
.suggestion-chips.hidden { display: none; }
.suggestion-chips .chip {
  background: var(--paper);
  border: 1px solid rgba(201, 150, 43, 0.3);
  color: var(--maroon-deep);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
}
.suggestion-chips .chip:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--maroon);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(201, 150, 43, 0.4);
}
.suggestion-chips .chip .hi {
  font-family: var(--hindi);
  color: var(--gold);
  margin: 0 2px;
}

/* Input row */
.guruji-foot .input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid rgba(201, 150, 43, 0.4);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 16px -8px rgba(74, 21, 21, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guruji-foot .input-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 4px 20px -6px rgba(201, 150, 43, 0.45);
}
.guruji-foot input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.0rem;
  color: var(--ink);
  padding: 10px 0;
}
.guruji-foot input:focus { outline: none; }
.guruji-foot input::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.guruji-foot button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.guruji-foot button.mic-btn {
  background: var(--ivory-warm);
  color: var(--maroon);
}
.guruji-foot button.mic-btn:hover { background: var(--gold-pale); }
.guruji-foot button.mic-btn.recording {
  background: var(--maroon);
  color: var(--gold-bright);
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 31, 31, 0.6); }
  100%     { box-shadow: 0 0 0 12px rgba(107, 31, 31, 0); }
}
.guruji-foot button.send-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--orange));
  color: var(--maroon-deep);
  box-shadow: 0 4px 12px -3px rgba(217, 122, 45, 0.4);
}
.guruji-foot button.send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px -3px rgba(217, 122, 45, 0.55);
}

.guruji-foot .disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin: 14px 0 0;
  font-style: italic;
  letter-spacing: 0.03em;
}
.guruji-foot .disclaimer .om {
  color: var(--gold);
  font-family: var(--hindi);
  font-style: normal;
  margin: 0 6px;
}

/* ============== MOBILE: full screen ============== */
@media (max-width: 720px) {
  .guruji-overlay { padding: 0; }
  .guruji-panel {
    width: 100vw; height: 100vh; height: 100dvh;
    max-width: 100vw; max-height: 100vh; max-height: 100dvh;
    border-radius: 0;
  }
  .guruji-panel::before { inset: 6px; border-radius: 12px; }
  .guruji-corner { width: 36px; height: 36px; }
  .guruji-corner.tl, .guruji-corner.tr { top: 10px; }
  .guruji-corner.tl, .guruji-corner.bl { left: 10px; }
  .guruji-corner.tr, .guruji-corner.br { right: 10px; }
  .guruji-corner.bl, .guruji-corner.br { bottom: 10px; }
  .guruji-head { padding: 26px 24px 22px; }
  .guruji-head .mandala-bg { width: 240px; height: 240px; }
  .guruji-name h2 { font-size: 1.3rem; }
  .guruji-name h2 .hi { font-size: 0.92rem; }
  .guruji-avatar { width: 64px; height: 64px; }
  .guruji-avatar .diya { width: 64px; height: 64px; }
  .guruji-body { padding: 22px 18px; gap: 16px; }
  .msg { max-width: 92%; }
  .msg .bubble { padding: 14px 18px; font-size: 0.95rem; }
  .guruji-foot { padding: 14px 16px 18px; }
  .suggestion-chips { gap: 6px; margin-bottom: 12px; }
  .suggestion-chips .chip { font-size: 0.84rem; padding: 7px 12px; }
}

/* Lock body scroll while open */
body.guruji-open { overflow: hidden; }

/* --- Mobile-specific layout overrides ---------------------------------- */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
  }
  .bottom-nav { display: block; }
  body { padding-bottom: 80px; } /* room for bottom nav */
  .hero { padding: 50px 0 40px; }
  .panchang-card { padding: 24px; }
  .shloka-content { padding: 28px; }
  .shloka-aside { position: static; }
  .footer { padding: 60px 0 100px; }
}

/* --- Reveal animation -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --- Focus styles ------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ivory-warm); }
::-webkit-scrollbar-thumb { background: var(--gold-pale); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Print – sacred content should print well */
@media print {
  .top-bar, .site-header, .bottom-nav, .guruji-fab, .guruji-panel, footer, .native-ad { display: none !important; }
  body { background: white; }
  .verse { page-break-inside: avoid; }
}

/* =========================================================
   Frontend polish — added in UI/UX patch
   ========================================================= */

/* Smoother nav hover */
.primary-nav a {
  position: relative;
  transition: color 0.15s;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease, left 0.2s ease;
}
.primary-nav a:hover::after {
  width: 80%;
  left: 10%;
}

/* Search button hover */
.icon-btn:hover {
  background: var(--ivory-warm);
  color: var(--maroon-deep);
}

/* Smoother focus rings on the public site */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Better mobile menu (header search button stays clickable) */
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .header-actions { gap: 4px; }
  .top-bar .blessing { font-size: 0.78rem; }
}

/* Bottom-nav: mark current section */
.bottom-nav a:hover {
  background: rgba(232, 181, 71, 0.08);
}

/* Listing grid card focus */
.listing-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Prevent FAB collision with bottom-nav on mobile */
@media (max-width: 900px) {
  .guruji-fab {
    bottom: calc(60px + env(safe-area-inset-bottom, 0) + 16px);
  }
}

/* Improve panchang cards / generic CTAs */
.cta-card {
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
  border-radius: 14px;
  padding: 24px;
}

/* ============================================================
   COMPREHENSIVE MOBILE & UX OVERHAUL
   ============================================================ */

/* ---------- Base improvements (apply to all sizes) ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overscroll-behavior-y: none; }

*, *::before, *::after { box-sizing: border-box; }

img, video, svg { max-width: 100%; height: auto; }

/* Custom tap-highlight (no ugly default blue) */
a, button, [role="button"], label {
  -webkit-tap-highlight-color: rgba(201, 150, 43, 0.18);
}

/* Touch targets — 44×44 minimum on tappable elements */
button, .btn, .icon-btn, .lang-toggle button, [role="button"] {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
.bottom-nav a { min-height: 56px; }

/* Forms: 16px font on mobile inputs prevents iOS auto-zoom */
input[type=text], input[type=email], input[type=password],
input[type=search], input[type=url], input[type=tel],
input[type=number], input[type=date], textarea, select {
  font-size: 16px;
}

/* Universal focus-visible polish */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--maroon-deep);
  color: var(--gold-bright);
  border-radius: 0 0 8px 8px;
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Smooth selection */
::selection { background: var(--gold-pale); color: var(--maroon-deep); }

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Container respects iOS safe area ---------- */
.container {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- Mobile Drawer (slides in from right) ---------- */
.mobile-drawer {
  position: fixed; inset: 0;
  z-index: 150;
  display: none;
}
.mobile-drawer.active { display: block; }
.mobile-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 12, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.mobile-drawer.active .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  box-shadow: -10px 0 40px -10px rgba(74, 21, 21, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.16, .84, .23, 1.04);
  overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-drawer.active .mobile-drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--gold-pale);
}
.drawer-head .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.drawer-head .brand img { width: 36px; height: 36px; }
.drawer-head .brand-text .en {
  display: block; font-family: var(--display);
  letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--maroon-deep);
}
.drawer-head .brand-text .hi {
  display: block; font-family: var(--hindi);
  font-size: 0.84rem; color: var(--gold);
}
.drawer-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ivory-warm);
  border: 0; cursor: pointer;
  color: var(--maroon-deep);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.15s;
}
.drawer-close:hover { background: var(--gold-pale); transform: rotate(90deg); }
.drawer-nav {
  flex: 1;
  padding: 12px 0;
  display: flex; flex-direction: column;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.drawer-nav a:hover, .drawer-nav a:focus-visible {
  background: var(--ivory-warm);
  border-left-color: var(--gold);
  color: var(--maroon-deep);
}
.drawer-nav a .arrow {
  margin-left: auto;
  color: var(--ink-mute);
}
.drawer-foot {
  border-top: 1px solid var(--gold-pale);
  padding: 16px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-foot .drawer-lang {
  display: flex; gap: 6px;
  background: var(--ivory-warm);
  padding: 4px;
  border-radius: 999px;
  align-self: flex-start;
}
.drawer-foot .drawer-lang button {
  padding: 8px 14px;
  background: transparent; border: 0;
  border-radius: 999px; cursor: pointer;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  min-height: 36px; min-width: 48px;
}
.drawer-foot .drawer-lang button.active {
  background: var(--maroon);
  color: var(--gold-bright);
}
.drawer-foot .drawer-social {
  display: flex; gap: 12px;
  font-size: 0.86rem;
}
.drawer-foot .drawer-social a {
  color: var(--gold);
  text-decoration: none;
}
.drawer-foot .drawer-cta {
  margin-top: 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--orange));
  color: var(--maroon-deep);
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

body.drawer-open { overflow: hidden; }

/* ---------- TABLET / MOBILE ---------- */
@media (max-width: 980px) {
  /* Hero side-by-side becomes stacked */
  .hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
}

/* ---------- MOBILE: ≤720px (the big one) ---------- */
@media (max-width: 720px) {

  /* Top bar — compact, blessing centred */
  .top-bar { padding: 7px 0; }
  .top-bar .container {
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding: 0 16px;
  }
  .top-bar .blessing {
    font-size: 0.74rem;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
  }
  .top-bar .blessing .om { font-size: 0.95rem; }
  .top-bar .lang-toggle { transform: scale(0.92); }

  /* Header — compact brand, hamburger visible */
  .site-header { padding: 12px 0; }
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand { gap: 10px; flex: 1; min-width: 0; }
  .brand img { width: 40px; height: 40px; flex-shrink: 0; }
  .brand-text { min-width: 0; }
  .brand-text .en {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .hi { font-size: 0.86rem; }
  .header-actions { gap: 2px; flex-shrink: 0; }
  .hamburger { display: inline-flex; }
  .icon-btn { width: 42px; height: 42px; }

  /* Hero — proper stacking, fluid type */
  .hero { padding: 28px 0 24px; }
  .hero-mandala { width: 320px; height: 320px; opacity: 0.06; }
  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.18;
  }
  .hero .eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; }
  .hero .lede { font-size: 0.98rem; line-height: 1.6; margin-bottom: 18px; }
  .hero .hi-line { font-size: 0.92em; }

  /* Invocation search — stack vertically */
  .invocation-search {
    flex-wrap: wrap;
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
  }
  .invocation-search .search-icon { left: 16px; top: 17px; }
  .invocation-search input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-size: 16px;
    border-radius: 8px;
  }
  .invocation-search .voice-btn {
    position: absolute;
    right: 14px;
    top: 14px;
  }
  .invocation-search .submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.84rem;
  }

  /* Panchang card — full width, less padding */
  .panchang-card { padding: 22px; border-radius: 16px; }
  .panchang-card .date { font-size: 1.1rem; }
  .panchang-card .row { padding: 8px 0; }

  /* Categories grid — 2 cols, tighter */
  .cat-grid { gap: 10px; }
  .cat-card { padding: 18px 12px; }
  .cat-card h3 { font-size: 0.96rem; }
  .cat-card .icon { width: 44px; height: 44px; font-size: 1.5rem; }

  /* Featured */
  .featured-grid { gap: 18px; }
  .featured-card { padding: 22px; }
  .featured-card h3 { font-size: 1.15rem; }

  /* Section headings */
  .section-heading h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-heading .subtitle { font-size: 0.94rem; }

  /* Festivals */
  .fest-track { gap: 12px; }
  .fest-card { padding: 18px; }

  /* Guruji teaser */
  .guruji-section { padding: 50px 0; }
  .guruji-portrait { max-width: 220px; margin: 0 auto; }
  .guruji-side h2 { text-align: center; }
  .guruji-side p { text-align: center; }
  .guruji-prompts { justify-content: center; }

  /* Footer */
  footer { padding: 50px 0 90px; }
  .foot-grid { gap: 26px; }
  .foot-brand p { font-size: 0.92rem; }
  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.82rem;
  }

  /* Bottom nav — proper safe area, larger tap targets */
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav-inner {
    padding: 4px 4px;
    gap: 0;
  }
  .bottom-nav a {
    padding: 7px 4px 5px;
    font-size: 0.66rem;
    gap: 3px;
    min-height: 56px;
  }
  .bottom-nav a svg { width: 20px; height: 20px; }

  /* FAB — sit above bottom nav, smaller on phones */
  .guruji-fab {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
    width: 56px;
    height: 56px;
  }
  .guruji-fab svg { width: 24px; height: 24px; }

  /* Sections that inherit container also get safe-area padding */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
}

/* ---------- TINY MOBILE: ≤380px ---------- */
@media (max-width: 380px) {
  .brand img { width: 36px; height: 36px; }
  .brand-text .en { font-size: 0.72rem; letter-spacing: 0.08em; }
  .brand-text .hi { font-size: 0.78rem; }
  .header-actions { gap: 0; }
  .hero h1 { font-size: 1.55rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- LANDSCAPE PHONE ---------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 20px 0; }
  .hero-mandala { display: none; }
  .top-bar { display: none; }
  body { padding-bottom: 60px; }
}

/* ---------- TABLE WRAPPERS (horizontal scroll) ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
@media (max-width: 720px) {
  .table-scroll table { min-width: 540px; }
}

/* ---------- LOADING & TRANSITIONS ---------- */
.fade-in { animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GURUJI CHAT FIXES — chip layout & mobile spacing
   ============================================================ */

/* Chips: override the universal button min-width so they size naturally,
   and prevent text wrap so they stay readable */
.suggestion-chips .chip {
  min-width: 0 !important;
  min-height: 0 !important;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  line-height: 1.3;
}

/* Container: on tight viewports, allow chips to scroll horizontally
   instead of wrapping into a tangled mess */
@media (max-width: 720px) {
  .suggestion-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 4px 4px 10px;
    margin: 0 -16px 14px;        /* bleed to edges */
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* Firefox */
  }
  .suggestion-chips::-webkit-scrollbar { display: none; }
  .suggestion-chips .chip {
    padding: 9px 16px;
    font-size: 0.86rem;
  }
}

/* Mobile chat body: more generous spacing inside the panel */
@media (max-width: 720px) {
  .guruji-body {
    padding: 24px 22px 28px;
    gap: 18px;
  }
  .msg { max-width: 96%; }
  .msg .bubble {
    padding: 18px 22px;
    font-size: 0.96rem;
    line-height: 1.7;
    border-radius: 18px;
  }
  .msg .bubble p { margin: 0 0 10px; }
  .msg .bubble p:last-child { margin: 0; }
  .msg .bubble hr {
    margin: 14px 0;
    border: 0;
    border-top: 1px dashed rgba(201, 150, 43, 0.3);
  }
  .guruji-foot { padding: 14px 18px 22px; }
  .guruji-foot .input-row { padding: 6px 6px 6px 16px; }
  .guruji-foot .disclaimer {
    font-size: 0.78rem;
    padding: 0 8px;
    margin-top: 12px;
    line-height: 1.55;
  }
}

/* ============================================================
   FESTIVAL TABLE — homepage upcoming festivals
   ============================================================ */
.festival-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 920px;
  margin: 0 auto;
}
.festival-row {
  display: grid;
  grid-template-columns: 80px 56px 1fr 130px;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s var(--ease);
  position: relative;
}
.festival-row:hover {
  border-color: var(--gold);
  transform: translateX(2px);
  box-shadow: -3px 4px 18px -8px rgba(201, 150, 43, 0.5);
}
.festival-row.no-link {
  cursor: default;
}
.festival-row.no-link:hover {
  transform: none;
  border-color: var(--gold-pale);
  box-shadow: none;
}
.festival-row .ft-date {
  text-align: center;
  background: linear-gradient(180deg, var(--maroon-deep), var(--maroon));
  color: var(--gold-bright);
  border-radius: 8px;
  padding: 8px 4px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.festival-row .ft-day {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}
.festival-row .ft-month {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}
.festival-row .ft-icon {
  font-size: 1.8rem;
  text-align: center;
  filter: saturate(1.1);
}
.festival-row .ft-info {
  min-width: 0;
}
.festival-row .ft-info h3 {
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 1.05rem;
  margin: 0 0 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.festival-row .ft-hi {
  font-family: var(--hindi);
  color: var(--gold);
  font-size: 0.94rem;
}
.festival-row .ft-desc {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}
.festival-row .ft-when {
  text-align: right;
}
.festival-row .ft-day-label {
  font-family: var(--display);
  color: var(--orange);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.festival-row .ft-weekday {
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 2px;
}

/* ===== Festival table on mobile ===== */
@media (max-width: 720px) {
  .festival-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      'date  info'
      'date  when';
    gap: 12px;
    padding: 12px 14px;
  }
  .festival-row .ft-date  { grid-area: date; min-height: 70px; }
  .festival-row .ft-icon  { display: none; }
  .festival-row .ft-info  { grid-area: info; }
  .festival-row .ft-when  { grid-area: when; text-align: left; }
  .festival-row .ft-info h3 { font-size: 0.96rem; }
  .festival-row .ft-desc { display: none; }
  .festival-row .ft-day-label { font-size: 0.76rem; }
}

/* ============================================================
   GURUJI HOMEPAGE TEASER — mobile fixes
   ============================================================ */
@media (max-width: 720px) {
  .guruji-section {
    padding: 40px 0 30px;
  }
  .guruji-grid {
    gap: 24px;
    text-align: center;
  }
  .guruji-portrait {
    max-width: 200px;
    margin: 0 auto;
  }
  .guruji-portrait .halo,
  .guruji-portrait .avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .guruji-side {
    text-align: center;
  }
  .guruji-side .eyebrow {
    text-align: center;
  }
  .guruji-side h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }
  .guruji-side h2 .hi {
    display: block;
    font-size: 0.86em;
    margin-top: 6px;
  }
  .guruji-side p {
    font-size: 0.96rem;
    line-height: 1.65;
  }
  .guruji-prompts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0;
  }
  .guruji-prompts button {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 0.92rem;
    text-align: left;
    border-radius: 12px !important;
    min-height: 48px;
    line-height: 1.4;
    white-space: normal;
  }
  .guruji-side .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 22px !important;
  }
}

/* ============================================================
   GURUJI CHAT PANEL — comprehensive mobile fix
   The panel content was overflowing horizontally on phones.
   ============================================================ */

/* Belt-and-braces: nothing inside the panel may bleed beyond it */
.guruji-panel {
  overflow: hidden !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .guruji-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .guruji-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .guruji-panel::before { display: none !important; }
  .guruji-corner { display: none !important; }

  /* Header — keep close button reachable, content centered */
  .guruji-head {
    padding: 18px 20px 18px !important;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
  }
  .guruji-head .om {
    font-size: 1.4rem !important;
    top: 12px !important;
  }
  .guruji-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 5;
    background: rgba(255, 248, 231, 0.15) !important;
  }
  .guruji-head .mandala-bg {
    width: 200px !important; height: 200px !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .guruji-name {
    text-align: center !important;
    margin: 8px auto 0 !important;
  }
  .guruji-avatar {
    width: 64px !important; height: 64px !important;
    margin: 0 auto 10px !important;
  }
  .guruji-avatar .diya { width: 64px !important; height: 64px !important; }
  .guruji-name h2 {
    font-size: 1.2rem !important;
    margin-top: 8px !important;
  }
  .guruji-name h2 .hi {
    font-size: 0.86rem !important;
    display: block;
    margin-top: 4px;
  }
  .guruji-tagline {
    font-size: 0.76rem !important;
    line-height: 1.5;
    text-align: center !important;
    margin-top: 8px !important;
    opacity: 0.85;
    padding: 0 16px !important;
  }

  /* Body — fills remaining space, scrolls properly */
  .guruji-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px 14px 16px !important;
    box-sizing: border-box;
    gap: 14px !important;
    -webkit-overflow-scrolling: touch;
  }
  .msg {
    max-width: 100% !important;
    width: 100%;
  }
  .msg .bubble {
    padding: 14px 16px !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    border-radius: 14px !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Footer — compact, doesn't shrink, holds chips + input */
  .guruji-foot {
    flex-shrink: 0;
    padding: 10px 14px 16px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* CHIPS — wrap nicely, no negative margins, no horizontal overflow */
  .suggestion-chips {
    flex-wrap: wrap !important;
    overflow: visible !important;
    justify-content: center !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    gap: 6px !important;
  }
  .suggestion-chips .chip {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100%;
  }

  .guruji-foot .input-row {
    padding: 4px 4px 4px 14px !important;
  }
  .guruji-foot input {
    font-size: 16px !important;
    padding: 8px 0 !important;
  }
  .guruji-foot .mic-btn,
  .guruji-foot .send-btn {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }
  .guruji-foot .disclaimer {
    font-size: 0.74rem !important;
    margin-top: 8px !important;
    padding: 0 4px !important;
    line-height: 1.5;
  }
}

/* Tiny phone tweaks */
@media (max-width: 380px) {
  .guruji-head { padding: 14px 16px !important; }
  .guruji-name h2 { font-size: 1.1rem !important; }
  .guruji-tagline { font-size: 0.72rem !important; }
  .suggestion-chips .chip { font-size: 0.74rem !important; padding: 6px 10px !important; }
}

/* Landscape phone — header collapses to header bar so body fits */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .guruji-head {
    padding: 10px 56px 10px 18px !important;
    text-align: left !important;
  }
  .guruji-head .mandala-bg { display: none !important; }
  .guruji-avatar { display: none !important; }
  .guruji-name { display: flex; align-items: baseline; gap: 12px; margin: 0 !important; }
  .guruji-name h2 { font-size: 1rem !important; }
  .guruji-tagline { display: none !important; }
}

/* ============================================================
   GURUJI · Mobile space-saving + custom mascot image
   ============================================================ */

/* Style the uploaded mascot image (when admin uploads one to replace the SVG) */
.guruji-portrait .avatar .guruji-portrait-img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

/* Mobile: hide the role/tagline ("Your spiritual companion · …") and the
   suggestion chips inside the chat panel so visitors get more reading area. */
@media (max-width: 720px) {
  .guruji-name .role,
  .guruji-tagline {
    display: none !important;
  }
  .guruji-foot .suggestion-chips,
  .suggestion-chips#guruji-chips {
    display: none !important;
  }
  /* Now that the chips are gone, the foot can be slightly tighter */
  .guruji-foot {
    padding: 12px 14px 16px !important;
  }
}

/* ============================================================
   DAILY DEVOTIONAL CARD — replaces Panchang in hero when selected
   Mirrors .panchang-card visual style (cream background, gold accents)
   ============================================================ */
.devotional-card {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.devotional-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(201,150,43,0.06), transparent 60%);
  pointer-events: none;
}
.devotional-card .label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  position: relative;
}
.devotional-card .date {
  font-family: var(--display);
  color: var(--maroon-deep);
  margin-top: 4px;
  font-size: 0.94rem;
  position: relative;
}
.devotional-card .dev-image {
  margin: 16px -8px 14px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ivory-warm);
}
.devotional-card .dev-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.devotional-card .dev-mantra {
  font-family: 'Tiro Devanagari Hindi', serif;
  color: var(--maroon-deep);
  font-size: 1.25rem;
  line-height: 1.55;
  margin-top: 12px;
  text-align: center;
  position: relative;
}
.devotional-card .dev-trans {
  font-style: italic;
  color: var(--orange);
  font-size: 0.92rem;
  margin-top: 8px;
  text-align: center;
  line-height: 1.55;
  position: relative;
}
.devotional-card .dev-meaning {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--gold-pale);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
  position: relative;
}

@media (max-width: 720px) {
  .devotional-card { padding: 18px; }
  .devotional-card .dev-mantra { font-size: 1.1rem; }
  .devotional-card .dev-image { aspect-ratio: 16 / 9; margin: 14px 0; }
}

/* ============================================================
   LANGUAGE TOGGLE — server-rendered EN + HI, JS toggles via [data-lang]
   This lets the title, body, excerpt, deity tags etc. all switch
   instantly without a page reload.
   ============================================================ */
html[data-lang="en"] .lang-hi { display: none; }
html[data-lang="hi"] .lang-en { display: none; }
/* Inline contexts: keep adjacent siblings clean */
html[data-lang="en"] .lang-hi,
html[data-lang="hi"] .lang-en {
  display: none !important;
}

/* ============================================================
   LISTING PAGE — minimal additions; cards reuse .feat-* classes from
   the homepage's Featured section so the look-and-feel stays uniform
   across the site (homepage featured, content-type listings, related).
   ============================================================ */

/* Page title — same .section-title pattern as the homepage Featured
   section, but each language sits in its own .lang-en / .lang-hi span
   so the global toggle hides the inactive one. When the Hindi span is
   shown, give it the Devanagari serif so the script renders correctly. */
.section-title h2 .lang-hi {
  font-family: var(--hindi);
  color: var(--maroon-deep);
}

/* Breadcrumbs — shared trail under the header */
.lst-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-mute);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lst-crumbs a { color: var(--maroon); text-decoration: none; transition: color 0.15s var(--ease); }
.lst-crumbs a:hover { color: var(--gold); text-decoration: underline; }
.lst-crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Listing toolbar — slim filter row, only renders if filters or sort enabled */
.lst-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
  margin: -20px auto 28px;
  max-width: 980px;
}

/* The search field is a self-contained pill: icon on the left, input
   that fills, and a maroon submit button anchored to the right edge.
   Visible submit is important for touch users who otherwise wouldn't
   know to press Enter to search. */
.lst-toolbar-search {
  flex: 1 1 220px;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  padding-left: 38px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.lst-toolbar-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,181,71,0.18);
}
.lst-toolbar-search > svg {
  position: absolute;
  left: 12px;
  color: var(--gold);
  pointer-events: none;
}
.lst-toolbar-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 6px;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 0.94rem;
  color: var(--ink);
}
.lst-toolbar-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin: 3px;
  background: var(--maroon);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.lst-toolbar-submit:hover { background: var(--maroon-deep); }
.lst-toolbar-submit:active { transform: scale(0.97); }
.lst-toolbar-submit svg { color: var(--cream); }
@media (max-width: 480px) {
  /* On narrow phones, hide the label and keep just the arrow icon —
     saves horizontal space without losing affordance. */
  .lst-toolbar-submit-label { display: none; }
  .lst-toolbar-submit { padding: 8px 12px; }
}

.lst-toolbar select {
  padding: 9px 32px 9px 14px;
  background: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A53C3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s var(--ease);
}
.lst-toolbar select:hover { border-color: var(--gold); }
.lst-toolbar select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,71,0.18); }
.lst-toolbar-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--cream);
  color: var(--maroon);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.lst-toolbar-clear:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }

/* When the listing page reuses .feat-item cards, override its column
   stacking to fill any auto-fit grid we drop them into. */
.lst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.lst-grid .feat-item { width: 100%; }

/* Pagination — same pill style as the toolbar so they feel cohesive */
.lst-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.lst-pager a,
.lst-pager span.num,
.lst-pager span.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.lst-pager a:hover { background: var(--cream); border-color: var(--gold); color: var(--maroon-deep); }
.lst-pager span.num.active {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
  font-weight: 600;
}
.lst-pager span.btn.disabled { color: var(--ink-mute); opacity: 0.5; pointer-events: none; }
.lst-pager .ellipsis {
  padding: 0 6px;
  color: var(--ink-mute);
  background: none;
  border: 0;
  min-width: auto;
}
.lst-pager-summary {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 12px;
  font-style: italic;
}

@media (max-width: 640px) {
  .lst-toolbar { flex-direction: column; align-items: stretch; margin: -12px auto 22px; }
  .lst-toolbar-search { min-width: 0; }
  .lst-toolbar select, .lst-toolbar-clear { width: 100%; justify-content: center; }
  .lst-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Featured items on homepage — show featured_image as a thumbnail */
.feat-item { display: block; }
.feat-item .feat-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ivory-warm);
  margin-bottom: 10px;
}
.feat-item .feat-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease);
}
.feat-item:hover .feat-thumb img { transform: scale(1.05); }

.feat-main .feat-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--ivory-warm);
}
.feat-main .feat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   GURUJI MODAL — DESKTOP LAYOUT VARIANTS
   Default class is .guruji-layout-classic (no extra rules — uses base styles).
   Mobile (<= 720px) overrides everything to full-screen.
   ============================================================ */

/* ---------- Compact: slim 60px header, 80% chat ---------- */
@media (min-width: 721px) {
  .guruji-layout-compact .guruji-head {
    padding: 14px 60px 14px;
  }
  .guruji-layout-compact .guruji-head .mandala-bg { display: none; }
  .guruji-layout-compact .guruji-head .om-emboss { display: none; }
  .guruji-layout-compact .guruji-identity {
    display: flex; align-items: center; gap: 16px; text-align: left;
  }
  .guruji-layout-compact .guruji-avatar {
    width: 48px; height: 48px; margin: 0;
  }
  .guruji-layout-compact .guruji-avatar .aura { display: none; }
  .guruji-layout-compact .guruji-avatar .diya { width: 48px; height: 48px; }
  .guruji-layout-compact .guruji-avatar .diya svg { width: 24px; height: 24px; }
  .guruji-layout-compact .guruji-name { display: flex; align-items: baseline; gap: 14px; flex: 1; }
  .guruji-layout-compact .guruji-name h2 { font-size: 1.4rem; margin: 0; }
  .guruji-layout-compact .guruji-name h2 .hi { font-size: 1rem; margin-left: 6px; }
  .guruji-layout-compact .guruji-name .role { margin: 0; font-size: 0.78rem; opacity: 0.85; }
}

/* ---------- Side-by-side: 240px left column + chat ---------- */
@media (min-width: 721px) {
  .guruji-layout-sidebar {
    grid-template-rows: 1fr !important;
    grid-template-columns: 280px 1fr;
  }
  .guruji-layout-sidebar .guruji-head {
    border-radius: 28px 0 0 28px;
    padding: 36px 24px;
    grid-row: 1; grid-column: 1;
    display: flex; flex-direction: column; justify-content: flex-start;
    overflow-y: auto;
  }
  .guruji-layout-sidebar .guruji-body {
    grid-row: 1; grid-column: 2;
    border-left: 1px solid var(--gold-pale);
    max-height: none;
  }
  .guruji-layout-sidebar .guruji-foot {
    grid-row: 1 / -1;
    grid-column: 2;
    align-self: end;
    background: var(--paper);
    border-top: 1px solid var(--gold-pale);
    border-radius: 0;
    padding: 14px 22px;
  }
  /* Stack chat + footer in column 2 */
  .guruji-layout-sidebar {
    grid-template-areas: "side body" "side foot";
    grid-template-rows: 1fr auto;
  }
  .guruji-layout-sidebar .guruji-head { grid-area: side; }
  .guruji-layout-sidebar .guruji-body { grid-area: body; grid-row: auto; grid-column: auto; }
  .guruji-layout-sidebar .guruji-foot { grid-area: foot; grid-row: auto; grid-column: auto; }
  .guruji-layout-sidebar .guruji-name h2 { font-size: 1.6rem; }
  .guruji-layout-sidebar .guruji-corner { display: none; }
  .guruji-layout-sidebar::before { border-radius: 20px; }
}

/* ---------- Immersive: minimal chrome, max chat ---------- */
@media (min-width: 721px) {
  .guruji-layout-immersive .guruji-head {
    padding: 0;
    background: transparent;
    color: var(--maroon-deep);
    position: absolute;
    top: 18px; right: 60px;
    z-index: 5;
    border-radius: 0;
  }
  .guruji-layout-immersive .guruji-head .mandala-bg,
  .guruji-layout-immersive .guruji-head .om-emboss { display: none; }
  .guruji-layout-immersive .guruji-identity {
    display: flex; align-items: center; gap: 12px;
  }
  .guruji-layout-immersive .guruji-avatar { width: 40px; height: 40px; margin: 0; }
  .guruji-layout-immersive .guruji-avatar .aura { display: none; }
  .guruji-layout-immersive .guruji-avatar .diya {
    width: 40px; height: 40px;
    background: var(--maroon-deep); color: var(--gold-bright);
  }
  .guruji-layout-immersive .guruji-avatar .diya svg { width: 20px; height: 20px; }
  .guruji-layout-immersive .guruji-name { display: flex; align-items: baseline; gap: 10px; }
  .guruji-layout-immersive .guruji-name h2 { font-size: 1.1rem; color: var(--maroon-deep); margin: 0; }
  .guruji-layout-immersive .guruji-name h2 .hi { color: var(--maroon); }
  .guruji-layout-immersive .guruji-name .role { display: none; }

  .guruji-layout-immersive { grid-template-rows: 1fr auto; }
  .guruji-layout-immersive .guruji-body {
    padding-top: 80px;
  }
  .guruji-layout-immersive .guruji-corner { opacity: 0.3; }
  .guruji-layout-immersive .guruji-body .msg.guru .bubble {
    font-size: 1.05rem; line-height: 1.85;
  }
}

/* ---------- Reading mode: narrow column, larger type ---------- */
@media (min-width: 721px) {
  .guruji-layout-reading .guruji-head { padding: 20px 60px 18px; }
  .guruji-layout-reading .guruji-head .mandala-bg { width: 200px; height: 200px; opacity: 0.1; }
  .guruji-layout-reading .guruji-head .om-emboss { font-size: 2.2rem; }
  .guruji-layout-reading .guruji-avatar { width: 60px; height: 60px; }
  .guruji-layout-reading .guruji-avatar .aura { display: none; }
  .guruji-layout-reading .guruji-avatar .diya { width: 60px; height: 60px; }
  .guruji-layout-reading .guruji-name h2 { font-size: 1.4rem; }
  .guruji-layout-reading .guruji-name .role { font-size: 0.8rem; }

  .guruji-layout-reading .guruji-body {
    padding-left: 0; padding-right: 0;
  }
  .guruji-layout-reading .guruji-body > .msg {
    max-width: 720px;
    margin-left: auto; margin-right: auto;
    padding-left: 24px; padding-right: 24px;
  }
  .guruji-layout-reading .guruji-body .msg.guru .bubble {
    font-size: 1.12rem;
    line-height: 1.95;
    padding: 22px 26px;
  }
  .guruji-layout-reading .guruji-body .msg.guru .bubble p { margin-bottom: 1em; }
  .guruji-layout-reading .guruji-foot {
    padding-left: max(60px, calc((100% - 720px) / 2));
    padding-right: max(60px, calc((100% - 720px) / 2));
  }
}

/* All variants on mobile fall back to the existing full-screen treatment */

/* ============================================================
   TOP-BAR BLESSING — seamless dual-copy marquee
   ============================================================ */
.top-bar .blessing.marquee {
  /* Override the static .blessing rule: marquee needs to flow, not ellipsis-clip */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;            /* override the .blessing ellipsis */
  position: relative;
  flex: 1; min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.top-bar .blessing.marquee .om {
  /* keep ॐ pinned to the left, only the text scrolls */
  position: relative; z-index: 2;
  background: var(--maroon-deep);
  padding: 0 10px 0 0;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(232, 181, 71, 0.35);
}

/* The visible window — clips overflow so off-screen copies don't show */
.top-bar .blessing.marquee .marquee-window {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  position: relative;
}

/* The track contains TWO identical content copies side-by-side.
   We animate translateX(0) → translateX(-50%). When the animation reaches -50%,
   the second copy has slid into the exact position the first copy started in,
   so we can loop without any visible jump. */
.top-bar .blessing.marquee .marquee-track {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;             /* track is exactly as wide as both copies */
  animation: dpp-marquee 32s linear infinite;
  will-change: transform;
}

/* Each copy sits in its own item. Padding-right gives a gap between the loops. */
.top-bar .blessing.marquee .marquee-item {
  padding-right: 4rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-bar .blessing.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes dpp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactly one copy's worth — seamless */
}

@media (prefers-reduced-motion: reduce) {
  .top-bar .blessing.marquee .marquee-track {
    animation: none;
    transform: none;
  }
  /* If motion is disabled, hide the duplicate copy so it doesn't show twice */
  .top-bar .blessing.marquee .marquee-item:nth-child(2) { display: none; }
}

/* Lang spans inside the marquee respect the global EN/HI toggle.
   The default html[data-lang="en"] .lang-hi { display:none } already handles this. */

/* ============================================================
   MOBILE: hide top-bar lang toggle, show it inside the bottom-nav instead
   ============================================================ */
@media (max-width: 720px) {
  .top-bar .lang-toggle.desktop-only { display: none !important; }
  .top-bar .container { gap: 0; }
  /* Hide the floating Guruji FAB on mobile — Guruji now lives in the center pillar of bottom-nav */
  .guruji-fab { display: none !important; }
}

/* ============================================================
   BOTTOM-NAV — 5-column layout: [item] [item] [GURUJI PILLAR] [item] [LANG]
   The center column is wider (1.4fr) to host the elevated Guruji button.
   Improved colors: subtle gradient, gold accent on active state.
   ============================================================ */
.bottom-nav {
  /* override base — add a soft gradient + subtle top shadow for depth */
  background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
  box-shadow:
    0 -1px 0 rgba(201, 150, 43, 0.18),
    0 -8px 24px -8px rgba(74, 21, 21, 0.08);
}
.bottom-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr;
  align-items: end;
  gap: 0;
  padding: 6px 4px 8px;
  position: relative;
}

/* ----- Standard nav items (4 outer slots) ----- */
.bottom-nav .bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 4px;
  padding: 8px 4px 6px;
  text-decoration: none; background: transparent; border: 0;
  color: var(--ink-mute);
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--display);
  cursor: pointer;
  position: relative;
  transition: color 0.18s var(--ease);
  min-height: 56px;
}
.bottom-nav .bn-item svg {
  width: 24px; height: 24px;
  color: var(--maroon);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}
.bottom-nav .bn-item:active svg { transform: scale(0.92); }

/* Active state: maroon icon + gold dot indicator (replaces the old pale-fill) */
.bottom-nav .bn-item.active { color: var(--maroon-deep); }
.bottom-nav .bn-item.active svg { color: var(--maroon-deep); }
.bottom-nav .bn-item.active .bn-label { color: var(--maroon-deep); font-weight: 600; }
.bottom-nav .bn-dot {
  position: absolute; bottom: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(232, 181, 71, 0.6);
}

/* Empty placeholder slot (when admin hasn't filled all 4 outer items) */
.bottom-nav .bn-empty { visibility: hidden; }

.bottom-nav .bn-emoji {
  display: inline-block;
  font-size: 22px; line-height: 1; height: 24px;
}

/* ----- Center Guruji pillar (always elevated) ----- */
.bottom-nav .bn-guruji {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 4px;
  padding: 0 4px 6px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--display);
  color: var(--maroon-deep);
  position: relative;
  /* Lift the disc above the nav bar */
  margin-top: -22px;
}
.bottom-nav .bn-guruji-disc {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, var(--orange) 130%);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  /* Layered ring + lifted shadow for the elevated, sacred feel */
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 4px var(--gold-bright),
    0 6px 18px -4px rgba(74, 21, 21, 0.45),
    inset 0 0 12px rgba(232, 181, 71, 0.18);
  transition: transform 0.22s cubic-bezier(.16,.84,.23,1.04), box-shadow 0.22s var(--ease);
  overflow: hidden;
}
.bottom-nav .bn-guruji-disc img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.bottom-nav .bn-guruji-disc svg { width: 28px; height: 28px; }
.bottom-nav .bn-guruji:hover .bn-guruji-disc,
.bottom-nav .bn-guruji:focus-visible .bn-guruji-disc {
  transform: translateY(-2px) scale(1.04);
}
.bottom-nav .bn-guruji:active .bn-guruji-disc {
  transform: translateY(0) scale(0.96);
}
.bottom-nav .bn-guruji .bn-label {
  font-weight: 600;
}

/* ----- Language toggle button ----- */
.bottom-nav .bn-lang { /* already styled by .bn-item rules above */ }
.bottom-nav .bn-lang .bn-alt { opacity: 0.5; font-weight: 400; }

/* ----- Bilingual labels: respect language toggle ----- */
.bottom-nav .bn-label.lang-hi { font-family: var(--hindi); font-size: 0.72rem; letter-spacing: 0; }

/* ----- Hide the LIBRARY shadow + ad below nav so the elevated disc reads cleanly ----- */
@media (max-width: 720px) {
  body { padding-bottom: 0; }   /* let the nav's own gradient terminate the page */
}

/* ============================================================
   SIDEBAR WIDGETS — uniform shell for every widget type so the
   sidebar reads as one cohesive column regardless of which mix
   of widgets the operator dropped in.
   ============================================================ */
.widget {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.widget-title {
  margin: 0 0 14px;
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.widget-title .lang-hi {
  display: block;
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: none;
}
.widget-body { font-size: 0.92rem; color: var(--ink); line-height: 1.6; }
.widget-body p { margin: 0 0 10px; }
.widget-body p:last-child { margin-bottom: 0; }
.widget-body a { color: var(--maroon); }

/* Lists (recent / popular posts) */
.widget-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.widget-list li { border-bottom: 1px dashed var(--gold-pale); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
  text-decoration: none; color: var(--ink);
  transition: color 0.15s var(--ease);
}
.widget-list a:hover { color: var(--maroon-deep); }
.widget-list-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.widget-list-label { display: block; font-size: 0.92rem; line-height: 1.35; }
.widget-list-label .lang-hi { display: block; font-family: var(--hindi); color: var(--gold); font-size: 0.84rem; }
.widget-list-meta { color: var(--ink-mute); font-size: 0.78rem; font-family: ui-monospace, monospace; }

/* Chips (categories / deities) */
.widget-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.widget-chips li, .widget-chips li a {
  display: inline-flex; padding: 5px 12px;
  background: var(--cream); border: 1px solid var(--gold-pale); border-radius: 999px;
  font-size: 0.84rem; text-decoration: none; color: var(--ink);
  transition: all 0.15s var(--ease);
}
.widget-chips li a:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }

/* Featured content card */
.widget-feature {
  display: block; text-decoration: none; color: inherit;
  margin: -18px -20px; padding: 0;
  border-radius: 12px; overflow: hidden;
  transition: transform 0.15s var(--ease);
}
.widget-feature:hover { transform: translateY(-2px); }
.widget-feature-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.widget-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.widget-feature-body { padding: 14px 20px 18px; }
.widget-feature-title { font-family: var(--display); color: var(--maroon-deep); font-size: 1.02rem; line-height: 1.3; }
.widget-feature-excerpt { margin: 6px 0 8px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.widget-feature-cta { font-family: var(--display); color: var(--orange); font-size: 0.84rem; letter-spacing: 0.04em; }

/* Search widget */
.widget-search { display: flex; gap: 6px; }
.widget-search input {
  flex: 1; padding: 8px 12px;
  background: var(--cream); border: 1px solid var(--gold-pale); border-radius: 999px;
  font-family: var(--serif); color: var(--ink); font-size: 0.92rem;
}
.widget-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,71,0.18); }
.widget-search button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--maroon); color: var(--cream);
  border: 0; border-radius: 50%; cursor: pointer;
  transition: background 0.15s;
}
.widget-search button:hover { background: var(--maroon-deep); }

/* Subscribe widget */
.widget-subscribe { display: flex; flex-direction: column; gap: 10px; }
.widget-subscribe-copy { margin: 0 0 4px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
.widget-subscribe input { padding: 9px 14px; border: 1px solid var(--gold-pale); border-radius: 999px; background: var(--cream); font-family: var(--serif); font-size: 0.92rem; }
.widget-subscribe input:focus { outline: none; border-color: var(--gold); }
.widget-subscribe button {
  padding: 9px 16px; background: var(--maroon); color: var(--cream);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.04em;
  transition: background 0.15s;
}
.widget-subscribe button:hover { background: var(--maroon-deep); }

/* Social links */
.widget-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.widget-social a { display: block; padding: 8px 12px; background: var(--cream); border: 1px solid var(--gold-pale); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.9rem; transition: all 0.15s var(--ease); }
.widget-social a:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }

/* Festival countdown */
.widget-countdown { text-align: center; padding: 6px 0; }
.widget-countdown-days { font-family: var(--display); color: var(--maroon-deep); font-size: 3rem; line-height: 1; }
.widget-countdown-label { color: var(--ink-mute); font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 10px; }
.widget-countdown-name { font-family: var(--display); color: var(--maroon-deep); font-size: 1.1rem; }
.widget-countdown-name-hi { font-family: var(--hindi); color: var(--gold); font-size: 0.94rem; margin-top: 4px; }

/* Random mantra */
.widget-mantra-eyebrow { color: var(--gold); font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.widget-mantra-title { font-family: var(--display); color: var(--maroon-deep); font-size: 1.05rem; }
.widget-mantra-excerpt { margin: 8px 0 12px; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; font-style: italic; }
.widget-mantra-cta { font-family: var(--display); color: var(--orange); font-size: 0.84rem; letter-spacing: 0.04em; text-decoration: none; }

/* Image caption */
.widget-image-cap { color: var(--ink-mute); font-size: 0.82rem; font-style: italic; margin-top: 6px; text-align: center; }

/* ============================================================
   ENGAGEMENT POPUPS — modal / banner / slide-in / takeover.
   Designed to be calm and gentle, not jarring:
     - Center modals fade + lift in (no scary slam-in)
     - Slide-ins enter softly from the corner with a 200ms ease
     - Banners slide down from the top / up from the bottom
     - Takeover gets a soft fade rather than a hard cut
     - Honour prefers-reduced-motion via the .dpp-no-motion class
   ============================================================ */
.dpp-popup {
  --dpp-accent: var(--maroon);
  --dpp-bg:     var(--paper);
  --dpp-text:   var(--ink);
  --dpp-radius: 14px;
  position: fixed; z-index: 9000;
  pointer-events: none;       /* only the panel takes pointer events */
  font-family: var(--serif);
  color: var(--dpp-text);
}
.dpp-popup .dpp-panel {
  pointer-events: auto;
  background: var(--dpp-bg);
  color: var(--dpp-text);
  border: 1px solid var(--gold-pale);
  border-radius: var(--dpp-radius);
  box-shadow: 0 30px 80px -30px rgba(74,21,21,0.45),
              0 8px 24px -12px rgba(74,21,21,0.18);
  padding: 26px 28px;
  position: relative;
  max-width: 480px;
}
.dpp-popup .dpp-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05); border: 0; border-radius: 50%;
  color: var(--ink-mute); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dpp-popup .dpp-close:hover { background: var(--maroon); color: var(--cream); }
.dpp-popup .dpp-title {
  margin: 0 0 10px;
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.dpp-popup .dpp-title .lang-hi {
  display: block;
  margin-top: 2px;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.96rem;
  color: var(--maroon);
}
.dpp-theme-dark .dpp-title { color: var(--gold-pale); }
.dpp-theme-dark .dpp-title .lang-hi { color: var(--gold); }
.dpp-popup .dpp-body { font-size: 0.96rem; line-height: 1.6; }
.dpp-popup .dpp-body p:first-child { margin-top: 0; }
.dpp-popup .dpp-body p:last-child { margin-bottom: 0; }
.dpp-popup .dpp-cta {
  display: inline-block; margin-top: 14px;
  padding: 9px 22px;
  background: var(--dpp-accent); color: #fff;
  border-radius: 999px;
  font-family: var(--display); font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.12s var(--ease), filter 0.12s var(--ease);
}
.dpp-popup .dpp-cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
.dpp-popup .dpp-media-image,
.dpp-popup .dpp-media-video,
.dpp-popup .dpp-media-youtube {
  display: block;
  margin: -26px -28px 16px;
  width: calc(100% + 56px);
  border-radius: 0;
}
.dpp-popup .dpp-media-image { object-fit: cover; max-height: 220px; }
.dpp-popup .dpp-media-video { aspect-ratio: 16/9; }
.dpp-popup .dpp-media-youtube { aspect-ratio: 16/9; border: 0; }

/* Backdrop — center + takeover */
.dpp-popup .dpp-backdrop {
  pointer-events: auto;
  position: fixed; inset: 0;
  background: rgba(28, 12, 12, 0.55);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.dpp-popup.is-open .dpp-backdrop { opacity: 1; }

/* THEMES */
.dpp-theme-dark .dpp-panel {
  background: var(--maroon-deep); color: var(--gold-pale);
  border-color: var(--maroon-deep);
}
.dpp-theme-dark .dpp-close { background: rgba(255,255,255,0.08); color: var(--gold-pale); }
.dpp-theme-dark .dpp-close:hover { background: var(--gold); color: var(--maroon-deep); }
.dpp-theme-gold .dpp-panel {
  background: linear-gradient(180deg, #FFF6D9, #FFFCF4);
  border-color: var(--gold);
}
.dpp-theme-ivory .dpp-panel {
  background: var(--ivory-warm); border-color: var(--gold-pale);
}

/* ===== POSITIONS ===== */

/* Center modal */
.dpp-pos-center { inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dpp-pos-center .dpp-panel {
  width: 100%; max-width: 500px;
  opacity: 0; transform: translateY(8px) scale(0.98);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.dpp-pos-center.is-open .dpp-panel { opacity: 1; transform: translateY(0) scale(1); }

/* Slide-in bottom-right */
.dpp-pos-bottom-right { bottom: 20px; right: 20px; }
.dpp-pos-bottom-right .dpp-panel { max-width: 360px; opacity: 0; transform: translate(20px, 10px); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.dpp-pos-bottom-right.is-open .dpp-panel { opacity: 1; transform: translate(0, 0); }

/* Slide-in bottom-left */
.dpp-pos-bottom-left { bottom: 20px; left: 20px; }
.dpp-pos-bottom-left .dpp-panel { max-width: 360px; opacity: 0; transform: translate(-20px, 10px); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.dpp-pos-bottom-left.is-open .dpp-panel { opacity: 1; transform: translate(0, 0); }

/* Slide-in top-right */
.dpp-pos-top-right { top: 20px; right: 20px; }
.dpp-pos-top-right .dpp-panel { max-width: 360px; opacity: 0; transform: translate(20px, -10px); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.dpp-pos-top-right.is-open .dpp-panel { opacity: 1; transform: translate(0, 0); }

/* Top banner (full width) */
.dpp-pos-top-banner { top: 0; left: 0; right: 0; }
.dpp-pos-top-banner .dpp-panel {
  max-width: none; border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  padding: 16px 24px; text-align: center;
  transform: translateY(-100%); transition: transform 0.28s var(--ease);
}
.dpp-pos-top-banner.is-open .dpp-panel { transform: translateY(0); }

/* Bottom banner */
.dpp-pos-bottom-banner { bottom: 0; left: 0; right: 0; }
.dpp-pos-bottom-banner .dpp-panel {
  max-width: none; border-radius: 0;
  border-left: 0; border-right: 0; border-bottom: 0;
  padding: 16px 24px; text-align: center;
  transform: translateY(100%); transition: transform 0.28s var(--ease);
}
.dpp-pos-bottom-banner.is-open .dpp-panel { transform: translateY(0); }

/* Side panel (right) */
.dpp-pos-side-right { top: 0; right: 0; bottom: 0; }
.dpp-pos-side-right .dpp-panel {
  width: 360px; max-width: 100vw; height: 100vh; overflow-y: auto;
  border-radius: 0; border-top: 0; border-bottom: 0; border-right: 0;
  transform: translateX(100%); transition: transform 0.28s var(--ease);
}
.dpp-pos-side-right.is-open .dpp-panel { transform: translateX(0); }

/* Side panel (left) */
.dpp-pos-side-left { top: 0; left: 0; bottom: 0; }
.dpp-pos-side-left .dpp-panel {
  width: 360px; max-width: 100vw; height: 100vh; overflow-y: auto;
  border-radius: 0; border-top: 0; border-bottom: 0; border-left: 0;
  transform: translateX(-100%); transition: transform 0.28s var(--ease);
}
.dpp-pos-side-left.is-open .dpp-panel { transform: translateX(0); }

/* Full-screen takeover */
.dpp-pos-takeover { inset: 0; display: flex; align-items: center; justify-content: center; }
.dpp-pos-takeover .dpp-panel {
  width: 100%; max-width: none; height: 100%; max-height: none;
  border-radius: 0; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.28s var(--ease);
}
.dpp-pos-takeover.is-open .dpp-panel { opacity: 1; }

/* Reduced motion */
.dpp-no-motion .dpp-panel,
.dpp-no-motion .dpp-backdrop {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.dpp-no-motion.is-open .dpp-panel { transform: none !important; }

/* Phones — slide-ins always sit just above the bottom-nav */
@media (max-width: 720px) {
  .dpp-pos-bottom-right, .dpp-pos-bottom-left { left: 12px; right: 12px; bottom: 76px; }
  .dpp-pos-bottom-right .dpp-panel, .dpp-pos-bottom-left .dpp-panel { max-width: none; }
}

/* ============================================================
   SUBSCRIBE BAND — distinctive, themed band sitting above the
   footer. Built with a positioning container (.sub-band) that
   anchors decorative ornaments + a garland separator, and a
   .sub-band-inner grid that flows the copy + form. Themes
   override colours, gradients, and visibility of the ornaments
   so each one reads as a distinctly different design.
   ============================================================ */
.sub-band {
  position: relative;
  padding: 44px 0 48px;
  overflow: hidden;            /* keep ornaments from spilling */
  isolation: isolate;          /* z-index sandbox */
}
.sub-band-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 820px) {
  .sub-band-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .sub-band { padding: 36px 0 40px; }
}

/* Decorative ornaments — corner mandalas. Hidden by default;
   each theme opts in by setting opacity/visibility. */
.sub-band-ornament {
  position: absolute;
  z-index: 1;
  width: 220px;
  height: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  color: currentColor;
}
.sub-band-ornament-left  { top: -50px; left: -60px;   transform: rotate(-12deg); }
.sub-band-ornament-right { bottom: -60px; right: -60px; transform: rotate(15deg); }
.sub-band-ornament svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) {
  .sub-band-ornament { width: 160px; height: 160px; }
  .sub-band-ornament-left  { top: -40px; left: -50px; }
  .sub-band-ornament-right { bottom: -50px; right: -50px; }
}

/* Garland separator — runs across the top edge of the band */
.sub-band-garland {
  position: absolute;
  z-index: 1;
  top: 0; left: 0; right: 0;
  height: 38px;
  opacity: 0;
  pointer-events: none;
  color: currentColor;
}
.sub-band-garland svg { width: 100%; height: 100%; display: block; }

/* ----- typography + form ----- */
.sub-band-heading {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.sub-band-heading .lang-hi {
  display: block;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 1.1rem;
  margin-top: 4px;
  opacity: 0.88;
}
.sub-band-blurb { margin: 0; font-size: 0.96rem; line-height: 1.6; opacity: 0.88; max-width: 50ch; }
.sub-band-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 820px) { .sub-band-form { justify-content: center; } }
.sub-band-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.96rem;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) inset;
}
.sub-band-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,181,71,0.28);
}
.sub-band-form button {
  padding: 12px 24px;
  background: var(--maroon);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 4px 14px -4px rgba(74,21,21,0.4);
}
.sub-band-form button:hover { background: var(--maroon-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(74,21,21,0.5); }
.sub-band-form button.is-loading { opacity: 0.6; cursor: wait; }
.sub-band-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.sub-band-msg {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.sub-band-msg.is-success { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.sub-band-msg.is-error   { background: rgba(176, 0, 0, 0.10); color: #b00; }

/* =====  THEMES  ===== */

/* GOLD — warm cream with subtle gold ornaments visible. */
.sub-theme-gold {
  background:
    radial-gradient(120% 80% at 0% 50%, rgba(232,181,71,0.22), transparent 60%),
    radial-gradient(120% 80% at 100% 50%, rgba(74,21,21,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--ivory-warm));
  color: var(--ink);
}
.sub-theme-gold .sub-band-heading { color: var(--maroon-deep); }
.sub-theme-gold .sub-band-ornament { color: var(--gold); opacity: 0.35; }

/* MAROON — deep maroon with golden-cream ornaments. Most formal. */
.sub-theme-maroon {
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(232,181,71,0.18), transparent 70%),
    linear-gradient(180deg, var(--maroon-deep), #4A1414);
  color: var(--gold-pale);
  border-top: 1px solid rgba(232,181,71,0.2);
}
.sub-theme-maroon .sub-band-heading { color: #FFF6D9; }
.sub-theme-maroon .sub-band-blurb   { color: rgba(255,246,217,0.88); }
.sub-theme-maroon .sub-band-form input  { background: rgba(255,252,244,0.97); color: var(--ink); }
.sub-theme-maroon .sub-band-form button { background: var(--gold); color: var(--maroon-deep); box-shadow: 0 4px 14px -4px rgba(232,181,71,0.45); }
.sub-theme-maroon .sub-band-form button:hover { background: #F5C857; }
.sub-theme-maroon .sub-band-ornament { color: var(--gold); opacity: 0.42; }

/* IVORY — minimal, breathable. No ornaments. */
.sub-theme-ivory { background: var(--ivory-warm); color: var(--ink); border-top: 1px solid var(--gold-pale); }
.sub-theme-ivory .sub-band-heading { color: var(--maroon-deep); }

/* DARK — night sky with bright gold ornament. */
.sub-theme-dark {
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(232,181,71,0.22), transparent 60%),
    radial-gradient(60% 60% at 20% 100%, rgba(232,181,71,0.10), transparent 70%),
    linear-gradient(180deg, #1a0a0a, #0e0606);
  color: #f5e9c5;
}
.sub-theme-dark .sub-band-heading { color: var(--gold); }
.sub-theme-dark .sub-band-blurb   { color: rgba(245,233,197,0.85); }
.sub-theme-dark .sub-band-form input  { background: rgba(255,255,255,0.95); color: var(--ink); }
.sub-theme-dark .sub-band-form button { background: var(--gold); color: var(--maroon-deep); box-shadow: 0 4px 14px -4px rgba(232,181,71,0.45); }
.sub-theme-dark .sub-band-ornament { color: var(--gold); opacity: 0.5; }

/* RANGOLI — deep maroon with prominent gold rangoli mandalas on both sides */
.sub-theme-rangoli {
  background:
    radial-gradient(60% 60% at 0% 50%, rgba(232,181,71,0.16), transparent 70%),
    radial-gradient(60% 60% at 100% 50%, rgba(232,181,71,0.16), transparent 70%),
    linear-gradient(135deg, #5B1717, #3D0F0F 50%, #5B1717);
  color: var(--gold-pale);
}
.sub-theme-rangoli .sub-band-heading { color: var(--gold); }
.sub-theme-rangoli .sub-band-blurb   { color: rgba(255,246,217,0.9); }
.sub-theme-rangoli .sub-band-form input  { background: rgba(255,252,244,0.97); color: var(--ink); }
.sub-theme-rangoli .sub-band-form button { background: var(--gold); color: var(--maroon-deep); }
.sub-theme-rangoli .sub-band-form button:hover { background: #F5C857; }
.sub-theme-rangoli .sub-band-ornament { color: var(--gold); opacity: 0.65; }
.sub-theme-rangoli .sub-band-ornament-left  { width: 280px; height: 280px; top: -70px; left: -90px; }
.sub-theme-rangoli .sub-band-ornament-right { width: 280px; height: 280px; bottom: -90px; right: -90px; }

/* GARLAND — warm cream with marigold garland strung across the top */
.sub-theme-garland {
  background:
    linear-gradient(180deg, #FFF1E0, var(--ivory-warm));
  color: var(--ink);
  padding-top: 64px;            /* extra room for the garland */
}
.sub-theme-garland .sub-band-heading { color: var(--maroon-deep); }
.sub-theme-garland .sub-band-garland { opacity: 1; color: var(--orange); height: 48px; }
.sub-theme-garland .sub-band-ornament { color: var(--gold); opacity: 0.22; }

/* DIYA — night sky with golden ornament + warm glow at the bottom edge */
.sub-theme-diya {
  background:
    radial-gradient(70% 50% at 50% 100%, rgba(232,181,71,0.30), transparent 70%),
    radial-gradient(50% 70% at 20% 30%, rgba(232,181,71,0.08), transparent 70%),
    linear-gradient(180deg, #0C0606 0%, #1F0808 60%, #2C0E0E 100%);
  color: #FFF1D6;
}
.sub-theme-diya .sub-band-heading { color: var(--gold); }
.sub-theme-diya .sub-band-blurb   { color: rgba(255,241,214,0.82); }
.sub-theme-diya .sub-band-form input  { background: rgba(255,255,255,0.96); color: var(--ink); }
.sub-theme-diya .sub-band-form button { background: var(--gold); color: var(--maroon-deep); box-shadow: 0 0 24px rgba(232,181,71,0.35); }
.sub-theme-diya .sub-band-ornament { color: #FFD673; opacity: 0.45; }
.sub-theme-diya .sub-band-garland { opacity: 0.4; color: #FFD673; }

/* MANDALA — soft cream + maroon with a centered mandala-style ornament */
.sub-theme-mandala {
  background:
    radial-gradient(40% 70% at 50% 50%, rgba(232,181,71,0.18), transparent 70%),
    linear-gradient(180deg, #FFFCF4, #F5E6C0);
  color: var(--ink);
}
.sub-theme-mandala .sub-band-heading { color: var(--maroon-deep); }
.sub-theme-mandala .sub-band-ornament-left,
.sub-theme-mandala .sub-band-ornament-right {
  color: var(--maroon);
  opacity: 0.25;
  width: 320px; height: 320px;
}
.sub-theme-mandala .sub-band-ornament-left  { top: -80px; left: -120px; }
.sub-theme-mandala .sub-band-ornament-right { bottom: -100px; right: -120px; }

/* LOTUS — soft pink-cream + maroon CTA */
.sub-theme-lotus {
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255,200,180,0.5), transparent 65%),
    linear-gradient(180deg, #FFF1E8, #FFE0D4);
  color: var(--ink);
}
.sub-theme-lotus .sub-band-heading { color: var(--maroon-deep); }
.sub-theme-lotus .sub-band-ornament { color: var(--maroon); opacity: 0.25; }

/* ============================================================
   SHORTCODES — styling for the built-in shortcode handlers.
   ============================================================ */

/* Contact form */
.dpp-shortcode-form {
  max-width: 560px;
  margin: 28px auto;
  padding: 26px 28px;
  background: var(--cream);
  border: 1px solid var(--gold-pale);
  border-radius: 12px;
}
.dpp-shortcode-form .sc-form-heading {
  font-family: var(--display);
  color: var(--maroon-deep);
  font-size: 1.2rem;
  margin: 0 0 16px;
}
.dpp-shortcode-form .sc-form-heading .lang-hi {
  display: block;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.96rem;
  color: var(--maroon);
}
.dpp-shortcode-form .sc-form-row { margin-bottom: 12px; }
.dpp-shortcode-form input,
.dpp-shortcode-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--gold-pale); border-radius: 8px;
  background: var(--paper); font-family: var(--serif); font-size: 0.96rem;
  color: var(--ink); box-sizing: border-box;
}
.dpp-shortcode-form input:focus,
.dpp-shortcode-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,71,0.18); }
.dpp-shortcode-form button {
  padding: 11px 22px;
  background: var(--maroon); color: var(--cream);
  border: 0; border-radius: 999px;
  font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dpp-shortcode-form button:hover { background: var(--maroon-deep); transform: translateY(-1px); }
.dpp-shortcode-form .sc-form-msg { margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; }
.dpp-shortcode-form .sc-form-msg.is-success { background: rgba(76,175,80,0.12); color: #2e7d32; }
.dpp-shortcode-form .sc-form-msg.is-error   { background: rgba(176,0,0,0.10); color: #b00; }

/* Search box */
.dpp-shortcode-search { display: flex; gap: 6px; max-width: 460px; }
.dpp-shortcode-search input {
  flex: 1; padding: 10px 16px;
  border: 1px solid var(--gold-pale); border-radius: 999px;
  background: var(--paper); font-family: var(--serif); font-size: 0.94rem;
}
.dpp-shortcode-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,71,0.18); }
.dpp-shortcode-search button {
  width: 42px; height: 42px;
  background: var(--maroon); color: var(--cream);
  border: 0; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.dpp-shortcode-search button:hover { background: var(--maroon-deep); }

/* Ad slot wrapper */
.dpp-shortcode-ad { margin: 24px 0; text-align: center; }

/* Featured grid */
.dpp-shortcode-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.sc-feat-card {
  display: block;
  background: var(--paper); border: 1px solid var(--gold-pale);
  border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.sc-feat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -8px rgba(74,21,21,0.18); }
.sc-feat-img { aspect-ratio: 16/10; overflow: hidden; }
.sc-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-feat-body { padding: 12px 14px 14px; }
.sc-feat-title { font-family: var(--display); color: var(--maroon-deep); font-size: 0.98rem; line-height: 1.3; }
.sc-feat-exc { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.5; }

/* Recent list */
.dpp-shortcode-recent {
  list-style: none; padding: 0; margin: 20px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.dpp-shortcode-recent li { border-bottom: 1px dashed var(--gold-pale); }
.dpp-shortcode-recent li:last-child { border-bottom: 0; }
.dpp-shortcode-recent a {
  display: block; padding: 8px 0; color: var(--ink);
  text-decoration: none; transition: color 0.15s;
}
.dpp-shortcode-recent a:hover { color: var(--maroon-deep); }

/* Deity card */
.dpp-shortcode-deity {
  display: inline-block; padding: 8px 16px; margin: 6px 4px;
  background: var(--cream); border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-family: var(--display); color: var(--maroon-deep);
}
.dpp-shortcode-deity .sc-deity-name-hi {
  display: block; font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.84rem; color: var(--gold); margin-top: 2px;
}

/* Button */
.dpp-shortcode-btn {
  display: inline-block; padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.dpp-shortcode-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.dpp-shortcode-btn.sc-btn-primary { background: var(--maroon); color: var(--cream); }
.dpp-shortcode-btn.sc-btn-outline { background: transparent; color: var(--maroon); border: 1px solid var(--maroon); }
.dpp-shortcode-btn.sc-btn-ghost   { background: transparent; color: var(--maroon); }
.dpp-shortcode-btn.sc-btn-ghost:hover { background: var(--gold-pale); }

/* Divider */
.dpp-shortcode-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 36px 0;
  color: var(--gold);
}
.dpp-shortcode-divider.sc-div-ornate .sc-div-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dpp-shortcode-divider.sc-div-simple {
  display: block;
  height: 1px; background: var(--gold-pale); border: 0;
}

/* YouTube */
.dpp-shortcode-youtube {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 10px; overflow: hidden; margin: 24px 0;
}
.dpp-shortcode-youtube iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Map */
.dpp-shortcode-map {
  position: relative; height: 360px; border-radius: 10px; overflow: hidden;
  margin: 24px 0; border: 1px solid var(--gold-pale);
}
.dpp-shortcode-map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FEATURED — uniform card grid. Equal width, equal height,
   equal image aspect, equal excerpt area. The "lead" variant
   (first card / main item) is still semantically distinct but
   visually identical so the row reads as a balanced trio.
   ============================================================ */
.feat-uniform-grid {
  display: grid;
  /* auto-FILL (not auto-fit) — auto-fit collapses empty tracks
     and lets a single card stretch to fill the entire row, which
     produces an enormous lone card on a 1-item section. auto-fill
     keeps every potential track at minimum width, so a single
     card stays a sensible size. justify-content centers the
     resulting tracks so 1- or 2-card sections sit balanced
     instead of clinging to the left edge. */
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 24px;
  justify-content: center;
  align-items: stretch;          /* equal-height cards */
}
/* When only one card is present, give it a slightly larger fixed
   width so it reads as a proper feature rather than an orphan. */
.feat-uniform-grid:has(.feat-card:only-child) {
  grid-template-columns: minmax(280px, 420px);
}
.feat-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule, var(--gold-pale));
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease, ease), box-shadow 0.18s var(--ease, ease), border-color 0.18s var(--ease, ease);
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px -10px rgba(74, 21, 21, 0.20);
}
.feat-card-thumb {
  aspect-ratio: 16 / 10;         /* every image is the same shape */
  overflow: hidden;
  background: var(--cream);
}
.feat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease, ease);
}
.feat-card:hover .feat-card-thumb img { transform: scale(1.04); }
.feat-card-thumb-empty {
  background: linear-gradient(135deg, var(--cream), var(--ivory-warm));
}
.feat-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;                       /* push to bottom so cards align */
}
.feat-card-kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.feat-card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--maroon-deep);
  line-height: 1.35;
  /* Clamp to 2 lines so an unusually long title doesn't push the
     card taller than its siblings. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-card-title-hi {
  font-family: var(--hindi, 'Tiro Devanagari Hindi', serif);
  color: var(--orange);
  font-size: 0.95rem;
  margin-top: 2px;
}
.feat-card-excerpt {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  /* Clamp to 3 lines so excerpt height is uniform across cards. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Lead card gets a subtle gold edge on top so it still reads as
   "first" without breaking the uniform sizing. */
.feat-card-lead { box-shadow: 0 -3px 0 var(--gold) inset; }
.feat-card-lead .feat-card-kicker { color: var(--maroon); }

@media (max-width: 720px) {
  .feat-uniform-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-card-thumb { aspect-ratio: 16 / 9; }
}
