:root {
  --p50: #fdf6ec; --p100: #f8e6c8; --p300: #e4b566; --p500: #c8862a; --p600: #a96d1c;
  --m600: #7b2d26; --m800: #4a1a15;
  --s50: #faf7f2; --s100: #f2ece1; --s200: #e5dbc9;
  --k700: #4a423a; --k900: #241f1b;
  --display: "Marcellus", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --deva: "Noto Serif Devanagari", serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--s50); color: var(--k900); font-family: var(--body); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--p600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.deva { font-family: var(--deva); }
.muted { color: var(--k700); }
.center { text-align: center; }

/* ---------- top strip + header ---------- */
.topbar { background: var(--m800); color: var(--s100); font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.topbar a { color: var(--s100); margin-left: 14px; }
.topbar a:hover { color: var(--p300); }

header.main { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--s200); }
header.main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--m600); color: var(--p300);
  display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--m800); display: block; }
.brand span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--k700); }

nav.primary { display: flex; align-items: center; gap: 2px; }
nav.primary > .item { position: relative; }
nav.primary > .item > a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px;
  font-weight: 500; color: var(--k700); text-decoration: none; }
nav.primary > .item > a:hover { background: var(--s100); color: var(--p600); }
nav.primary .drop { position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff;
  border: 1px solid var(--s200); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.12);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease; }
nav.primary > .item:hover .drop { opacity: 1; visibility: visible; transform: none; }
nav.primary .drop a { display: block; padding: 9px 16px; font-size: 13.5px; color: var(--k700); text-decoration: none; }
nav.primary .drop a:hover { background: var(--s100); color: var(--p600); }
.btn { display: inline-block; border: 0; cursor: pointer; border-radius: 999px; padding: 11px 26px;
  font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--body); }
.btn-primary { background: var(--p500); color: #fff; }
.btn-primary:hover { background: var(--p600); text-decoration: none; }
.btn-dark { background: var(--m600); color: #fff; }
.btn-dark:hover { background: var(--m800); text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; border-top: 1px solid var(--s200);
    max-height: 78vh; overflow-y: auto; padding: 10px 0; }
  nav.primary.open { display: flex; }
  nav.primary .drop { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding-left: 14px; }
  .menu-toggle { display: inline-block; background: none; border: 1px solid var(--s200);
    border-radius: 6px; padding: 9px 13px; cursor: pointer; font-size: 15px; }
  .header-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 74vh;
  display: grid; place-items: center; text-align: center; color: #fff; }
.slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 45%, rgba(0,0,0,.65)); }
.slide .inner { position: relative; z-index: 2; max-width: 780px; padding: 40px 24px; }
.slide .kicker { text-transform: uppercase; letter-spacing: .32em; font-size: 11.5px; color: var(--p300); margin-bottom: 14px; }
.slide h1 { color: #fff; }
.slide p { color: rgba(255,255,255,.9); max-width: 560px; margin: 18px auto 0; }
.slide .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.dots i.on { background: #fff; }

.page-hero { position: relative; min-height: 34vh; display: grid; place-items: center;
  text-align: center; color: #fff; background: var(--m800); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero .inner { position: relative; z-index: 2; padding: 54px 20px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: rgba(255,255,255,.85); margin: 10px 0 0; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.white { background: #fff; }
section.dark { background: var(--m800); color: var(--s100); }
section.dark h2 { color: #fff; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .kicker { text-transform: uppercase; letter-spacing: .25em; font-size: 11px; color: var(--p600); margin-bottom: 8px; }
.sec-head .rule { width: 88px; height: 1px; background: var(--p500); margin: 16px auto 0; }

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--s200); border-radius: 12px; overflow: hidden;
  transition: .25s ease; display: block; color: inherit; text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.10); text-decoration: none; }
.card .thumb { aspect-ratio: 16/10; background: var(--s100); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 20px; }
.card .meta { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--p600); }
.card h3 { font-size: 19px; color: var(--m800); margin: 6px 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--k700); }

.pillar { background: #fff; border: 1px solid var(--s200); border-radius: 12px; padding: 30px 24px;
  text-align: center; text-decoration: none; color: inherit; transition: .25s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.10); text-decoration: none; }
.pillar .icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--p100); display: grid; place-items: center; font-size: 26px; }

.event-row { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--s200);
  border-radius: 12px; padding: 20px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.event-row:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); text-decoration: none; }
.event-row .date { flex: 0 0 88px; background: var(--m600); color: #fff; border-radius: 8px;
  text-align: center; padding: 12px 0; }
.event-row .date b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; }
.event-row .date span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 620px) { .event-row { flex-direction: column; align-items: flex-start; } }

.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 54px; color: var(--p300); }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.8); }

.quote { background: var(--s50); border: 1px solid var(--s200); border-radius: 12px; padding: 28px; margin: 0; }
.quote blockquote { margin: 0; font-style: italic; color: var(--k700); }
.quote figcaption { margin-top: 18px; font-size: 14px; }
.quote figcaption b { color: var(--m800); }
.quote figcaption span { display: block; font-size: 12px; color: var(--k700); }

