@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Open+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ramaraja&display=swap');
/* Layout fixes for the public pages (home sections, About Us, footer). Loaded on every page after the
   site's own CSS; plain (unlayered) rules, so they win over the Tailwind utilities they adjust.
   The hero and the scrolling Ayyappa image are left exactly as built. */

/* ---------- Ayyappa Prayer / Upcoming Annadanam Seva ---------- */
.from-amber-50.via-orange-50.to-amber-50 .whitespace-pre-line { overflow-wrap: anywhere; }
/* the mandala behind "UPCOMING ANNADANAM SEVA" sat on top of the heading */
.from-orange-50.via-amber-50.to-yellow-50 > svg.top-6.left-6 { display: none; }
@media (min-width: 768px) {
  /* warm seam between the two cream panels instead of a dark line */
  .md\:border-r:has(> .from-amber-50) { border-right-color: #efd9b4; }
  /* headings stay level; the seva details sit centred in the space below */
  .from-orange-50.via-amber-50.to-yellow-50 { display: flex; flex-direction: column; }
  .from-orange-50.via-amber-50.to-yellow-50 > .relative { flex: 1; display: flex; flex-direction: column; }
  .from-orange-50.via-amber-50.to-yellow-50 > .relative > p { margin-top: auto; }
  .from-orange-50.via-amber-50.to-yellow-50 > .relative > .flex-wrap { margin-bottom: auto; }
}
@media (max-width: 767px) {
  .from-amber-50.via-orange-50.to-amber-50,
  .from-orange-50.via-amber-50.to-yellow-50 { padding: 1.75rem 1rem; }
  .from-amber-50.via-orange-50.to-amber-50 .rounded-2xl.p-6 { padding: 1rem 0.625rem; }
  /* each verse line fits on one line on phones */
  .from-amber-50.via-orange-50.to-amber-50 .whitespace-pre-line { font-size: 13px; line-height: 1.95; min-height: 0; }
  .from-orange-50.via-amber-50.to-yellow-50 .py-3.px-6 { padding-left: 1rem; padding-right: 1rem; }
  .from-orange-50.via-amber-50.to-yellow-50 .divide-y > * { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Feature cards (Donation, Temple Calendar, Gallery…) ---------- */
@media (min-width: 1184px) {
  /* same width as the About Us content below it */
  .max-w-6xl:has(> .auto-rows-\[22rem\]) { padding-left: 0; padding-right: 0; }
}
/* text on the temple photo card was hard to read */
.auto-rows-\[22rem\] .pointer-events-none:has(> img.opacity-60)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 38%, rgba(0, 0, 0, 0) 70%);
}
@media (max-width: 1023px) {
  /* phones/tablets: cards as tall as their text, not a fixed 22rem with empty space on top */
  .auto-rows-\[22rem\] { grid-auto-rows: auto; }
  .auto-rows-\[22rem\] > div { min-height: 11rem; }
  .auto-rows-\[22rem\] > div:has(img.opacity-60) { min-height: 20rem; }
}
@media (hover: none) {
  /* touch screens never "hover", so show each card's link under its text */
  .auto-rows-\[22rem\] > div > .z-10.p-6 { padding-bottom: 3.75rem; }
  .auto-rows-\[22rem\] > div > .absolute.bottom-0.opacity-0 { opacity: 1; transform: none; translate: none; }
}

/* ---------- About Us (home page and /about) ---------- */
/* stray decorative dots that landed on top of cards and the photo */
#about-section > .absolute.rounded-full:not(.blur-3xl),
#about-section .max-w-xs > .absolute.rounded-full { display: none; }
/* descriptions start under the title, not 12px to its left */
#about-section .group > p.pl-12,
#about-section .group > div.pl-12 { padding-left: 60px; }
@media (min-width: 768px) {
  /* equal-height items so the left and right lists line up row by row */
  #about-section .space-y-16 > .group > p { min-height: calc(1.625em * 3); }
}
@media (max-width: 767px) {
  /* one column on phones: tighter spacing between the items */
  #about-section .space-y-16 > :not(:last-child) { margin-bottom: 2.25rem; }
}
@media (hover: none) {
  /* the "learn more" arrow only appears on hover, so it only left a gap on touch screens */
  #about-section .group > div.pl-12.opacity-0 { display: none; }
}
@media (max-width: 639px) {
  #about-section .lg\:grid-cols-4 { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  #about-section .lg\:grid-cols-4 > div { padding: 1.1rem 0.5rem; }
  #about-section .md\:flex-row.justify-between { padding: 1.5rem; align-items: flex-start; }
}

/* ---------- Footer ---------- */
/* links lined up under their headings (the hover dash no longer leaves an 8px gap) */
footer a.group\/link { gap: 0; }
footer a.group\/link > span { transition: all 0.3s; }
footer a.group\/link:hover > span { margin-right: 0.5rem; }
@media (max-width: 639px) {
  footer .sm\:grid-cols-2.lg\:grid-cols-3 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; row-gap: 2rem; }
}

