.temple-feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 1.35rem;
  align-items: stretch;
}

.temple-form-shell {
  border: 1px solid rgba(212,160,23,.16);
  border-radius: 30px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(155deg, rgba(34,20,10,.72), rgba(66,42,24,.58));
  box-shadow: 0 24px 56px rgba(35,18,8,.14);
}

.temple-form-shell--devotee {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(155deg, rgba(49,26,12,.76), rgba(95,56,26,.48));
}

.temple-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.temple-form-stack {
  display: grid;
  gap: .45rem;
}

.temple-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}

.temple-inline-note {
  font-size: .82rem;
  color: var(--tm);
  line-height: 1.7;
  max-width: 36rem;
}

.temple-side-stack {
  display: grid;
  gap: 1rem;
}

.temple-side-card {
  border: 1px solid rgba(212,160,23,.16);
  border-radius: 26px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 18px 42px rgba(35,18,8,.08);
}

.temple-side-card--highlight {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,107,26,.10));
}

.temple-side-card--solid {
  background: rgba(25,15,8,.48);
}

#volunteer .stt,
#devotee-hub .stt,
#notice-board .stt,
#timeline .stt {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

#volunteer .fi2,
#devotee-hub .fi2 {
  min-height: 56px;
  border-radius: 16px;
  border-color: rgba(212,160,23,.18);
  background: rgba(255,252,247,.94);
  color: #2D1200;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

#volunteer textarea.fi2,
#devotee-hub textarea.fi2 {
  min-height: 150px;
  padding-top: 1rem;
  resize: vertical;
}

#volunteer .fi2::placeholder,
#devotee-hub .fi2::placeholder {
  color: rgba(78,53,33,.68);
}

#volunteer .fi2:focus,
#devotee-hub .fi2:focus {
  border-color: rgba(215,110,28,.55);
  box-shadow: 0 0 0 4px rgba(255,107,26,.12);
}

#volunteer select.fi2,
#devotee-hub select.fi2 {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5B3416 50%),
    linear-gradient(135deg, #5B3416 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 15px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

[data-mode="light"] #volunteer .fi2,
[data-mode="light"] #devotee-hub .fi2 {
  background: rgba(255,255,255,.92);
  border-color: rgba(180,120,40,.22);
  color: #2D1200;
}

[data-mode="light"] .fi2 option,
[data-mode="light"] #volunteer .fi2 option,
[data-mode="light"] #devotee-hub .fi2 option {
  background: #fff7ef;
  color: #2D1200;
}

[data-mode="light"] .temple-form-shell {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.35), transparent 32%),
    linear-gradient(160deg, rgba(255,248,238,.96), rgba(247,232,212,.88));
  box-shadow: 0 24px 56px rgba(95,55,20,.10);
}

[data-mode="light"] .temple-side-card--solid {
  background: linear-gradient(145deg, rgba(248,237,224,.94), rgba(239,225,206,.88));
}

[data-mode="light"] .temple-side-card--highlight {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(145deg, rgba(255,253,249,.96), rgba(249,234,214,.92));
}

@media (max-width: 1200px) {
  .nav-wa-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .temple-feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .temple-form-shell,
  .temple-side-card {
    border-radius: 22px;
    padding: 1.15rem;
  }

  .temple-form-row {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .temple-form-footer {
    align-items: stretch;
  }

  .temple-form-footer .bp,
  .temple-form-footer .bo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #volunteer .stt,
  #devotee-hub .stt,
  #notice-board .stt,
  #timeline .stt {
    font-size: clamp(1.5rem, 7vw, 2.15rem);
  }

  .nav-utility.is-desktop .theme-picker-wrap {
    display: none !important;
  }

  .nav-actions {
    gap: .3rem;
  }

  .nlt {
    font-size: .66rem !important;
    max-width: 130px;
    line-height: 1.08;
  }

  .nlt br + span {
    display: none;
  }

  .nav-lang-btn {
    min-width: 40px !important;
    padding: .36rem .5rem !important;
  }
}

@media (max-width: 480px) {
  .temple-form-shell,
  .temple-side-card {
    padding: 1rem;
    border-radius: 18px;
  }

  #volunteer .fi2,
  #devotee-hub .fi2 {
    min-height: 52px;
    font-size: .92rem;
  }

  .nav-utility.is-desktop {
    display: flex;
    align-items: center;
  }

  .nav-right {
    gap: .4rem;
  }

  .nlt {
    max-width: 105px;
  }
}

@media (max-width: 380px) {
  .nav-utility.is-desktop {
    display: none !important;
  }

  .nlt {
    max-width: 126px;
    font-size: .62rem !important;
  }
}

#volunteer .stt,
#devotee-hub .stt,
#notice-board .stt,
#timeline .stt {
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: .03em;
}

#volunteer .sdesc,
#devotee-hub .sdesc,
#notice-board .sdesc,
#timeline .sdesc,
#today .sdesc {
  max-width: 54rem;
  margin-inline: auto;
  line-height: 1.9;
}

#today .today-grid,
#timelineRoot,
.notice-board-grid {
  max-width: 1120px;
  margin: 0 auto;
}

#today .today-grid {
  gap: 1.35rem;
}

.today-nandi-shortcuts {
  display: none !important;
}

#today .today-live-card,
#today .today-panchang-card,
.temple-form-shell,
.temple-side-card,
.temple-panel-card,
.timeline-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 54px rgba(55, 28, 10, .10);
}

.notice-board-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#noticeBoardRoot article {
  border: 1px solid rgba(212,160,23,.16) !important;
  border-radius: 28px !important;
  padding: 1.35rem !important;
  box-shadow: 0 22px 54px rgba(55, 28, 10, .10) !important;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(150deg, rgba(255,252,248,.94), rgba(244,230,211,.88)) !important;
}

