/* =====================================================================
   Srimath Pamban Swamigal Devotees Association Centre
   Public stylesheet — mobile first

   Design notes
   ------------
   • The temple doorway: photos sit in an arched frame (.arch).
   • The kaavi wall: red-ochre / lime-white stripes (.kavi) mark the
     threshold between sections, as they mark Tamil temple walls.
   • Two grounds alternate: the lamp-lit sanctum (dark) and the
     lime-washed prakaram (stone).
   • Type: Marcellus (English display), Noto Serif Tamil (Tamil display),
     Mukta Malar (body — one family drawn for Tamil and Latin together).
   ===================================================================== */

/* ---------- Self-hosted fonts (see assets/fonts/README.txt) ---------- */
@font-face {
  font-family: "Marcellus";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mukta-malar-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mukta-malar-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/mukta-malar-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/mukta-malar-tamil-400-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/mukta-malar-tamil-600-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Mukta Malar";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/mukta-malar-tamil-700-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Noto Serif Tamil";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/noto-serif-tamil-tamil-600-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: "Noto Serif Tamil";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/noto-serif-tamil-tamil-700-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

/* ---------- Tokens ---------- */
:root {
  /* Sanctum — lamp-lit inner shrine */
  --sanctum:      #3E0B10;
  --sanctum-2:    #551319;
  --sanctum-3:    #2C070B;

  /* Temple colours */
  --kumkum:       #9E1B22;
  --ochre:        #B5452C;   /* kaavi stripe */
  --turmeric:     #E8962A;   /* the one bright accent */
  --turmeric-2:   #F2AE4E;
  --brass:        #C9A55A;
  --brass-soft:   #E4CF9E;

  /* Prakaram — lime-washed stone */
  --stone:        #F6F0E6;
  --stone-2:      #EEE4D4;
  --paper:        #FFFCF6;
  --line:         #E2D4BF;
  --line-2:       #CDB99A;

  /* Text */
  --ink:          #25140F;
  --ink-2:        #5F4A40;
  --ink-3:        #8A7466;
  --on-dark:      #F6EBDC;
  --on-dark-2:    #D2BBA3;
  --on-dark-3:    #A68E78;

  /* Type */
  --f-display: "Marcellus", "Noto Serif Tamil", Georgia, "Times New Roman", serif;
  --f-display-ta: "Noto Serif Tamil", "Mukta Malar", serif;
  --f-body: "Mukta Malar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space & shape */
  --wrap: 1160px;
  --gutter: 20px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --header-h: 64px;

  --shadow-1: 0 1px 2px rgba(62, 11, 16, .06), 0 4px 14px rgba(62, 11, 16, .06);
  --shadow-2: 0 2px 6px rgba(62, 11, 16, .08), 0 18px 40px rgba(62, 11, 16, .14);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--kumkum); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
p { margin: 0 0 1em; }
p, dd, h3, li { overflow-wrap: break-word; }   /* long Tamil compounds may break rather than overflow */
p:last-child { margin-bottom: 0; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 .45em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h2 { font-size: var(--fs, 2rem); }
h3 {
  font-family: var(--f-body);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .35em;
}

:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 3px; border-radius: 4px; }

/* Tamil: its own display face, more leading, no tracking */
[lang="ta"], .lang-ta { letter-spacing: 0 !important; text-transform: none !important; }
h1.lang-ta, h2.lang-ta, h1[lang="ta"], h2[lang="ta"] {
  font-family: var(--f-display-ta);
  font-weight: 700;
  line-height: 1.4;
}
h2.lang-ta, h2[lang="ta"] { font-size: calc(var(--fs, 2rem) * .8); }
p.lang-ta, .lang-ta p { line-height: 1.8; }

/* ---------- Language switching ----------
   Only the inactive language is hidden, so each element keeps the
   display value its own rule gives it. The class sits on <html> and is
   set in <head> before first paint. */
html:not(.is-ta) .lang-ta { display: none !important; }
html.is-ta .lang-en { display: none !important; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: 64px; }
.section--stone { background: var(--stone); }
.section--sanctum {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(232, 150, 42, .14), transparent 60%),
    var(--sanctum);
  color: var(--on-dark);
}
.section--sanctum h2 { color: var(--on-dark); }
.section--sanctum a { color: var(--turmeric-2); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--turmeric); color: var(--sanctum);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Section headings */
.sec-head { margin-bottom: 32px; }
.sec-head h2 { --fs: clamp(1.9rem, 5.2vw + .4rem, 2.9rem); }
.sec-head--center { text-align: center; max-width: 680px; margin-inline: auto; }
.sec-head__aside { color: var(--ink-2); max-width: 46ch; }
.section--sanctum .sec-head__aside { color: var(--on-dark-2); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--kumkum);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}
.sec-head--center .eyebrow { justify-content: center; }
.section--sanctum .eyebrow { color: var(--brass); }

