/* ============================================================
   Shiva Temple Manchester — Design System
   Palette drawn from Kailash twilight, brass lamps, kumkum,
   sacred ash and temple stone.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
/* The tokens this file uses live in assets/css/design-tokens.css, which every
   page loads first — the booking app needs the same values without these
   components. The two below are only for the keyboard focus ring (section 2):
   the dark gold on the light pages, the cream on the dark surfaces. */
:root{--focus:var(--gold-deep); --focus-on-dark:var(--on-photo)}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:112px; scroll-padding-bottom:16px}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink-soft);
  font-family:var(--body);
  font-size:var(--t-body);
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
img,video{max-width:100%; display:block}
/* Inline icons default to a text-relative size; class rules below override. */
svg{width:1.15em; height:1.15em; flex:none; display:inline-block; vertical-align:-.18em}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}
h1,h2,h3,h4{margin:0; font-family:var(--display); font-weight:600; line-height:1.08; letter-spacing:-.012em; color:var(--ink)}
p{margin:0 0 1.1em}
ul{margin:0; padding:0; list-style:none}
/* The keyboard focus ring. Saffron on the cream pages is only about 1.6 to 1, and
   the web accessibility rule (WCAG 2.2, 1.4.11) asks 3 to 1; the dark gold is about
   5.6 to 1 on every light band. On the two dark surfaces, the home banner photograph
   and the statement reader, the dark gold would vanish, so those take the cream. */
:focus-visible{outline:3px solid var(--focus); outline-offset:3px; border-radius:2px}
.hero :focus-visible,.viewer :focus-visible{outline-color:var(--focus-on-dark)}

/* ---------- 3. Layout ---------- */

.wrap--narrow{max-width:880px}
.section{padding-block:clamp(4rem, 9vw, 8rem); position:relative}
.section--tight{padding-block:clamp(3rem, 6vw, 5rem)}
.grid{display:grid; gap:var(--s6)}
/* Grid/flex children default to min-width:auto, which lets wide content (tables,
   long words) push the page wider than the viewport. Reset it. */
.grid>*,.stack>*,.btn-row>*{min-width:0}
@media(min-width:860px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-2-3{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
  .grid-3-2{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
}
@media(min-width:560px) and (max-width:859px){ .grid-3{grid-template-columns:repeat(2,1fr)} }
/* Five across for name rosters (trustees). Steps down rather than squeezing:
   five on a wide screen, three on a laptop, two on a tablet, one on a phone. */
@media(min-width:1080px){ .grid-5{grid-template-columns:repeat(5,1fr)} }
@media(min-width:860px) and (max-width:1079px){ .grid-5{grid-template-columns:repeat(3,1fr)} }
@media(min-width:520px) and (max-width:859px){ .grid-5{grid-template-columns:repeat(2,1fr)} }
/* .grid--centre-last: the same columns, but a part-filled last row sits in the
   middle instead of at the left (the committee roster). Flex with fixed widths. */
@media(min-width:520px){ .grid-5.grid--centre-last{display:flex; flex-wrap:wrap; justify-content:center}
  .grid-5.grid--centre-last > *{flex:0 0 calc((100% - var(--s6)) / 2)} }
@media(min-width:860px){ .grid-5.grid--centre-last > *{flex-basis:calc((100% - 2 * var(--s6)) / 3)} }
@media(min-width:1080px){ .grid-5.grid--centre-last > *{flex-basis:calc((100% - 4 * var(--s6)) / 5)} }
/* Sections holding a table are too cramped in a half column on tablets — keep
   them stacked until there is room for the table to sit without side-scrolling. */
@media(min-width:860px) and (max-width:1179px){ .grid--stack-lg{grid-template-columns:1fr} }
.stack>*+*{margin-top:var(--s5)}

/* ---------- 4. Type utilities ---------- */
.eyebrow{
  font-family:var(--body); font-size:max(var(--t-eyebrow),.75rem); font-weight:600;
  letter-spacing:.34em; text-transform:uppercase; color:var(--gold-deep);
  display:flex; align-items:center; gap:var(--s3); margin-bottom:var(--s4);
}
.eyebrow::before{
  content:""; width:26px; height:1px; flex:none;
  background:linear-gradient(90deg, transparent, var(--gold-deep));
}
.eyebrow--center{justify-content:center}
.eyebrow--center::after{
  content:""; width:26px; height:1px; flex:none;
  background:linear-gradient(90deg, var(--gold-deep), transparent);
}
.h1{font-size:var(--t-h1)} .h2{font-size:var(--t-h2)} .h3{font-size:var(--t-h3)}
.lead{font-size:var(--t-lead); color:var(--ink-soft); line-height:1.66; max-width:var(--maxw-text)}
.muted{color:var(--muted)}

.center{text-align:center}
.center .lead{margin-inline:auto}
.gilt{
  background:linear-gradient(96deg, var(--gold-deep) 2%, #B8860D 34%, var(--gold-deep) 60%, var(--gold-deeper) 96%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.mantra{
  font-family:var(--display); font-style:italic;
  font-size:clamp(1.15rem,2.1vw,1.6rem); color:var(--gold-deep);
  letter-spacing:.01em; line-height:1.5;
}
/* Tamil script: a face that actually has the letters (Cormorant Garamond has
   none), and upright — a synthesised slant on Tamil reads as a rendering fault.
   Google Fonts serves only the Tamil subset, and only to pages that use it. */
.mantra:lang(ta){
  font-family:"Noto Serif Tamil","Tamil Sangam MN","Nirmala UI","Latha",var(--display);
  font-style:normal; font-weight:500; letter-spacing:0; line-height:1.75;
}
/* The same for the other southern scripts the mantra cycles through: each
   needs a face that has its letters, upright rather than slanted. */
.mantra:lang(te){ font-family:"Noto Serif Telugu","Telugu Sangam MN","Nirmala UI",var(--display); }
.mantra:lang(ml){ font-family:"Noto Serif Malayalam","Malayalam Sangam MN","Nirmala UI",var(--display); }
.mantra:lang(kn){ font-family:"Noto Serif Kannada","Kannada Sangam MN","Nirmala UI",var(--display); }
.mantra:lang(te),.mantra:lang(ml),.mantra:lang(kn){
  font-style:normal; font-weight:500; letter-spacing:0; line-height:1.75;
}

/* The mantra spoken in turn in each language of the devotees who come here.
   The box keeps one line's height so nothing below it shifts as they change. */
.mantra--cycle{
  display:flex; align-items:center; justify-content:center;
  /* Tall enough for the deepest of the scripts — Malayalam and Telugu sit
     taller than Tamil — so the page never jumps as they change. */
  min-height:5.4em; margin:0; transition:opacity .9s var(--ease);
}
.mantra--cycle.is-fading{opacity:0}
@media (prefers-reduced-motion:reduce){
  /* No fading, and no changing either: one script, still. */
  .mantra--cycle{transition:none}
}

/* ---------- 5. Ornament: trishul rule ---------- */
.rule{display:flex; align-items:center; justify-content:center; gap:var(--s4); margin-block:var(--s6)}
.rule::before,.rule::after{
  content:""; height:1px; flex:1 1 auto; max-width:180px;
  background:linear-gradient(90deg,transparent,var(--hair),transparent);
}
.rule svg{width:26px; height:26px; flex:none; color:var(--gold-deep); opacity:.85}

/* ---------- 6. Buttons ---------- */
.btn{
  --btn-bg:transparent; --btn-fg:var(--ink); --btn-bd:var(--gold-deep);
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:.95em 2em; min-height:48px;
  font-size:.8rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--btn-fg); background:var(--btn-bg);
  border:1px solid var(--btn-bd); border-radius:var(--radius);
  position:relative; overflow:hidden; isolation:isolate;
  transition:color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(100deg,var(--saffron),var(--marigold));
  transform:translateY(101%); transition:transform .5s var(--ease-out);
}
.btn:hover{color:var(--ink); border-color:var(--saffron); transform:translateY(-2px)}
.btn:hover::after{transform:translateY(0)}



.btn--ghost{--btn-bd:var(--hair); --btn-fg:var(--ink-soft)}
.btn-row{display:flex; flex-wrap:wrap; gap:var(--s4); align-items:center}
.link-more{
  display:inline-flex; align-items:center; gap:.55em;
  font-size:.76rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-deep); padding-bottom:3px;
  border-bottom:1px solid var(--hair); transition:.35s var(--ease);
}
.link-more:hover{color:var(--brand-red); border-bottom-color:var(--brand-red); gap:.95em}
/* Phones, on every public page on purpose: the underlined links look the same but an
   invisible strip round each one makes the part that answers a finger about 45px high
   (they were 25px). The strip is drawn by the link itself, so it moves with it. */
@media(max-width:720px){
  .link-more{position:relative}
  .link-more::before{content:""; position:absolute; inset:-10px -6px}
}

/* ---------- 7. Surfaces ---------- */
.panel{
  background:linear-gradient(168deg,#FFFDF6,#F6EEDB);
  border:1px solid var(--hair-soft); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,3vw,2.5rem); position:relative; overflow:hidden;
}
.panel--lift{box-shadow:var(--shadow-lift)}
.panel__corner{position:absolute; width:18px; height:18px; border:1px solid var(--hair); pointer-events:none}
.panel__corner--tl{top:10px; left:10px; border-right:0; border-bottom:0}
.panel__corner--br{bottom:10px; right:10px; border-left:0; border-top:0}

.band{position:relative; background:var(--paper-2)}
.band--paper-3{
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(246,183,38,.16), transparent 62%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}
.band--deep{background:linear-gradient(180deg, var(--paper), var(--paper-2) 55%, var(--paper))}
.band-edge{border-block:1px solid var(--hair-soft)}

/* granite grain overlay */
.grain::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode:multiply; opacity:.05;
}

/* ============================================================
   8. Header / Navigation
   ============================================================ */










/* Page-to-page cross-fade. Browsers that support cross-document view
   transitions (Chrome, Edge, Safari 18.2+) fade between pages instead of
   flashing blank; the header is named above so it holds still while the page
   beneath it changes. Everyone else simply navigates as before. Skipped
   entirely for visitors who ask their device for less motion. */
@media (prefers-reduced-motion: no-preference){
  @view-transition{ navigation:auto; }
  ::view-transition-old(root),::view-transition-new(root){ animation-duration:.38s; animation-timing-function:var(--ease) }
}