#noticeBoardRoot article h3 {
  color: #3B1C04 !important;
  line-height: 1.28 !important;
}

#noticeBoardRoot article div:first-child {
  color: var(--muted) !important;
}

.notice-board-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 1.25rem auto 0;
}

.temple-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.2rem;
  font-size: .72rem;
}

.timeline-wall {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.15rem;
  align-items: start;
  border: 1px solid rgba(212,160,23,.14);
  border-radius: 28px;
  padding: 1.35rem 1.45rem;
  position: relative;
  overflow: hidden;
}

.timeline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 32%);
  pointer-events: none;
}

.timeline-card--solid {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(150deg, rgba(247,237,226,.96), rgba(235,220,200,.88));
}

.timeline-card--soft {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(150deg, rgba(255,252,248,.94), rgba(246,234,219,.84));
}

.timeline-era {
  font-family: 'Cinzel', serif;
  font-size: .98rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--s);
}

.timeline-body {
  display: grid;
  gap: .42rem;
}

.timeline-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.38rem;
  line-height: 1.2;
  color: #2D1200;
}

.timeline-copy {
  margin: 0;
  color: var(--tm);
  line-height: 1.8;
}

.nandi-btn {
  min-height: 56px;
  padding-inline: 1.35rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg, #E46B1E, #B94A10);
  box-shadow: 0 18px 40px rgba(228,107,30,.28);
}

.nandi-btn-text {
  font-size: .98rem;
  letter-spacing: .04em;
}

.nandi-chat {
  width: min(380px, calc(100vw - 2.4rem));
  height: min(610px, 76vh);
  border-radius: 26px;
  border: 1px solid rgba(212,160,23,.22);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 24%),
    linear-gradient(180deg, rgba(255,250,243,.98), rgba(245,233,217,.97));
  box-shadow: 0 28px 56px rgba(58,29,10,.18);
}

.nandi-header {
  padding: .95rem 1.05rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 28%),
    linear-gradient(135deg, rgba(255,247,237,.96), rgba(242,226,203,.92));
}

.nandi-header span {
  color: #4A2306;
}

.nandi-close {
  color: #6A3A15;
}

.nandi-msgs {
  padding: 1rem;
  gap: .85rem;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(248,240,229,.55));
}

.nandi-msg {
  padding: .78rem .95rem;
  border-radius: 16px;
  line-height: 1.65;
  font-size: .85rem;
}

.nm-nandi {
  background: rgba(255,255,255,.72);
  color: #553015;
  border-color: rgba(180,120,40,.16);
}

.nm-user {
  box-shadow: 0 10px 24px rgba(228,107,30,.18);
}

.nandi-chips-wrapper {
  padding: .85rem 1rem .95rem;
  background: rgba(255,250,244,.88);
  border-top: 1px solid rgba(180,120,40,.12);
}

.nandi-tools-shell {
  display: grid;
  gap: .75rem;
}

.nandi-chips {
  gap: .55rem;
}

.nandi-chip {
  padding: .48rem .82rem;
  border-radius: 999px;
  border-color: rgba(180,120,40,.18);
  background: rgba(255,255,255,.76);
  color: #6B3B16;
  font-size: .74rem;
}

.nandi-chip:hover {
  background: rgba(228,107,30,.14);
  border-color: rgba(228,107,30,.24);
  color: #4A2206;
}

.nandi-chip--secondary {
  background: rgba(248,238,225,.95);
}

.nandi-tools-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .72rem .9rem;
  border-radius: 18px;
  border: 1px solid rgba(180,120,40,.16);
  background: rgba(255,255,255,.74);
  color: #5D3313;
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.nandi-tools-toggle:hover {
  background: rgba(255,248,239,.95);
  border-color: rgba(228,107,30,.24);
}

.nandi-tools-indicator {
  font-size: 1rem;
  font-weight: 700;
}

.nandi-tools-panel {
  display: none;
  gap: .6rem;
  padding: .85rem;
  border-radius: 20px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(180,120,40,.12);
}

.nandi-tools-panel.open {
  display: grid;
}

.nandi-tools-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(92,48,16,.68);
}

.nandi-tools-row {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.nandi-input-area {
  background: rgba(255,250,243,.94);
  border-top: 1px solid rgba(180,120,40,.14);
}

.nandi-input {
  min-height: 46px;
}

@media (max-width: 768px) {
  .timeline-card {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: 1.2rem;
  }

  .timeline-era {
    font-size: .84rem;
  }

  .timeline-title,
  #noticeBoardRoot article h3 {
    font-size: 1.12rem !important;
  }

  .notice-board-actions {
    justify-content: stretch;
  }

  .notice-board-actions .bo,
  .notice-board-actions .bp {
    flex: 1 1 220px;
  }

  .nandi-tools-toggle {
    font-size: .76rem;
  }

  .nandi-chat {
    width: calc(100vw - 2rem);
    max-width: none;
    right: 1rem;
    left: 1rem;
    border-radius: 22px;
  }

  .nandi-chips-wrapper {
    padding-inline: .85rem;
  }
}

@media (max-width: 480px) {
  .temple-panel-card,
  .timeline-card,
  #noticeBoardRoot article {
    padding: 1rem !important;
    border-radius: 22px !important;
  }

  .notice-board-grid,
  .timeline-wall {
    gap: .85rem;
  }

  .nandi-btn {
    padding-inline: 1rem;
  }

  .nandi-btn-text {
    font-size: .88rem;
  }
}

.broadcast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(212,160,23,.18);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, rgba(255,247,236,.96), rgba(244,228,204,.92));
  box-shadow: 0 24px 52px rgba(80,42,12,.12);
}