.minihead {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.minihead--brass { color: var(--brass); }

.lead { font-size: 1.08rem; color: var(--ink-2); }
.section--sanctum .lead { color: var(--on-dark-2); }

.empty {
  padding: 28px 20px; text-align: center; color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--paper);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .96rem; line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--turmeric { background: var(--turmeric); color: var(--sanctum-3); }
.btn--turmeric:hover { background: var(--turmeric-2); }
.btn--line { border-color: rgba(246, 235, 220, .38); color: var(--on-dark); background: transparent; }
.btn--line:hover { border-color: var(--brass-soft); background: rgba(246, 235, 220, .06); }

/* ---------- Signature: kaavi temple-wall stripe ---------- */
.kavi {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 18px, var(--stone) 18px 36px);
}
.kavi--thin { height: 8px; }

/* ---------- Signature: temple arch frame ---------- */
.arch { position: relative; margin: 0; }
.arch img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 14px 14px;
  background: var(--sanctum-2);
}
.arch::after {                     /* brass inlay tracing the arch */
  content: ""; position: absolute; inset: -9px;
  border: 1px solid var(--brass);
  border-radius: 999px 999px 20px 20px;
  opacity: .7; pointer-events: none;
}

/* =====================================================================
   Top bar + header
   ===================================================================== */
.topbar { background: var(--sanctum-3); color: var(--on-dark-2); font-size: .82rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar__contact { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar__contact a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--on-dark-2); text-decoration: none; white-space: nowrap;
}
.topbar__contact a:hover { color: var(--on-dark); }
.topbar .hide-sm { display: none; }

.langswitch {
  display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px;
  background: rgba(246, 235, 220, .09); border-radius: 999px;
}
.langswitch button {
  border: 0; background: transparent; color: var(--on-dark-2);
  min-height: 30px; padding: 3px 13px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.langswitch button[aria-pressed="true"] { background: var(--brass); color: var(--sanctum-3); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 246, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand__mark {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sanctum); color: var(--turmeric);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .5);
}
.brand__logo {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--brass), var(--shadow-1);
}
.brand__text { min-width: 0; line-height: 1.15; }
.brand__pre {
  display: block; margin-bottom: 2px;
  font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--kumkum); white-space: nowrap;
}
.brand__pre.lang-ta { font-size: .74rem; font-weight: 600; }
.brand__name {
  display: block;
  font-family: var(--f-display); font-size: 1.08rem; color: var(--sanctum);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__name.lang-ta { font-family: var(--f-display-ta); font-weight: 700; font-size: 1.05rem; }
.brand__sub.lang-ta { font-weight: 600; font-size: .72rem; }
@media (max-width: 359px) {
  .arch--hero { width: 44%; }
  .hero__grid { gap: 20px; padding-block: 22px 36px; }
  .hero__tagline { display: none; }
  .brand__name { white-space: normal; font-size: 1rem; line-height: 1.2; }
  .brand__name.lang-ta { font-size: .9rem; line-height: 1.25; }
  .brand__sub { display: none; }
  .lifeline li { grid-template-columns: 72px 1fr; gap: 12px; }
}
.brand__sub {
  display: block; margin-top: 3px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}

.navtoggle {
  flex-shrink: 0; width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  color: var(--sanctum);
}
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background .2s ease;
}
.navtoggle span { position: relative; }
.navtoggle span::before, .navtoggle span::after { content: ""; position: absolute; left: 0; }
.navtoggle span::before { top: -6px; }
.navtoggle span::after  { top: 6px; }
.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: 6px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { border-bottom: 1px solid var(--stone-2); }
.nav li.nav__cta { border: 0; padding-top: 14px; }
.nav a:not(.btn) {
  display: block; padding: 14px 2px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--kumkum); }