/* Brand lockup — the official logo, shown whole and never cropped.
   Sized by width; the artwork is 3729x1553 (2.4:1), so height follows. */








/* Desktop menu */




















/* Only the call to action grows on wide screens — the menu stays compact so it
   never collides with the logo. */


/* Mobile trigger + drawer */























/* ============================================================
   9. Plates — photo slots over CSS temple art
   ============================================================ */
.plate{
  position:relative; margin:0; overflow:hidden; isolation:isolate;
  border:1px solid var(--hair-soft); border-radius:var(--radius-lg);
  background:var(--paper-3);
}
.plate--tall{aspect-ratio:3/4}
.plate--portrait{aspect-ratio:4/5}
.plate--square{aspect-ratio:1/1}
.plate--wide{aspect-ratio:16/10}
.plate__art{position:absolute; inset:0; z-index:0}
/* Ornament shown when a photograph has not been supplied for this slot. */
.plate__art::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23E9C877' stroke-width='.7' stroke-linecap='round'><circle cx='100' cy='100' r='78'/><circle cx='100' cy='100' r='62'/><circle cx='100' cy='100' r='40'/><g stroke-width='1.1'><path d='M100 168V62M100 62V50'/><path d='M76 106c-6-16-4-32 5-42 3 14 7 23 19 30'/><path d='M124 106c6-16 4-32-5-42-3 14-7 23-19 30'/><path d='M72 108h56'/></g><g opacity='.55'><path d='M100 22v-8M100 186v-8M22 100h-8M186 100h-8'/><path d='M45 45l-6-6M155 45l6-6M45 155l-6 6M155 155l6 6'/></g></svg>");
  background-repeat:no-repeat; background-position:center 46%; background-size:min(52%,240px) auto;
  opacity:.30; mix-blend-mode:multiply;
}
.plate__photo{
  position:absolute; inset:0; z-index:1;
  background-size:cover; background-position:center;
  transition:transform 1.4s var(--ease-out);
}
.plate:hover .plate__photo{transform:scale(1.045)}
.plate__veil{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,8,7,.06) 0%, rgba(10,8,7,.34) 58%, rgba(10,8,7,.9) 100%);
}
.plate__cap{
  position:absolute; z-index:3; left:0; right:0; bottom:0;
  padding:clamp(1.1rem,2.4vw,1.9rem);
}
.plate__cap .eyebrow{margin-bottom:var(--s2)}
.plate__cap h3{font-size:clamp(1.25rem,2vw,1.7rem)}
.plate__frame{
  position:absolute; inset:12px; z-index:3; pointer-events:none;
  border:1px solid rgba(233,200,119,.16); border-radius:2px;
}

