/* Public temple website. Brand colours (--brand, --accent, --soft) come from the temple's SevaDesk settings. */
:root {
  --brand: #b5462b;
  --accent: #e8890c;
  --soft: #fff4e3;
  /* neutrals are tinted with the temple's colour so they suit any brand */
  --ink: color-mix(in srgb, var(--brand) 25%, #101018);
  --ink-soft: color-mix(in srgb, var(--brand) 25%, #5a5a66);
  --line: color-mix(in srgb, var(--brand) 14%, #ececf0);
  --paper: #ffffff;
  --cream: color-mix(in srgb, var(--brand) 5%, #fbfbfd);
  --shadow: color-mix(in srgb, var(--brand) 45%, black);
  --display: 'Marcellus', Georgia, serif;
  --body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--brand); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brand); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.section { padding-block: 56px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.lead { font-size: 1.15rem; }

.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 2px solid var(--brand); cursor: pointer; font-family: inherit; }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header + menu */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px color-mix(in srgb, var(--shadow) 5%, transparent); }
.top .wrap { max-width: 1400px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; text-decoration: none; color: var(--brand); font-family: var(--display); font-size: 1.2rem; }
.brand.light { color: #fff; }
.menu { display: flex; align-items: center; gap: 10px; }
.menu > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu a { display: block; padding: 8px 7px; color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 500; border-radius: 6px; white-space: nowrap; }
.menu a:hover, .menu a.on { color: var(--brand); }
.menu .has-sub > a::after { content: ' ▾'; font-size: .7em; }
.menu .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--shadow) 30%, transparent); }
.menu .has-sub:hover > .sub, .menu .has-sub:focus-within > .sub { display: block; }
.menu .admin { color: #fff; padding: 8px 16px; flex: none; }
.nav-toggle, .burger { display: none; }

@media (max-width: 1240px) {
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .burger span { width: 24px; height: 2px; background: var(--ink); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-toggle:checked ~ .menu { display: flex; }
  .menu > ul { flex-direction: column; }
  .menu .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .menu .has-sub > a::after { content: ''; }
  .menu .admin { align-self: flex-start; margin-top: 8px; }
}

/* hero */
.hero { background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.18) 0 18%, transparent 19%), repeating-conic-gradient(from 0deg at 80% 30%, rgba(255,255,255,.06) 0 7deg, transparent 7deg 15deg), linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 65%, black)); color: #fff; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* optional banner picture (site.heroImage): a blurred copy fills the background, the whole picture sits on the right */
.hero.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(10,16,48,.78) 0%, rgba(10,16,48,.5) 60%, rgba(10,16,48,.35) 100%); }
.hero-photo { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; z-index: -2; filter: blur(18px) saturate(1.15); }
.hero-inner { padding-block: 80px 72px; max-width: 1160px; }
.hero.has-photo .hero-inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: center; padding-block: 56px; }
.hero-art { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .hero.has-photo .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 40px; }
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { max-width: 60ch; opacity: .92; }
.hero .eyebrow { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: var(--soft); margin: 0 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .btn { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero .btn.ghost { background: transparent; color: #fff; }

/* mantra marquee */
.mantra { overflow: hidden; background: var(--soft); border-block: 1px solid var(--line); padding: 14px 0; }
.mantra .track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.mantra span { font-weight: 700; font-size: 1.25rem; color: var(--brand); padding-right: 3rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mantra .track { animation: none; } }

/* events */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.event-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.event-card { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.event-card:hover { border-color: var(--accent); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--shadow) 40%, transparent); }
.event-card h3 { margin: 0 0 4px; color: var(--ink); }
.event-card p { margin: 0 0 4px; }
.date { flex: none; width: 62px; height: 66px; border-radius: 12px; background: var(--soft); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.date b { font-size: 1.6rem; }
.date span { font-size: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }
.when { color: var(--ink-soft); font-size: .9rem; }
.when.big { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.event-image { border-radius: 14px; margin-bottom: 20px; width: 100%; }
.crumbs { margin: 0 0 16px; }

/* quote, welcome, cards */
.quote { background: var(--cream); padding-block: 48px; text-align: center; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 auto; max-width: 52ch; color: var(--ink); }
.quote cite { display: block; margin-top: 10px; color: var(--ink-soft); font-style: normal; }
.welcome p { max-width: 70ch; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card h3 { color: var(--brand); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list li > span:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-soft); flex: 1; }
.form input, .form textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.form .row { display: flex; gap: 12px; }
@media (max-width: 520px) { .form .row { flex-direction: column; } }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.ok { background: #e8f4ec; color: #2f7a45; padding: 10px 12px; border-radius: 8px; margin: 0; }
.err { background: #fdecea; color: #b42318; padding: 10px 12px; border-radius: 8px; margin: 0; }

/* footer */
.foot { background: color-mix(in srgb, var(--brand) 45%, #070912); color: color-mix(in srgb, var(--soft) 85%, white); margin-top: 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 44px 24px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h3 { color: #fff; font-size: 1rem; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.foot p { margin: 0 0 6px; }
.foot a { color: color-mix(in srgb, var(--soft) 85%, white); }
.foot .muted { color: rgba(255,255,255,.66); }
.foot .legal { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 16px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.66); }

/* donate */
.h3 { font-size: 1.25rem; margin-top: 1.6em; }
.donate-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-quote { margin: 0 0 18px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; font-family: var(--display); font-size: 1.15rem; }
.ways { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ways li { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.way-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.give h2 { margin-bottom: 14px; }
.give-form { display: flex; flex-direction: column; gap: 16px; }
.give-form fieldset, .campaign-form fieldset { border: 0; padding: 0; margin: 0; }
.give-form legend, .campaign-form legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9rem; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.amounts { display: flex; flex-direction: column; gap: 8px; }
.amount { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.amount:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.amount input { accent-color: var(--brand); width: 18px; height: 18px; }
.amount-label { flex: 1; }
.amount b { font-size: 1.05rem; }
.other-input { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.other-input input { width: 110px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--ink-soft); }
.field input { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.field small { align-self: flex-end; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; align-self: stretch; text-align: center; }
.secure { margin: -6px 0 0; text-align: center; }
.test-note { background: #eef4ff; color: #1f3a93; padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.campaign h2 { font-size: 1.4rem; }
.campaign-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.campaign-form .field { align-self: stretch; }

/* family birthdays on the subscribe form */
.form fieldset.family { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.form fieldset.family legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; padding: 0 6px; }

/* weekly gatherings (home page, near the top) */
.gatherings { background: linear-gradient(180deg, transparent 0 140px, var(--cream) 140px); padding-bottom: 56px; }
.gatherings-band { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 85%, white), color-mix(in srgb, var(--brand) 70%, black)); color: #fff; text-align: center; padding: 40px 0 120px; }
.gatherings-band .eyebrow { color: var(--accent); opacity: 1; }
.gatherings-band h2 { color: #fff; margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: .02em; }
.gathering-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: -90px; }
.gathering { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--shadow) 45%, transparent); display: flex; flex-direction: column; text-align: center; }
.gathering-pic { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.35) 0 22%, transparent 23%), repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.12) 0 8deg, transparent 8deg 16deg), linear-gradient(160deg, color-mix(in srgb, var(--brand) 70%, white), color-mix(in srgb, var(--brand) 85%, black)); }
.gathering-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gathering-pic .badge { position: absolute; right: 14px; bottom: -18px; width: 46px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--shadow) 50%, transparent); }
.gathering-pic:not(.has-image) .badge { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; }
.gathering-pic .badge img { width: 70%; height: auto; }
.gathering-body { padding: 26px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.gathering-body h3 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.gathering-body p { color: var(--ink-soft); margin: 0 0 14px; }
.gathering-body .when { color: var(--brand); font-weight: 600; }
.gathering .join { margin-top: auto; align-self: center; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.gathering .join:hover { text-decoration: underline; }

/* founder (home page, at the bottom) */
.founder { background: linear-gradient(90deg, var(--accent) 0 26%, var(--cream) 26%); padding-block: 64px; }
.founder-inner { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 56px; align-items: center; }
.founder-pic { aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--shadow) 60%, transparent); display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.4) 0 20%, transparent 21%), repeating-conic-gradient(from 0deg at 50% 42%, rgba(255,255,255,.12) 0 7deg, transparent 7deg 14deg), linear-gradient(170deg, color-mix(in srgb, var(--brand) 70%, var(--accent)), color-mix(in srgb, var(--brand) 55%, black)); }
.founder-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-pic img.lotus { width: 34%; height: auto; padding: 14px; background: #fff; border-radius: 50%; margin-bottom: 16%; }
.founder-text .eyebrow { color: var(--ink-soft); }
.founder-text h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.verse { margin: 0 0 22px; padding-left: 18px; border-left: 3px solid var(--accent); }
.verse p { margin: 0; font-family: var(--display); font-size: 1.25rem; color: var(--brand); }
.verse cite { display: block; margin-top: 4px; font-style: normal; font-size: .9rem; color: var(--ink-soft); }
.founder-body p { color: var(--ink-soft); max-width: 62ch; }
.founder-body b { color: var(--ink); }
.founder-text .btn { margin-top: 8px; }
@media (max-width: 800px) {
  .founder { background: linear-gradient(180deg, var(--accent) 0 160px, var(--cream) 160px); padding-block: 40px 48px; }
  .founder-inner { grid-template-columns: 1fr; gap: 28px; }
  .founder-pic { max-width: 300px; width: 100%; justify-self: center; }
}

/* temple logo */
.brand .logo-mark { border-radius: 8px; }
.foot-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px; margin-bottom: 12px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.6); }
.foot-logo img { display: block; width: 150px; height: 150px; }