.nav .btn { width: 100%; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(232, 150, 42, .20), transparent 62%),
    linear-gradient(180deg, var(--sanctum) 0%, var(--sanctum-3) 100%);
  color: var(--on-dark);
}
.hero__glow {                           /* faint kolam dot field */
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(228, 207, 158, .16) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero__grid {
  position: relative;
  display: grid; gap: 26px;
  padding-block: 30px 44px;
}
.hero__media { display: flex; justify-content: center; }
.arch--hero { width: min(56%, 230px); }
.arch--hero img { animation: archIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes archIn {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 14px 14px); }
  to   { clip-path: inset(0 0 0 0 round 999px 999px 14px 14px); }
}

.hero__text { text-align: center; }
.hero__chant {
  margin: 0 0 14px;
  font-family: var(--f-display-ta); font-weight: 600;
  font-size: .95rem; color: var(--brass);
}
.hero__title {
  color: var(--on-dark);
  font-size: clamp(2.05rem, 7.2vw + .3rem, 3.7rem);
  margin-bottom: .35em;
}
h1.hero__title[lang="ta"] { font-size: clamp(1.75rem, 6vw + .3rem, 3.05rem); margin-bottom: .2em; }
.hero__translit {
  margin: 0 0 10px;
  font-family: var(--f-display); font-size: clamp(1.1rem, 2.4vw + .5rem, 1.45rem);
  color: var(--on-dark-2); letter-spacing: .01em;
}
.hero__org {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brass); white-space: nowrap;
}
.hero__org::before, .hero__org::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.hero__org .lang-ta { font-size: .86rem; font-weight: 600; }
.hero__tagline {
  font-size: 1.1rem; color: var(--on-dark-2);
  max-width: 34ch; margin: 0 auto 22px;
  text-wrap: balance;
}

/* Next-prayer card */
.now {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  max-width: 440px; margin: 0 auto 24px;
  padding: 16px 16px 16px 20px;
  text-align: left;
  background: rgba(246, 235, 220, .06);
  border: 1px solid rgba(201, 165, 90, .38);
  border-radius: var(--r);
}
.now__lamp {                          /* a small flame */
  flex: 0 0 auto; width: 14px; height: 14px; margin: 0 4px;
  background: var(--turmeric);
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  box-shadow: 0 0 12px 2px rgba(232, 150, 42, .55);
}
.now.is-live .now__lamp { animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: rotate(-45deg) scale(1);    box-shadow: 0 0 12px 2px rgba(232, 150, 42, .55); }
  45%      { transform: rotate(-41deg) scale(1.1);  box-shadow: 0 0 20px 5px rgba(232, 150, 42, .75); }
  70%      { transform: rotate(-48deg) scale(.95);  box-shadow: 0 0 10px 2px rgba(232, 150, 42, .5); }
}
.now__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.now__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass);
}
.now.is-live .now__label { color: var(--turmeric-2); }
.now__title { font-size: 1.1rem; font-weight: 700; color: var(--on-dark); line-height: 1.3; }
.now__meta { font-size: .9rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.now__meta strong { color: var(--turmeric-2); font-weight: 700; }
.now__link {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--on-dark); background: rgba(246, 235, 220, .08);
}
.now__link svg { transform: rotate(-90deg); }
.now__link:hover { background: rgba(246, 235, 220, .16); }