.broadcast-hero--festival {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(135deg, rgba(255,245,220,.98), rgba(246,222,186,.94));
}

.broadcast-hero--high {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.24), transparent 32%),
    linear-gradient(135deg, rgba(255,237,229,.98), rgba(244,210,189,.94));
}

.broadcast-hero__content,
.broadcast-hero__actions,
.live-temple-card,
.temple-side-stack,
.temple-panel-card,
.temple-kpi-grid,
.nandi-msg__meta,
.nandi-header__identity,
.nandi-guide-group,
.nandi-guide-group__chips {
  display: grid;
}

.broadcast-hero__content,
.live-temple-card,
.temple-panel-card {
  gap: .48rem;
}

.broadcast-hero__actions {
  gap: .7rem;
  justify-items: end;
}

.broadcast-hero__eyebrow,
.temple-panel-card__eyebrow,
.temple-kpi-card__label,
.live-temple-card__topline {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.broadcast-hero__eyebrow,
.temple-panel-card__eyebrow,
.temple-kpi-card__label {
  color: rgba(111,57,18,.7);
}

.broadcast-hero__title,
.live-temple-card__title,
.temple-panel-card__title {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #341405;
}

.broadcast-hero__title {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
}

.broadcast-hero__copy,
.live-temple-card__copy,
.temple-panel-card__copy {
  margin: 0;
  color: var(--tm);
  line-height: 1.75;
}

.live-temple-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
  gap: var(--bento-gap);
  align-items: start;
}

.live-temple-card {
  padding: 1.35rem;
  border-radius: 30px;
  border: 1px solid rgba(212,160,23,.18);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(160deg, rgba(255,252,248,.98), rgba(245,233,217,.94));
  box-shadow: 0 28px 60px rgba(65,33,10,.12);
}

.live-temple-card__topline {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.temple-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem .82rem;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.18);
  background: rgba(255,255,255,.72);
  color: #6A360F;
  font-weight: 600;
}

.temple-status-chip.is-live {
  background: rgba(225,106,25,.12);
  color: #8A350A;
  border-color: rgba(225,106,25,.24);
}

.temple-status-chip.is-quiet,
.temple-status-chip--ghost {
  background: rgba(255,250,242,.82);
}

.temple-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .25rem;
}

.temple-kpi-card,
.temple-panel-card {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(212,160,23,.16);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(160deg, rgba(255,255,255,.84), rgba(246,235,220,.78));
}

.temple-kpi-card {
  display: grid;
  gap: .3rem;
}

.temple-kpi-card__value {
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  color: #3C1705;
}

.temple-kpi-card__meta {
  color: var(--tm);
  line-height: 1.55;
}

.temple-side-stack {
  gap: var(--bento-gap);
}

.temple-panel-card--soft {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.25), transparent 32%),
    linear-gradient(160deg, rgba(255,249,241,.94), rgba(245,232,214,.88));
}

.nandi-header__identity {
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: center;
}

.nandi-header__identity small {
  display: block;
  margin-top: .12rem;
  color: rgba(90,46,15,.72);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nandi-btn-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-weight: 700;
}

.nandi-msg__body {
  white-space: normal;
}

.nandi-msg__meta {
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: center;
  margin-top: .45rem;
}

.nandi-voice-mini,
.nandi-voice-btn {
  border: 1px solid rgba(180,120,40,.18);
  background: rgba(255,255,255,.78);
  color: #6A360F;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nandi-voice-mini {
  padding: .26rem .58rem;
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nandi-voice-btn {
  min-height: 46px;
  padding: 0 .9rem;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nandi-voice-mini:hover,
.nandi-voice-btn:hover,
.nandi-voice-btn.is-active {
  background: rgba(228,107,30,.16);
  border-color: rgba(228,107,30,.28);
}

.nandi-guide-panel {
  display: none;
  gap: .75rem;
  padding: .85rem;
  border-radius: 20px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(180,120,40,.12);
}

.nandi-guide-panel.open {
  display: grid;
}

.nandi-guide-group {
  gap: .45rem;
}

.nandi-guide-group__title {
  font-size: .72rem;
  font-family: 'Cinzel', serif;
  color: rgba(92,48,16,.78);
  letter-spacing: .08em;
}

.nandi-guide-group__chips {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem;
}

@media (max-width: 980px) {
  .broadcast-hero,
  .live-temple-shell {
    grid-template-columns: 1fr;
  }

  .broadcast-hero__actions {
    justify-items: stretch;
  }

  .temple-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .broadcast-hero,
  .live-temple-card,
  .temple-panel-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .notice-board-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .broadcast-hero__actions .temple-inline-action,
  .notice-board-actions .temple-inline-action,
  .notice-board-actions .bp,
  .nandi-voice-btn,
  .nandi-send {
    width: 100%;
  }

  .nandi-input-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .nandi-guide-group__chips {
    grid-template-columns: 1fr;
  }
}

.gallery-preview-open__mark {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.22);
  background: rgba(255,255,255,.74);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #7A320A;
}

.gallery-preview-open__label {
  font-family: 'Cinzel', serif;
  font-size: .76rem;
  color: var(--g);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-shell,
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
}

.gallery-shell {
  z-index: 6000;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(228,107,30,.08), transparent 18%),
    linear-gradient(180deg, rgba(17,7,1,.985), rgba(9,3,0,.995));
  color: #F4E7D2;
}

.gallery-shell__header,
.gallery-shell__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 2vw, 1.8rem);
}

.gallery-shell__header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-top: 1rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid rgba(212,160,23,.16);
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(14,6,1,.92), rgba(14,6,1,.72));
}

.gallery-shell__title {
  display: grid;
  gap: .18rem;
}