/* founder photo */
.founder-figure { margin: 0; }
.founder-pic.has-image img { object-position: 50% 18%; }
.founder-figure figcaption { margin-top: 10px; font-size: .75rem; text-align: center; }
.founder-figure figcaption a, .founder-figure figcaption span { color: var(--ink); opacity: .75; text-decoration: none; }
.founder-figure figcaption a:hover { text-decoration: underline; opacity: 1; }
@media (max-width: 800px) { .founder-figure { max-width: 300px; width: 100%; justify-self: center; } }

/* event registration page */
.form select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.register-eyebrow { color: var(--accent); }
.lead-in { color: var(--ink-soft); max-width: 60ch; margin: 0 0 22px; }
.register-form { padding: 26px; max-width: 720px; }
.register-form .age { max-width: 160px; }
.course-form .zip { max-width: 140px; }
.course-form select { width: 100%; }
.thanks { text-align: center; }
.thanks .lead-in { margin-inline: auto; }
.thanks .actions { justify-content: center; }

/* rich page content: intro, verses, steps, benefit cards, FAQ */
.prose .intro { font-size: 1.12rem; color: var(--ink); }
.verse-block { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--cream); border-radius: 0 14px 14px 0; }
.verse-block p { margin: 0; font-family: var(--display); font-size: 1.15rem; color: var(--brand); line-height: 1.5; }
.verse-block cite { display: block; margin: 6px 0 8px; font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.verse-block span { display: block; color: var(--ink-soft); }
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.step-list li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.step-list li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.step-list b, .benefit-grid b { display: block; color: var(--ink); }
.step-list span, .benefit-grid span { display: block; color: var(--ink-soft); font-size: .95rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.benefit-grid > div { padding: 16px 18px; border-radius: 12px; background: var(--cream); border-top: 3px solid var(--accent); }
.faq dt { font-weight: 700; color: var(--ink); margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); }
.page-register { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.page-register h2 { margin-bottom: 8px; }

/* Upcoming Festivals: one row that scrolls sideways (3 cards on wide screens, 2 on tablets, 1 + a peek on phones) */
.event-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; padding: 4px 2px 14px; scrollbar-width: none; }
.event-carousel::-webkit-scrollbar { display: none; }
.event-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.event-carousel > .event-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; min-width: 0; }
@media (max-width: 960px) { .event-carousel > .event-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .event-carousel > .event-card { flex-basis: 86%; } }
@media (prefers-reduced-motion: reduce) { .event-carousel { scroll-behavior: auto; } }
.carousel-nav { display: flex; align-items: center; gap: 8px; }
.carousel-nav a { margin-left: 8px; }
.carousel-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: background .2s, color .2s; }
.carousel-btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) { .carousel-btn { display: none; } }