.hero__cta { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin-inline: auto; }

/* =====================================================================
   Today at the Centre
   ===================================================================== */
.today-date {
  font-family: var(--f-display); font-size: 1.25rem; color: var(--sanctum);
  margin-bottom: 6px;
}
.today-date .lang-ta { font-family: var(--f-display-ta); font-weight: 600; font-size: 1.05rem; }

.schedule { display: grid; gap: 28px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.slot {
  display: grid; grid-template-columns: 62px 1fr; column-gap: 14px;
  transition: opacity .3s ease;
}
.slot__time { padding-top: 16px; text-align: right; line-height: 1; }
.slot__hm { display: block; font-family: var(--f-display); font-size: 1.4rem; color: var(--sanctum); font-variant-numeric: tabular-nums; }
.slot__ap { display: block; margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }

.slot__body {
  position: relative;
  padding: 14px 0 22px 22px;
  border-left: 1px solid var(--line-2);
}
.slot:last-child .slot__body { border-left-color: transparent; }
.slot__body::before {                  /* timeline bead */
  content: ""; position: absolute; left: -7px; top: 20px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--stone); border: 2px solid var(--brass);
}
.slot__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.slot__head h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.slot__desc { font-size: .93rem; color: var(--ink-2); margin-bottom: 6px; }
.slot__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--ink-3); margin: 0;
}
.slot__meta .icon { flex-shrink: 0; }

.slot__status:empty { display: none; }
.slot__status {
  flex-shrink: 0; margin-top: 3px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}

/* states set by main.js */
.slot.is-done { opacity: .5; }
.slot.is-done .slot__body::before { background: var(--brass); border-color: var(--brass); }
.slot.is-done .slot__status { color: var(--ink-3); background: var(--stone-2); }

.slot.is-live .slot__body::before {
  background: var(--turmeric); border-color: var(--turmeric);
  box-shadow: 0 0 0 5px rgba(232, 150, 42, .22);
  animation: bead 2s ease-in-out infinite;
}
@keyframes bead { 50% { box-shadow: 0 0 0 9px rgba(232, 150, 42, .10); } }
.slot.is-live .slot__status { background: var(--turmeric); color: var(--sanctum-3); }
.slot.is-live h3 { color: var(--sanctum); }

.slot.is-next .slot__body::before { border-color: var(--kumkum); }
.slot.is-next .slot__status { color: var(--kumkum); box-shadow: inset 0 0 0 1px var(--kumkum); }

/* Weekly / special poojas */
.schedule__week {
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
}
.schedule__week .minihead:not(:first-child) { margin-top: 24px; }
.weeklist { list-style: none; margin: 0; padding: 0; }
.weeklist li {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 10px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--stone-2);
  font-size: .94rem;
}
.weeklist li:last-child { border-bottom: 0; }
.weeklist__day { font-weight: 700; color: var(--kumkum); font-size: .84rem; }
.weeklist__what { color: var(--ink); min-width: 0; }
.weeklist__time { color: var(--ink-2); font-family: var(--f-display); white-space: nowrap; font-size: .95rem; }
/* Mukta Malar draws short numerals (to sit with Tamil); stand-alone times use Marcellus' full-height figures */
.t { font-family: var(--f-display); letter-spacing: .02em; }
.weeklist li.is-today {
  margin-inline: -12px; padding-inline: 12px; border-radius: var(--r-sm);
  background: rgba(232, 150, 42, .12); border-bottom-color: transparent;
}
.schedule__note {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-2);
}

/* =====================================================================
   About
   ===================================================================== */