/* ---------- Header on small laptops (1024–1279px) ---------- */
/* the menu did not fit, so the site name wrapped one word per line and the bar grew to 156px */
@media (min-width: 1024px) and (max-width: 1279px) {
  header .sm\:block > div { white-space: nowrap; font-size: 0.95rem; letter-spacing: 0.01em; }
  header nav.lg\:flex > a { padding-left: 0.85rem; padding-right: 0.85rem; font-size: 0.875rem; }
  header nav.lg\:flex > a > span.absolute { left: 0.5rem; right: 0.5rem; }
  header nav.lg\:flex > div.px-2 { padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* =====================================================================================
   HOME PAGE THEME — temple style: cream pages, saffron mandala bands, deep indigo,
   white cards with gold corner flourishes, Marcellus headings.
   Everything below the hero. The hero and the scrolling Ayyappa image are not touched.
   html[data-sb-page="home"] is set by a small inline script in every page's <head>.
   ===================================================================================== */
:root {
  --sb-indigo: #24166b;
  --sb-indigo-2: #3b2596;
  --sb-indigo-ink: #1a0f4f;
  --sb-saffron: #ef8a17;
  --sb-saffron-2: #d8640c;
  --sb-saffron-soft: #fde6c4;
  --sb-cream: #fdf4df;
  --sb-cream-2: #f9e8c6;
  --sb-gold: #d6a243;
  --sb-ink: #3b2c1c;
  --sb-muted: #6d5a43;
  --sb-head: 'Marcellus', 'Noto Serif', serif;
  --sb-body: 'Open Sans', system-ui, sans-serif;
  --sb-band: url(/sb-art/mandala.svg) center / 180px repeat, linear-gradient(120deg, #f6a531 0%, #ec8216 45%, #d8640c 100%);
}

/* the black fade strip between the prayer cards and the feature tiles */
html[data-sb-page="home"] .min-h-screen > div.relative.h-16 { display: none; }

/* ---------- Ayyappa Prayer / Upcoming Annadanam Seva ---------- */
html[data-sb-page="home"] section:has(> .max-w-4xl .from-amber-50) {
  background: linear-gradient(to bottom, transparent 58%, var(--sb-cream) 58%), var(--sb-band);
  padding: 4.5rem 0 3rem;
}
html[data-sb-page="home"] section:has(> .max-w-4xl .from-amber-50) > .max-w-4xl { max-width: 72rem; padding-top: 0; padding-bottom: 0; }
html[data-sb-page="home"] .max-w-4xl > .grid:has(.from-amber-50) {
  gap: 2.25rem; border: 0; border-radius: 0; overflow: visible;
}
html[data-sb-page="home"] .max-w-4xl > .grid:has(.from-amber-50) > div { border: 0; }
html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50,
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50 {
  background: #fff; border-radius: 6px; padding: 2.75rem 2.25rem 2.5rem;
  box-shadow: 0 24px 48px -26px rgba(92, 44, 4, 0.45);
  font-family: var(--sb-body);
}
html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50 > :is(div.absolute, svg.absolute),
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50 > :is(div.absolute, svg.absolute) { display: none; }
html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50::before,
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50::after {
  content: ""; position: absolute; width: 104px; height: 104px; pointer-events: none;
  background: url(/sb-art/flourish.svg) center / contain no-repeat;
}
html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50::before { top: 12px; left: 12px; }
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50::after { right: 12px; bottom: 12px; transform: rotate(180deg); }
html[data-sb-page="home"] :is(.from-amber-50, .from-orange-50) h3 {
  font-family: var(--sb-head); font-weight: 400; font-size: 1.65rem; letter-spacing: 0.06em;
  color: var(--sb-indigo); margin-bottom: 0.6rem;
}
html[data-sb-page="home"] :is(.from-amber-50, .from-orange-50) h3 + div {
  width: 7rem; height: 2px; background: linear-gradient(90deg, transparent, var(--sb-gold), transparent);
}
html[data-sb-page="home"] .from-amber-50 .rounded-2xl.p-6 { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
html[data-sb-page="home"] .from-amber-50 .whitespace-pre-line { color: #3d3350; font-weight: 500; line-height: 2.25; }
html[data-sb-page="home"] .from-amber-50 button.bg-amber-600 { background: var(--sb-indigo); }
html[data-sb-page="home"] .from-amber-50 button.bg-amber-300 { background: #cfc6ea; }
html[data-sb-page="home"] .from-amber-50 .max-w-md.rounded-full { background: #f4f1fb; box-shadow: none; padding: 0.4rem; }
html[data-sb-page="home"] .from-amber-50 .text-amber-700 { color: var(--sb-muted); }
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50 > .relative > p { color: var(--sb-muted); font-size: 0.95rem; margin-top: 0.5rem; }
html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50 > .relative > .flex-wrap { margin-bottom: 0; }
html[data-sb-page="home"] .from-orange-50 .rounded-full.border-orange-200 { background: #f4f1fb; border-color: #d9d1f1; box-shadow: none; }
html[data-sb-page="home"] .from-orange-50 .rounded-full.border-orange-200 p { color: var(--sb-indigo); }
html[data-sb-page="home"] .from-orange-50 .rounded-full.border-orange-200 p * { color: var(--sb-saffron-2); font-style: italic; }
html[data-sb-page="home"] .from-orange-50 .rounded-2xl.overflow-hidden { background: #fff; border: 1px solid #efe1c4; border-radius: 6px; box-shadow: none; backdrop-filter: none; }
html[data-sb-page="home"] .from-orange-50 .rounded-2xl.overflow-hidden > div:first-child { background: var(--sb-cream); }
html[data-sb-page="home"] .from-orange-50 .rounded-2xl.overflow-hidden > div:first-child * { color: var(--sb-indigo); font-family: var(--sb-head); letter-spacing: 0.04em; }
html[data-sb-page="home"] .from-orange-50 .divide-y > * { border-color: #f3e7cf; }
html[data-sb-page="home"] .from-orange-50 .divide-y > * > :first-child { color: var(--sb-indigo); font-family: var(--sb-head); font-style: italic; font-weight: 400; font-size: 1.1rem; }
html[data-sb-page="home"] .from-orange-50 .divide-y > * > :last-child { color: var(--sb-ink); }
html[data-sb-page="home"] .from-orange-50 .flex-wrap > a {
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; box-shadow: none; transform: none;
}
html[data-sb-page="home"] .from-orange-50 .flex-wrap > a:first-child { background: linear-gradient(135deg, var(--sb-indigo-2), var(--sb-indigo-ink)); color: #fff; }
html[data-sb-page="home"] .from-orange-50 .flex-wrap > a:last-child { background: #fff; color: var(--sb-saffron-2); border: 1.5px solid var(--sb-saffron); }
html[data-sb-page="home"] .from-orange-50 .flex-wrap > a:hover { filter: brightness(1.08); }

/* ---------- Feature tiles (Donation, Devotional, Temple Calendar, How to Reach, Gallery) ---------- */
html[data-sb-page="home"] section.bg-background:has(.auto-rows-\[22rem\]) { background: var(--sb-cream); }
html[data-sb-page="home"] .max-w-6xl:has(> .auto-rows-\[22rem\]) { max-width: 72rem; padding-top: 1.5rem; padding-bottom: 4.5rem; }
html[data-sb-page="home"] .max-w-6xl:has(> .auto-rows-\[22rem\])::before {
  content: "Seva & Services"; display: block; text-align: center; margin: 0 auto 2.25rem; padding-bottom: 0.9rem;
  font-family: var(--sb-head); font-size: 2.1rem; color: var(--sb-indigo);
  background: linear-gradient(90deg, transparent, var(--sb-gold), transparent) bottom center / 8rem 2px no-repeat;
}
html[data-sb-page="home"] .auto-rows-\[22rem\] { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 1.1rem; }
@media (min-width: 640px) { html[data-sb-page="home"] .auto-rows-\[22rem\] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { html[data-sb-page="home"] .auto-rows-\[22rem\] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { html[data-sb-page="home"] .auto-rows-\[22rem\] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; } }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div {
  grid-column: auto; grid-row: auto; min-height: 15.5rem; order: 3;
  background: linear-gradient(155deg, #33208a 0%, var(--sb-indigo) 45%, var(--sb-indigo-ink) 100%);
  border: 0; border-radius: 6px; box-shadow: 0 18px 34px -20px rgba(26, 15, 79, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -22px rgba(26, 15, 79, 0.85); }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:nth-child(2) { order: 1; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:nth-child(3) { order: 2; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:nth-child(4) { order: 4; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:nth-child(5) { order: 5; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 74px; height: 74px; transform: rotate(180deg);
  background: url(/sb-art/flourish.svg) center / contain no-repeat; opacity: 0.95; pointer-events: none;
}
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > div:first-child { display: none; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .z-10.p-6 { translate: none; padding: 1.6rem 1.35rem 3.6rem; gap: 0.35rem; font-family: var(--sb-body); }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .z-10 svg { color: #f3bb4f; width: 2.4rem; height: 2.4rem; scale: 1; margin-bottom: 0.6rem; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .z-10 h3 { font-family: var(--sb-head); font-weight: 400; font-size: 1.22rem; line-height: 1.3; color: #fff; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div:nth-child(1) > .z-10 h3 { color: #ffb347; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .z-10 p { font-size: 0.86rem; line-height: 1.6; color: rgba(255, 255, 255, 0.74); }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .absolute.bottom-0 { opacity: 1; translate: none; transform: none; padding: 0 1.35rem 1.15rem; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .absolute.bottom-0 a {
  height: auto; padding: 0; background: transparent; color: #f3bb4f; font-family: var(--sb-body);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .absolute.bottom-0 a:hover { color: #fff; }
html[data-sb-page="home"] .auto-rows-\[22rem\] > div > .absolute.inset-0 { display: none; }

/* ---------- Photo & Video Gallery band (added by sb-home.js) ---------- */
html[data-sb-page="home"] .sb-gallery { background: var(--sb-band); padding: 3.5rem 1rem 3.75rem; color: #fff; }
html[data-sb-page="home"] .sb-gallery-in { max-width: 72rem; margin: 0 auto; }
html[data-sb-page="home"] .sb-gallery-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
html[data-sb-page="home"] .sb-gallery-head h2 { font-family: var(--sb-head); font-size: 2.1rem; color: #fff; text-shadow: 0 1px 2px rgba(120, 50, 0, 0.35); white-space: nowrap; }
html[data-sb-page="home"] .sb-gallery-head span { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.7); }
html[data-sb-page="home"] .sb-gallery-head a {
  font-family: var(--sb-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sb-indigo); color: #fff; padding: 0.7rem 1.2rem; border-radius: 4px; white-space: nowrap;
}
html[data-sb-page="home"] .sb-gallery-head a:hover { background: var(--sb-indigo-ink); }
html[data-sb-page="home"] .sb-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: 13rem 13rem; gap: 0.9rem; }
html[data-sb-page="home"] .sb-gallery-grid a { position: relative; overflow: hidden; border-radius: 6px; border: 4px solid #fff; box-shadow: 0 16px 30px -18px rgba(70, 25, 0, 0.7); background: #f6d9a8; }
html[data-sb-page="home"] .sb-gallery-grid a:first-child { grid-row: span 2; }
html[data-sb-page="home"] .sb-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
html[data-sb-page="home"] .sb-gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 767px) {
  html[data-sb-page="home"] .sb-gallery-head { flex-wrap: wrap; gap: 0.75rem; }
  html[data-sb-page="home"] .sb-gallery-head h2 { font-size: 1.7rem; }
  html[data-sb-page="home"] .sb-gallery-head span { display: none; }
  html[data-sb-page="home"] .sb-gallery-head a { margin-left: auto; }
  html[data-sb-page="home"] .sb-gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; padding-bottom: 0.5rem; grid-template-rows: none; }
  html[data-sb-page="home"] .sb-gallery-grid a { flex: 0 0 68%; height: 17rem; scroll-snap-align: start; }
}

/* ---------- About Us ---------- */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section { background: var(--sb-cream); color: var(--sb-ink); font-family: var(--sb-body); padding-top: 5rem; padding-bottom: 0; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section > .absolute { display: none; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section > .container > .flex-col.items-center > span { color: var(--sb-saffron-2); font-family: var(--sb-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section h2 { font-family: var(--sb-head); color: var(--sb-indigo); font-weight: 400; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section h2 + div { width: 8rem; height: 2px; background: linear-gradient(90deg, transparent, var(--sb-gold), transparent); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section > .container > p { color: var(--sb-muted); line-height: 1.8; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group .rounded-lg.relative { background: var(--sb-saffron-soft); color: var(--sb-saffron-2); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group:hover .rounded-lg.relative { background: var(--sb-saffron); color: #fff; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group .rounded-lg.relative > svg.absolute { color: var(--sb-gold); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group h3 { font-family: var(--sb-head); font-weight: 400; color: var(--sb-indigo); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group:hover h3 { color: var(--sb-saffron-2); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group > p { color: var(--sb-muted); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .group > div.pl-12 { color: var(--sb-saffron-2); }
/* photo in a gold frame with flourishes */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs > .rounded-md.overflow-hidden { border-radius: 4px; box-shadow: 0 28px 50px -28px rgba(70, 30, 0, 0.7); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs > .absolute.inset-0 { border: 2px solid var(--sb-gold); border-radius: 4px; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::before,
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::after {
  content: ""; position: absolute; width: 86px; height: 86px; z-index: 2; pointer-events: none;
  background: url(/sb-art/flourish.svg) center / contain no-repeat;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::before { top: -22px; left: -22px; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::after { right: -22px; bottom: -22px; transform: rotate(180deg); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs a { background: var(--sb-indigo); color: #fff; border-radius: 4px; font-family: var(--sb-body); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
/* Mission / Pilgrim Season / Membership */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .md\:grid-cols-3.mt-20 > div {
  position: relative; background: #fff; border: 0; border-top: 3px solid var(--sb-saffron); border-radius: 4px;
  box-shadow: 0 20px 40px -28px rgba(92, 44, 4, 0.55); padding: 1.9rem 1.75rem;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .md\:grid-cols-3.mt-20 > div::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 58px; height: 58px; transform: rotate(180deg); opacity: 0.8;
  background: url(/sb-art/flourish.svg) center / contain no-repeat; pointer-events: none;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .md\:grid-cols-3.mt-20 h3 { font-family: var(--sb-head); font-weight: 400; font-size: 1.4rem; color: var(--sb-indigo); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .md\:grid-cols-3.mt-20 ul { color: var(--sb-muted); line-height: 1.6; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .md\:grid-cols-3.mt-20 li::marker { color: var(--sb-saffron); }
/* numbers on a full-width saffron band */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: 5rem;
  padding: 3.25rem max(1rem, calc(50vw - 36rem)); background: var(--sb-band);
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 > div { background: #fff; border-radius: 6px; backdrop-filter: none; box-shadow: 0 18px 30px -20px rgba(80, 30, 0, 0.7); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 > div:hover { background: #fffaf0; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 .w-14.h-14 { background: var(--sb-saffron-soft); color: var(--sb-saffron-2); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 .text-3xl { font-family: var(--sb-head); font-weight: 400; font-size: 2.3rem; color: var(--sb-indigo); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 p { color: var(--sb-muted); font-weight: 600; letter-spacing: 0.04em; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 .h-0\.5 { background: var(--sb-gold); }
/* Join the Seva */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 {
  position: relative; overflow: hidden; margin: 4.5rem 0 5rem; border-radius: 6px; padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #33208a, var(--sb-indigo) 50%, var(--sb-indigo-ink)) !important;
  box-shadow: 0 26px 46px -28px rgba(26, 15, 79, 0.85);
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::before,
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::after {
  content: ""; position: absolute; width: 64px; height: 64px; pointer-events: none;
  background: url(/sb-art/flourish.svg) center / contain no-repeat;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::before { top: 8px; left: 8px; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::after { right: 8px; bottom: 8px; transform: rotate(180deg); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 h3 { font-family: var(--sb-head); font-size: 2rem; color: #fff; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 p { color: rgba(255, 255, 255, 0.78); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 a {
  position: relative; z-index: 1; background: linear-gradient(135deg, #f6a531, var(--sb-saffron-2)) !important; color: #fff;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; padding: 0.9rem 1.5rem;
}
@media (max-width: 767px) {
  html[data-sb-page="home"] section:has(> .max-w-4xl .from-amber-50) { padding: 3rem 0 2rem; background: linear-gradient(to bottom, transparent 22rem, var(--sb-cream) 22rem), var(--sb-band); }
  html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50,
  html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50 { padding: 2.5rem 1.1rem 2rem; }
  html[data-sb-page="home"] :is(.from-amber-50, .from-orange-50) h3 { font-size: 1.35rem; }
  html[data-sb-page="home"] .from-amber-50.via-orange-50.to-amber-50::before,
  html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50::after { width: 70px; height: 70px; top: 8px; left: 8px; }
  html[data-sb-page="home"] .from-orange-50.via-amber-50.to-yellow-50::after { top: auto; left: auto; right: 8px; bottom: 8px; }
  html[data-sb-page="home"] .max-w-6xl:has(> .auto-rows-\[22rem\])::before { font-size: 1.7rem; margin-bottom: 1.5rem; }
  html[data-sb-page="home"] .auto-rows-\[22rem\] > div { min-height: 0; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section { padding-top: 3.5rem; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 { padding-top: 2.25rem; padding-bottom: 2.25rem; margin-top: 3.5rem; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 { padding: 3.25rem 1.75rem 2.5rem; margin: 3rem 0 3.5rem; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::before,
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8::after { width: 50px; height: 50px; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .mt-20.p-8 h3 { font-size: 1.6rem; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::before,
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .max-w-xs::after { width: 64px; height: 64px; }
}

/* ---------- Footer (all pages): temple style ---------- */
footer > section { position: relative; background: #15112a; border-top: 0; }
footer > section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: url(/sb-art/mandala.svg) center / 60px repeat, linear-gradient(90deg, #f6a531, #ec8216, #d8640c);
}
footer h3 { font-family: 'Marcellus', 'Noto Serif', serif; font-weight: 400; font-size: 1.05rem; letter-spacing: 0.12em; color: #fff; }
footer h3::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 0.6rem; background: #ec8216; }
footer a.group\/link { color: rgba(255, 255, 255, 0.72); }
footer a.group\/link::before { content: "\203A"; color: #f3bb4f; font-size: 1.1em; margin-right: 0.45rem; line-height: 1; }
footer a.group\/link:hover { color: #f3bb4f; }
footer section a[class*="rounded-full"] { background: rgba(255, 255, 255, 0.08); }
footer .border-t.border-white\/10 { border-color: rgba(243, 187, 79, 0.18); }

/* =====================================================================================
   INNER PAGES — the same temple style on every page except home and the admin panel:
   cream page with a muggulu (chukkala muggu) pattern, a saffron title banner with lotus muggu,
   white cards with a saffron edge and gold flourish, Marcellus headings, indigo buttons.
   html[data-sb-theme="temple"] (light, no .dark class) is set by the inline script in <head>.
   ===================================================================================== */
html[data-sb-theme="temple"] {
  --background: #fdf4df; --foreground: #3b2c1c;
  --card: #fff; --card-foreground: #3b2c1c; --popover: #fff; --popover-foreground: #3b2c1c;
  --primary: #24166b; --primary-foreground: #fff;
  --secondary: #fbecd0; --secondary-foreground: #24166b;
  --muted: #f7ead0; --muted-foreground: #6d5a43;
  --accent: #fde6c4; --accent-foreground: #24166b;
  --border: #ecdcb9; --input: #e2cc9f; --ring: #ef8a17;
  background: var(--sb-cream);
}
html[data-sb-theme="temple"] body { background: var(--sb-cream) url(/sb-art/muggulu.svg) 0 0 / 120px repeat; color: var(--sb-ink); }
html[data-sb-theme="temple"] main { position: relative; font-family: var(--sb-body); color: var(--sb-ink); }
html[data-sb-theme="temple"] main :is(h1, h2) { font-family: var(--sb-head); font-weight: 400; color: var(--sb-indigo); letter-spacing: 0.01em; }
html[data-sb-theme="temple"] main h3 { font-family: var(--sb-head); font-weight: 400; color: var(--sb-indigo); letter-spacing: 0.02em; }
html[data-sb-theme="temple"] main :is(.text-muted-foreground) { color: var(--sb-muted); }
html[data-sb-theme="temple"] main a.underline { color: var(--sb-saffron-2); text-underline-offset: 3px; }

/* ---------- Title banner (saffron band with lotus muggu) ---------- */
html[data-sb-theme="temple"] body > main::before {
  content: var(--sb-title); display: flex; align-items: center; justify-content: center; text-align: center;
  height: 15rem; padding: 0 1.25rem 4rem; box-sizing: border-box;
  font-family: var(--sb-head); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: 0.03em; color: #fff;
  text-shadow: 0 2px 8px rgba(110, 40, 0, 0.35);
  background:
    url(/sb-art/muggu-border.svg) bottom 12px center / 44px 22px repeat-x,
    url(/sb-art/lotus.svg) left -80px center / 300px no-repeat,
    url(/sb-art/lotus.svg) right -80px center / 300px no-repeat,
    var(--sb-band);
  box-shadow: inset 0 -4px 0 rgba(120, 40, 0, 0.18);
}
html[data-sb-theme="temple"] body > main::after {
  content: var(--sb-crumb); position: absolute; left: 0; right: 0; top: 10.6rem; text-align: center; pointer-events: none;
  font: 600 0.72rem/1 var(--sb-body); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92);
}
html[data-sb-path="about"] { --sb-title: "About Us"; --sb-crumb: "Home  \203A  About Us"; }
html[data-sb-path="calendar"] { --sb-title: "Calendar"; --sb-crumb: "Home  \203A  Calendar"; }
html[data-sb-path="calendar-annadanam"] { --sb-title: "Annadanam Booking"; --sb-crumb: "Home  \203A  Calendar  \203A  Annadanam"; }
html[data-sb-path="calendar-pooja"] { --sb-title: "Pooja Booking"; --sb-crumb: "Home  \203A  Calendar  \203A  Pooja"; }
html[data-sb-path="calendar-temple"] { --sb-title: "Ayyappa Temple Calendar"; --sb-crumb: "Home  \203A  Calendar  \203A  Temple"; }
html[data-sb-path="contact"] { --sb-title: "Contact Us"; --sb-crumb: "Home  \203A  Contact"; }
html[data-sb-path="devotional"] { --sb-title: "Devotional Book"; --sb-crumb: "Home  \203A  Devotional"; }
html[data-sb-path="donate"], html[data-sb-path="donate-pay"] { --sb-title: "Donate"; --sb-crumb: "Home  \203A  Donate"; }
html[data-sb-path="gallery"], html[data-sb-path="gallery-images"] { --sb-title: "Photo & Video Gallery"; --sb-crumb: "Home  \203A  Gallery"; }
html[data-sb-path="sabarimala"] { --sb-title: "Sabarimala"; --sb-crumb: "Home  \203A  Sabarimala"; }
html[data-sb-path="sabarimala-how-to-reach"] { --sb-title: "How to Reach"; --sb-crumb: "Home  \203A  Sabarimala  \203A  How to Reach"; }
html[data-sb-path="volunteer"] { --sb-title: "Volunteer"; --sb-crumb: "Home  \203A  Volunteer"; }
html[data-sb-path="privacy-policy"] { --sb-title: "Privacy Policy"; --sb-crumb: "Home  \203A  Privacy Policy"; }
html[data-sb-path="terms"] { --sb-title: "Terms & Conditions"; --sb-crumb: "Home  \203A  Terms"; }
html[data-sb-path="profile"] { --sb-title: "My Profile"; --sb-crumb: "Home  \203A  Profile"; }
html[data-sb-path="profile-edit"] { --sb-title: "My Profile"; --sb-crumb: "Home  \203A  Profile"; }
@media (max-width: 767px) {
  html[data-sb-theme="temple"] body > main::before { height: 11.5rem; padding-bottom: 3.6rem; font-size: 1.85rem;
    background-size: 44px 22px, 200px, 200px, 180px, auto; background-position: bottom 10px center, left -90px center, right -90px center, center, center; }
  html[data-sb-theme="temple"] body > main::after { top: 8rem; font-size: 0.64rem; letter-spacing: 0.14em; }
}

/* ---------- Cards ---------- */
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border:not(input, select, textarea, button, a, label, span, details) {
  position: relative; background: #fff; border: 1px solid #eedcb6; border-top: 3px solid var(--sb-saffron);
  border-radius: 6px; box-shadow: 0 24px 46px -32px rgba(92, 44, 4, 0.5); backdrop-filter: none;
}
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl).border.shadow-sm::after,
html[data-sb-theme="temple"] main form.rounded-lg.border::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 54px; height: 54px; transform: rotate(180deg);
  background: url(/sb-art/flourish.svg) center / contain no-repeat; opacity: 0.7; pointer-events: none;
}
/* cards inside cards stay plain */
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border :is(.rounded-2xl, .rounded-xl, .rounded-lg).border:not(input, select, textarea, button, a, label, span) {
  border-top-width: 1px; border-top-color: #eedcb6; box-shadow: none; background: #fffcf5;
}
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border :is(.rounded-2xl, .rounded-xl).border::after { display: none; }

/* ---------- Form fields ---------- */
html[data-sb-theme="temple"] main :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) {
  background: #fffdf8; border: 1px solid #e2cc9f; border-radius: 6px; color: var(--sb-ink); font-family: var(--sb-body); box-shadow: none;
}
html[data-sb-theme="temple"] main :is(input, select, textarea)::placeholder { color: #a8957a; }
html[data-sb-theme="temple"] main :is(input, select, textarea):focus { outline: none; border-color: var(--sb-saffron); box-shadow: 0 0 0 3px rgba(239, 138, 23, 0.18); }
html[data-sb-theme="temple"] main input[type="file"]::file-selector-button {
  background: var(--sb-saffron-soft); color: var(--sb-saffron-2); border: 0; border-radius: 4px; padding: 0.35rem 0.8rem; font-weight: 600; margin-right: 0.75rem;
}
html[data-sb-theme="temple"] main label { color: var(--sb-indigo); font-weight: 600; }
html[data-sb-theme="temple"] main input[type="checkbox"] { accent-color: var(--sb-indigo); }

/* ---------- Buttons ---------- */
html[data-sb-theme="temple"] main :is(button[type="submit"], button.bg-primary, a.bg-primary, button[class*="from-black"], button[class*="bg-black"]) {
  background: linear-gradient(135deg, var(--sb-indigo-2), var(--sb-indigo-ink)); color: #fff; border: 0; border-radius: 4px;
  font-family: var(--sb-body); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; font-size: 0.85rem;
  box-shadow: 0 14px 26px -16px rgba(26, 15, 79, 0.8);
}
html[data-sb-theme="temple"] main :is(button[type="submit"], button.bg-primary, a.bg-primary):hover { filter: brightness(1.12); }
html[data-sb-theme="temple"] main :is(button[type="submit"], button.bg-primary):disabled { background: #c9c1e3; box-shadow: none; }

/* ---------- Leftovers from the dark design ---------- */
/* page-wide black / theme backgrounds let the muggulu show through; dark cards become white cards */
html[data-sb-theme="temple"] main :is(.bg-black, .bg-background) { background: transparent; }
html[data-sb-theme="temple"] main :is([class*="bg-gray-9"], [class*="bg-neutral-9"], [class*="bg-zinc-9"], [class*="bg-slate-9"]) { background: #fff; border-color: #eedcb6; }
html[data-sb-theme="temple"] main :is([class*="bg-purple-9"], [class*="bg-indigo-9"]) { background: #f4f1fb; border-color: #d9d1f1; }
/* light text meant for a black page */
html[data-sb-theme="temple"] main :is([class*="text-white"], [class*="text-gray-"], [class*="text-neutral-"], [class*="text-zinc-"], [class*="text-slate-"]):not(button, a, button *, a *, [class*="bg-gradient"] *, .sb-keep-white, .sb-keep-white *) { color: var(--sb-ink); }
html[data-sb-theme="temple"] main :is(.text-gray-300, .text-gray-400, .text-gray-500, [class*="text-white/"], .text-neutral-400, .text-zinc-400):not(button, a, button *, a *) { color: var(--sb-muted); }
html[data-sb-theme="temple"] main :is(h1, h2, h3)[class*="text-white"] { color: var(--sb-indigo); }
html[data-sb-theme="temple"] main :is(.text-purple-300, .text-purple-400, .text-violet-400) { color: var(--sb-indigo-2); }
html[data-sb-theme="temple"] main :is(.text-amber-300, .text-amber-400, .text-yellow-300, .text-yellow-400, .text-orange-300, .text-orange-400) { color: var(--sb-saffron-2); }
/* the photo hero behind Donate / Volunteer / Sign up: plain page, saffron pills */
html[data-sb-theme="temple"] main section.relative > .absolute.inset-0.-z-10 { display: none; }
html[data-sb-theme="temple"] main :is(.rounded-full[class*="bg-black/"]) {
  background: var(--sb-saffron-soft); color: var(--sb-saffron-2); box-shadow: none; --tw-ring-color: rgba(216, 100, 12, 0.25);
  font-weight: 600; letter-spacing: 0.04em;
}
html[data-sb-theme="temple"] main span.rounded-full[class*="bg-black/"] { background: #fff; color: var(--sb-indigo); --tw-ring-color: #eedcb6; font-weight: 500; letter-spacing: 0; }
html[data-sb-theme="temple"] main span.rounded-full[class*="bg-black/"] svg { color: var(--sb-saffron); }
/* the page tops were spaced for the dark see-through header; the banner now sits there */
html[data-sb-theme="temple"] body > main :is(.pt-20, .pt-24, .pt-28, .pt-32, .md\:pt-28):not(:has(.pt-20, .pt-24, .pt-28, .pt-32)) { padding-top: 3.5rem; }
html[data-sb-theme="temple"] main button:disabled { color: #5d5290; }
/* headings that only repeat the banner title */
html[data-sb-path="calendar"] main h1,
html[data-sb-path="contact"] main h1,
html[data-sb-path="calendar-pooja"] main h1,
html[data-sb-path="devotional"] main h1,
html[data-sb-path="privacy-policy"] main h1,
html[data-sb-path="terms"] main h1,
html[data-sb-page="about"] #about-section > .container > .flex-col.items-center:has(h2) { display: none; }
html[data-sb-theme="temple"] main aside button { color: var(--sb-ink); }
html[data-sb-theme="temple"] main aside button:is([class*="bg-amber"], [class*="bg-yellow"], [class*="bg-orange"]) { color: var(--sb-saffron-2); }

/* ---------- The site's glossy "gradient" buttons, in temple colours ---------- */
html[data-sb-theme="temple"] main .gradient-button {
  background: linear-gradient(135deg, var(--sb-indigo-2), var(--sb-indigo-ink)); border-radius: 4px;
  font-family: var(--sb-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 14px 26px -16px rgba(26, 15, 79, 0.85); transition: filter 0.2s, transform 0.2s;
}
html[data-sb-theme="temple"] main .gradient-button::before { display: none; }
html[data-sb-theme="temple"] main .gradient-button:hover { filter: brightness(1.15); }
html[data-sb-theme="temple"] main .gradient-button.gradient-button-pooja { background: linear-gradient(135deg, #f6a531, var(--sb-saffron-2)); box-shadow: 0 14px 26px -16px rgba(150, 60, 0, 0.85); }
html[data-sb-theme="temple"] main .gradient-button:disabled { background: #c9c1e3; box-shadow: none; }

/* ---------- Calendar: the three choices as temple tiles ---------- */
html[data-sb-path="calendar"] main .min-h-\[60vh\] { min-height: 0; padding-bottom: 5rem; }
html[data-sb-path="calendar"] main .min-h-\[60vh\] p { font-size: 1.05rem; }
html[data-sb-path="calendar"] main .gradient-button {
  position: relative; flex-direction: column; align-items: flex-start; justify-content: flex-end; text-align: left;
  width: 18rem; height: 12rem; padding: 1.5rem 1.6rem; white-space: normal;
  font-family: var(--sb-head); font-size: 1.45rem; font-weight: 400; line-height: 1.25; letter-spacing: 0.02em; text-transform: none;
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #33208a, var(--sb-indigo) 45%, var(--sb-indigo-ink));
  border-radius: 6px; box-shadow: 0 22px 40px -24px rgba(26, 15, 79, 0.9);
}
html[data-sb-path="calendar"] main .gradient-button:hover { transform: translateY(-5px); filter: none; }
html[data-sb-path="calendar"] main .gradient-button.gradient-button-pooja {
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #f6a531, #ec8216 50%, var(--sb-saffron-2));
}
html[data-sb-path="calendar"] main .gradient-button.gradient-button-annadanam {
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #9a2d1f, #7a1f16 50%, #521109);
}
html[data-sb-path="calendar"] main .gradient-button::after {
  content: "View dates  \2192"; margin-top: 0.7rem; font: 600 0.72rem/1 var(--sb-body); letter-spacing: 0.12em; text-transform: uppercase; color: #f3bb4f;
}
html[data-sb-path="calendar"] main .gradient-button-pooja::after { content: "Book a pooja  \2192"; color: #fff3dc; }
html[data-sb-path="calendar"] main .gradient-button-annadanam::after { content: "Book a meal slot  \2192"; }
@media (max-width: 767px) {
  html[data-sb-path="calendar"] main .gradient-button { width: 100%; height: 9.5rem; }
  html[data-sb-path="calendar"] main .min-h-\[60vh\] .flex-wrap { width: 100%; gap: 1rem; }
}

/* ---------- Contact ---------- */
html[data-sb-path="contact"] main .max-w-sm.flex-col.justify-between { justify-content: flex-start; gap: 2rem; }
html[data-sb-path="contact"] main .max-w-sm.flex-col > :first-child p { font-size: 1.05rem; line-height: 1.75; color: var(--sb-muted); }
html[data-sb-path="contact"] main .max-w-sm .w-fit {
  position: relative; background: #fff; border-top: 3px solid var(--sb-saffron); border-radius: 6px; padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 24px 46px -32px rgba(92, 44, 4, 0.5);
}
html[data-sb-path="contact"] main .max-w-sm .w-fit::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 54px; height: 54px; transform: rotate(180deg);
  background: url(/sb-art/flourish.svg) center / contain no-repeat; opacity: 0.7; pointer-events: none;
}
html[data-sb-path="contact"] main .max-w-sm .w-fit h3 { font-size: 1.6rem; margin-bottom: 1rem; }
html[data-sb-path="contact"] main .max-w-sm .w-fit li { line-height: 1.7; margin-bottom: 0.35rem; }
html[data-sb-path="contact"] main .max-w-sm .w-fit li::marker { color: var(--sb-saffron); }
html[data-sb-path="contact"] main .max-w-sm .w-fit li span:first-child { color: var(--sb-indigo); }

/* ---------- Devotional: the title row only repeated the banner ---------- */
html[data-sb-path="devotional"] main header.justify-between { justify-content: flex-end; }
html[data-sb-path="devotional"] main header.justify-between > .flex.items-center.gap-2:has(h1) { display: none; }
html[data-sb-page="about"] #about-section { background: transparent; padding-top: 3.5rem; }
html[data-sb-path="sign-in"] { --sb-title: "Devotee Sign In"; --sb-crumb: "Home  \203A  Sign In"; }
html[data-sb-path="sign-up"] { --sb-title: "Create Account"; --sb-crumb: "Home  \203A  Sign Up"; }
html[data-sb-path="auth-forgot-password"], html[data-sb-path="auth-update-password"] { --sb-title: "Reset Password"; --sb-crumb: "Home  \203A  Sign In  \203A  Reset"; }
@media (max-width: 1023px) {
  html[data-sb-path="contact"] main .max-w-sm.flex-col { padding: 0 0.25rem; }
  html[data-sb-path="contact"] main form.p-10 { padding: 1.75rem 1.25rem; }
}
/* ---------- Gallery folders: the 1.6× folder icons overflowed their cards and covered the labels ---------- */
html[data-sb-path="gallery"] main a.group > div > div[style*="scale(1.6)"] { margin: 2.4rem 0 1.9rem; }
html[data-sb-path="gallery"] main a.group > div > span { font-family: var(--sb-head); font-size: 1.15rem; color: var(--sb-indigo); }
html[data-sb-path="gallery"] main a.group > div:hover { transform: translateY(-4px); }
@media (max-width: 1023px) { html[data-sb-path="contact"] main .container { padding-left: 1.25rem; padding-right: 1.25rem; } }
/* ---------- Header "Sabarimala" menu: solid indigo with a saffron edge over the light pages ---------- */
html[data-sb-theme="temple"] header .bg-\[\#11111198\] { background: var(--sb-indigo); border-top: 3px solid var(--sb-saffron); border-radius: 6px; box-shadow: 0 18px 36px -16px rgba(26, 15, 79, 0.7); }
html[data-sb-theme="temple"] header .bg-\[\#11111198\] button:hover { background: rgba(255, 255, 255, 0.08); color: #f3bb4f; }

/* ---------- Home: "ఓం శ్రీ స్వామియే శరణం అయ్యప్ప" in gold under the scrolling Ayyappa image ----------
   Shown in the hero's (empty) section that fades in once the image has finished expanding; the hero
   and the scroll effect themselves are unchanged. sb-home.js sets html[data-sb-om="in"] while that
   section is visible, so the words rise in each time it appears. */
html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8 {
  align-items: center; text-align: center; padding: 2rem 1rem 4.5rem;
}
html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8::before {
  content: "ఓం శ్రీ స్వామియే శరణం అయ్యప్ప";
  font-family: 'Ramaraja', 'Noto Sans Telugu', serif; font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.55; text-wrap: balance;
  background: linear-gradient(100deg, #9a6514 0%, #f7d774 16%, #fff8d8 26%, #eabb4b 38%, #b07a1c 52%, #f9df8a 66%, #fff4c8 76%, #d29a2e 88%, #9a6514 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(245, 185, 60, 0.38)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
  animation: sb-gold-shine 7s linear infinite;
  opacity: 0; transform: translateY(22px) scale(0.94); letter-spacing: 0.14em;
  transition: opacity 1.3s ease, transform 1.3s cubic-bezier(.2, .8, .2, 1), letter-spacing 1.8s cubic-bezier(.2, .8, .2, 1);
}
html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8::after {
  content: ""; display: block; width: min(32rem, 82vw); height: 2.6rem; margin-top: 0.6rem;
  background: url(/sb-art/om-divider.svg) center / contain no-repeat;
  opacity: 0; transform: scaleX(0.4); transition: opacity 1s ease 0.6s, transform 1.2s cubic-bezier(.2, .8, .2, 1) 0.6s;
}
html[data-sb-page="home"][data-sb-om="in"] .container > section.flex.flex-col.w-full.px-8::before { opacity: 1; transform: none; letter-spacing: 0.03em; }
html[data-sb-page="home"][data-sb-om="in"] .container > section.flex.flex-col.w-full.px-8::after { opacity: 1; transform: none; }
@keyframes sb-gold-shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@media (max-width: 767px) {
  html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8 { padding: 0.25rem 0.75rem 3rem; }
  html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8::before { line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-sb-page="home"] .container > section.flex.flex-col.w-full.px-8::before { animation: none; transition: none; }
}

/* ---------- Home: muggulu everywhere on the cream sections, and a rangoli behind the About Us photo ---------- */
html[data-sb-page="home"] section:has(> .max-w-4xl .from-amber-50) {
  background: url(/sb-art/muggulu-light.svg) 0 0 / 120px repeat, linear-gradient(to bottom, transparent 58%, var(--sb-cream) 58%), var(--sb-band);
}
@media (max-width: 767px) {
  html[data-sb-page="home"] section:has(> .max-w-4xl .from-amber-50) {
    background: url(/sb-art/muggulu-light.svg) 0 0 / 120px repeat, linear-gradient(to bottom, transparent 22rem, var(--sb-cream) 22rem), var(--sb-band);
  }
}
html[data-sb-page="home"] section.bg-background:has(.auto-rows-\[22rem\]) { background: var(--sb-cream) url(/sb-art/muggulu-light.svg) 0 0 / 120px repeat; }
html[data-sb-page="home"] #about-section { background: var(--sb-cream) url(/sb-art/muggulu-faint.svg) 0 0 / 120px repeat; }
/* big corner muggu, cut by the section edges */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::before,
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::after {
  content: ""; position: absolute; width: 560px; height: 560px; pointer-events: none; z-index: 0; opacity: 0.07;
  background: url(/sb-art/rangoli.svg) center / contain no-repeat;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::before { left: -280px; top: -200px; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::after { right: -280px; bottom: 20%; }
/* the rangoli glowing behind the Ayyappa photo, turning very slowly */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: url(/sb-art/rangoli.svg) center / contain no-repeat; opacity: 0.2; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%);
  animation: sb-rangoli-turn 240s linear infinite;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 200, 110, 0.55), rgba(255, 214, 140, 0.18) 45%, rgba(255, 214, 140, 0) 68%);
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative > * { position: relative; z-index: 1; }
/* the text beside the rangoli stays crisp */
@keyframes sb-rangoli-turn { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative::before { top: 0; width: 520px; height: 520px; margin: -40px 0 0 -260px; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative::after { top: 0; width: 380px; height: 380px; margin: 30px 0 0 -190px; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::before,
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::after { width: 360px; height: 360px; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::before { left: -180px; top: -140px; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section::after { right: -180px; }
}
@media (prefers-reduced-motion: reduce) {
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .grid.md\:grid-cols-3.relative::before { animation: none; }
}
/* About Us text sits on soft cream panels so the muggu behind never cuts through it; larger, darker type */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section > .container > p { color: #45362a; font-size: 1.08rem; line-height: 1.85; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > .group {
  background: rgba(255, 252, 245, 0.94); border: 1px solid #efdfbd; border-left: 3px solid var(--sb-saffron);
  border-radius: 8px; padding: 1.15rem 1.25rem 1.2rem; box-shadow: 0 16px 32px -26px rgba(92, 44, 4, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > .group:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -24px rgba(92, 44, 4, 0.6); }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > :not(:last-child) { margin-bottom: 1.5rem; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 .group h3 { font-size: 1.32rem; color: #1f1260; }
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 .group > p { color: #3b2c1c; font-size: 0.98rem; line-height: 1.7; margin-top: 0.15rem; }
@media (min-width: 768px) {
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; height: 100%; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > :not(:last-child) { margin-bottom: 0; }
  html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > .group > p { min-height: 0; }
}
/* the hover-only "learn more" line left empty space at the bottom of each panel */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .space-y-16 > .group > div.pl-12 { display: none; }
/* stats numbers: plain, even-height digits (Marcellus has decorative numerals) */
html:is([data-sb-page="home"], [data-sb-page="about"]) #about-section .lg\:grid-cols-4 .text-3xl {
  font-family: var(--sb-body); font-weight: 700; font-size: 2.2rem; letter-spacing: 0.01em; font-variant-numeric: lining-nums tabular-nums;
}


/* ---------- Member profile (tools/profile/profile.js): sidebar navigation + tab panels ---------- */
html[data-sb-theme] .sbp-page { --sbp-line: #eedcb6; --sbp-soft: #fffaf0; padding: 2.5rem 0 4.5rem; }
html[data-sb-theme] .sbp-page .sbp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
html[data-sb-theme] .sbp-page .sbp-wrap.one { grid-template-columns: minmax(0, 40rem); justify-content: center; }
html[data-sb-theme] .sbp-page .sbp-side { position: sticky; top: 6rem; display: grid; gap: 1rem; }
html[data-sb-theme] .sbp-page .sbp-main { display: grid; gap: 1.25rem; min-width: 0; }

/* who is signed in */
html[data-sb-theme] .sbp-page .sbp-me {
  display: grid; justify-items: center; gap: 0.75rem; padding: 1.75rem 1.25rem 1.4rem; text-align: center; background: #fff;
  border: 1px solid var(--sbp-line); border-top: 3px solid var(--sb-saffron); border-radius: 8px; box-shadow: 0 24px 46px -34px rgba(92, 44, 4, 0.55);
  background-image: url(/sb-art/muggu-border.svg); background-repeat: repeat-x; background-size: 44px 22px; background-position: top 10px center;
}
html[data-sb-theme] .sbp-page .sbp-me .who { display: grid; gap: 0.2rem; min-width: 0; width: 100%; }
html[data-sb-theme] .sbp-page .sbp-me .who b { font: 400 1.3rem/1.25 var(--sb-head); color: var(--sb-indigo); overflow-wrap: anywhere; }
html[data-sb-theme] .sbp-page .sbp-me .who span { font-size: 0.85rem; color: var(--sb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-sb-theme] .sbp-page .sbp-avatar {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden;
  background: linear-gradient(145deg, #f6a531, var(--sb-saffron-2)); color: #fff; font: 400 1.15rem/1 var(--sb-head);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sb-gold);
}
html[data-sb-theme] .sbp-page .sbp-avatar.big { width: 5.5rem; height: 5.5rem; font-size: 2.2rem; margin-top: 0.75rem; }
html[data-sb-theme] .sbp-page .sbp-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* section navigation */
html[data-sb-theme] .sbp-page .sbp-nav { display: grid; gap: 0.25rem; padding: 0.5rem; background: #fff; border: 1px solid var(--sbp-line); border-radius: 8px; }
html[data-sb-theme] .sbp-page .sbp-nav button {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 2.9rem; padding: 0 0.9rem; border: 0; border-radius: 6px;
  background: transparent; color: var(--sb-ink); font: 600 0.92rem/1.2 var(--sb-body); text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s;
}
html[data-sb-theme] .sbp-page .sbp-nav button svg { color: var(--sb-muted); flex: none; }
html[data-sb-theme] .sbp-page .sbp-nav button:hover { background: var(--sbp-soft); }
html[data-sb-theme] .sbp-page .sbp-nav button.on { background: var(--sb-saffron-soft); color: var(--sb-saffron-2); box-shadow: inset 3px 0 0 var(--sb-saffron); }
html[data-sb-theme] .sbp-page .sbp-nav button.on svg { color: var(--sb-saffron-2); }
html[data-sb-theme] .sbp-page .sbp-nav button:focus-visible { outline: 2px solid var(--sb-saffron); outline-offset: 2px; }
html[data-sb-theme] .sbp-page .sbp-nav .short { display: none; }

/* cards */
html[data-sb-theme] .sbp-page .sbp-card {
  background: #fff; border: 1px solid var(--sbp-line); border-top: 3px solid var(--sb-saffron); border-radius: 8px;
  padding: 1.5rem; box-shadow: 0 24px 46px -34px rgba(92, 44, 4, 0.55);
}
html[data-sb-theme] .sbp-page .sbp-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
html[data-sb-theme] .sbp-page .sbp-card-h h2 { font: 400 1.4rem/1.25 var(--sb-head); color: var(--sb-indigo); margin: 0; }
html[data-sb-theme] .sbp-page .sbp-card-h p { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--sb-muted); line-height: 1.5; }
html[data-sb-theme] .sbp-page .sbp-muted { color: var(--sb-muted); }

/* welcome band */
html[data-sb-theme] .sbp-page .sbp-hello {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.75rem; border-radius: 8px; color: #fff;
  background: url(/sb-art/lotus.svg) right -60px center / 220px no-repeat, var(--sb-band);
  box-shadow: 0 24px 40px -28px rgba(150, 60, 0, 0.8);
}
html[data-sb-theme] .sbp-page .sbp-hello .k { margin: 0; font: 600 0.72rem/1 var(--sb-body); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
html[data-sb-theme] .sbp-page .sbp-hello h2 { margin: 0.45rem 0 0; font: 400 1.9rem/1.2 var(--sb-head); color: #fff; text-shadow: 0 2px 6px rgba(110, 40, 0, 0.3); }
html[data-sb-theme] .sbp-page .sbp-hello .d { margin: 0.35rem 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); }
html[data-sb-theme] .sbp-page .sbp-stats { display: flex; gap: 0.75rem; }
html[data-sb-theme] .sbp-page .sbp-stats > div { display: grid; justify-items: center; min-width: 5.5rem; padding: 0.7rem 0.9rem; border-radius: 6px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); }
html[data-sb-theme] .sbp-page .sbp-stats b { font: 700 1.6rem/1.1 var(--sb-body); font-variant-numeric: tabular-nums; }
html[data-sb-theme] .sbp-page .sbp-stats span { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* notices */
html[data-sb-theme] .sbp-page .sbp-note {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.15rem; border-radius: 8px;
  background: #f4f1fb; border: 1px solid #d9d1f1; color: var(--sb-indigo);
}
html[data-sb-theme] .sbp-page .sbp-note > svg { flex: none; }
html[data-sb-theme] .sbp-page .sbp-note > div { flex: 1; min-width: 0; }
html[data-sb-theme] .sbp-page .sbp-note b { display: block; font-size: 0.95rem; }
html[data-sb-theme] .sbp-page .sbp-note p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--sb-ink); line-height: 1.5; }
html[data-sb-theme] .sbp-page .sbp-note.warn { background: #fff4e5; border-color: #f3cf98; color: #9a4a00; }

/* chips */
html[data-sb-theme] .sbp-page .sbp-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap;
  font: 600 0.74rem/1 var(--sb-body); letter-spacing: 0.02em; background: #f3eee3; color: var(--sb-muted);
}
html[data-sb-theme] .sbp-page .sbp-chip.ok { background: #e6f4ea; color: #1e6b3a; }
html[data-sb-theme] .sbp-page .sbp-chip.done { background: #ece8f8; color: var(--sb-indigo-2); }
html[data-sb-theme] .sbp-page .sbp-chip.wait { background: #fdf0d6; color: #8a5a00; }
html[data-sb-theme] .sbp-page .sbp-chip.warn { background: #fde4dc; color: #a33a12; }

/* buttons */
html[data-sb-theme] .sbp-page .sbp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem;
  border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--sb-indigo-2), var(--sb-indigo-ink)); color: #fff;
  font: 600 0.82rem/1 var(--sb-body); letter-spacing: 0.07em; text-transform: uppercase; box-shadow: 0 14px 26px -16px rgba(26, 15, 79, 0.8);
}
html[data-sb-theme] .sbp-page .sbp-btn:hover { filter: brightness(1.12); }
html[data-sb-theme] .sbp-page .sbp-btn.sm { min-height: 2.4rem; padding: 0 0.95rem; font-size: 0.75rem; }
html[data-sb-theme] .sbp-page .sbp-btn.ghost { background: #fff; color: var(--sb-indigo); border: 1px solid #d9cba8; box-shadow: none; }
html[data-sb-theme] .sbp-page .sbp-btn.ghost:hover { background: var(--sbp-soft); filter: none; }
html[data-sb-theme] .sbp-page .sbp-btn.ghost.danger { color: #a33a12; border-color: #efc2b0; }
html[data-sb-theme] .sbp-page .sbp-btn:disabled { background: #d8d2ea; color: #fff; box-shadow: none; cursor: default; filter: none; }
html[data-sb-theme] .sbp-page .sbp-btn.ghost:disabled { background: #fff; color: #a99f88; }
html[data-sb-theme] .sbp-page .sbp-btn:focus-visible, html[data-sb-theme] .sbp-page .sbp-link:focus-visible { outline: 2px solid var(--sb-saffron); outline-offset: 2px; }
html[data-sb-theme] .sbp-page .sbp-link {
  display: inline-flex; align-items: center; gap: 0.2rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--sb-saffron-2); font: 600 0.88rem/1.4 var(--sb-body);
}
html[data-sb-theme] .sbp-page .sbp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
html[data-sb-theme] .sbp-page .sbp-link.danger { color: #a33a12; }
html[data-sb-theme] .sbp-page .sbp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* bookings */
html[data-sb-theme] .sbp-page .sbp-seg { display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1.1rem; border-radius: 6px; background: #f6eedc; }
html[data-sb-theme] .sbp-page .sbp-seg button {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.25rem; padding: 0 1rem; border: 0; border-radius: 4px;
  background: transparent; color: var(--sb-muted); font: 600 0.85rem/1 var(--sb-body); cursor: pointer;
}
html[data-sb-theme] .sbp-page .sbp-seg button.on { background: #fff; color: var(--sb-indigo); box-shadow: 0 2px 6px -2px rgba(92, 44, 4, 0.35); }
html[data-sb-theme] .sbp-page .sbp-seg i { font-style: normal; min-width: 1.4rem; padding: 0.15rem 0.35rem; border-radius: 999px; background: rgba(36, 22, 107, 0.08); font-size: 0.72rem; text-align: center; }
html[data-sb-theme] .sbp-page .sbp-list { display: grid; gap: 0.75rem; }
html[data-sb-theme] .sbp-page .sbp-booking {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border: 1px solid var(--sbp-line); border-radius: 8px; background: var(--sbp-soft);
}
html[data-sb-theme] .sbp-page .sbp-booking .ic { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--sb-saffron-soft); color: var(--sb-saffron-2); }
html[data-sb-theme] .sbp-page .sbp-booking .ic.pooja { background: #ece8f8; color: var(--sb-indigo-2); }
html[data-sb-theme] .sbp-page .sbp-booking .t { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font: 400 1.12rem/1.3 var(--sb-head); color: var(--sb-indigo); }
html[data-sb-theme] .sbp-page .sbp-booking .d { margin-top: 0.2rem; font-size: 0.9rem; color: var(--sb-ink); }
html[data-sb-theme] .sbp-page .sbp-booking .code { margin-top: 0.25rem; font-size: 0.8rem; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-booking .code b { color: var(--sb-ink); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
html[data-sb-theme] .sbp-page .sbp-booking:is(.missed, .cancelled) { background: #fff; }
html[data-sb-theme] .sbp-page .sbp-booking:is(.missed, .cancelled) .ic { filter: grayscale(1); opacity: 0.6; }
html[data-sb-theme] .sbp-page .sbp-empty { display: grid; justify-items: center; gap: 1rem; padding: 1.5rem 1rem; text-align: center; border: 1px dashed #e2cc9f; border-radius: 8px; }
html[data-sb-theme] .sbp-page .sbp-empty p { margin: 0; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-empty .sbp-actions { justify-content: center; }

/* profile checklist */
html[data-sb-theme] .sbp-page .sbp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
html[data-sb-theme] .sbp-page .sbp-steps li { display: flex; align-items: center; gap: 0.75rem; min-height: 2.6rem; border-bottom: 1px solid #f4ead5; }
html[data-sb-theme] .sbp-page .sbp-steps li:last-child { border-bottom: 0; }
html[data-sb-theme] .sbp-page .sbp-steps .dot { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid #e2cc9f; color: #fff; flex: none; }
html[data-sb-theme] .sbp-page .sbp-steps li.done { color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-steps li.done .dot { background: #2f8a4c; border-color: #2f8a4c; }

/* forms */
html[data-sb-theme] .sbp-page .sbp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
html[data-sb-theme] .sbp-page .sbp-form .wide, html[data-sb-theme] .sbp-page .sbp-field.wide { grid-column: 1 / -1; }
html[data-sb-theme] .sbp-page .sbp-field { display: grid; gap: 0.4rem; align-content: start; color: var(--sb-ink); font-weight: 400; }
html[data-sb-theme] .sbp-page .sbp-field .l { display: flex; align-items: baseline; gap: 0.45rem; font: 600 0.85rem/1.2 var(--sb-body); color: var(--sb-indigo); }
html[data-sb-theme] .sbp-page .sbp-field .l em { font-style: normal; font-weight: 400; font-size: 0.75rem; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-field .l em::before { content: "\00B7"; margin-right: 0.45rem; }
html[data-sb-theme] .sbp-page .sbp-field input { width: 100%; min-height: 2.9rem; padding: 0 0.9rem; font-size: 1rem; }
html[data-sb-theme] .sbp-page .sbp-field input:disabled { background: #f7f1e4; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-field small { font-size: 0.78rem; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-field small.err, html[data-sb-theme] .sbp-page .sbp-err { color: #b3261e; }
html[data-sb-theme] .sbp-page .sbp-err { margin: 0; font-size: 0.88rem; }
html[data-sb-theme] .sbp-page .sbp-field input[aria-invalid="true"] { border-color: #d9534f; }
html[data-sb-theme] .sbp-page .sbp-photo { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #f4ead5; }
html[data-sb-theme] .sbp-page .sbp-photo .sbp-avatar.big { margin-top: 0; }
html[data-sb-theme] .sbp-page .sbp-photo b { color: var(--sb-indigo); }
html[data-sb-theme] .sbp-page .sbp-photo p { margin: 0.15rem 0 0.7rem; font-size: 0.85rem; color: var(--sb-muted); }

/* identity document */
html[data-sb-theme] .sbp-page .sbp-doc { display: flex; align-items: center; gap: 1.25rem; padding: 1rem; border: 1px solid var(--sbp-line); border-radius: 8px; background: var(--sbp-soft); }
html[data-sb-theme] .sbp-page .sbp-doc .thumb { flex: none; display: grid; place-items: center; width: 7.5rem; height: 5rem; border-radius: 6px; overflow: hidden; background: #f3eadb; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-doc .thumb img { width: 100%; height: 100%; object-fit: cover; }
html[data-sb-theme] .sbp-page .sbp-doc .thumb .pdf { font: 700 0.9rem/1 var(--sb-body); letter-spacing: 0.1em; color: #b3261e; }
html[data-sb-theme] .sbp-page .sbp-doc .info { min-width: 0; }
html[data-sb-theme] .sbp-page .sbp-doc .info b { color: var(--sb-indigo); }
html[data-sb-theme] .sbp-page .sbp-doc .info p { margin: 0.2rem 0 0.75rem; font-size: 0.88rem; color: var(--sb-muted); line-height: 1.45; }
html[data-sb-theme] .sbp-page .sbp-upload { display: grid; justify-items: start; }
html[data-sb-theme] .sbp-page .sbp-drop {
  display: grid; justify-items: center; gap: 0.35rem; width: 100%; padding: 1.75rem 1rem; border: 2px dashed #e2cc9f; border-radius: 8px;
  background: var(--sbp-soft); color: var(--sb-saffron-2); cursor: pointer; font-family: var(--sb-body); transition: border-color 0.15s, background 0.15s;
}
html[data-sb-theme] .sbp-page .sbp-drop:hover { border-color: var(--sb-saffron); background: #fff6e6; }
html[data-sb-theme] .sbp-page .sbp-drop b { color: var(--sb-indigo); font-size: 0.98rem; }
html[data-sb-theme] .sbp-page .sbp-drop span { font-size: 0.8rem; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-drop:disabled { cursor: progress; opacity: 0.75; }
html[data-sb-theme] .sbp-page .sbp-privacy { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font-size: 0.82rem; color: var(--sb-muted); }
html[data-sb-theme] .sbp-page .sbp-privacy svg { flex: none; color: #2f8a4c; }

/* account */
html[data-sb-theme] .sbp-page .sbp-dl { display: grid; margin: 0; }
html[data-sb-theme] .sbp-page .sbp-dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid #f4ead5; }
html[data-sb-theme] .sbp-page .sbp-dl > div:last-child { border-bottom: 0; }
html[data-sb-theme] .sbp-page .sbp-dl dt { color: var(--sb-muted); font-size: 0.9rem; }
html[data-sb-theme] .sbp-page .sbp-dl dd { margin: 0; color: var(--sb-ink); font-weight: 600; overflow-wrap: anywhere; }
html[data-sb-theme] .sbp-page .sbp-signout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid #f4ead5; }
html[data-sb-theme] .sbp-page .sbp-signout:first-child { padding-top: 0; }
html[data-sb-theme] .sbp-page .sbp-signout:last-child { border-bottom: 0; padding-bottom: 0; }
html[data-sb-theme] .sbp-page .sbp-signout b { color: var(--sb-indigo); }
html[data-sb-theme] .sbp-page .sbp-signout p { margin: 0.15rem 0 0; font-size: 0.86rem; color: var(--sb-muted); }

/* toast + loading */
html[data-sb-theme] .sbp-page .sbp-toast {
  position: fixed; z-index: 60; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.6rem;
  max-width: calc(100vw - 2rem); padding: 0.85rem 1.15rem; border-radius: 6px; background: var(--sb-indigo-ink); color: #fff;
  font-size: 0.92rem; box-shadow: 0 18px 40px -16px rgba(26, 15, 79, 0.8); animation: sbp-in 0.2s ease-out;
}
html[data-sb-theme] .sbp-page .sbp-toast svg { flex: none; color: #8fd6a5; }
html[data-sb-theme] .sbp-page .sbp-toast.err { background: #8c1d18; }
html[data-sb-theme] .sbp-page .sbp-toast.err svg { color: #ffd2cc; }
@keyframes sbp-in { from { opacity: 0; transform: translate(-50%, 8px); } }
html[data-sb-theme] .sbp-page .skel { background: linear-gradient(90deg, #f6eedc 25%, #fbf5e8 50%, #f6eedc 75%) 0 0 / 200% 100%; animation: sbp-skel 1.2s linear infinite; border-radius: 8px; }
html[data-sb-theme] .sbp-page .sbp-me.skel { height: 15rem; border: 0; box-shadow: none; }
html[data-sb-theme] .sbp-page .sbp-card.skel.tall { height: 22rem; border: 0; box-shadow: none; }
html[data-sb-theme] .sbp-page .sbp-row.skel { height: 5rem; }
html[data-sb-theme] .sbp-page .thumb .skel { width: 100%; height: 100%; border-radius: 0; }
@keyframes sbp-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { html[data-sb-theme] .sbp-page :is(.skel, .sbp-toast) { animation: none; } }

/* tablets and phones: the sidebar becomes a header with a swipeable tab row */
@media (max-width: 959px) {
  html[data-sb-theme] .sbp-page { padding-top: 1.5rem; }
  html[data-sb-theme] .sbp-page .sbp-wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 1rem; }
  html[data-sb-theme] .sbp-page .sbp-side { position: static; gap: 0.75rem; }
  html[data-sb-theme] .sbp-page .sbp-me { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; gap: 0.35rem 1rem; padding: 1rem; background-image: none; }
  html[data-sb-theme] .sbp-page .sbp-me .sbp-avatar.big { grid-row: span 2; width: 3.75rem; height: 3.75rem; font-size: 1.6rem; margin: 0 0 0 0.25rem; }
  html[data-sb-theme] .sbp-page .sbp-me .who b { font-size: 1.15rem; }
  html[data-sb-theme] .sbp-page .sbp-me.skel { height: 6rem; }
  html[data-sb-theme] .sbp-page .sbp-nav {
    position: sticky; top: 4.25rem; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; padding: 0.3rem;
    box-shadow: 0 10px 20px -18px rgba(92, 44, 4, 0.6);
  }
  html[data-sb-theme] .sbp-page .sbp-nav button { justify-content: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 0.5rem; font-size: 0.84rem; white-space: nowrap; }
  html[data-sb-theme] .sbp-page .sbp-nav button.on { box-shadow: inset 0 -3px 0 var(--sb-saffron); }
}
@media (max-width: 639px) {
  html[data-sb-theme] .sbp-page .sbp-nav button { flex-direction: column; gap: 0.25rem; min-height: 3.6rem; padding: 0.4rem 0.2rem; font-size: 0.74rem; }
  html[data-sb-theme] .sbp-page .sbp-nav .long { display: none; }
  html[data-sb-theme] .sbp-page .sbp-nav .short { display: block; }
  html[data-sb-theme] .sbp-page .sbp-card { padding: 1.15rem 1rem; }
  html[data-sb-theme] .sbp-page .sbp-card-h { flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
  html[data-sb-theme] .sbp-page .sbp-hello { flex-direction: column; align-items: stretch; gap: 1.1rem; padding: 1.25rem 1.15rem; background-size: 160px, auto; background-position: right -50px top -10px, center; }
  html[data-sb-theme] .sbp-page .sbp-hello h2 { font-size: 1.6rem; }
  html[data-sb-theme] .sbp-page .sbp-stats > div { flex: 1; }
  html[data-sb-theme] .sbp-page .sbp-note { align-items: flex-start; flex-wrap: wrap; }
  html[data-sb-theme] .sbp-page .sbp-note .sbp-btn { margin-left: calc(20px + 0.9rem); }
  html[data-sb-theme] .sbp-page .sbp-form { grid-template-columns: minmax(0, 1fr); }
  html[data-sb-theme] .sbp-page .sbp-booking { grid-template-columns: auto minmax(0, 1fr); padding: 0.9rem; gap: 0.75rem 0.9rem; }
  html[data-sb-theme] .sbp-page .sbp-booking > .sbp-btn { grid-column: 1 / -1; width: 100%; }
  html[data-sb-theme] .sbp-page .sbp-doc { flex-direction: column; align-items: stretch; }
  html[data-sb-theme] .sbp-page .sbp-doc .thumb { width: 100%; height: 9rem; }
  html[data-sb-theme] .sbp-page .sbp-dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  html[data-sb-theme] .sbp-page .sbp-signout { flex-direction: column; align-items: stretch; }
  html[data-sb-theme] .sbp-page .sbp-signout .sbp-btn { width: 100%; }
  html[data-sb-theme] .sbp-page .sbp-empty .sbp-actions { display: grid; width: 100%; }
}

/* =====================================================================================
   DEVOTIONAL POLISH (2026-10-24) — the same temple language carried into the parts that were
   still plain: the hero, the header, the page banners, sign-in, the gallery, the footer and
   the 404 page. Everything is CSS over the built markup; nothing in the pages' code changes.
   ===================================================================================== */
/* ---------- Everywhere: saffron text selection, temple scrollbar, saffron focus ring ---------- */
::selection { background: #f6a531; color: #1a0f4f; }
html { scrollbar-color: #3b2596 #f3e6c8; }
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #f3e6c8; }
html::-webkit-scrollbar-thumb { background: #3b2596; border: 2px solid #f3e6c8; border-radius: 8px; }
html[data-sb-theme="temple"] main :is(a, button):focus-visible { outline: 2px solid var(--sb-saffron); outline-offset: 3px; }

/* ---------- Header: temple nameplate, saffron sill with mandala, gold-ringed emblem ---------- */
header .bg-\[var\(--brand-purple\)\] {
  position: relative;
  background: #24166b;
  box-shadow: 0 8px 24px -18px rgba(26, 15, 79, 0.8);
}
header .bg-\[var\(--brand-purple\)\]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
  background: url(/sb-art/mandala.svg) center / 44px repeat, linear-gradient(90deg, #f6a531, #ec8216 50%, #d8640c);
}
header img.h-14 { border-radius: 50%; box-shadow: 0 0 0 2px #d6a243; background: #fff; }
header .sm\:block > div { font-family: var(--sb-head); font-weight: 400; letter-spacing: 0.05em; color: #fff6e6; }
header .sm\:block > div:last-child { color: #f3bb4f; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }
header nav.lg\:flex > a { font-family: var(--sb-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; }
header nav.lg\:flex > a:not(.bg-\[var\(--brand-orange\)\]):hover { color: #f3bb4f; }
header nav.lg\:flex > a:not(.bg-\[var\(--brand-orange\)\])::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0.9rem; height: 2px; background: #f3bb4f;
  transform: scaleX(0); transform-origin: center; transition: transform 0.25s ease;
}
header nav.lg\:flex > a:not(.bg-\[var\(--brand-orange\)\]):hover::after { transform: scaleX(1); }
header nav.lg\:flex > a.bg-\[var\(--brand-orange\)\] { background: var(--sb-saffron-2); color: #fff; }
header nav.lg\:flex > a.bg-\[var\(--brand-orange\)\] > span.absolute { background: #fff3dc; }
header :is(nav, .lg\:hidden) button.rounded-full { border: 1px solid rgba(243, 187, 79, 0.45); background: rgba(255, 255, 255, 0.08); font-family: var(--sb-body); }
header :is(nav, .lg\:hidden) button.rounded-full:hover { background: rgba(246, 165, 49, 0.22); }
header img.h-8.rounded-full { box-shadow: 0 0 0 2px #f3bb4f; --tw-ring-color: transparent; }
/* phone menu: cream list with a saffron edge, indigo items, the current page in saffron */
header .lg\:hidden ~ div nav, header nav.flex-col { font-family: var(--sb-body); }
@media (max-width: 1023px) {
  header .bg-\[var\(--brand-purple\)\] > .max-w-7xl ~ div, header .bg-\[var\(--brand-purple\)\] > div:not(.max-w-7xl) {
    background: #fffaf0; border-top: 3px solid var(--sb-saffron); box-shadow: 0 18px 32px -18px rgba(26, 15, 79, 0.6);
  }
  header .bg-\[var\(--brand-purple\)\] > div:not(.max-w-7xl) a { color: var(--sb-indigo); font-family: var(--sb-body); font-weight: 600; letter-spacing: 0.1em; border-bottom: 1px solid #f1e3c4; }
  header .bg-\[var\(--brand-purple\)\] > div:not(.max-w-7xl) a:hover { background: var(--sb-saffron-soft); color: var(--sb-saffron-2); }
  header .bg-\[var\(--brand-purple\)\] > div:not(.max-w-7xl) a.bg-\[var\(--brand-orange\)\] { background: var(--sb-saffron-2); color: #fff; border-radius: 6px; }
}

/* ---------- Home hero: a golden inscription over a warm dusk, the QR cards in gold frames ---------- */
html[data-sb-page="home"] main section.min-h-\[100dvh\] .absolute.inset-0 > .bg-black\/30 {
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(26, 15, 79, 0.1), rgba(26, 15, 79, 0.55) 70%, rgba(14, 8, 44, 0.85) 100%),
    linear-gradient(180deg, rgba(26, 15, 79, 0.55), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(14, 8, 44, 0.7));
}
html[data-sb-page="home"] main section.min-h-\[100dvh\] h2 {
  font-family: var(--sb-head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.15;
  font-size: clamp(1.7rem, 4.6vw, 3.6rem);
  color: #f0c86e; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.9); filter: none;
}
html[data-sb-page="home"] main section.min-h-\[100dvh\] h2:first-child { font-size: clamp(1.15rem, 3vw, 2.3rem); letter-spacing: 0.3em; }
/* the Ayyappa card that grows as the page scrolls: a fine gold rim */
html[data-sb-page="home"] main section.min-h-\[100dvh\] .absolute.top-1\/2.left-1\/2.rounded-2xl { outline: 2px solid rgba(243, 187, 79, 0.85); outline-offset: 5px; border-radius: 12px; }
html[data-sb-page="home"] main .fixed.z-20 img {
  border-radius: 8px; border: 3px solid #e9c36a; background: #fff;
  box-shadow: 0 0 0 1px #b8801f, 0 20px 40px -18px rgba(0, 0, 0, 0.7);
}
@media (max-width: 767px) {
  /* a phone cannot scan its own screen, and the two cards covered the inscription: the booking links are in the menu */
  html[data-sb-page="home"] main .fixed.z-20 { display: none; }
  /* 6.9vw: "SARANAM AYYAPPA" at 2rem was wider than the gold frame behind it on phones under 460px */
  html[data-sb-page="home"] main section.min-h-\[100dvh\] h2 { font-size: clamp(1.3rem, 6.9vw, 2rem); letter-spacing: 0.08em; }
  html[data-sb-page="home"] main section.min-h-\[100dvh\] h2:first-child { font-size: 1.15rem; letter-spacing: 0.26em; }
}

/* ---------- Page banners: an Om divider under the title ---------- */
html[data-sb-theme="temple"] body > main::before {
  background:
    url(/sb-art/muggu-border.svg) bottom 12px center / 44px 22px repeat-x,
    url(/sb-art/om-divider.svg) center 8.6rem / 230px auto no-repeat,
    url(/sb-art/lotus.svg) left -80px center / 300px no-repeat,
    url(/sb-art/lotus.svg) right -80px center / 300px no-repeat,
    var(--sb-band);
  padding-bottom: 4.6rem;
}
html[data-sb-theme="temple"] body > main::after { top: 11.2rem; }
@media (max-width: 767px) {
  html[data-sb-theme="temple"] body > main::before {
    padding-bottom: 4rem;
    background-size: 44px 22px, 170px auto, 200px, 200px, 180px, auto;
    background-position: bottom 10px center, center 6.4rem, left -90px center, right -90px center, center, center;
  }
  html[data-sb-theme="temple"] body > main::after { top: 8.4rem; }
}

/* ---------- Sign in / sign up: a welcome in Telugu, the Ayyappa photo in a gold frame ---------- */
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main h1 { font-size: 2.1rem; line-height: 1.2; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main h1::before {
  content: "స్వామియే శరణం అయ్యప్ప"; display: block; margin-bottom: 0.6rem;
  font: 400 1.25rem/1.3 'Ramaraja', 'Noto Sans Telugu', serif; letter-spacing: 0.04em; color: var(--sb-saffron-2);
}
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main h1 > span { font-size: 1.9rem; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main p.text-muted-foreground > span.block { font-size: 0.95rem; line-height: 1.6; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main label { font-size: 0.85rem; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block > .absolute.inset-4 {
  border-radius: 8px; border: 3px solid #e9c36a; outline: 1px solid rgba(184, 128, 31, 0.55); outline-offset: 6px;
  box-shadow: 0 30px 60px -36px rgba(70, 30, 0, 0.75);
}
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block { padding: 2.5rem; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block::before,
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block::after {
  content: ""; position: absolute; width: 90px; height: 90px; z-index: 2; pointer-events: none;
  background: url(/sb-art/flourish.svg) center / contain no-repeat;
}
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block::before { top: 1.25rem; left: 1.25rem; }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main section.md\:block::after { right: 1.25rem; bottom: 1.25rem; transform: rotate(180deg); }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main button:has(> svg):not([type="submit"]) {
  background: #fff; color: var(--sb-indigo); border: 1px solid #d9cba8; border-radius: 6px; font-family: var(--sb-body); font-weight: 600;
  box-shadow: 0 10px 24px -18px rgba(92, 44, 4, 0.6);
}
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main button:has(> svg):not([type="submit"]):hover { background: var(--sb-cream); border-color: var(--sb-gold); }
html:is([data-sb-path="sign-in"], [data-sb-path="sign-up"]) main a.text-violet-400 { color: var(--sb-saffron-2); font-weight: 600; }
/* field wrappers are not cards */
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border:has(> input, > .relative > input, > textarea, > select) {
  border: 1px solid #e2cc9f; border-radius: 8px; background: #fffdf8; box-shadow: none;
}
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border:has(> input, > .relative > input, > textarea, > select)::after { display: none; }
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border:has(> input:focus, > .relative > input:focus) { border-color: var(--sb-saffron); box-shadow: 0 0 0 3px rgba(239, 138, 23, 0.18); }
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border > input,
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border > .relative > input { border: 0; background: transparent; box-shadow: none; }
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border > input:focus,
html[data-sb-theme="temple"] main :is(.rounded-2xl, .rounded-xl, .rounded-lg).border > .relative > input:focus { box-shadow: none; }

/* ---------- Gallery: the three folders as temple tiles ---------- */
html[data-sb-path="gallery"] main header.mb-8 h1 { display: none; }
html[data-sb-path="gallery"] main header.mb-8 p { font-size: 1.05rem; line-height: 1.7; color: var(--sb-muted); max-width: 40rem; }
html[data-sb-path="gallery"] main a.group > div > div[style*="scale(1.6)"] { display: none !important; } /* inline display:inline-block */
html[data-sb-path="gallery"] main a.group > div.rounded-2xl {
  position: relative; align-items: flex-start; justify-content: flex-end; min-height: 13rem; padding: 1.5rem 1.6rem; border: 0; border-radius: 6px;
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #33208a, var(--sb-indigo) 45%, var(--sb-indigo-ink));
  box-shadow: 0 22px 40px -24px rgba(26, 15, 79, 0.9); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
html[data-sb-path="gallery"] main a.group:nth-child(2) > div {
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #f6a531, #ec8216 50%, var(--sb-saffron-2));
}
html[data-sb-path="gallery"] main a.group:nth-child(3) > div {
  background: url(/sb-art/flourish.svg) top 10px right 10px / 64px no-repeat, url(/sb-art/mandala.svg) center / 140px repeat,
    linear-gradient(155deg, #9a2d1f, #7a1f16 50%, #521109);
}
html[data-sb-path="gallery"] main a.group > div::after { display: none; }
html[data-sb-path="gallery"] main a.group > div:hover { transform: translateY(-5px); box-shadow: 0 30px 46px -24px rgba(26, 15, 79, 0.95); }
html[data-sb-path="gallery"] main a.group > div > .flex.items-center.gap-2 { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
html[data-sb-path="gallery"] main a.group > div > .flex.items-center.gap-2 > svg { width: 2.6rem; height: 2.6rem; color: #f3bb4f; }
html[data-sb-path="gallery"] main a.group:nth-child(2) > div > .flex.items-center.gap-2 > svg { color: #fff3dc; }
html[data-sb-path="gallery"] main a.group > div > span,
html[data-sb-path="gallery"] main a.group > div > .flex.items-center.gap-2 > span { font-family: var(--sb-head); font-size: 1.5rem; color: #fff; letter-spacing: 0.03em; }
html[data-sb-path="gallery"] main a.group > div > .flex.items-center.gap-2 > span::after {
  content: "Open  \2192"; display: block; margin-top: 0.4rem; font: 600 0.72rem/1 var(--sb-body); letter-spacing: 0.12em; text-transform: uppercase; color: #f3bb4f;
}
html[data-sb-path="gallery"] main a.group:nth-child(2) > div > .flex.items-center.gap-2 > span::after { color: #fff3dc; }

/* ---------- Annadanam booking: the seva poster in a gold frame ---------- */
html[data-sb-path="calendar-annadanam"] main header img[alt="Annadanam banner"] {
  border: 3px solid #e9c36a; border-radius: 8px; outline: 1px solid rgba(184, 128, 31, 0.5); outline-offset: 5px;
  box-shadow: 0 30px 60px -34px rgba(70, 30, 0, 0.75);
}
html[data-sb-path="calendar-annadanam"] main header .mb-4 { padding: 6px; }

/* ---------- 404: a calm page in the same temple style ---------- */
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center > .text-center.max-w-md {
  position: relative; background: #fff; border: 1px solid #eedcb6; border-top: 3px solid var(--sb-saffron); border-radius: 6px;
  padding: 2.75rem 2.25rem 2.5rem; box-shadow: 0 24px 46px -32px rgba(92, 44, 4, 0.5);
}
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center > .text-center.max-w-md::before {
  content: "ఓం శ్రీ స్వామియే శరణం అయ్యప్ప"; display: block; margin-bottom: 0.5rem;
  font: 400 1.2rem/1.4 'Ramaraja', 'Noto Sans Telugu', serif; color: var(--sb-saffron-2);
}
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center .text-8xl { font-family: var(--sb-head); font-weight: 400; color: var(--sb-indigo); }
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center h2 { font-size: 1.6rem; }
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center a.bg-primary {
  background: linear-gradient(135deg, var(--sb-indigo-2), var(--sb-indigo-ink)); border-radius: 4px; font-family: var(--sb-body); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; box-shadow: 0 14px 26px -16px rgba(26, 15, 79, 0.8);
}
html[data-sb-theme="temple"] main .min-h-screen.flex.items-center.justify-center { min-height: 60vh; padding: 3rem 1rem 5rem; }

/* ---------- Footer: the mantra above the columns, gold-ringed emblem, warmer links ---------- */
footer > section > .container::before {
  content: "ఓం శ్రీ స్వామియే శరణం అయ్యప్ప"; display: block; text-align: center; margin: 0 auto 3rem; padding-bottom: 1.2rem;
  font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.4 'Ramaraja', 'Noto Sans Telugu', serif; letter-spacing: 0.04em; color: #f3bb4f;
  background: url(/sb-art/om-divider.svg) center bottom / 220px auto no-repeat;
}
footer .ring-2.ring-white\/20 { --tw-ring-color: #f3bb4f; background: rgba(243, 187, 79, 0.1); }
footer h2.text-xl { font-family: var(--sb-head); font-weight: 400; letter-spacing: 0.05em; }
footer h2.text-xl + span { font-family: var(--sb-head); font-weight: 400; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f3bb4f; }
footer section a[class*="rounded-full"]:hover { background: var(--sb-saffron); }

/* The AI chat widget was removed on 2026-10-24. Browsers that still hold the old home page script (cached for up
   to an hour; Safari ignores the cache reset) would otherwise still draw its button. */
.fixed.bottom-5.right-5.z-50 { display: none !important; }

/* ---------- Header account menu (tools/header/menu.js): a gold-framed panel in the temple style ---------- */
header .sbh-menu {
  position: relative; width: min(24rem, calc(100vw - 1.5rem)); overflow: hidden; text-align: left; font-family: var(--sb-body); color: var(--sb-ink);
  background: var(--sb-cream) url(/sb-art/muggulu-light.svg) 0 0 / 120px repeat; border: 2px solid var(--sb-gold); border-radius: 8px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(214, 162, 67, 0.55), 0 30px 56px -28px rgba(26, 15, 79, 0.8);
}
header .sbh-top {
  position: relative; display: grid; justify-items: center; gap: 0.3rem; padding: 1.5rem 1.25rem 1.6rem; margin: 5px 5px 0; text-align: center; color: #fff;
  background: url(/sb-art/muggu-border.svg) bottom 6px center / 44px 22px repeat-x, url(/sb-art/lotus.svg) left -90px center / 220px no-repeat,
    url(/sb-art/lotus.svg) right -90px center / 220px no-repeat, var(--sb-band);
  border-radius: 4px 4px 0 0;
}
header .sbh-top::before, header .sbh-top::after {
  content: ""; position: absolute; width: 56px; height: 56px; pointer-events: none; opacity: 0.9;
  background: url(/sb-art/flourish.svg) center / contain no-repeat;
}
header .sbh-top::before { top: 6px; left: 6px; }
header .sbh-top::after { right: 6px; bottom: 6px; transform: rotate(180deg); }
header .sbh-avatar {
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 0.45rem; border-radius: 50%; object-fit: cover; overflow: hidden;
  background: var(--sb-indigo); color: #fff; font: 400 2rem/1 var(--sb-head); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sb-gold), 0 10px 24px -10px rgba(80, 30, 0, 0.7);
}
header .sbh-mantra { font: 400 1rem/1.3 'Ramaraja', 'Noto Sans Telugu', serif; color: #fff3dc; letter-spacing: 0.03em; }
header .sbh-name { font: 400 1.45rem/1.2 var(--sb-head); color: #fff; text-shadow: 0 1px 3px rgba(110, 40, 0, 0.35); overflow-wrap: anywhere; }
header .sbh-mail { max-width: 100%; font-size: 0.78rem; color: rgba(255, 255, 255, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header .sbh-x {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.2); color: #fff;
}
header .sbh-x:hover { background: rgba(255, 255, 255, 0.35); }
header .sbh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.9rem 0.85rem 0.3rem; }
header .sbh-tile {
  position: relative; display: grid; gap: 0.25rem; align-content: end; min-height: 7.4rem; padding: 0.9rem 0.9rem 0.85rem; border-radius: 6px; color: #fff; text-decoration: none;
  background: url(/sb-art/flourish.svg) top 6px right 6px / 44px no-repeat, url(/sb-art/mandala.svg) center / 120px repeat,
    linear-gradient(155deg, #33208a, var(--sb-indigo) 45%, var(--sb-indigo-ink));
  box-shadow: 0 16px 28px -20px rgba(26, 15, 79, 0.9); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
header .sbh-tile:hover, header .sbh-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 32px -20px rgba(26, 15, 79, 0.95); outline: none; }
header .sbh-tile.bowl, header .sbh-tile.ticket {
  background: url(/sb-art/flourish.svg) top 6px right 6px / 44px no-repeat, url(/sb-art/mandala.svg) center / 120px repeat,
    linear-gradient(155deg, #f6a531, #ec8216 50%, var(--sb-saffron-2));
  box-shadow: 0 16px 28px -20px rgba(150, 60, 0, 0.9);
}
header .sbh-tile.shield {
  grid-column: 1 / -1; min-height: 5.2rem; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: center;
  background: url(/sb-art/flourish.svg) top 6px right 6px / 44px no-repeat, url(/sb-art/mandala.svg) center / 120px repeat,
    linear-gradient(155deg, #9a2d1f, #7a1f16 50%, #521109);
}
header .sbh-tile.shield > svg { grid-row: span 2; }
header .sbh-tile > svg { color: #f3bb4f; margin-bottom: 0.35rem; }
header .sbh-tile.bowl > svg, header .sbh-tile.ticket > svg { color: #fff3dc; }
header .sbh-tile b { font: 400 1.08rem/1.2 var(--sb-head); letter-spacing: 0.02em; }
header .sbh-tile small { font-size: 0.74rem; line-height: 1.35; color: rgba(255, 255, 255, 0.82); }
header .sbh-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.95rem 0.85rem; }
header .sbh-out {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border: 1px solid var(--sb-gold); border-radius: 4px; cursor: pointer;
  background: #fff; color: var(--sb-indigo); font: 600 0.76rem/1 var(--sb-body); letter-spacing: 0.08em; text-transform: uppercase;
}
header .sbh-out:hover { background: var(--sb-indigo); color: #fff; border-color: var(--sb-indigo); }
header .sbh-links { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; }
header .sbh-links a { color: var(--sb-muted); text-decoration: none; }
header .sbh-links a:hover { color: var(--sb-saffron-2); text-decoration: underline; text-underline-offset: 3px; }
header .sbh-links i::before { content: "\00B7"; color: #c9b58f; }
@media (max-width: 639px) {
  header .sbh-wrap { position: fixed; left: 0.5rem; right: 0.5rem; top: 4.75rem; }
  header .sbh-menu { width: auto; }
  header .sbh-tile { min-height: 6.6rem; }
}

/* ---------- Alignment on phones (2026-11-12, found by scanning every page at 320 / 375 / 768 / 1280 px) ---------- */
/* Annadanam and Volunteer "Daily Time Slots": the two-column table was held at 360px, wider than its card on a phone,
   so it had its own sideways scrollbar. */
@media (max-width: 639px) { main table.min-w-\[360px\] { min-width: 0; } }
/* Sabarimala: a photo fixed at 340px lost its right edge on phones under 380px. */
figure.w-\[340px\] { max-width: 100%; }
/* Contact: long lines (address, email) wrap inside their card on small phones. */
html[data-sb-page="contact"] main :is(p, a, span, li) { overflow-wrap: anywhere; }
/* Sign-in: the page was 100dvw wide, which includes the scrollbar, so 15px on the right sat under it on desktop. */
div.min-h-\[100dvh\].w-\[100dvw\] { width: 100%; }
/* Temple calendar "Opening & Closing Schedule": five columns do not fit a phone, and the 700px table scrolled sideways
   inside its card. On phones each row is a small block: period, event, then Opens / Closes side by side, then notes. */
@media (max-width: 639px) {
  main table.min-w-\[700px\] { min-width: 0; display: block; }
  main table.min-w-\[700px\] thead { display: none; }
  main table.min-w-\[700px\] tbody { display: block; }
  main table.min-w-\[700px\] tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.15rem 1rem; padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(180, 150, 90, 0.35);
  }
  main table.min-w-\[700px\] tbody td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; overflow-wrap: anywhere; }
  main table.min-w-\[700px\] tbody td:nth-child(1) { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sb-saffron-2); }
  main table.min-w-\[700px\] tbody td:nth-child(2) { grid-column: 1 / -1; font-size: 1rem; font-weight: 600; color: var(--sb-indigo); margin-bottom: 0.2rem; }
  main table.min-w-\[700px\] tbody td:is(:nth-child(3), :nth-child(4))::before {
    display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sb-muted);
  }
  main table.min-w-\[700px\] tbody td:nth-child(3)::before { content: "Opens"; }
  main table.min-w-\[700px\] tbody td:nth-child(4)::before { content: "Closes"; }
  main table.min-w-\[700px\] tbody td:nth-child(5) { grid-column: 1 / -1; font-size: 0.85rem; color: var(--sb-muted); margin-top: 0.2rem; }
}
/* ...and on tablets held upright (640-820px) the five columns fit once the 700px minimum is dropped. */
@media (min-width: 640px) and (max-width: 820px) { main table.min-w-\[700px\] { min-width: 0; } }