/* patron levels on an appeal card (e.g. Nitya Sevak) */
.campaign-form .levels { align-self: stretch; margin: 0; }
.levels b small { font-weight: 500; color: var(--ink-soft); margin-left: 2px; }

/* songs (e.g. Guru Vandana): facts, then each verse with its translation */
.song-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.song-facts div { background: var(--cream); border-radius: 10px; padding: 10px 14px; }
.song-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.song-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.song { list-style: none; counter-reset: verse; padding: 0; margin: 18px 0; display: grid; gap: 18px; }
.song li { counter-increment: verse; position: relative; padding: 20px 22px 18px 64px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.song li::before { content: counter(verse); position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .9rem; }
.song-verse { margin: 0 0 12px; font-family: var(--display); font-size: 1.12rem; line-height: 1.6; color: var(--brand); }
.song-translation { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .song li { padding: 56px 16px 16px; } .song li::before { top: 14px; left: 16px; } }

.song-refrain { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--soft); border-left: 3px solid var(--accent); }
.song-refrain > span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.song-refrain .song-verse { margin-bottom: 6px; font-size: 1.02rem; }

.song-source { margin: 8px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.verse-block .song-note { margin-top: 6px; font-size: .78rem; font-style: italic; }

/* appeal progress (e.g. New Temple: $21,041 raised of $500,000) */
.progress { margin: 4px 0 16px; }
.progress-figures { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.progress-figures b { font-size: 1.25rem; color: var(--brand); }
.progress-bar { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 8px 0 6px; border: 1px solid var(--line); }
.progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--brand)); }

/* a page with an appeal's giving form (e.g. /new-temple-project) */
.page-give { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-give > .err, .page-give > .test-note { margin-bottom: 14px; }
.page-give-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .page-give-grid { grid-template-columns: 1fr; } }
.ways-card .ways { margin: 0; }

/* Course pages (e.g. /bhagavad-gita-course) */
.prose .course-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: -.4em 0 1.2em; }
.course-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 8px; }
.course-facts > div { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.course-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.course-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.course-languages { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.course-languages li { background: var(--soft); color: var(--brand); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.course-steps { padding-left: 1.2em; }
.course-steps li { margin-bottom: 8px; }
.course-quote { margin: 1.8em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.course-contact { max-width: 360px; }
.course-contact p { margin: 0; }
.course-contact p + p { margin-top: 6px; }
.prose .course-motto { margin-top: 1.6em; font-family: var(--display); font-size: 1.3rem; color: var(--brand); text-align: center; }