.about { display: grid; gap: 44px; }
.arch--about { width: min(74%, 340px); margin-inline: auto; }
.about__body h2 { --fs: clamp(1.9rem, 5vw + .4rem, 2.7rem); }

.offer { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.offer li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.offer__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--kumkum); background: var(--stone);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.offer h3 { font-size: 1.02rem; margin: 2px 0 2px; }
.offer p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* =====================================================================
   Srimath Pamban Swamigal
   ===================================================================== */
.saint .wrap { display: grid; gap: 48px; }
.saint .wrap > *, .saint__intro > *, .about > *, .schedule > *, .contact > *, .donate__grid > *, .hero__grid > * { min-width: 0; }
.saint__intro { display: grid; gap: 40px; }
.saint__portrait { margin: 0; text-align: center; }
.arch--portrait { width: min(64%, 280px); margin: 0 auto 22px; }
.saint__portrait figcaption { display: grid; gap: 2px; color: var(--on-dark-2); font-size: .92rem; }
.saint__years { font-family: var(--f-display); color: var(--brass); letter-spacing: .06em; }

.saint__text h2 { --fs: clamp(2rem, 5.4vw + .4rem, 3rem); }

.figures {
  display: grid; gap: 0; margin: 28px 0 0;
  border-top: 1px solid rgba(201, 165, 90, .3);
}
.figures > div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(201, 165, 90, .3);
}
.figures dd {
  order: -1; margin: 0; min-width: 4.2ch;
  font-family: var(--f-display); font-size: 2.1rem; line-height: 1;
  color: var(--brass-soft); font-variant-numeric: tabular-nums;
}
.figures dt { font-size: .92rem; color: var(--on-dark-2); }

.lifeline { list-style: none; margin: 0; padding: 0; }
.lifeline li {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 15px 0; border-top: 1px solid rgba(201, 165, 90, .22);
}
.lifeline li:last-child { border-bottom: 1px solid rgba(201, 165, 90, .22); }
.lifeline li > *, .weeklist li > *, .offer li > *, .contact__list > li > *, .slot > * { min-width: 0; }
.lifeline__year { font-family: var(--f-display); font-size: 1.12rem; color: var(--brass); line-height: 1.4; }
.lifeline__year .lang-ta { font-family: var(--f-body); font-weight: 700; font-size: .95rem; }
.lifeline p { color: var(--on-dark); font-size: .98rem; }

.practice { display: grid; gap: 16px; align-content: start; }
.practice__item {
  padding: 22px 22px 20px;
  border: 1px solid rgba(201, 165, 90, .35);
  border-radius: var(--r);
  background: rgba(246, 235, 220, .04);
}
.practice__item h3 { color: var(--turmeric-2); font-size: 1.1rem; }
.practice__item p { color: var(--on-dark-2); font-size: .95rem; }

/* =====================================================================
   Events
   ===================================================================== */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ev {
  display: grid; grid-template-columns: 70px 1fr; gap: 16px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.leaf {                                 /* a calendar leaf */
  align-self: start;
  display: grid; text-align: center; overflow: hidden;
  border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1);
}
.leaf__month {
  background: var(--kumkum); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  padding: 4px 2px;
}
.leaf__day { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.15; color: var(--sanctum); padding-top: 4px; }
.leaf__dow { font-size: .7rem; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; }
.ev--featured .leaf__month { background: var(--turmeric); color: var(--sanctum-3); }

.ev__body { min-width: 0; }
.ev__tag {
  margin: 0 0 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #9A5311;
}
.ev__body h3 { font-size: 1.15rem; }
.ev__desc { font-size: .94rem; color: var(--ink-2); margin-bottom: 10px; }
.ev__meta {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2);
}
.ev__meta li { display: flex; align-items: center; gap: 7px; }
.ev__meta .icon { flex-shrink: 0; color: var(--ink-3); }