.gallery-shell__title strong,
.gallery-card__title,
.gallery-lightbox__title {
  font-family: 'Cinzel', serif;
}

.gallery-shell__title strong {
  font-size: clamp(1.05rem, .92rem + .55vw, 1.4rem);
  color: #F2D49A;
}

.gallery-shell__eyebrow,
.gallery-shell__count,
.gallery-shell__meta,
.gallery-card__eyebrow,
.gallery-pagination__info,
.gallery-lightbox__category,
.gallery-lightbox__counter {
  text-transform: uppercase;
  letter-spacing: .14em;
}

.gallery-shell__eyebrow,
.gallery-shell__meta,
.gallery-pagination__info,
.gallery-lightbox__category,
.gallery-lightbox__counter {
  color: rgba(236,214,183,.64);
  font-size: .72rem;
}

.gallery-shell__header-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.gallery-shell__close,
.gallery-lightbox__close,
.gallery-lightbox__nav,
.gallery-pagination__nav,
.gallery-pagination__page {
  border: 1px solid rgba(212,160,23,.18);
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.gallery-shell__close,
.gallery-lightbox__close {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #F0C37E;
  cursor: pointer;
  font-size: 1.15rem;
}

.gallery-shell__close:hover,
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-pagination__nav:hover:not(:disabled),
.gallery-pagination__page:hover:not(.is-active) {
  background: rgba(225,106,25,.16);
  border-color: rgba(225,106,25,.3);
  color: #FFD8AC;
  transform: translateY(-1px);
}

.gallery-shell__toolbar {
  position: sticky;
  top: 80px;
  z-index: 2;
  padding-top: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(212,160,23,.1);
  flex-wrap: wrap;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(13,5,1,.86), rgba(13,5,1,.72));
}

.gallery-tabs {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.gallery-tab,
.gallery-pagination__nav,
.gallery-pagination__page {
  background: rgba(255,248,236,.08);
  color: #F3D8B1;
  cursor: pointer;
}

.gallery-tab {
  padding: .58rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.22);
  font-family: 'Cinzel', serif;
  font-size: .74rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.gallery-tab:hover {
  background: rgba(255,248,236,.16);
  color: #FFE5C4;
  border-color: rgba(228,107,30,.28);
}

.gallery-tab.is-active,
.gallery-pagination__page.is-active,
.gallery-pager__page.is-active {
  background: linear-gradient(135deg, #E46B1E, #B54E10);
  color: #FFF6EC;
  border-color: rgba(255,214,169,.28);
  box-shadow: 0 10px 24px rgba(228,107,30,.22);
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}

.gallery-shell__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem clamp(1rem, 2vw, 1.8rem) 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid--editorial {
  grid-auto-flow: dense;
}

.gallery-grid--balanced {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: .94;
  border-radius: 22px;
  border: 1px solid rgba(212,160,23,.12);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.1), transparent 28%),
    linear-gradient(160deg, rgba(32,13,3,.98), rgba(18,7,1,.98));
  cursor: pointer;
  box-shadow: 0 24px 46px rgba(0,0,0,.24);
  isolation: isolate;
}

.gallery-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 460px;
  aspect-ratio: auto;
}

.gallery-card--wide {
  grid-column: span 2;
  aspect-ratio: 1.8;
}

.gallery-card--tall {
  grid-row: span 2;
  min-height: 460px;
  aspect-ratio: auto;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease;
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,3,0,.05), transparent 34%),
    linear-gradient(180deg, transparent 44%, rgba(10,3,0,.94));
  opacity: .92;
  transition: opacity .3s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.04);
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1rem;
  display: grid;
  gap: .38rem;
}

.gallery-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .22rem .52rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .61rem;
  color: rgba(255,225,190,.82);
}

.gallery-card__title,
.gallery-empty__title {
  margin: 0;
  color: #FFF6EC;
}

.gallery-card__title {
  font-size: .98rem;
  line-height: 1.28;
  text-shadow: 0 8px 22px rgba(0,0,0,.4);
}

.gallery-card--feature .gallery-card__title {
  font-size: clamp(1.18rem, 1rem + .4vw, 1.55rem);
  line-height: 1.18;
}

.gallery-card__hint {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,223,187,.65);
}

.gallery-grid--balanced .gallery-card {
  min-height: 320px;
  aspect-ratio: .92;
}

.gallery-card--loading {
  min-height: 220px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(212,160,23,.08), rgba(255,255,255,.03));
  background-size: 220% 100%;
  animation: gallery-skeleton 1.25s linear infinite;
}

@keyframes gallery-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-empty {
  min-height: 55vh;
  display: grid;
  place-items: center;
  gap: .7rem;
  text-align: center;
  color: #E9D6BD;
}

.gallery-empty__icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.16);
  background: rgba(255,255,255,.04);
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
}

.gallery-pagination {
  display: grid;
  gap: .9rem;
  justify-items: center;
  padding: 1.55rem 0 .35rem;
}

.gallery-pagination__shell {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .42rem;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.12);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(135deg, rgba(255,251,245,.98), rgba(243,232,216,.9));
  box-shadow: 0 20px 44px rgba(0,0,0,.18);
}

.gallery-pagination__nav,
.gallery-pagination__page {
  min-width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
}

.gallery-pagination__nav:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.gallery-pagination__dots {
  min-width: 1.7rem;
  text-align: center;
  color: rgba(111,57,18,.54);
}

.gallery-lightbox {
  z-index: 6100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.985);
  padding: 1rem;
}

.gallery-lightbox__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(0,0,0,.78), transparent);
}

.gallery-lightbox__spinner {
  position: absolute;
  width: 42px;
  height: 42px;
  display: none;
  border-radius: 999px;
  border: 3px solid rgba(212,160,23,.18);
  border-top-color: #E46B1E;
  animation: gallery-spin .8s linear infinite;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

.gallery-lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(212,160,23,.16);
  background: rgba(255,255,255,.03);
}