.cta { background: var(--p500); color: #fff; padding: 54px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: 4px 0 0; color: rgba(255,255,255,.9); }

/* ---------- prose ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; color: var(--k700); }
.prose h2, .prose h3 { color: var(--m800); margin-top: 1.6em; }
.prose img { border-radius: 10px; margin: 1.4em 0; }
.prose img.profile-portrait {
  width: 360px;
  height: 420px;
  max-width: 100%;
  object-fit: contain;
  background: var(--s50);
  border: 1px solid var(--s200);
  padding: 10px;
}
.prose blockquote { border-left: 3px solid var(--p500); margin: 1.4em 0; padding-left: 18px; font-style: italic; }
.prose code { background: var(--s100); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- filters, gallery, forms ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filters a { border: 1px solid var(--s200); border-radius: 999px; padding: 8px 18px; font-size: 13.5px;
  color: var(--k700); text-decoration: none; }
.filters a.on, .filters a:hover { background: var(--p500); border-color: var(--p500); color: #fff; text-decoration: none; }

.masonry { columns: 3; column-gap: 18px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }
.masonry figure { break-inside: avoid; margin: 0 0 18px; background: #fff; border: 1px solid var(--s200);
  border-radius: 12px; overflow: hidden; }
.masonry figcaption { padding: 12px; font-size: 13.5px; text-align: center; color: var(--k700); }

.video { background: #fff; border: 1px solid var(--s200); border-radius: 12px; overflow: hidden; }
.video .frame { aspect-ratio: 16/9; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video h3 { padding: 16px; margin: 0; font-size: 17px; color: var(--m800); }

form.styled { display: grid; gap: 14px; max-width: 560px; }
form.styled input, form.styled select, form.styled textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--s200); border-radius: 9px;
  font-family: var(--body); font-size: 15px; background: #fff; }
form.styled input:focus, form.styled textarea:focus, form.styled select:focus {
  outline: 2px solid var(--p300); border-color: var(--p500); }
form.styled ul.errorlist { margin: 0; padding-left: 18px; color: #b3261e; font-size: 13px; }
.notice { background: var(--p100); border: 1px solid var(--p300); color: var(--m800);
  padding: 14px 18px; border-radius: 9px; margin-bottom: 20px; }
.panel { background: var(--s50); border: 1px solid var(--s200); border-radius: 12px; padding: 30px; }

/* ---------- footer ---------- */
footer.main { background: var(--m800); color: var(--s100); margin-top: 70px; }
footer.main .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 56px 0; }
@media (max-width: 900px) { footer.main .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { footer.main .cols { grid-template-columns: 1fr; } }
footer.main h4 { color: var(--p300); font-size: 16px; }
footer.main a { color: var(--s100); font-size: 14px; }
footer.main a:hover { color: var(--p300); }
footer.main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.main .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------- animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- topbar marquee ---------- */
.marquee { width: 100%; overflow: hidden; padding: 8px 0; }
.marquee-track { display: inline-block; white-space: nowrap; will-change: transform;
  animation: marquee 24s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ---------- sahitya card actions ---------- */
.book-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.book-actions .btn { width: 100%; text-align: center; padding: 9px 16px; font-size: 14px; }

/* ---------- Devanagari typography ----------
   Wide letter-spacing shatters Devanagari: the matras and conjuncts detach,
   so "णमो जिणाणं" renders as "ण मो  जि णा णं". Latin-only tracking is fine,
   but this site is Hindi, so tracking is dialled back everywhere it applies
   to content text, and uppercase is dropped (meaningless in Devanagari). */
.slide .kicker,
.sec-head .kicker,
.card .meta,
.stat span,
.event-row .date span,
.brand span {
  letter-spacing: .04em;
  text-transform: none;
}
.slide .kicker, .sec-head .kicker { font-size: 12.5px; }
.stat span { font-size: 13px; }
.card .meta { font-size: 12px; }

/* ---------- committee list ----------
   Keep the roster dense; show a real photo only when one is available. */
.member-list { columns: 2; column-gap: 40px; }
@media (max-width: 720px) { .member-list { columns: 1; } }
.member {
  break-inside: avoid;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--s200, rgba(0,0,0,.08));
}
.member-photo { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; }
.member-info { min-width: 0; flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.member-name { font-weight: 500; color: var(--k700); }
.member-place { font-size: 13px; color: var(--p600); white-space: nowrap; }

/* ---------- pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.pager a { font-weight: 500; }
.pager span { font-size: 14px; color: var(--k700); }

/* ---------- bilingual navigation ---------- */
nav.primary .item > a { display: flex; flex-direction: column; align-items: center; line-height: 1.25; gap: 1px; }
.nav-hi { font-size: 15px; }
.nav-en { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .62; font-weight: 500; }

/* ==========================================================================
   Aarti — virtual aarti page
   The whole stage takes the thali cursor so moving the mouse round the
   portrait reads as circling the lamp. PNG, not SVG: Safari ignores SVG
   cursors. Hotspot sits on the flame, not the plate.
   ========================================================================== */
.aarti-stage {
  background: radial-gradient(120% 90% at 50% 0%, #3b1d12 0%, #24120b 55%, #180c07 100%);
  color: #f6e6cf; padding: 56px 0 80px; position: relative; overflow: hidden;
}
/* the thali must own the whole page, not just the dark band — otherwise it
   reverts to a pointer over the header, footer and page margins. Fallback is
   `auto`, never `pointer`: a hand cursor while the PNG loads looks broken. */
body.aarti-page,
body.aarti-page * { cursor: url("/static/img/aarti-thali.5d4718088c4c.png") 32 8, auto !important; }

.aarti-head { text-align: center; margin-bottom: 34px; }
.aarti-head .kicker { color: var(--p300, #e2ac44); font-size: 12.5px; letter-spacing: .04em; margin-bottom: 8px; }
.aarti-head h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; color: #fff; }
.aarti-hint { font-size: 14px; color: rgba(246,230,207,.62); margin: 0; }
.aarti-hint span { opacity: .75; font-size: 13px; }

/* ---- shrine: lamp | portrait | lamp ---- */
.aarti-shrine {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 5vw, 70px); margin: 0 auto 46px;
}
.aarti-photo { position: relative; margin: 0; flex: 0 1 460px; }
.aarti-photo img {
  width: 100%; border-radius: 18px; position: relative; z-index: 1;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.halo {
  position: absolute; inset: -9% -9% -4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255,190,90,.40), rgba(255,160,60,.14) 45%, transparent 70%);
  filter: blur(14px); animation: halo-breathe 5.5s ease-in-out infinite;
}
@keyframes halo-breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---- the two flames ---- */
.diya { position: relative; width: 74px; flex: 0 0 auto; text-align: center; }
.lamp {
  display: block; width: 62px; height: 26px; margin: 0 auto;
  border-radius: 0 0 40px 40px / 0 0 30px 30px;
  background: linear-gradient(180deg, #a9691f, #6d3d12);
  box-shadow: inset 0 3px 5px rgba(255,214,150,.45), 0 8px 20px rgba(0,0,0,.45);
}
.flame {
  display: block; width: 22px; height: 44px; margin: 0 auto -6px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, #fff3c4 0%, #ffd97a 20%, #ffb43c 42%, #f4791f 78%, #d9520e 100%);
  box-shadow: 0 0 26px 8px rgba(255,150,40,.42), 0 0 60px 18px rgba(255,120,20,.20);
  transform-origin: 50% 100%;
  animation: flicker 1.5s ease-in-out infinite alternate;
}
.flame-core {
  display: block; width: 9px; height: 20px; margin: 15px auto 0;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #fffdf2, #ffe9a8 60%, rgba(255,233,168,0));
  animation: flicker 1.1s ease-in-out infinite alternate-reverse;
}
.diya-right .flame { animation-delay: .45s; }
.diya-right .flame-core { animation-delay: .3s; }
@keyframes flicker {
  0%   { transform: scale(1) rotate(-2.5deg); }
  50%  { transform: scale(1.06, .96) rotate(1.5deg); }
  100% { transform: scale(.95, 1.07) rotate(2.5deg); }
}

/* ---- verses ---- */
.aarti-text { max-width: 620px; margin: 0 auto; text-align: center; }
.verse {
  font-family: var(--deva, serif); font-size: 19px; line-height: 2.05;
  color: #f3dfc2; margin: 0 0 30px; padding-bottom: 26px;
  border-bottom: 1px solid rgba(246,230,207,.12);
}
.verse:last-child { border-bottom: 0; }
.verse b { color: var(--p300, #f0c069); font-weight: 600; }

@media (max-width: 720px) {
  .aarti-shrine { gap: 6px; }
  .diya { width: 46px; }
  .lamp { width: 40px; height: 18px; }
  .flame { width: 16px; height: 32px; }
  .verse { font-size: 17px; line-height: 1.95; }
}
@media (prefers-reduced-motion: reduce) {
  .flame, .flame-core, .halo { animation: none; }
}

/* ---- pushpanjali: petals that follow the thali, and drift down the sides ---- */
.petal {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 3;
  width: 13px; height: 13px;
  border-radius: 50% 0 50% 50%;           /* teardrop petal */
  will-change: transform, opacity;
}
.petal.p-marigold { background: linear-gradient(140deg, #ffd45e, #f08a1d); }
.petal.p-rose     { background: linear-gradient(140deg, #ff9db6, #e04b74); }
.petal.p-white    { background: linear-gradient(140deg, #fffdf6, #f3e2c0); }
.petal.p-saffron  { background: linear-gradient(140deg, #ffbc63, #e8631c); }

@keyframes petal-fall {
  0%   { opacity: 0;   transform: translate3d(0,0,0) rotate(0deg) scale(.5); }
  12%  { opacity: .95; }
  100% { opacity: 0;   transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .petal { display: none; } }