.addcal { font-size: .88rem; }
.addcal summary {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 7px 15px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 700; color: var(--sanctum);
  cursor: pointer; list-style: none; user-select: none;
}
.addcal summary::-webkit-details-marker { display: none; }
.addcal summary:hover { border-color: var(--kumkum); }
.addcal[open] summary { background: var(--sanctum); color: var(--on-dark); border-color: var(--sanctum); }
.addcal__menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.addcal__menu a {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--stone); color: var(--ink); font-weight: 600; text-decoration: none;
}
.addcal__menu a:hover { background: var(--stone-2); }

.ev__img { grid-column: 1 / -1; margin: 0; }
.ev__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); }

/* =====================================================================
   Video
   ===================================================================== */
.video__frame {
  position: relative; max-width: 960px; margin-inline: auto;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sanctum-3);
  box-shadow: 0 0 0 1px rgba(201, 165, 90, .35), 0 30px 60px rgba(0, 0, 0, .35);
}
.video__frame iframe, .video__frame video { width: 100%; height: 100%; border: 0; display: block; }
.video__poster, .video__soon {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0;
  display: grid; place-items: center; background: var(--sanctum-3); color: var(--on-dark);
}
.video__poster img, .video__soon img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75;
  transition: transform .6s ease, opacity .3s ease;
}
.video__poster:hover img { transform: scale(1.03); opacity: .85; }
.video__play {
  position: relative; z-index: 1;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: var(--turmeric); color: var(--sanctum-3);
  box-shadow: 0 0 0 10px rgba(232, 150, 42, .22);
  transition: transform .2s ease;
}
.video__poster:hover .video__play { transform: scale(1.06); }
.video__label, .video__soon span {
  position: absolute; z-index: 1; bottom: 18px; left: 0; right: 0; text-align: center;
  font-size: .9rem; font-weight: 600; color: var(--on-dark);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* =====================================================================
   Gallery
   ===================================================================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gallery-filters button {
  min-height: 40px; padding: 7px 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: .86rem; font-weight: 600;
  transition: all .15s ease;
}
.gallery-filters button:hover { border-color: var(--kumkum); color: var(--kumkum); }
.gallery-filters button[aria-pressed="true"] { background: var(--sanctum); border-color: var(--sanctum); color: var(--on-dark); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item {
  position: relative; margin: 0; overflow: hidden; cursor: zoom-in;
  border-radius: var(--r-sm); background: var(--stone-2);
}
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(44, 7, 11, .85));
  color: var(--on-dark); font-size: .8rem; font-weight: 600;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .gallery-item figcaption { opacity: 1; } }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(28, 5, 8, .95);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: var(--r-sm); }