.gallery-lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  display: grid;
  gap: .2rem;
  padding: .95rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(212,160,23,.12);
}

.gallery-lightbox__title {
  font-size: 1rem;
  color: #FFF6EC;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #FFF6EC;
  cursor: pointer;
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.gallery-lightbox__nav.is-prev { left: 1rem; }
.gallery-lightbox__nav.is-next { right: 1rem; }

@media (max-width: 900px) {
  .gallery-shell__toolbar {
    align-items: flex-start;
  }

  .gallery-shell__meta {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .gallery-grid--balanced {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .gallery-shell__toolbar {
    top: 78px;
  }
}

@media (max-width: 640px) {
  .gallery-shell__header,
  .gallery-shell__toolbar,
  .gallery-shell__body {
    padding-inline: .9rem;
  }

  .gallery-shell__header {
    padding-top: .85rem;
    padding-bottom: .8rem;
  }

  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: .15rem;
  }

  .gallery-tab {
    white-space: nowrap;
    font-size: .72rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .gallery-grid--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card--loading {
    min-height: 160px;
    border-radius: 18px;
  }

  .gallery-card--feature,
  .gallery-card--wide,
  .gallery-card--tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 160px;
    aspect-ratio: .94;
  }

  .gallery-pagination__shell {
    gap: .22rem;
    padding: .34rem;
  }

  .gallery-pagination__nav,
  .gallery-pagination__page {
    min-width: 2.45rem;
    height: 2.45rem;
    font-size: .82rem;
  }

  .gallery-lightbox__nav {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.35rem;
  }

  .gallery-lightbox__nav.is-prev { left: .6rem; }
  .gallery-lightbox__nav.is-next { right: .6rem; }
}

/* Gallery production-safe override */
.gallery-shell {
  z-index: 6000;
  padding: 0;
  place-items: stretch;
  background:
    linear-gradient(180deg, rgba(16, 7, 2, .82), rgba(8, 3, 1, .92)),
    radial-gradient(circle at top, rgba(228, 107, 30, .18), transparent 28%);
}

.gallery-shell__panel {
  width: 100%;
  height: 100vh;
  position: relative;
  display: grid;
  /* header · toolbar · scrollable body · pagination dock */
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 245, .985), rgba(245, 236, 224, .97));
  box-shadow: none;
}

.gallery-shell__header,
.gallery-shell__toolbar {
  position: relative;
  top: auto;
  z-index: auto;
  padding-inline: clamp(1rem, 2vw, 1.6rem);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gallery-shell__header {
  z-index: 6;
  padding-top: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(175, 120, 42, .14);
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .98), rgba(251, 243, 232, .95));
}

.gallery-shell__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid rgba(175, 120, 42, .1);
  background:
    linear-gradient(180deg, rgba(248, 238, 225, .92), rgba(244, 232, 216, .88));
}

.gallery-shell__title {
  gap: .28rem;
}

.gallery-shell__title strong {
  font-size: clamp(1.15rem, 1rem + .55vw, 1.52rem);
  line-height: 1.1;
  color: #8A4A12;
}

.gallery-shell__eyebrow,
.gallery-shell__count,
.gallery-shell__meta,
.gallery-pagination__info {
  color: rgba(106, 59, 22, .74);
}

.gallery-shell__summary {
  display: grid;
  justify-items: end;
  gap: .2rem;
  text-align: right;
  min-width: 300px;
}

.gallery-shell__count {
  font-size: .75rem;
  font-weight: 700;
}

.gallery-shell__meta {
  font-size: .72rem;
  white-space: nowrap;
}

.gallery-shell__close {
  position: relative;
  /* Keep the close button above every layer inside the popup (pager, toolbar,
     loading states) so it can never be covered. */
  z-index: 30;
  background: rgba(255, 255, 255, .6);
  color: #B25A15;
  border-color: rgba(212, 160, 23, .2);
  flex-shrink: 0;
}

.gallery-shell__body {
  overflow: auto;
  padding: 1rem clamp(1rem, 2vw, 1.6rem) 1.5rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, .6), transparent 18%),
    linear-gradient(180deg, rgba(252, 248, 242, .96), rgba(245, 235, 223, .94));
}

#galleryGrid {
  display: block !important;
  padding: 0 !important;
}

#galleryGrid > .gallery-grid {
  margin: 0;
}

.gallery-shell__pagination-dock {
  position: relative;
  z-index: 7;
  width: 100%;
  display: grid;
  justify-items: center;
  padding: .7rem clamp(1rem, 2vw, 1.6rem) .85rem;
  border-top: 1px solid rgba(175, 120, 42, .12);
  background:
    linear-gradient(0deg, rgba(247, 236, 221, .97), rgba(244, 232, 216, .92));
  box-shadow: 0 -10px 24px rgba(97, 53, 20, .06);
}

.gallery-shell__pagination-dock:empty {
  display: none;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-grid__pagination-slot,
.gallery-pager-slot {
  display: none;
}

.gallery-grid--premium,
.gallery-grid--balanced {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  min-height: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  border: 1px solid rgba(175, 120, 42, .12);
  background: linear-gradient(180deg, rgba(68, 28, 6, .95), rgba(25, 11, 2, .98));
  box-shadow: 0 22px 48px rgba(73, 38, 11, .16);
}

.gallery-card::after {
  background:
    linear-gradient(180deg, rgba(24, 9, 2, .05), transparent 36%),
    linear-gradient(180deg, transparent 48%, rgba(18, 7, 2, .95));
}

.gallery-card--wide {
  grid-column: span 2;
  aspect-ratio: 1.6;
  min-height: 280px;
}

.gallery-card__overlay {
  padding: 1.05rem;
  gap: .42rem;
}

.gallery-card__eyebrow {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 238, 216, .92);
}