/* --- CSS art: Kailash at first light --- */
.art-kailash{
  background:
    radial-gradient(70% 44% at 22% 30%, rgba(255,158,66,.5), transparent 60%),
    radial-gradient(90% 60% at 60% 8%,  rgba(214,64,43,.34), transparent 66%),
    linear-gradient(180deg,#2A2140 0%, #5B2E33 34%, #A8481F 60%, #DD6F1C 78%, #2A1B14 100%);
}
.art-kailash::after{
  content:""; position:absolute; inset:0;
  background:
    /* left ridge (small) */
    linear-gradient(to bottom right, transparent 49.6%, rgba(226,214,206,.26) 49.9%) no-repeat 0 100%/32% 34%,
    /* right ridge (small) */
    linear-gradient(to bottom left,  transparent 49.6%, rgba(226,214,206,.20) 49.9%) no-repeat 100% 100%/36% 30%,
    /* main peak — left flank */
    linear-gradient(to bottom right, transparent 49.6%, rgba(246,240,232,.60) 49.9%) no-repeat 22% 100%/29% 60%,
    /* main peak — right flank */
    linear-gradient(to bottom left,  transparent 49.6%, rgba(206,193,187,.48) 49.9%) no-repeat 51% 100%/29% 60%;
  filter:blur(.5px);
}
.art-kailash::before{
  content:""; position:absolute; left:14%; top:26%; width:9%; aspect-ratio:1; border-radius:50%; z-index:1;
  background:radial-gradient(circle, rgba(255,236,190,.95), rgba(255,158,66,.5) 40%, transparent 72%);
  filter:blur(3px);
}
/* --- CSS art: sanctum lamplight --- */
.art-sanctum{
  background:
    radial-gradient(42% 34% at 50% 56%, rgba(246,183,38,.60), transparent 70%),
    linear-gradient(180deg,#E9D6AE 0%, #DCC08C 44%, #C9A469 74%, #A8814A 100%);
}
.art-sanctum::after{
  content:""; position:absolute; left:50%; bottom:24%; translate:-50% 0;
  width:34%; aspect-ratio:1/1; border-radius:50%;
  background:radial-gradient(circle, rgba(255,214,140,.7), rgba(221,111,28,.28) 45%, transparent 72%);
  filter:blur(6px);
}
/* --- CSS art: temple stone / brass --- */
.art-stone{
  background:
    radial-gradient(60% 50% at 50% 18%, rgba(246,183,38,.34), transparent 66%),
    linear-gradient(160deg,#E4D2B0 0%, #CDB287 52%, #A98C5E 100%);
}
.art-stone::after{
  content:""; position:absolute; inset:0; opacity:.5;
  background:repeating-linear-gradient(90deg, transparent 0 42px, rgba(90,64,26,.16) 42px 44px),
             repeating-linear-gradient(0deg, transparent 0 58px, rgba(90,64,26,.13) 58px 60px);
}
/* --- CSS art: sacred grove --- */
.art-grove{
  background:
    radial-gradient(55% 45% at 62% 30%, rgba(150,186,132,.45), transparent 68%),
    linear-gradient(170deg,#DCE0C4 0%, #BFC7A2 48%, #94A177 100%);
}
/* --- CSS art: kumkum / marigold --- */
.art-kumkum{
  background:
    radial-gradient(50% 40% at 30% 26%, rgba(251,183,72,.44), transparent 66%),
    linear-gradient(155deg,#E3B9A2 0%, #C98A72 52%, #9E5744 100%);
}

/* ============================================================
   10. Hero
   ============================================================ */
.hero{position:relative; display:flex; align-items:flex-end; overflow:hidden; isolation:isolate;
  /* as tall as the first screen leaves room for (9rem is the top bar and header), so the buttons
     are never cut off; vh first for browsers without svh */
  min-height:min(calc(100vh - 9rem),820px); min-height:min(calc(100svh - 9rem),820px)}
.hero__bg{position:absolute; inset:0; z-index:0}
.hero__photo{
  position:absolute; inset:0; z-index:1;
  background-size:cover; background-position:center 34%;
  animation:kenburns 30s var(--ease) infinite alternate;
}
/* The home photograph. A phone draws it at about 700 CSS pixels high, so it shows only the middle
   620 pixels of the picture: that crop is a copy of its own (kailash-sunrise-620.webp, made with
   tools/make-webp.js --centre 620), about half the size of the whole picture. Wider screens get the
   whole picture. */
.hero__photo--home{background-image:url('../img/kailash-sunrise.jpg'); background-image:image-set(url('../img/kailash-sunrise.webp') type('image/webp'), url('../img/kailash-sunrise.jpg') type('image/jpeg'))}
@media (max-width:700px){
  .hero__photo--home{background-image:url('../img/kailash-sunrise.jpg'); background-image:image-set(url('../img/kailash-sunrise-620.webp') type('image/webp'), url('../img/kailash-sunrise.jpg') type('image/jpeg'))}
}
@keyframes kenburns{from{transform:scale(1)} to{transform:scale(1.09)}}
.hero__veil{
  position:absolute; inset:0; z-index:2;
  background:
    /* Dark enough behind the lead, the two facts and the buttons (sampled in tools/hero-contrast.js),
       with the fade to the page's cream kept inside the hero's bottom padding. */
    linear-gradient(180deg, rgba(24,15,5,.56) 0%, rgba(24,15,5,.38) 24%, rgba(24,15,5,.66) 44%, rgba(24,15,5,.80) 66%, rgba(24,15,5,.80) 93%, var(--paper) 100%),
    linear-gradient(90deg, rgba(24,15,5,.62) 0%, transparent 60%);
}
.hero__in{position:relative; z-index:3; width:100%; padding-block:clamp(1.5rem,4vw,3rem) clamp(2.25rem,5vw,3.5rem)}
.hero__copy{max-width:750px}
/* The hero's opening words (Om Namah Shivaya), sung a syllable at a time. Each syllable comes in
   from nothing, flares bright gold as it is sung, then settles to the line's saffron. Once, and then
   still: the photograph behind already drifts, and a second moving thing would only compete with it.
   When each one starts is set by the build (--d); the words are real text throughout. */
.hero .eyebrow .w{
  display:inline-block;
  animation:syllable-sung 1.3s cubic-bezier(.22,1,.36,1) both;
  animation-delay:var(--d, 0s);
}
@keyframes syllable-sung{
  from{opacity:0; transform:translateY(6px); filter:blur(4px); text-shadow:0 0 0 rgba(255,200,80,0)}
  30%{opacity:1; transform:none; filter:none; color:#FFF3CC; text-shadow:0 0 14px rgba(255,200,80,.9)}
  to{opacity:1; transform:none; filter:none; color:var(--saffron); text-shadow:0 0 0 rgba(255,200,80,0)}
}
@media (prefers-reduced-motion:reduce){
  .hero .eyebrow .w{animation:none}
}
.hero__title{font-size:var(--t-hero); line-height:.99; letter-spacing:-.02em; margin-bottom:var(--s5)}
.hero__title em{display:block; font-style:normal}
.hero__lead{font-size:clamp(1.05rem,1.5vw,1.3rem); color:var(--ink-soft); max-width:58ch; margin-bottom:var(--s6)}
/* On a phone the headline, lead, two live facts and both buttons have to fit one screen. */
@media(max-width:480px){
  .hero__title{font-size:2.4rem; margin-bottom:var(--s4)}
  .hero__lead{font-size:.95rem; margin-bottom:var(--s5)}
  .hero .btn-row{gap:var(--s3)}
}

/* ============================================================
   11. Hero facts: open today, next at the temple
   Two live facts under the lead, filled in by assets/js/home-events.js. They sit
   on the photograph, so they use the on-photo colours (see section 22).
   ============================================================ */
.hero__facts{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s4) var(--s5); max-width:36rem; margin-bottom:var(--s5)}
.fact{padding-left:var(--s4); border-left:1px solid rgba(233,200,119,.5)}
.fact__k{font-size:.75rem; letter-spacing:.2em; text-transform:uppercase; color:var(--saffron); margin-bottom:var(--s1)}
.fact__v{font-family:var(--display); font-size:1.3rem; color:var(--on-photo); line-height:1.2; margin:0}
/* the next-event box links through to booking; keep it reading as a fact, not a button */
.fact__v a{color:inherit; text-decoration:none; background-image:linear-gradient(currentColor,currentColor);
  background-size:0 1px; background-position:0 100%; background-repeat:no-repeat; transition:background-size .35s var(--ease)}
.fact__v a:hover,.fact__v a:focus-visible{background-size:100% 1px; color:var(--saffron)}
.fact__n{font-size:.8rem; color:var(--on-photo-soft); margin:2px 0 0}
.fact__n a{color:inherit; text-decoration:underline; text-underline-offset:.2em}
/* Phones: the same invisible strip as the underlined links (section 7), so the link in
   a hero box answers a finger more than its own line of text */
@media(max-width:720px){
  .hero__facts a{position:relative}
  .hero__facts a::before{content:""; position:absolute; inset:-8px -6px}
}
@media(max-width:480px){
  .hero__facts{gap:var(--s3) var(--s4); margin-bottom:var(--s4)}
  .fact{padding-left:var(--s3)}
  .fact__k{letter-spacing:.14em}
  .fact__v{font-size:1.1rem}
}

/* ============================================================
   12. Cards
   ============================================================ */
.card{
  position:relative; padding:clamp(1.5rem,2.6vw,2.1rem);
  background:linear-gradient(168deg,#FFFDF7,#F7F0DE);
  border:1px solid var(--hair-soft); border-radius:var(--radius-lg);
  transition:border-color .45s var(--ease), transform .45s var(--ease-out), background .45s var(--ease);
  overflow:hidden; display:flex; flex-direction:column;
}
.card::before{
  content:""; position:absolute; inset:0 auto 0 0; width:2px;
  background:linear-gradient(180deg,var(--gold-deep),var(--saffron));
  transform:scaleY(0); transform-origin:top; transition:transform .55s var(--ease-out);
}
.card:hover{border-color:var(--hair); transform:translateY(-4px); background:linear-gradient(168deg,#FFFFFC,#F9F2E2)}
.card:hover::before{transform:scaleY(1)}
.card__icon{width:38px; height:38px; color:var(--gold-deep); margin-bottom:var(--s4); flex:none; align-self:flex-start}
.card h3, .card h2.h3{margin-bottom:var(--s3); font-size:var(--t-h3)}
.card p{color:var(--muted); font-size:.94rem; margin-bottom:var(--s4)}
.card .link-more{margin-top:auto; align-self:flex-start}
/* A card's own button sits at the foot of the card, so a row of cards of different lengths
   gets one even line of buttons. */
.card .btn--card{margin-top:auto; align-self:flex-start; min-height:44px; padding:.75em 1.5em}
.card__tag{
  display:inline-block; align-self:flex-start; padding:.3em .8em; margin-bottom:var(--s3);
  font-size:.75rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-deep); border:1px solid var(--hair); border-radius:99px;
}
.card--feature{background:linear-gradient(168deg,#FDF0D6,#F7E4BE); border-color:rgba(122,87,9,.28)}
/* "Something not listed?" closes the life-ceremonies grid. Twelve ceremonies fill four rows, so it
   would sit alone and lopsided in a fifth: instead it takes the whole last row. */
#samskara .card--feature:last-child{grid-column:1/-1}
#samskara .card--feature p{max-width:60ch}

/* A card holding only a role and a name — tighter than a card carrying prose,
   so five sit comfortably across without the names wrapping awkwardly. */
/* Statement reader — opens the PDF on the page rather than sending the visitor
   to the file itself. #toolbar=0 hides the download button in Chromium's PDF
   viewer; Firefox and Safari ignore it, so this discourages downloading rather
   than preventing it. Nothing served publicly can be made unsaveable. */
.viewer{position:fixed; inset:0; z-index:300; display:flex; flex-direction:column;
  background:rgba(20,14,6,.94); backdrop-filter:blur(3px)}
.viewer__bar{display:flex; align-items:center; justify-content:space-between; gap:var(--s4);
  padding:var(--s3) var(--gutter); background:var(--ink); color:var(--on-photo); flex:none}
.viewer__title{font-family:var(--display); font-size:1.15rem}
.viewer__close{font:inherit; font-size:var(--t-small); letter-spacing:.08em; text-transform:uppercase;
  color:var(--on-photo); background:transparent; border:1px solid rgba(255,253,247,.4);
  border-radius:var(--radius-lg); padding:.55em 1.1em; cursor:pointer; min-height:40px}
.viewer__close:hover{background:rgba(255,253,247,.12)}
.viewer__frame{flex:1; width:100%; border:0; background:#fff}
.viewer__note{padding:var(--s3) var(--gutter); background:var(--ink);
  color:rgba(255,253,247,.6); font-size:var(--t-small); flex:none}

/* Monthly financial statements — a plain list of downloads, generated by
   build.js from whatever PDFs sit in assets/statements/. */
.statements{list-style:none; margin:2rem 0 0; padding:0; text-align:left}
.statements li + li{border-top:1px solid var(--hair-soft)}
.statements a{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s4);
  padding:var(--s4) var(--s3); text-decoration:none; color:var(--ink);
  border-radius:var(--radius); transition:background .25s var(--ease), color .25s var(--ease);
}
.statements a:hover{background:rgba(122,87,9,.06); color:var(--gold-deeper)}
.statements__month{font-family:var(--display); font-size:1.22rem}
.statements__meta{
  display:inline-flex; align-items:center; gap:.5em; flex:none;
  font-size:var(--t-small); letter-spacing:.06em; text-transform:uppercase;
  color:var(--gold-deep); white-space:nowrap;
}
.statements__meta svg{width:16px; height:16px; color:var(--gold-deep)}

/* ---- Slokas & bhajans (slokas.html) ----
   Meant to be used one-handed, in a dim hall, by someone who is also holding
   flowers. Hence the large tap targets and the search box above the list. */
.sloka-find{margin-top:clamp(1.6rem,3vw,2.2rem); max-width:26rem}
.sloka-find .field{margin:0}
.sloka-find input[type="search"]{font-size:1.05rem}
.sloka-count{margin:.7rem 0 0; min-height:1.3em}

.sloka-state{
  margin:0 0 clamp(1.8rem,3vw,2.4rem); padding:var(--s4);
  border:1px solid var(--hair-soft); border-left:3px solid var(--gold-deep);
  border-radius:var(--radius); background:rgba(122,87,9,.05);
  color:var(--ink-soft); font-size:var(--t-small);
}
/* Links in this notice have to look like links; a{text-decoration:none} in
   the reset leaves them indistinguishable from the sentence around them. */
.sloka-state a{color:var(--gold-deeper); text-decoration:underline; text-underline-offset:.16em}

/* A card, but ending in an action pinned to the bottom so a row of them lines
   up however long the descriptions run. */
.sloka{
  display:flex; flex-direction:column; gap:var(--s2);
  padding:clamp(1.3rem,2.2vw,1.7rem);
  border:1px solid var(--hair-soft); border-radius:var(--radius-lg);
  background:rgba(255,253,247,.5);
}
.sloka h3{margin:0; font-size:1.22rem; line-height:1.3}
.sloka__script{
  margin:0; font-size:1.3rem; line-height:1.6; color:var(--gold-deep);
  font-family:"Noto Serif Tamil", var(--display), serif;
}
.sloka__note{margin:0; color:var(--ink-soft)}
.sloka__when{
  display:flex; align-items:center; gap:.5em; margin:0 0 var(--s3);
  font-size:var(--t-small); letter-spacing:.04em; color:var(--muted);
}
.sloka__when svg{width:15px; height:15px; flex:none; color:var(--gold-deep)}

.sloka__get{
  margin-top:auto; display:flex; align-items:center; gap:.55em;
  min-height:48px; padding:.7em 1.1em;
  border:1px solid var(--gold-deep); border-radius:var(--radius);
  font-size:var(--t-small); letter-spacing:.06em; text-transform:uppercase;
  color:var(--gold-deeper); text-decoration:none; background:transparent;
  transition:background .25s var(--ease), color .25s var(--ease);
}
.sloka__get svg{width:16px; height:16px; flex:none}
/* Only the first action pushes itself to the bottom. A second one with
   margin-top:auto would take a share of the spare space for itself, leaving a
   gap between the two buttons instead of above the pair. */
.sloka__get + .sloka__get{margin-top:0}
.sloka__get:hover{background:var(--gold-deep); color:var(--paper)}
.sloka__size{margin-left:auto; opacity:.7; text-transform:none; letter-spacing:0}
.sloka__get--soon{
  border-style:dashed; border-color:var(--hair); color:var(--muted-dim);
  cursor:default;
}
.sloka__get--soon:hover{background:transparent; color:var(--muted-dim)}
/* Where a text has both a page and a PDF, the page is the one to reach for. */
.sloka__get--quiet{border-color:var(--hair); color:var(--muted)}
.sloka__get--quiet:hover{background:rgba(122,87,9,.07); color:var(--gold-deeper)}

.sloka-empty{margin:clamp(2rem,4vw,3rem) 0 0; color:var(--muted)}

/* ---- Reading a sloka (the pages built from assets/slokas/src/) ----
   Set for chanting from, not for skimming: one column, wide line spacing so
   the accent marks above and below the letters have room and never collide,
   and a size the devotee sets for themselves. */
.reader{padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,7vw,5rem); background:var(--paper)}
.reader__head{margin:clamp(1.4rem,3vw,2rem) 0 clamp(1.6rem,3vw,2.2rem)}
.reader__head h1{font-size:var(--t-h2); margin:0}
.reader__sub{margin:.8rem 0 0; color:var(--gold-deep); font-size:1.05rem}
.reader__note{margin:.5rem 0 0; color:var(--muted); font-size:var(--t-small)}

.reader-tools{
  display:flex; align-items:center; gap:.6rem; flex-wrap:wrap;
  padding:var(--s3) 0; border-top:1px solid var(--hair-soft);
  border-bottom:1px solid var(--hair-soft);
}
.reader-tools__label{
  font-size:var(--t-small); letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); margin-right:auto;
}
.reader-tools__btn{
  min-width:52px; min-height:44px; padding:0 .9em;
  border:1px solid var(--gold-deep); border-radius:var(--radius);
  background:transparent; color:var(--gold-deeper); cursor:pointer;
  font-family:var(--body); font-size:1rem; line-height:1;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.reader-tools__btn span{font-size:.8em; vertical-align:.1em; margin-left:.1em}
.reader-tools__btn:hover{background:var(--gold-deep); color:var(--paper)}

.reader-jump{
  display:flex; align-items:center; gap:.4rem; flex-wrap:wrap;
  margin:var(--s4) 0 0;
}
.reader-jump__label{
  font-size:var(--t-small); letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); margin-right:.4rem;
}
.reader-jump a{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; min-height:40px; padding:0 .5em;
  border:1px solid var(--hair); border-radius:var(--radius);
  text-decoration:none; color:var(--ink-soft);
  transition:background .2s var(--ease), border-color .2s var(--ease);
}
.reader-jump a:hover{background:rgba(122,87,9,.07); border-color:var(--gold-deep); color:var(--gold-deeper)}

/* The size the devotee chooses is applied here, in em, so everything below
   moves together. main.js sets --reader-size and remembers it. */
.reader__body{
  --reader-size:1.22rem;
  margin-top:clamp(2rem,4vw,3rem);
  font-size:var(--reader-size);
}
.reader-part{scroll-margin-top:118px}
.reader-part + .reader-part{
  margin-top:clamp(2rem,4vw,3rem); padding-top:clamp(2rem,4vw,3rem);
  border-top:1px solid var(--hair-soft);
}
.verse{
  margin:0 0 1.6em;
  /* Generous, because a line of this text can carry a mark above AND below
     the same letter; anything tighter and they touch the line above. */
  line-height:2.5;
  color:var(--ink);
  /* A line of Vedic text is long and will wrap on a phone. The hanging indent
     sets a wrapped continuation apart from the start of the next line of the
     verse, which otherwise look identical and lose the devotee their place. */
  padding-left:1.4em;
  text-indent:-1.4em;
}
.verse--aside{color:var(--muted); font-style:italic}

/* ---- A text with a language tab (Kandha Sashti Kavasam) ----
   One language at a time, full width. Side by side was tried first and is
   wrong on a phone: two columns leave about twenty characters each, and a
   devotee follows one of them anyway. */
/* The tabs need JavaScript to do anything, so without it they are not shown
   and every pane is printed in turn under its own heading instead. */
.lang-tabs{display:none; gap:.4rem; margin-right:auto}
.js .lang-tabs{display:flex}
.lang-tab{
  min-height:44px; padding:0 1.1em;
  border:1px solid var(--hair); border-radius:var(--radius);
  background:transparent; color:var(--ink-soft); cursor:pointer;
  font-family:var(--body); font-size:var(--t-small); letter-spacing:.06em;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-tab[lang="ta"]{font-family:"Noto Serif Tamil", var(--body), serif}
.lang-tab:hover{border-color:var(--gold-deep); color:var(--gold-deeper)}
.lang-tab[aria-selected="true"]{
  background:var(--gold-deep); border-color:var(--gold-deep); color:var(--paper);
}

/* Each pane names its own language. With the tabs working that label is said
   twice, so it goes to screen readers only; without them it is the heading
   that tells a reader which language they are looking at. */
.lang-pane__name{
  margin:0 0 1.2rem; font-family:var(--display); font-size:1.7em;
  font-weight:600; color:var(--ink);
}
.lang-pane + .lang-pane{margin-top:clamp(2.5rem,5vw,4rem)}
.js .lang-pane + .lang-pane{margin-top:0}
.js .lang-pane__name{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* One verse. The hairlines run between its own lines only, so the gap between
   verses is a rest rather than another rule. */
.verse-block + .verse-block{margin-top:1.8em}
.verse-block + .reader-heading{margin-top:clamp(2rem,4vw,2.8rem)}
.lang-pane[lang="ta"] .line{font-family:"Noto Serif Tamil", var(--body), serif; line-height:2.15}
/* The body face has no Telugu in it, so without this the browser reaches for
   whatever the device happens to have — different on every phone, and unlike
   the Tamil pane beside it. The font is already loaded in every page head. */
.lang-pane[lang="te"] .line{font-family:"Noto Serif Telugu", var(--body), serif; line-height:2.15}
.line{margin:0; padding:.35em 0; line-height:1.95; color:var(--ink)}
.line + .line{border-top:1px solid rgba(42,31,18,.05)}
/* The indented second half of a couplet, as the source has it. Must come
   after .line, whose padding shorthand would otherwise reset this. */
.line--run{padding-left:2.2em}
/* The phala sruti closing a text — read about the chant, not chanted.
   Same treatment as .verse--aside on the anuvaka pages. */
.line--aside{color:var(--muted); font-style:italic}

/* What the verse means, in plain English. Deliberately unlike the verse: this
   is the temple explaining, and a reader glancing down the page should never
   mistake it for words to chant. */
.gloss{
  margin:.9em 0 0; padding:.75em 1em;
  border-left:2px solid var(--gold-deep);
  background:rgba(122,87,9,.05); border-radius:0 var(--radius) var(--radius) 0;
  font-size:.85em; line-height:1.65; color:var(--ink-soft);
}
.line + .gloss{border-top:0}
.gloss__label{
  display:block; margin-bottom:.25em;
  font-size:.8em; letter-spacing:.09em; text-transform:uppercase;
  color:var(--gold-deep);
}
.reader-heading{
  margin:clamp(2rem,4vw,2.8rem) 0 1rem; padding-bottom:.45rem;
  border-bottom:1px solid var(--hair-soft);
  font-family:var(--display); font-size:1.45em; font-weight:600; color:var(--gold-deeper);
}
.lang-pane > .reader-heading:first-of-type{margin-top:0}
/* Clear of the sticky header when a jump link lands on one. */
.reader-heading[id]{scroll-margin-top:124px}
.lang-pane > .reader-jump{margin:0 0 clamp(1.6rem,3vw,2.2rem)}

/* Keep A- and A+ together: on a phone the toolbar wraps, and the two of them
   landing on different rows makes a nonsense of the pair. */
.reader-tools__size{display:flex; align-items:center; gap:.6rem; margin-left:auto}
.reader-tools__size .reader-tools__label{margin-right:0}

/* Printing is how a devotee keeps a copy, so it is worth doing properly:
   the browser sets the accents correctly, which is the whole reason these
   pages exist. Everything but the text itself goes. */
@media print {
  
  @page{size:A4; margin:18mm 16mm 16mm}
  .reader{padding:0; background:#fff}
  .reader__body{--reader-size:12.5pt}
  .verse{line-height:2.2; break-inside:avoid}
  .reader-part + .reader-part{border-top:0; margin-top:1.6em; padding-top:0}
  a{text-decoration:none; color:#000}

  /* On a text with language tabs only one pane is on screen. On paper both
     belong — a printed copy is not switching between them — so every pane is
     brought back, each under its own name. */
  .lang-pane[hidden]{display:block !important}
  .lang-pane + .lang-pane{margin-top:0; break-before:page}
  .lang-pane__name{
    position:static !important; width:auto !important; height:auto !important;
    margin:0 0 1.2rem !important; clip:auto !important; overflow:visible !important;
    font-family:var(--display); font-size:1.6em; font-weight:600;
  }
  .verse-block{break-inside:avoid}
  .reader-heading{break-after:avoid}

  /* A post someone wants on paper: the words, the pictures and who wrote it.
     The links to the posts either side of it mean nothing once printed. */
  .post{padding:0; background:#fff}
  .post-nav, .post__foot{display:none !important}
  .prose h2, .prose h3, .post__fig, .prose blockquote{break-inside:avoid}
  .prose h2, .prose h3{break-after:avoid}
}

.card--person{padding:clamp(1.15rem,1.9vw,1.5rem); gap:0}
.card--person h3{font-size:1.04rem; line-height:1.4; margin-bottom:0; letter-spacing:-.005em}
.card--person .card__tag{margin-bottom:var(--s2)}

/* numbered list card */

.card__num{align-self:flex-start;
  font-family:var(--display); font-size:2.4rem; line-height:1;
  color:transparent; -webkit-text-stroke:1px var(--gold-deep); opacity:.7; margin-bottom:var(--s3);
}

/* ---- From the temple: the blog (blog.html and the blog-*.html posts) ----
   A post is read straight through, so the page is one narrow column and the
   type is set for distance reading rather than for scanning. The list is
   stacked rather than a grid of three: a temple publishes a handful of posts a
   year, and three columns with two posts in them looks like a mistake. */
.post-list{display:grid; gap:clamp(1.4rem,3vw,2rem)}
.post-card{
  display:grid; gap:clamp(1rem,2.4vw,1.8rem); align-items:start;
  padding:clamp(1.3rem,2.4vw,1.8rem);
  border:1px solid var(--hair-soft); border-radius:var(--radius-lg);
  background:rgba(255,253,247,.5);
  transition:border-color .3s var(--ease), background .3s var(--ease);
}
.post-card:hover{border-color:rgba(122,87,9,.28); background:rgba(255,253,247,.85)}
@media (min-width:680px){
  /* Only where there is a picture: without one the text runs the full width
     rather than leaving a column of nothing beside it. */
  .post-card:has(.post-card__thumb){grid-template-columns:minmax(0,15rem) minmax(0,1fr)}
}
.post-card__thumb{display:block; border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3}
.post-card__thumb img{width:100%; height:100%; object-fit:cover; display:block}
.post-card__in{display:grid; gap:var(--s2); align-content:start}
.post-card__meta{
  display:flex; align-items:center; gap:.5rem .9rem; flex-wrap:wrap; margin:0;
  font-size:var(--t-small); color:var(--muted);
}
.post-card__meta .card__tag{margin:0}
.post-card__mins{color:var(--muted-dim)}
.post-card h2{margin:0; font-size:clamp(1.3rem,2.4vw,1.6rem); line-height:1.25}
.post-card h2 a{color:inherit; text-decoration:none}
.post-card h2 a:hover{color:var(--gold-deeper)}
.post-card__sum{margin:0; color:var(--ink-soft)}
/* The whole card is the target on a phone, where a 15px "Read this" is not. */
.post-card h2 a::after{content:""; position:absolute; inset:0}
.post-card{position:relative}
.post-card .link-more{position:relative; z-index:1; justify-self:start}

.post{padding:clamp(2rem,5vw,3.5rem) 0 clamp(3rem,7vw,5rem); background:var(--paper)}
.post__head{margin:clamp(1.4rem,3vw,2rem) 0 clamp(1.6rem,3vw,2.4rem)}
.post__head h1{font-size:var(--t-h2); margin:.6rem 0 0}
.post__meta{
  display:flex; align-items:center; gap:.5rem .9rem; flex-wrap:wrap;
  margin:1rem 0 0; font-size:var(--t-small); color:var(--muted);
}
.post__meta > * + *::before{content:"·"; margin-right:.9rem; color:var(--muted-dim)}
.post__sum{
  margin:1.4rem 0 0; padding-left:1rem; border-left:2px solid var(--gold-deep);
  color:var(--ink-soft); font-size:1.08rem; line-height:1.6;
}
.post__hero{margin:0 0 clamp(1.8rem,4vw,2.6rem); border-radius:var(--radius-lg); overflow:hidden}
.post__hero img{width:100%; height:auto; display:block}

/* The post itself. Generated from Markdown, so the elements are plain and the
   spacing has to come from here rather than from classes on each one. */
.prose{font-size:1.06rem; line-height:1.78; color:var(--ink)}
/* One rule owns the rhythm. The reset gives every p a bottom margin of its
   own, which would otherwise stack with this one and open the post up twice
   as far — so the children are cleared first. Both selectors weigh the same,
   and the second comes later, so the gap wins where there is a neighbour
   above. A rule naming an element, such as .prose h2 below, outweighs both. */
.prose > *{margin:0}
.prose > * + *{margin-top:1.15em}
.prose h2{font-size:clamp(1.5rem,3vw,2rem); line-height:1.25; margin-top:2.2em}
.prose h3{font-size:clamp(1.22rem,2.4vw,1.45rem); line-height:1.3; margin-top:1.8em}
.prose h4{font-size:1.1rem; margin-top:1.6em}
/* Underlined, not merely gold: in a wall of prose the colour alone is not
   enough to tell a reader that a word is a link. */
.prose a{color:var(--gold-deeper); text-decoration:underline; text-underline-offset:.18em}
/* The reset strips ul back to nothing for the site's own lists. A post's list
   is an ordinary list and wants its markers back. */
.prose ul{list-style:disc; padding-left:1.4em; margin-left:0}
.prose ol{list-style:decimal; padding-left:1.5em; margin-left:0}
.prose li::marker{color:var(--gold-deep)}
.prose li + li{margin-top:.45em}
.prose blockquote{
  margin-left:0; margin-right:0; padding:.2em 0 .2em 1.3em;
  border-left:3px solid var(--gold-deep); color:var(--ink-soft);
  font-family:var(--display); font-size:1.22rem; font-style:italic; line-height:1.55;
}
.prose .rule{margin:2.4em 0}

/* ---------- Policy pages (privacy.html, safeguarding.html) ----------
   Long, plain text that has to be easy to read: one column about 68 characters
   wide inside one card, headings in the same voice as the rest of the site
   (small gold section number, the display face, the gold last word). The width
   is set here rather than with .wrap--narrow, which chrome.css's later .wrap
   rule overrides on every page. */
.legal{max-width:52rem; margin-inline:auto}
.legal__body{padding:clamp(1.75rem,4.5vw,3.5rem)}
.legal__sec + .legal__sec{margin-top:clamp(2rem,4vw,3rem); padding-top:clamp(2rem,4vw,3rem); border-top:1px solid var(--hair-soft)}
.legal__sec h2{margin-bottom:var(--s4)}
.legal__sec h3{margin:var(--s5) 0 var(--s2); font-size:var(--t-h3)}
.legal__sec p:not(.eyebrow),.legal__sec li{color:var(--ink-soft); line-height:1.75; max-width:var(--maxw-text)}
.legal__sec p + p,.legal__sec p + ul,.legal__sec p + ol,.legal__sec ul + p{margin-top:var(--s4)}
.legal__sec ul{list-style:disc; padding-left:1.4em}
.legal__sec ol{list-style:decimal; padding-left:1.5em}
.legal__sec li::marker{color:var(--gold-deep)}
.legal__sec li + li{margin-top:var(--s2)}
.legal__sec a:not(.btn){color:var(--gold-deeper); text-decoration:underline; text-underline-offset:.18em}
.legal__sec--key{background:rgba(231,202,147,.22); border-left:3px solid var(--gold-deep); border-radius:var(--radius-lg); padding:var(--s5) var(--s5) var(--s5) calc(var(--s5) + 2px)}
.legal__sec--key + .legal__sec{margin-top:clamp(2rem,4vw,3rem)}
.legal__sec--key p:not(.eyebrow){color:var(--ink)}
.legal__foot{margin-top:clamp(2rem,4vw,3rem); padding-top:clamp(1.5rem,3vw,2rem); border-top:1px solid var(--hair-soft)}

.post__fig{margin:2em 0; border-radius:var(--radius); overflow:hidden}
.post__fig img{width:100%; height:auto; display:block}
.post__fig figcaption{
  margin-top:.7rem; font-size:var(--t-small); color:var(--muted); font-style:italic;
}

.post__foot{
  margin-top:clamp(2.6rem,6vw,4rem); padding-top:clamp(1.6rem,3vw,2.2rem);
  border-top:1px solid var(--hair-soft);
  display:flex; flex-wrap:wrap; gap:var(--s4); align-items:center; justify-content:space-between;
}
.post-nav{display:grid; gap:var(--s3)}
.post-near{
  display:grid; gap:.15rem; text-decoration:none; color:var(--ink);
  font-family:var(--display); font-size:1.12rem; line-height:1.35;
}
.post-near span{
  font-family:var(--body); font-size:.68rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--gold-deep);
}
.post-near:hover{color:var(--gold-deeper)}

/* ============================================================
   13. Timings panel
   ============================================================ */
.timings{display:grid; gap:0; border:1px solid var(--hair-soft); border-radius:var(--radius-lg); overflow:hidden}
.timing{
  display:flex; align-items:center; gap:var(--s4); justify-content:space-between; flex-wrap:wrap;
  padding:1.05rem clamp(1rem,2.4vw,1.6rem); border-bottom:1px solid var(--hair-soft);
  transition:background .4s var(--ease);
}
.timing:last-child{border-bottom:0}
.timing:hover{background:rgba(246,183,38,.11)}
.timing__name{font-family:var(--display); font-size:1.22rem; color:var(--ink)}
.timing__desc{font-size:.8rem; color:var(--muted-dim); margin-top:1px}
.timing__time{font-size:.95rem; letter-spacing:.1em; color:var(--gold-deep); font-variant-numeric:tabular-nums; white-space:nowrap}
.timing.is-next{background:linear-gradient(90deg, rgba(246,183,38,.30), transparent 72%); border-left:2px solid var(--saffron)}
.timing.is-next .timing__time{color:var(--brand-red)}
.pip{
  display:inline-flex; align-items:center; gap:.45em; margin-left:.7em;
  font-size:.6rem; letter-spacing:.22em; text-transform:uppercase; color:var(--brand-red);
}
.pip i{width:6px; height:6px; border-radius:50%; background:var(--marigold); animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1; box-shadow:0 0 0 0 rgba(206,32,41,.45)} 50%{opacity:.6; box-shadow:0 0 0 6px rgba(206,32,41,0)}}

/* ============================================================
   14. Event list
   ============================================================ */
.event{
  display:grid; gap:var(--s5); align-items:center;
  grid-template-columns:1fr; padding:clamp(1.4rem,3vw,2rem) 0;
  border-bottom:1px solid var(--hair-soft);
}
@media(min-width:760px){ .event{grid-template-columns:120px 1fr auto} }
.event__date{
  text-align:center; border:1px solid var(--hair); border-radius:var(--radius-lg);
  padding:.75rem .5rem; background:rgba(246,183,38,.16); width:120px; flex:none;
}
/* The date block is written as <p> tags, so these need the extra `.event` in front to
   beat `.event p` below (it was winning: the big gold day number showed small and grey). */
.event .event__d{font-family:var(--display); font-size:2.1rem; line-height:1; color:var(--gold-deep); font-variant-numeric:lining-nums /* the serif's own figures make 11 look like II */}
.event .event__m{font-size:.75rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-deep); margin-top:5px}
.event .event__y{font-size:.75rem; color:var(--muted-dim); margin-top:2px}
.event h3{font-size:1.5rem; margin-bottom:var(--s2)}
.event p{color:var(--muted); font-size:.92rem; margin:0}
.event__meta{display:flex; flex-wrap:wrap; gap:var(--s4); margin-top:var(--s3); font-size:.76rem; color:var(--muted-dim)}
.event__meta span{display:flex; align-items:center; gap:.4em}
.event__meta svg{width:13px; height:13px; color:var(--gold-deep)}
/* The month view of the events (assets/js/events-month.js). A computer's choice only: on a phone
   the list is already one event a row, so the switch and the month are not offered. */
.mview{display:inline-flex; margin:0 0 var(--s5); border:1px solid var(--hair); border-radius:var(--radius)}
.mview[hidden]{display:none}
.mview button{min-height:44px; padding:0 1.4rem; background:none; border:0; font:600 .78rem/1 var(--body); letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); cursor:pointer}
.mview button + button{border-left:1px solid var(--hair)}
.mview button[aria-pressed="true"]{background:var(--ink); color:var(--paper)}
.mcal__head{display:flex; align-items:center; justify-content:space-between; gap:var(--s4); margin-bottom:var(--s4)}
.mcal__title{margin:0; font-family:var(--display); font-weight:500; font-size:clamp(1.8rem,3.5vw,2.6rem); line-height:1}
.mcal__title em{font-style:italic; font-weight:400; color:var(--gold-deep)}
.mcal__nav{min-width:48px; min-height:48px; background:none; border:1px solid var(--hair); border-radius:var(--radius); font:500 1.1rem/1 var(--body); color:var(--ink); cursor:pointer}
.mcal__nav:hover{background:var(--paper-3)}
.mcal__table{width:100%; table-layout:fixed; border-collapse:separate; border-spacing:6px}
.mcal__table th{padding:0 .4rem .3rem; text-align:left; font-size:.7rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-dim)}
.mcal__day,.mcal__out{vertical-align:top; height:7.2rem; padding:.4rem .5rem; border-radius:var(--radius-lg); background:var(--paper-2)}
.mcal__out{background:transparent}
.mcal__day.is-weekend{background:var(--paper-3)}
.mcal__d{display:inline-block; margin-bottom:.2rem; font-family:var(--display); font-size:1.35rem; line-height:1; color:var(--ink-soft); font-variant-numeric:lining-nums}
.mcal__day.is-today .mcal__d{min-width:2rem; padding:.3rem 0; text-align:center; border-radius:999px; background:var(--marigold); color:var(--ink)}
.mcal__list{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.mcal__ev a,.mcal__ev--past{display:block; padding:.3rem .4rem; border-radius:var(--radius); background:var(--brand-red); color:#fff; font-size:.76rem; line-height:1.25; text-decoration:none; overflow-wrap:anywhere}
.mcal__ev a:hover{background:var(--brand-red-2, var(--brand-red)); text-decoration:underline}
.mcal__ev--past{background:transparent; color:var(--muted-dim); border:1px dashed var(--hair)}
.mcal__t{display:block; font-size:.66rem; letter-spacing:.06em; opacity:.92}
.mcal__n{font-weight:600}
.mcal__w{display:block; font-size:.66rem; font-style:italic}
.mcal__none{margin:var(--s4) 0 0; font-style:italic; color:var(--ink-soft)}
@media(max-width:759px){
  .mview,#upcoming-month{display:none !important}
  #upcoming-list[hidden]{display:block !important}
}

/* A card with no date block: the home page's "no events yet" message */
.event--note{grid-template-columns:1fr}
.event .event__none{color:var(--ink-soft); font-size:1rem; margin-bottom:var(--s3)}
.event__none strong{color:var(--ink); font-weight:600}

/* The Support section's one line about the accounts, beside its single Give button */
.give-note{flex:1 1 15rem; margin:0; font-size:.95rem; line-height:1.5; color:var(--ink-soft)}
.give-note a{color:var(--gold-deep); text-decoration:underline; text-underline-offset:.2em}
.give-note a:hover{color:var(--brand-red)}

/* ============================================================
   15. Pooja / price table
   ============================================================ */
.tablewrap{max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--hair-soft); border-radius:var(--radius-lg)}
table{width:100%; border-collapse:collapse; min-width:480px}
thead th{
  text-align:left; padding:1rem 1.2rem; background:rgba(246,183,38,.20);
  font-size:.66rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-deep);
  font-weight:600; border-bottom:1px solid var(--hair-soft); white-space:nowrap;
}
tbody td{padding:1.05rem 1.2rem; border-bottom:1px solid var(--hair-soft); font-size:.94rem; vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background .35s var(--ease)}
tbody tr:hover{background:rgba(246,183,38,.10)}
td.t-name{font-family:var(--display); font-size:1.12rem; color:var(--ink)}
td.t-name small{display:block; font-family:var(--body); font-size:.78rem; color:var(--muted-dim); margin-top:3px; letter-spacing:.01em}
td.t-price{color:var(--brand-red); white-space:nowrap; font-variant-numeric:tabular-nums}
/* The request button at the end of a row: a comfortable thing to tap (44px), and every row's button in one line. */
td.t-act{text-align:right; white-space:nowrap; vertical-align:middle}
td.t-act .btn{min-height:44px; padding:.65em 1.25em}
/* The Important Dates table has long sentences in its second column: let it wrap to the screen, not scroll sideways. */
#monthly table{min-width:0}
#monthly td.t-name{width:38%}

/* ============================================================
   16. Page header (interior pages)
   ============================================================ */
.pagehead{position:relative; overflow:hidden; isolation:isolate; border-bottom:1px solid var(--hair-soft)}
.pagehead__bg{position:absolute; inset:0; z-index:0}
.pagehead__photo{position:absolute; inset:0; z-index:1; background-size:cover; background-position:center 40%}
.pagehead{background:linear-gradient(170deg, var(--paper-2) 0%, var(--paper-3) 60%, var(--paper) 100%)}
.pagehead__photo,.pagehead__bg{opacity:1}

/* The photograph is shown at full strength. The cream wash is placed only where
   the type sits, rather than flattened across the whole band.
   Narrow screens: image across the top, cream beneath it carrying the text. */
.pagehead__veil{
  position:absolute; inset:0; z-index:2;
  background:linear-gradient(180deg,
    rgba(250,245,231,.03)  0%,
    rgba(250,245,231,.16) 17%,
    rgba(250,245,231,.89) 32%,
    rgba(250,245,231,.96) 48%,
    var(--paper)         100%);
}

/* Wide screens: type on a cream field at the left, photograph open on the right. */
@media(min-width:900px){
  .pagehead__veil{
    background:
      linear-gradient(90deg,
        rgba(250,245,231,.97)  0%,
        rgba(250,245,231,.95) 30%,
        rgba(250,245,231,.74) 46%,
        rgba(250,245,231,.26) 66%,
        rgba(250,245,231,.02) 84%),
      linear-gradient(180deg, transparent 58%, rgba(250,245,231,.40) 84%, var(--paper) 100%);
  }
}
.pagehead__in{position:relative; z-index:3; padding-block:clamp(9.5rem,30vw,12rem) clamp(3rem,6vw,4.5rem)}
@media(min-width:900px){
  .pagehead__in{padding-block:clamp(6.5rem,13vw,9.5rem) clamp(3rem,6vw,4.5rem)}
}
.pagehead .lead{max-width:52ch}
.pagehead h1{font-size:var(--t-h1); margin-bottom:var(--s4)}
.pagehead .lead{max-width:62ch}
.crumbs{display:flex; flex-wrap:wrap; gap:.55em; font-size:.78rem; letter-spacing:.15em; text-transform:uppercase; color:var(--muted-dim); margin-bottom:var(--s5)}
.crumbs a{color:var(--gold-deep)} .crumbs a:hover{color:var(--brand-red)}
.crumbs span[aria-hidden]{opacity:.45}

/* ============================================================
   17. Accordion (FAQ)
   ============================================================ */
.acc{border-top:1px solid var(--hair-soft)}
.acc__item{border-bottom:1px solid var(--hair-soft)}
.acc__btn{
  display:flex; align-items:flex-start; justify-content:space-between; gap:var(--s5);
  width:100%; text-align:left; padding:1.35rem 0;
  font-family:var(--display); font-size:1.2rem; color:var(--ink); transition:color .35s var(--ease);
}
.acc__btn:hover,.acc__btn[aria-expanded="true"]{color:var(--brand-red)}
.acc__btn svg{width:16px; height:16px; flex:none; margin-top:.35em; color:var(--gold-deep); transition:transform .4s var(--ease)}
.acc__btn[aria-expanded="true"] svg{transform:rotate(45deg)}
.acc__panel{display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s var(--ease-out)}
.acc__panel>div{overflow:hidden}
.acc__btn[aria-expanded="true"]+.acc__panel{grid-template-rows:1fr}
.acc__panel p{color:var(--muted); font-size:.95rem; padding-bottom:1.4rem; max-width:70ch; margin:0}

/* ============================================================
   18. Forms
   ============================================================ */
.field{display:block; margin-bottom:var(--s5)}
.field>span{display:block; font-size:.68rem; letter-spacing:.22em; text-transform:uppercase; color:var(--gold-deep); margin-bottom:var(--s3)}
input,select,textarea{
  width:100%; padding:.9rem 1rem; font:inherit; font-size:.95rem; color:var(--ink);
  background:#FFFDF7; border:1px solid var(--hair); border-radius:var(--radius);
  transition:border-color .35s var(--ease), background .35s var(--ease);
}
input[type="date"]{min-height:3.15rem}   /* a date picker is a little shorter than a text box unless told */
input:focus,select:focus,textarea:focus{outline:0; border-color:var(--gold-deep); background:#fff; box-shadow:0 0 0 3px rgba(246,183,38,.28)}
input::placeholder,textarea::placeholder{color:var(--muted-dim)}
textarea{resize:vertical; min-height:140px}
select{appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237A5709' stroke-width='1.5'><path d='M3 4.5 6 7.5 9 4.5'/></svg>"); background-repeat:no-repeat; background-position:right 1rem center; background-size:12px; padding-right:2.5rem}
.form-note{font-size:.78rem; color:var(--muted-dim)}
/* the E-Hundi's "how would you like to give?" (shown only where PayPal is on) */
.pay-choice{border:0; padding:0; margin:0 0 1.2rem}
.pay-choice legend{padding:0; margin:0 0 .5rem; font-size:.92rem; font-weight:600}
.pay-choice__opt{display:inline-flex; align-items:center; gap:.6rem; min-height:44px; margin:0 1.4rem .2rem 0; cursor:pointer}
.pay-choice__opt input{width:auto; margin:0; flex:none}
.pay-choice__opt input:disabled + span{opacity:.55}
.pay-choice__note{margin:.2rem 0 0}
/* After an enquiry form is sent: the form's fields give way to a plain statement that it was. */
.form-sent{text-align:center; padding:clamp(1rem,3vw,2rem) 0; display:grid; gap:var(--s3); justify-items:center}
.form-sent:focus{outline:none}
.form-sent .h3{font-size:var(--t-h2); margin:0}
.form-sent .lead{margin:0; max-width:52ch}
.form-sent .small{margin:0; color:var(--muted)}
.form-sent .btn{margin-top:var(--s3)}
.form-sent .wait-bar{position:relative; width:min(220px,60%); height:4px; border-radius:2px; background:rgba(0,0,0,.14); overflow:hidden}   /* the slow bar under "Confirming your offering" */
.form-sent .wait-bar::after{content:""; position:absolute; top:0; bottom:0; left:0; width:40%; border-radius:2px; background:var(--gold-deep)}
@media (prefers-reduced-motion:no-preference){ .form-sent .wait-bar::after{animation:wait-slide 1.4s ease-in-out infinite} }
@keyframes wait-slide{from{left:-40%} to{left:100%}}
.panel[data-sent] > :not(.form-sent):not(.panel__corner){display:none !important}   /* !important: some children carry their own inline display */
.form-row{display:grid; gap:var(--s5)}
@media(min-width:640px){ .form-row--2{grid-template-columns:1fr 1fr} }

/* amount chooser */
.amounts{display:flex; flex-wrap:wrap; gap:var(--s3); margin-bottom:var(--s5)}
.amount{
  padding:.75em 1.35em; font-family:var(--display); font-size:1.25rem; color:var(--ink-soft);
  border:1px solid var(--hair-soft); border-radius:var(--radius); transition:.35s var(--ease);
}
.amount:hover{border-color:var(--gold-deep); color:var(--brand-red)}
.amount.is-on{background:linear-gradient(100deg,var(--saffron),var(--marigold)); color:var(--ink); border-color:transparent}

/* ============================================================
   19. Misc blocks
   ============================================================ */
.quote{
  position:relative; padding-left:clamp(1.5rem,4vw,3rem);
  border-left:1px solid var(--hair); font-family:var(--display);
  font-size:clamp(1.3rem,2.4vw,1.9rem); line-height:1.42; color:var(--ink); font-style:italic;
}
.quote cite{display:block; margin-top:var(--s4); font-family:var(--body); font-style:normal; font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color:var(--gold-deep)}

.checks{display:grid; gap:var(--s3)}
.checks li{display:flex; gap:var(--s3); align-items:flex-start; font-size:.95rem; color:var(--ink-soft)}
.checks svg{width:17px; height:17px; flex:none; margin-top:.35em; color:var(--gold-deep)}

.stat{text-align:center}
.stat__n{font-family:var(--display); font-size:clamp(2.4rem,5vw,3.6rem); line-height:1; color:var(--gold-deep)}
.stat__l{font-size:.68rem; letter-spacing:.24em; text-transform:uppercase; color:var(--muted); margin-top:var(--s3)}

.map{width:100%; aspect-ratio:16/11; border:1px solid var(--hair); border-radius:var(--radius-lg); filter:saturate(.72) contrast(1.02); transition:filter .6s var(--ease)}
.map:hover{filter:saturate(1) contrast(1)}
.map--ask{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--s4); padding:var(--s5); text-align:center; background:var(--paper-2); filter:none}
.map--ask:hover{filter:none}
.map__words{max-width:34ch; color:var(--ink-soft); font-size:.95rem}

.ribbon{
  background:linear-gradient(100deg, rgba(246,183,38,.34), rgba(231,202,147,.42));
  border-block:1px solid var(--hair); padding:.85rem 0; overflow:hidden;
}
.ribbon__in{display:flex; align-items:center; justify-content:center; gap:var(--s4); flex-wrap:wrap; text-align:center; font-size:.84rem; color:var(--ink-soft)}
.ribbon strong{color:var(--brand-red); font-weight:600}

/* ============================================================
   20. Footer
   ============================================================ */


/* Between these two widths the fifth column wraps to a second row, where the
   address sits under the logo — which is where it belongs anyway. */

/* Five across once there is room for them. Measured, not guessed: at 1140 the
   link columns are 123px, which holds "Etiquette & Dress" on one line; at 1000
   they are 86px and eight of the links break in two. Same width at which the
   main menu appears, so the header and the footer change together. */
















/* ============================================================
   21. Motion / reveal
   ============================================================ */
/* Progressive enhancement: content is visible by default. Only once the inline
   head script confirms JS is running do we hide it for the reveal animation. */
.js [data-reveal]{opacity:0; transform:translateY(26px); transition:opacity .9s var(--ease-out), transform .9s var(--ease-out)}
.js [data-reveal].is-in{opacity:1; transform:none}
[data-reveal-delay="1"]{transition-delay:.09s}
[data-reveal-delay="2"]{transition-delay:.18s}
[data-reveal-delay="3"]{transition-delay:.27s}
[data-reveal-delay="4"]{transition-delay:.36s}

.no-scroll{overflow:hidden}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}



@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important}
  .js [data-reveal]{opacity:1; transform:none}
  .hero__photo{animation:none}
}

/* Print */
@media print {
  body{background:#fff; color:#000}
  
  .plate,.map{display:none}
}

/* ============================================================
   22. Text over photographs
   The page is light, but the hero, page headers and image plates
   sit on photographs behind a dark scrim, so their type inverts.
   ============================================================ */
.hero__title,
.plate__cap h3{color:var(--on-photo)}

.hero__lead{color:var(--on-photo-soft)}

.hero .eyebrow,
.plate__cap .eyebrow{color:var(--saffron)}
.hero .eyebrow::before,
.plate__cap .eyebrow::before{background:linear-gradient(90deg, transparent, var(--saffron))}

/* Gilt reads as bright gold on a photograph, antique gold on paper */
.hero .gilt{
  background:linear-gradient(96deg, #FFE9B0 4%, var(--marigold) 40%, var(--saffron) 64%, #E0A116 96%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Outline buttons on the hero need a light edge, not a dark one */


/* The artwork behind an empty photo slot stays dark, so its ornament
   and caption keep the same treatment as a real photograph. */
.plate{background:var(--paper-3)}


/* ============================================================
   Standing order details (donate.html) — the figures people copy
   into their banking app, so they are large, even-width and clear.
   ============================================================ */
.bank{margin-top:.6rem; display:grid; gap:1rem; container-type:inline-size}
.bank__label{font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-deep); font-weight:600; margin:0 0 .3rem}
.bank__name{font-family:var(--display); font-size:clamp(1.6rem,3vw,2rem); line-height:1.15; color:var(--ink); margin:0}
.bank__text{font-size:1.08rem; color:var(--ink); font-weight:500; margin:0}
.bank__text small{display:block; font-size:.8rem; color:var(--muted-dim); font-weight:400; margin-top:.15rem; letter-spacing:.04em}
.bank__row{padding-bottom:1rem; border-bottom:1px solid var(--hair-soft)}
.bank__row--ref{border-bottom:0; padding-bottom:0}
.bank__pair{display:grid; gap:.7rem}
.bank__figure{
  display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label copy" "num copy";
  align-items:center; column-gap:.8rem;
  position:relative; padding:.95rem 1rem .95rem 1.15rem; border-radius:14px;
  background:linear-gradient(160deg, rgba(246,183,38,.16), rgba(246,183,38,.06));
  border:1px solid rgba(122,87,9,.22);
}
.bank__num{
  font-family:var(--body); font-weight:600; font-variant-numeric:tabular-nums lining-nums;
  font-size:1.5rem;                                      /* older browsers */
  /* sized to the card: 8 characters must fit beside the Copy button */
  font-size:clamp(1.3rem, calc((100cqi - 105px) / 5.9), 2.2rem);
  letter-spacing:.06em; line-height:1.1;
  color:var(--ink); margin:0; white-space:nowrap; grid-area:num;
}
.bank__figure .bank__label{grid-area:label}
.bank__copy{
  grid-area:copy; display:inline-grid; place-items:center; cursor:pointer;
  width:44px; height:44px; border-radius:12px;                 /* a full-size tap target */
  color:var(--gold-deeper); background:#FFFDF6; border:1px solid rgba(122,87,9,.28);
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.bank__copy svg{width:19px; height:19px; grid-area:1/1}
.bank__copy svg + svg{opacity:0}                              /* the tick, shown once copied */
.bank__copy:hover{background:var(--saffron); border-color:var(--saffron); color:var(--ink)}
.bank__copy:focus-visible{outline:2px solid var(--brand-red); outline-offset:2px}
.bank__copy.is-done{background:var(--sacred-green); border-color:var(--sacred-green); color:#fff}
.bank__copy.is-done svg:first-child{opacity:0}
.bank__copy.is-done svg + svg{opacity:1}
/* "Copied" briefly takes the label's place, so nothing on the card moves */
.bank__status{color:var(--sacred-green)}
.bank__status:not(:empty)::before{content:"\2713\00a0"}
.bank__label:has(.bank__status:not(:empty)) .bank__label-text{display:none}


/* Copy button beside the email address (contact.html) */
.copy-line{display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .8rem}
/* an address reads (and copies) best as typed: no capitals, no wide tracking */
.copy-line .link-more{text-transform:none; letter-spacing:.01em; font-size:.98rem; overflow-wrap:break-word}
.copy-pill{
  display:inline-flex; align-items:center; gap:.4rem; cursor:pointer;
  font:600 .7rem/1 var(--body); letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-deeper); background:#FFFDF6; border:1px solid rgba(122,87,9,.28);
  border-radius:999px; padding:.55rem .85rem; min-height:36px;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.copy-pill svg{width:14px; height:14px}
.copy-pill:hover{background:var(--saffron); border-color:var(--saffron); color:var(--ink)}
.copy-pill:focus-visible{outline:2px solid var(--brand-red); outline-offset:2px}
.copy-pill.is-done{background:var(--sacred-green); border-color:var(--sacred-green); color:#fff}

/* ============================================================
   Learn page (learn.html): reading layout, the annotated Nataraja,
   the symbol tiles and sheets, the twelve volumes. Site tokens only.
   ============================================================ */

.reading{max-width:68ch}
.reading p{max-width:68ch}
.reading .h2{margin-bottom:var(--s4)}
.muted{color:var(--muted-dim)}

/* the in-page index: always reachable while reading */
.learn-index{position:sticky; top:var(--head-h,102px); z-index:60; background:var(--paper); border-bottom:1px solid var(--hair)}
.learn-index__in{display:flex; gap:.5rem; overflow-x:auto; scroll-snap-type:x proximity; padding-block:.55rem; scrollbar-width:none}
.learn-index__in::-webkit-scrollbar{display:none}
.learn-index a{flex:none; scroll-snap-align:start; min-height:44px; display:inline-flex; align-items:center; padding:0 1rem; border:1px solid var(--hair); border-radius:var(--radius); font-size:.8rem; letter-spacing:.06em; color:var(--ink-soft); text-decoration:none; white-space:nowrap}
.learn-index a:hover{background:var(--paper-3); color:var(--ink)}
section[id]{scroll-margin-top:170px}
@media(max-width:1139px){section[id]{scroll-margin-top:150px}}

/* four words */
.words{display:grid; grid-template-columns:1fr 1fr; gap:0 var(--s6); margin:var(--s5) 0 0; max-width:68ch}
.words div{padding:var(--s4) 0; border-top:1px solid var(--hair)}
.words dt{font-family:var(--display); font-size:1.9rem; line-height:1; color:var(--gold-deep)}
.words dd{margin:.4rem 0 0; color:var(--ink-soft); font-size:.95rem}
@media(max-width:600px){.words{grid-template-columns:1fr}}

/* five acts */
.acts-title{margin-top:var(--s8)}

.acts{display:grid; grid-template-columns:minmax(0,380px) minmax(0,1fr); gap:var(--s7); align-items:start; margin-top:var(--s5)}
/* build.js wraps a picture that has a WebP copy in <picture>; the wrapper must not take part in the layout. */
picture{display:contents}
.fig{position:relative; margin:0; border-radius:var(--radius-lg); overflow:hidden; background:#2a1f12; aspect-ratio:841/1500}
.fig img{width:100%; height:100%; object-fit:cover; display:block}
.hs{display:none; position:absolute; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; border:2px solid var(--paper); background:var(--brand-red); color:#fff; font:600 1rem/1 var(--body); cursor:pointer; box-shadow:0 2px 10px rgba(30,15,5,.55); transition:transform .25s var(--ease), box-shadow .25s var(--ease)}
.hs:hover{transform:scale(1.08)}
.hs[aria-pressed="true"]{transform:scale(1.18); background:var(--ink); box-shadow:0 0 0 5px rgba(251,183,72,.75), 0 2px 10px rgba(30,15,5,.55)}
.hs:focus-visible,.act-pick:focus-visible,.tile:focus-visible,.sheet__close:focus-visible,.learn-index a:focus-visible{outline:3px solid var(--marigold); outline-offset:2px}
.act-list{list-style:none; margin:0 0 var(--s5); padding:0; display:flex; flex-wrap:wrap; gap:.5rem}
.act-pick{min-height:44px; display:inline-flex; align-items:center; gap:.6rem; padding:0 1rem 0 .5rem; background:transparent; border:1px solid var(--hair); border-radius:var(--radius); font:500 .95rem/1 var(--body); color:var(--ink-soft); cursor:pointer}
.act-pick span{width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--paper-3); font-weight:600; font-size:.85rem}
.act-pick[aria-pressed="true"]{background:var(--ink); border-color:var(--ink); color:var(--paper)}
.act-pick[aria-pressed="true"] span{background:var(--marigold); color:var(--ink)}
.act{max-width:56ch}
.act__ta{margin:0; font-size:1.2rem; color:var(--gold-deep)}
.act h3{margin:.1rem 0 0; font-family:var(--display); font-weight:500; font-size:clamp(2.2rem,4vw,3.2rem); line-height:1.05}
.act__sk{margin:.2rem 0 var(--s4); font-size:.8rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-dim)}
.act__text{font-size:1.05rem; color:var(--ink)}
.act__where{margin-top:var(--s4); padding-top:var(--s3); border-top:1px solid var(--hair); font-size:.92rem; color:var(--ink-soft)}
@media(max-width:860px){.acts{grid-template-columns:1fr; gap:var(--s5)} .fig{max-width:380px}}

/* the lingam */
.banner{margin:var(--s6) 0 0; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:16/7}
.banner img{width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block}
.root{margin-top:var(--s5); padding-left:var(--s4); border-left:3px solid var(--gold-deep); color:var(--ink-soft)}
.states-title{margin-top:var(--s8)}
.states{list-style:none; margin:var(--s5) 0 0; padding:0; display:grid; grid-template-columns:1fr 1.7fr 1fr; gap:var(--s6); counter-reset:s}
.states li{position:relative; padding-top:var(--s5); border-top:2px solid var(--hair)}
.states li::before{content:""; position:absolute; top:-7px; left:0; width:12px; height:12px; border-radius:50%; background:var(--paper); border:2px solid var(--gold-deep)}
.states li.state--here{border-top-color:var(--brand-red)}
.states li.state--here::before{background:var(--brand-red); border-color:var(--brand-red)}
.state__term{margin:0; font-family:var(--display); font-size:1.9rem; line-height:1.05}
.state__gloss{margin:.15rem 0 var(--s3); font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted-dim)}
.state__here{margin-top:var(--s3); font-weight:600; color:var(--brand-red-2)}
@media(max-width:860px){.states{grid-template-columns:1fr; gap:var(--s5)}}

/* symbols: a tile grid, three tiles with photographs, the rest tinted */
.bento{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(170px,auto); gap:var(--s4); margin-top:var(--s6)}
.tile{position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:.25rem; padding:var(--s5); text-align:left; background:var(--paper-2); border:1px solid var(--hair-soft); border-radius:var(--radius-lg); cursor:pointer; font:inherit; color:var(--ink); overflow:hidden; transition:transform .3s var(--ease), box-shadow .3s var(--ease)}
.tile:hover{transform:translateY(-2px); box-shadow:var(--shadow-lift, 0 14px 30px rgba(60,40,10,.14))}
.tile:nth-child(3),.tile:nth-child(6),.tile:nth-child(8){background:var(--paper-3)}
.tile__ta{font-size:1rem; color:var(--gold-deep)}
.tile__t{font-family:var(--display); font-size:1.9rem; line-height:1.05}
.tile__l{font-size:.92rem; color:var(--ink-soft); max-width:36ch}
.tile__go{margin-top:var(--s3); font-size:.75rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--brand-red-2)}
.tile--img{background:#2a1f12 center/cover no-repeat; color:#fff; border-color:transparent}
.tile--img::before{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,10,4,0) 25%, rgba(20,10,4,.88) 100%)}
.tile--img > *{position:relative}
.tile--img .tile__ta{color:var(--marigold)} .tile--img .tile__l{color:#f4ead6} .tile--img .tile__go{color:var(--marigold)}
.tile--nataraja{grid-column:1/3; grid-row:1/3; background-image:url('../img/nataraja-dance.jpg'); background-image:image-set(url('../img/nataraja-dance.webp') type('image/webp'), url('../img/nataraja-dance.jpg') type('image/jpeg')); background-position:center 30%; min-height:420px}
.tile--trishul{grid-column:3; grid-row:1/3; background-image:url('../img/shiva-forest.jpg'); background-position:90% 60%}
.tile--nandi{grid-column:2/4; background-image:url('../img/nandi-lingam.jpg'); background-position:center 55%; min-height:210px}
@media(max-width:860px){.bento{grid-template-columns:1fr} .tile--nataraja,.tile--trishul,.tile--nandi{grid-column:auto; grid-row:auto; min-height:300px}}

/* the sheet that opens for a symbol */
dialog.sheet{width:min(640px,calc(100vw - 2rem)); max-height:calc(100dvh - 3rem); padding:0; border:0; border-radius:var(--radius-lg); background:var(--paper); color:var(--ink); box-shadow:0 30px 80px rgba(30,15,5,.45)}
dialog.sheet::backdrop{background:rgba(30,15,5,.6)}
.sheet__close{position:sticky; top:0; float:right; margin:.8rem; min-height:44px; padding:0 1rem; background:var(--paper); border:1px solid var(--hair); border-radius:var(--radius); font:600 .8rem/1 var(--body); letter-spacing:.12em; text-transform:uppercase; cursor:pointer}
.sheet__body{padding:var(--s7) var(--s6) var(--s6)}
.sheet__ta{margin:0; color:var(--gold-deep); font-size:1.15rem}
.sheet__body h2{margin:.1rem 0 .3rem; font-family:var(--display); font-weight:500; font-size:2.6rem; line-height:1.05}
.sheet__line{font-size:1.1rem; color:var(--ink-soft); margin-bottom:var(--s5)}
.sheet__body section{padding:var(--s4) 0; border-top:1px solid var(--hair)}
.sheet__body h3{margin:0 0 .4rem; font:600 .75rem/1 var(--body); letter-spacing:.18em; text-transform:uppercase; color:var(--gold-deep)}
.sheet__body section p{margin:0}
.sheet__todo{margin-top:var(--s4); font-size:.85rem; font-style:italic; color:var(--muted-dim)}

/* the shelf of twelve volumes */
.shelf{display:grid; grid-template-columns:7fr 2.2fr 3.4fr 2.2fr; gap:var(--s5); margin:var(--s6) 0 var(--s5)}
.shelf__books{display:flex; align-items:flex-end; gap:5px; height:150px; padding-bottom:.4rem; border-bottom:3px solid var(--ink-soft)}
.shelf__books i{flex:1; display:grid; place-items:center; border-radius:2px 2px 0 0; background:linear-gradient(90deg,#6d4b1c,#8c6428 45%,#6d4b1c); color:#f4ead6; font:600 .8rem/1 var(--body); font-style:normal; min-width:0}
.shelf__books i.hot{background:linear-gradient(90deg,#8d1a21,#ae2830 45%,#8d1a21)}
.shelf__t{margin:var(--s3) 0 .2rem; font-weight:600; font-size:.95rem}
.shelf__d{margin:0; font-size:.88rem; color:var(--ink-soft)}
@media(max-width:860px){.shelf{grid-template-columns:1fr 1fr} .shelf__g--7{grid-column:1/3}}
.vasagam{margin-top:var(--s8)}
.vasagam blockquote{margin:var(--s4) 0; padding-left:var(--s5); border-left:3px solid var(--brand-red)}
.vasagam blockquote p{margin:0; font-family:var(--display); font-size:1.7rem; line-height:1.25}
.vasagam blockquote footer{margin-top:.5rem; font-size:.82rem; color:var(--muted-dim)}

/* the nayanmars */
.saints{display:grid; grid-template-columns:auto minmax(0,1fr); gap:var(--s7); align-items:start}
.saints__n{margin:0; font-family:var(--display); font-weight:500; font-size:clamp(7rem,16vw,13rem); line-height:.8; color:var(--gold-deep); font-variant-numeric:lining-nums}
.saints__t{max-width:68ch}
.trades{list-style:none; display:flex; gap:.6rem; overflow-x:auto; scroll-snap-type:x proximity; margin:var(--s6) 0 var(--s4); padding:0 0 .4rem}
.trades li{flex:none; scroll-snap-align:start; padding:.7rem 1.4rem; border:1px solid var(--hair); border-radius:var(--radius); background:var(--paper-2); font-family:var(--display); font-size:1.4rem}
@media(max-width:760px){.saints{grid-template-columns:1fr; gap:var(--s4)} .saints__n{font-size:6.5rem}}

.signoff{text-align:center}
.signoff__t{margin:0; font-family:var(--display); font-weight:500; font-size:clamp(2.4rem,6vw,4.4rem); line-height:1.05}
.signoff__b{justify-content:center; margin-top:var(--s5)}

@media (prefers-reduced-motion:reduce){.hs,.tile{transition:none} .hs:hover,.tile:hover{transform:none}}

/* with scripts: the numbered points, the five buttons, and one act at a time; without: all five acts in order */
.js .hs{display:grid; place-items:center}
.act-list{display:none}
.js .act-list{display:flex}
.act[hidden]{display:none}
.act + .act{margin-top:var(--s6)}
.js .act + .act{margin-top:0}
@media print{.learn-index,.hs,.act-list{display:none}}