.lightbox__cap { margin: 14px 0 0; text-align: center; color: var(--on-dark-2); font-size: .92rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(246, 235, 220, .3); background: rgba(246, 235, 220, .1);
  color: var(--on-dark); font-size: 1.5rem; line-height: 1;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   Donate
   ===================================================================== */
.donate__grid { display: grid; gap: 32px; align-items: center; }
.donate__text h2 { --fs: clamp(1.9rem, 5vw + .4rem, 2.7rem); }
.donate__text .lead { margin-bottom: 22px; }

.bank-card {
  margin: 0;
  padding: 6px 22px;
  background: rgba(246, 235, 220, .06);
  border: 1px solid rgba(201, 165, 90, .4);
  border-radius: var(--r-lg);
}
.bank-card__row { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid rgba(246, 235, 220, .1); }
.bank-card__row:last-child { border-bottom: 0; }
.bank-card dt { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.bank-card dd { margin: 0; color: var(--on-dark); font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.bank-card__acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bank-card__num {
  font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; user-select: all;
}
.bank-card__copy {
  flex-shrink: 0; min-height: 42px; padding: 7px 18px;
  border: 1px solid rgba(201, 165, 90, .6); border-radius: 999px;
  background: transparent; color: var(--brass-soft);
  font-size: .84rem; font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.bank-card__copy:hover { background: rgba(201, 165, 90, .14); }
.bank-card__copy.is-copied { background: var(--brass); border-color: var(--brass); color: var(--sanctum-3); }
.donate__note { margin: 14px 4px 0; font-size: .9rem; color: var(--on-dark-2); }

/* =====================================================================
   Contact
   ===================================================================== */
.contact { display: grid; gap: 28px; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list > li {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.contact__list > li:first-child { border-top: 0; padding-top: 0; }
.contact__icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--kumkum); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.contact__list h3 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 2px 0 3px;
}
.contact__list > li p { margin: 0; font-weight: 600; }
.contact__list p a { color: var(--ink); text-decoration: none; }
.contact__list p a:hover { color: var(--kumkum); }
.people { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.people__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--paper); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.people__who { display: grid; min-width: 0; line-height: 1.35; }
.people__name { font-weight: 700; color: var(--ink); }
.contact__list .people__num {
  color: var(--ink-2); font-family: var(--f-display); font-size: 1rem;
  letter-spacing: .03em; text-decoration: none; white-space: nowrap;
}
.people__acts { display: flex; gap: 8px; flex-shrink: 0; }
.people__btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--kumkum); background: var(--stone);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .15s ease, color .15s ease;
}
.people__btn:hover { background: var(--kumkum); color: #fff; }
.people__btn--wa { color: #178A45; }
.people__btn--wa:hover { background: #1FAF55; color: #fff; }
.contact__link { display: inline-block; margin-top: 6px; font-size: .9rem; font-weight: 700; text-decoration: none; }

.contact__map {
  overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; background: var(--stone-2);
  box-shadow: 0 0 0 1px var(--line);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 24px; text-align: center; text-decoration: none; color: var(--ink-2);
  background:
    radial-gradient(rgba(158, 27, 34, .08) 1.2px, transparent 1.3px) 0 0 / 22px 22px,
    var(--stone-2);
}
.map-fallback .icon { color: var(--kumkum); }
.map-fallback strong { color: var(--sanctum); font-size: 1.05rem; }
.map-fallback span { font-size: .88rem; max-width: 32ch; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--sanctum-3); color: var(--on-dark-2); font-size: .92rem; }
.footer__grid { display: grid; gap: 34px; padding-block: 44px 34px; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--turmeric-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__logo {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px;
  box-shadow: 0 0 0 2px var(--sanctum-3), 0 0 0 3px var(--brass);
}
.footer__org {
  margin: 0 0 8px; font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brass);
}
.footer__name { font-family: var(--f-display); color: var(--on-dark); font-size: 1.15rem; margin-bottom: 6px; }
.footer__name[lang="ta"] { font-family: var(--f-display-ta); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.footer__tag { color: var(--on-dark-3); }
.footer__h {
  font-family: var(--f-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 14px;
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 235, 220, .08);
}
.socials a:hover { background: var(--brass); color: var(--sanctum-3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(246, 235, 220, .1);
  font-size: .8rem; color: var(--on-dark-3);
}
.footer__bottom a { color: var(--on-dark-3); }

.wa-float {
  position: fixed; z-index: 90;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1FAF55; color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Scroll reveal (enabled by main.js only) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Breakpoints
   ===================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .topbar .hide-sm { display: inline-flex; }
  .hero__cta { flex-direction: row; justify-content: center; max-width: none; }
  .offer { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .ev { grid-template-columns: 78px 1fr; gap: 20px; padding: 22px; }
}


/* Shorter phones (e.g. 360x740): smaller arch and no tagline, so the
   next-prayer card is still visible without scrolling */
@media (max-width: 699px) and (max-height: 820px) {
  .arch--hero { width: min(40%, 170px); }
  .hero__grid { gap: 18px; padding-block: 20px 36px; }
  .hero__tagline { display: none; }
  .hero__chant { margin-bottom: 8px; }
  .hero__org { margin-bottom: 14px; }
  h1.hero__title[lang="ta"] { font-size: 1.6rem; }
  .hero__translit { font-size: 1.02rem; margin-bottom: 6px; }
}

@media (min-width: 700px) {
  .hero__grid {
    grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px;
    padding-block: 48px 60px;
  }
  .hero__media { order: 2; }
  .arch--hero { width: min(100%, 300px); }
  .hero__text { text-align: left; }
  .hero__tagline { margin-left: 0; }
  .hero__org { justify-content: flex-start; }
  .hero__org::before { display: none; }
  .now { margin-left: 0; }
  .hero__cta { justify-content: flex-start; margin-left: 0; }
}

@media (min-width: 768px) {
  .section { padding-block: 88px; }
  .sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .sec-head--split .sec-head__aside { text-align: right; }
  .sec-head--split .gallery-filters { margin-top: 0; justify-content: flex-end; }
  .figures { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 20px; }
  .figures > div { display: grid; gap: 8px; border-bottom: 0; border-top: 1px solid rgba(201, 165, 90, .3); padding-top: 16px; }
  .figures dd { font-size: 2.6rem; }
  .gallery-grid { gap: 14px; }
  /* 3 columns + a 2x2 lead photo: rows fill exactly for 3, 6, 9 or 12 photos */
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .contact { grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .lifeline li { grid-template-columns: 110px 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; --gutter: 32px; }
  body { font-size: 1.0625rem; }

  .navtoggle { display: none; }
  .nav {
    position: static; display: block; padding: 0;
    background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .nav ul { display: flex; align-items: center; gap: 2px; }
  .nav li { border: 0; }
  .nav li.nav__cta { padding: 0 0 0 12px; }
  .nav a:not(.btn) { padding: 8px 13px; border-radius: 999px; font-size: .95rem; }
  .nav a:not(.btn):hover, .nav a.is-active { background: var(--stone); }
  .nav .btn { width: auto; min-height: 44px; padding: 10px 22px; }
  .brand { flex-shrink: 0; }
  .brand__name { font-size: 1.2rem; }
  .brand__name.lang-ta { font-size: 1.15rem; }

  .hero__grid { gap: 64px; padding-block: 72px 88px; }
  .arch--hero { width: min(100%, 400px); }

  .schedule { grid-template-columns: 1.45fr 1fr; gap: 48px; }
  .slot { grid-template-columns: 76px 1fr; column-gap: 18px; }
  .slot.is-live .slot__body { background: var(--paper); border-radius: 0 var(--r) var(--r) 0; padding-right: 18px; box-shadow: var(--shadow-1); }

  .about { grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
  .arch--about { width: 100%; max-width: 400px; }

  .saint .wrap { grid-template-columns: 1.25fr 1fr; column-gap: 56px; row-gap: 64px; }
  .saint__intro { grid-column: 1 / -1; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 72px; }
  .arch--portrait { width: 100%; max-width: 320px; }

  .events { gap: 18px; }
  .ev { grid-template-columns: 88px minmax(0, 1fr); gap: 28px; padding: 26px 28px; }
  .ev:has(.ev__img) { grid-template-columns: 88px minmax(0, 1fr) 300px; }
  .ev__img { grid-column: auto; }
  .ev__img img { aspect-ratio: 4 / 3; }
  .ev__desc { max-width: 62ch; }
  .ev__meta { grid-auto-flow: column; justify-content: start; gap: 24px; }

  .donate__grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; }
  .nav li.nav__cta { padding-left: 8px; }
  .nav .btn { padding: 10px 16px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .wa-float, .video, .gallery-filters, .addcal, .now__link, .kavi { display: none !important; }
  .section--sanctum, .hero, .footer { background: #fff !important; color: #000 !important; }
}