.gallery-card__title {
  font-size: 1.02rem;
  line-height: 1.24;
}

.gallery-card__hint {
  color: rgba(255, 226, 193, .78);
}

.gallery-empty {
  min-height: 42vh;
  color: #7C4820;
}

.gallery-empty__icon {
  color: #C46A1F;
  border-color: rgba(196, 106, 31, .18);
  background: rgba(255, 255, 255, .64);
}

.gallery-empty__title {
  color: #552408;
}

.gallery-pagination {
  gap: .7rem;
  padding: 0;
  width: min(100%, 720px);
}

.gallery-pagination__info {
  order: 2;
  text-align: center;
}

.gallery-pagination__shell {
  max-width: 100%;
  gap: .3rem;
  padding: .42rem;
  border-color: rgba(212, 160, 23, .14);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, .98), rgba(244, 233, 218, .96));
  box-shadow: 0 18px 40px rgba(97, 53, 20, .14);
}

.gallery-pagination__nav,
.gallery-pagination__page {
  color: #99602D;
  background: rgba(255, 255, 255, .78);
}

.gallery-pagination__dots {
  color: rgba(122, 72, 30, .72);
}

.gallery-pager {
  /* The site-wide `nav` rule pins nav elements to the viewport top —
     reset it so the pager stays inside the pagination dock. */
  position: static;
  inset: auto;
  z-index: auto;
  background: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: .45rem;
  width: min(100%, 720px);
}

.gallery-pager__status {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(122, 72, 30, .78);
  font-weight: 600;
}

/* Short viewports (landscape phones): compact pager so photos keep the space */
@media (max-height: 520px) {
  .gallery-pager__status { display: none; }

  .gallery-shell__pagination-dock { padding: .35rem .5rem .45rem; }

  .gallery-pager__shell { padding: .22rem; }

  .gallery-pager__nav,
  .gallery-pager__page {
    min-width: 2rem;
    height: 2rem;
    font-size: .74rem;
  }
}

.gallery-pager__shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  max-width: 100%;
  padding: .42rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, .14);
  background: linear-gradient(180deg, rgba(255, 252, 247, .98), rgba(244, 233, 218, .96));
  box-shadow: 0 18px 40px rgba(97, 53, 20, .14);
}

.gallery-pager__nav,
.gallery-pager__page {
  min-width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(212,160,23,.18);
  background: rgba(255, 255, 255, .78);
  color: #99602D;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.gallery-pager__nav:hover:not(:disabled),
.gallery-pager__page:hover:not(.is-active) {
  background: rgba(225,106,25,.16);
  border-color: rgba(225,106,25,.3);
  color: #B25A15;
  transform: translateY(-1px);
}

.gallery-pager__nav:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.gallery-pager__dots {
  min-width: 1.7rem;
  text-align: center;
  color: rgba(122, 72, 30, .72);
}

.gallery-lightbox {
  background: rgba(8, 3, 1, .96);
}

.gallery-lightbox__caption {
  max-width: min(92vw, 980px);
}

.gallery-lightbox__category {
  color: rgba(236, 214, 183, .74);
}

@media (max-width: 1200px) {
  .gallery-grid,
  .gallery-grid--premium,
  .gallery-grid--balanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-shell__toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-shell__summary {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }

  .gallery-shell__meta {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .gallery-shell {
    padding: 0;
  }

  .gallery-shell__panel {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .gallery-grid,
  .gallery-grid--premium,
  .gallery-grid--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }

  .gallery-card,
  .gallery-card--wide,
  .gallery-card--loading {
    min-height: 210px;
    aspect-ratio: .92;
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .gallery-shell__header,
  .gallery-shell__toolbar,
  .gallery-shell__body {
    padding-inline: .9rem;
  }

  .gallery-shell__header {
    padding-top: .9rem;
    padding-bottom: .8rem;
  }

  .gallery-shell__title strong {
    font-size: 1.04rem;
  }

  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: .1rem;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tab {
    white-space: nowrap;
    font-size: .7rem;
    padding: .56rem .9rem;
  }

  .gallery-grid,
  .gallery-grid--premium,
  .gallery-grid--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .72rem;
  }

  .gallery-card,
  .gallery-card--wide,
  .gallery-card--loading {
    min-height: 170px;
    border-radius: 18px;
  }

  .gallery-card__overlay {
    padding: .82rem;
  }

  .gallery-card__title {
    font-size: .88rem;
  }

  .gallery-shell__body {
    padding-bottom: 1rem;
  }

  .gallery-shell__pagination-dock {
    padding: .55rem .5rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  }

  .gallery-pagination__shell,
  .gallery-pager__shell {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .gallery-pagination__nav,
  .gallery-pagination__page,
  .gallery-pager__nav,
  .gallery-pager__page {
    min-width: 2.45rem;
    height: 2.45rem;
    font-size: .8rem;
  }
}

/* ═══════════════════════════════════════════════════════
   UPADESH — quote section, share actions, Japa Mala
   ═══════════════════════════════════════════════════════ */
#upadesh {
  text-align: center;
  background: var(--bg-a);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.upadesh-quote {
  font-size: 1.8rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  font-family: 'Noto Serif Devanagari', 'Cinzel', serif;
}
.upadesh-source { font-style: italic; color: var(--fg-m); margin-top: 1rem; }
.upadesh-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.upadesh-share {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .68rem 1.25rem;
  font-size: .72rem;
  cursor: pointer;
}
.upadesh-share--wa:hover { border-color: #25d366; color: #25d366; }

.japa-card {
  max-width: 420px;
  margin: 2.6rem auto 0;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(255,107,26,.18);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,107,26,.08));
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.japa-head {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1.1rem;
}
.japa-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--s);
}
.japa-hint { font-size: .78rem; color: var(--tm); }
.japa-btn {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(255,154,46,.16), rgba(0,0,0,.25));
  border: 1px solid rgba(255,107,26,.28);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.japa-btn:hover { box-shadow: 0 0 32px rgba(255,107,26,.25); }
.japa-btn:active { transform: scale(.94); }
.japa-ring { position: absolute; inset: -1px; width: 130px; height: 130px; transform: rotate(-90deg); }
.japa-ring-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.japa-ring-fill {
  fill: none;
  stroke: var(--s);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.japa-om {
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(180deg, #ffd27a, #ff6b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.japa-count {
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--fg);
}
.japa-count small { font-size: .85rem; color: var(--tm); }
.japa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: 1.1rem;
}
.japa-stat {
  padding: .55rem .3rem;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
}
.japa-stat strong { display: block; font-size: 1.05rem; color: var(--s); }
.japa-stat span { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tm); }
.japa-reset {
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--tm);
  font-size: .72rem;
  cursor: pointer;
  text-decoration: underline dotted;
}
.japa-reset:hover { color: var(--s); }
[data-mode="light"] .japa-card { background: linear-gradient(150deg, rgba(255,255,255,.7), rgba(255,107,26,.08)); }
[data-mode="light"] .japa-stat { background: rgba(255,255,255,.5); }

/* Festival card — add-to-calendar link */
.fc-cal-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .6rem;
  padding: .62rem 1rem;
  font-size: .68rem;
}

/* ═══════════════════════════════════════════════════════
   DESIGN POLISH PASS — scrollbar, selection, focus,
   ticker, timing medallions, live "now" card
   ═══════════════════════════════════════════════════════ */

/* Warm custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, .45) rgba(20, 9, 2, .9);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(20, 9, 2, .9); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212, 160, 23, .55), rgba(255, 107, 26, .4));
  border-radius: 8px;
  border: 3px solid rgba(20, 9, 2, .9);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(212, 160, 23, .8), rgba(255, 107, 26, .65));
}
[data-mode="light"] html { scrollbar-color: rgba(180, 100, 20, .5) rgba(244, 233, 216, .9); }
[data-mode="light"] ::-webkit-scrollbar-track { background: rgba(244, 233, 216, .9); }
[data-mode="light"] ::-webkit-scrollbar-thumb { border-color: rgba(244, 233, 216, .9); }

/* Saffron text selection */
::selection { background: rgba(255, 107, 26, .38); color: #FFF4E4; }
[data-mode="light"] ::selection { background: rgba(255, 107, 26, .28); color: #3A1D0A; }

/* Keyboard focus ring (mouse clicks stay clean) */
:focus-visible {
  outline: 2px solid var(--s);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ticker — soft edge fades + pause on hover */
.tk::before,
.tk::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 8vw, 110px);
  z-index: 2;
  pointer-events: none;
}
.tk::before { left: 0;  background: linear-gradient(90deg, var(--dm), transparent); }
.tk::after  { right: 0; background: linear-gradient(-90deg, var(--dm), transparent); }
.tk:hover .tkc { animation-play-state: paused; }

/* Timing card icon — gold medallion instead of bare emoji */
.tic {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 154, 46, .18), rgba(0, 0, 0, .22));
  border: 1px solid rgba(212, 160, 23, .38);
  box-shadow: 0 0 20px rgba(255, 107, 26, .14), inset 0 1px 0 rgba(255, 255, 255, .06);
  margin-bottom: 1rem;
}
.tc:hover .tic {
  box-shadow: 0 0 26px rgba(255, 107, 26, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  border-color: rgba(255, 107, 26, .5);
}
[data-mode="light"] .tic {
  background: radial-gradient(circle at 50% 35%, rgba(255, 200, 120, .35), rgba(255, 255, 255, .6));
  border-color: rgba(180, 120, 40, .4);
}

/* Timing card happening right now */
.tc--now { border-color: rgba(255, 107, 26, .55); }
.tc--now::before { transform: scaleX(1); }
.tc-now-badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #FFD8AC;
  background: rgba(255, 107, 26, .16);
  border: 1px solid rgba(255, 107, 26, .38);
}
.tc-now-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 8px var(--s);
  animation: nowPulse 1.6s ease-in-out infinite;
}
@keyframes nowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}
[data-mode="light"] .tc-now-badge { color: #B25A15; background: rgba(255, 107, 26, .12); }

/* ═══════════════════════════════════════════════════════
   SACRED HERITAGE EDITORIAL PASS
   Marcellus body serif · rotating hero yantra · film grain
   · title shimmer · About drop cap
   ═══════════════════════════════════════════════════════ */

/* Roman-inscription serif body — sibling of the Cinzel display faces.
   Devanagari text falls through to Noto Serif Devanagari. */
body {
  font-family: 'Marcellus', 'Noto Serif Devanagari', Georgia, serif;
  letter-spacing: .01em;
}

/* Filmic grain over everything — barely there, but the page stops
   feeling like flat pixels. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: .045;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}
[data-mode="light"] body::after { opacity: .035; }

/* The unforgettable moment: a sacred yantra turning imperceptibly
   slowly behind the hero, like a mandala breathing. */
#hero .hbg2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150vw, 980px);
  height: min(150vw, 980px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23d4a017' stroke-width='1'%3E%3Ccircle cx='200' cy='200' r='192' opacity='.5'/%3E%3Ccircle cx='200' cy='200' r='168' opacity='.7'/%3E%3Ccircle cx='200' cy='200' r='144' stroke-dasharray='2 11' stroke-width='3' opacity='.55'/%3E%3Ccircle cx='200' cy='200' r='120' opacity='.5'/%3E%3Cpolygon points='200,64 318,268 82,268' opacity='.7'/%3E%3Cpolygon points='200,336 82,132 318,132' opacity='.7'/%3E%3Cpolygon points='200,110 278,246 122,246' opacity='.4'/%3E%3Cpolygon points='200,290 122,154 278,154' opacity='.4'/%3E%3Ccircle cx='200' cy='200' r='56' opacity='.8'/%3E%3Ccircle cx='200' cy='200' r='6' fill='%23d4a017' stroke='none' opacity='.9'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .13;
  animation: yantraSpin 180s linear infinite;
  pointer-events: none;
  will-change: transform;
}
[data-mode="light"] #hero .hbg2::before { opacity: .1; }
@keyframes yantraSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero title — the gradient itself glimmers, slow as candlelight */
.ht {
  background-size: 220% 220%;
  animation: fsu 1s ease .5s forwards, htGlimmer 9s ease-in-out 2.2s infinite;
}
@keyframes htGlimmer {
  0%, 100% { background-position: 0% 30%; }
  50%      { background-position: 90% 70%; }
}

/* Editorial drop cap on the About story */
#about-paragraphs p:first-of-type::first-letter {
  font-family: 'Cinzel Decorative', 'Noto Serif Devanagari', serif;
  font-size: 3.1em;
  float: left;
  line-height: .82;
  padding: .06em .14em 0 0;
  color: var(--g);
  filter: drop-shadow(0 2px 8px rgba(212, 160, 23, .35));
}

@media (prefers-reduced-motion: reduce) {
  #hero .hbg2::before { animation: none; }
  .ht { animation: fsu 1s ease .5s forwards; }
}

/* ═══════════════════════════════════════════════════════
   DIGITAL PANCHANG — animated tile redesign (mobile-first)
   ═══════════════════════════════════════════════════════ */

/* Animated gold sheen along the top edge of the card */
#today .today-panchang-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--s), var(--g), var(--s), transparent);
  background-size: 200% 100%;
  animation: panchangSheen 5.5s linear infinite;
  opacity: .75;
  pointer-events: none;
}
@keyframes panchangSheen {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* Two-column tile grid (single column only on very narrow phones) */
#today .today-panchang-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
@media (max-width: 339px) {
  #today .today-panchang-grid { grid-template-columns: 1fr; }
}

/* Items become centred tiles with entrance + hover motion */
#today .today-panchang-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  padding: .95rem .6rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 23, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 107, 26, .055));
  transition:
    transform .28s cubic-bezier(.22, .9, .35, 1.2),
    border-color .25s ease,
    box-shadow .3s ease,
    background .3s ease;
  animation: panchangRise .55s cubic-bezier(.2, .7, .3, 1) both;
}
#today .today-panchang-item:nth-child(1) { animation-delay: .05s; }
#today .today-panchang-item:nth-child(2) { animation-delay: .12s; }
#today .today-panchang-item:nth-child(3) { animation-delay: .19s; }
#today .today-panchang-item:nth-child(4) { animation-delay: .26s; }
#today .today-panchang-item:nth-child(5) { animation-delay: .33s; }
#today .today-panchang-item:nth-child(6) { animation-delay: .40s; }
@keyframes panchangRise {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
#today .today-panchang-item:hover,
#today .today-panchang-item:active {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 26, .42);
  box-shadow: 0 10px 26px rgba(255, 107, 26, .13);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 107, 26, .1));
}

/* Icon inside a glowing medallion */
#today .today-panchang-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 154, 46, .22), rgba(0, 0, 0, .24));
  border: 1px solid rgba(212, 160, 23, .35);
  box-shadow: 0 0 14px rgba(255, 107, 26, .12);
  transition: transform .3s cubic-bezier(.22, .9, .35, 1.4), box-shadow .3s ease;
}
#today .today-panchang-item:hover .today-panchang-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 22px rgba(255, 107, 26, .32);
}

/* Label above, value below — centred stack */
#today .today-panchang-text {
  flex-direction: column;
  align-items: center;
  gap: .18rem;
}
#today .today-panchang-label { font-size: .58rem; letter-spacing: .14em; }
#today .today-panchang-value { font-size: .86rem; line-height: 1.4; }

/* Nandi quick-ask chips — gentle lift */
#today .today-nandi-btn {
  transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}
#today .today-nandi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 26, .14);
}

/* Light mode tuning */
[data-mode="light"] #today .today-panchang-item {
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 107, 26, .07));
  border-color: rgba(180, 120, 40, .22);
}
[data-mode="light"] #today .today-panchang-icon {
  background: radial-gradient(circle at 50% 35%, rgba(255, 200, 120, .4), rgba(255, 255, 255, .7));
  border-color: rgba(180, 120, 40, .4);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #today .today-panchang-card::after { animation: none; }
  #today .today-panchang-item { animation: none; }
  #today .today-panchang-item,
  #today .today-panchang-icon,
  #today .today-nandi-btn { transition: none; }
}

/* Shared graceful empty state for dynamic sections */
.section-empty {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: 2.6rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(212, 160, 23, .3);
  background: linear-gradient(150deg, rgba(255, 255, 255, .03), rgba(255, 107, 26, .05));
  text-align: center;
  color: var(--tm);
  font-size: .92rem;
}
.section-empty__icon { font-size: 2rem; line-height: 1; opacity: .85; }
[data-mode="light"] .section-empty {
  background: linear-gradient(150deg, rgba(255, 255, 255, .65), rgba(255, 107, 26, .07));
  border-color: rgba(180, 120, 40, .35);
}
