/* ==========================================================================
   श्री शत्रुंजय आदिनाथ तीर्थधाम, महिदपुर — 108aadinathmahidpur.org
   Design language: ivory manuscript + antique gold + the temple's own slate.
   Author: rebuild, 2026.
   ========================================================================== */

:root {
  /* Ivory — handmade paper, not flat cream */
  --paper:        #FCFAF5;
  --paper-2:      #F7F2E7;
  --paper-3:      #F0E9D9;
  --rule:         #E4D9C0;

  /* Antique gold — the leaf on the shikhara */
  --gold:         #B4894A;
  --gold-light:   #D9BC85;
  --gold-pale:    #EFE0C4;
  --gold-deep:    #8A6733;
  --gold-wash:    #FBF4E6;

  /* Shila — sampled from the temple's slate rock facade */
  --shila:        #45536A;
  --shila-deep:   #232C3A;
  --shila-mist:   #7F8CA1;

  /* Kesar — the offering colour, used sparingly for action */
  --kesar:        #D2761B;
  --kesar-deep:   #A85706;

  --ink:          #241F17;
  --ink-soft:     #6B6153;
  --ink-faint:    #9A9081;

  /* Tiro Devanagari Hindi: a light, high-contrast serif drawn Devanagari-first,
     so Hindi and English share one elegant voice. Single weight by design —
     hierarchy comes from scale, tracking and colour, never from heaviness.
     Mukta carries body text; Cinzel is Latin-only for small carved labels. */
  --font-display: "Tiro Devanagari Hindi", "Georgia", serif;
  --font-body:    "Mukta", system-ui, -apple-system, sans-serif;
  --font-label:   "Cinzel", Georgia, serif;

  --step--2: clamp(0.70rem, 0.67rem + 0.12vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1rem, 0.97rem + 0.18vw, 1.1rem);
  --step-1:  clamp(1.22rem, 1.12rem + 0.48vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.38rem + 1.0vw, 2.35rem);
  --step-3:  clamp(2.1rem, 1.68rem + 1.95vw, 3.5rem);
  --step-4:  clamp(2.7rem, 1.85rem + 3.9vw, 5.4rem);

  /* Jali — the lattice from the temple's own screens, as a real texture */
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cg fill='none' stroke='%23B4894A' stroke-width='1'%3E%3Cpath d='M26 0 52 26 26 52 0 26Z'/%3E%3Cpath d='M26 13 39 26 26 39 13 26Z'/%3E%3Cpath d='M0 0h52v52H0z'/%3E%3C/g%3E%3C/svg%3E");

  --shell:    min(1180px, 100% - 2.5rem);
  --shell-nr: min(760px, 100% - 2.5rem);
  --radius:   12px;
  --arch:     140px 140px 12px 12px / 90px 90px 12px 12px;

  --shadow-sm: 0 1px 2px rgba(36, 31, 23, 0.05);
  --shadow:    0 1px 2px rgba(36, 31, 23, 0.04), 0 14px 34px -16px rgba(36, 31, 23, 0.22);
  --shadow-lg: 0 2px 5px rgba(36, 31, 23, 0.06), 0 34px 70px -28px rgba(36, 31, 23, 0.34);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
/* An SVG with no intrinsic dimensions expands to fill a flex line. Every
   sized rule below overrides this; this only catches the ones that slip. */
svg { flex: none; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--kesar-deep); outline-offset: 3px; border-radius: 3px; }

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-nr); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Paper grain — the page reads as handmade stock, not a flat fill */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 10% 6%, rgba(224, 210, 180, 0.6), transparent 62%),
    radial-gradient(ellipse 45% 55% at 92% 78%, rgba(224, 210, 180, 0.52), transparent 64%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(232, 221, 197, 0.5), transparent 70%);
}
body > * { position: relative; z-index: 1; }

/* Section surfaces carry a faint jali lattice, so ivory reads as carved
   screen rather than empty white. */
.section--tint, .facts, .section--stone { position: relative; isolation: isolate; }
.section--tint::before, .section--stone::before, .facts::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--jali);
  background-size: 52px 52px;
  opacity: 0.05;
}
.section--stone::before, .facts::before { opacity: 0.07; }

/* ==========================================================================
   Type
   ========================================================================== */
/* Hierarchy: display weight drops as size drops, so an h1 reads as a
   different voice from an h3 rather than just a bigger one. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.16; }
h1 { font-size: var(--step-4); letter-spacing: -0.018em; line-height: 1.06; }
h2 { font-size: var(--step-3); letter-spacing: -0.012em; line-height: 1.14; }
/* h3 steps down to the sans in small caps, so it reads as a different
   voice from the display headings rather than a shrunken one. */
h3 {
  font-family: var(--font-body); font-size: var(--step-1);
  font-weight: 600; letter-spacing: -0.002em; line-height: 1.32;
}
h4 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; }
:lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; line-height: 1.26; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

/* Eyebrow — carved-stone label. Latin gets Cinzel; Devanagari falls back
   to the tracked sans, since Cinzel has no Devanagari. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-label);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow [data-hi] { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.16em; }
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: var(--gold-light);
}
.eyebrow--start::before { display: none; }

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.58; font-weight: 300; }
:lang(hi) .lede { font-weight: 400; }

/* Unverified content marker — the trust must confirm these before launch */
.chip-draft {
  display: inline-block; vertical-align: baseline;
  margin-inline: 0.35rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: #FDF1D8;
  border: 1px dashed var(--gold);
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  /* Some pages pass a whole sentence to draft(), not a short label. Left
     as nowrap this forced the page wider than the viewport — and only in
     English, where the strings are longer than the Hindi. */
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}
.section--stone .chip-draft { background: rgba(217,188,133,0.14); border-color: var(--gold-light); color: var(--gold-light); }
.muted { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* The gold rule — a repeating motif standing in for inlay */
.rule-gold {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-light) 18%, var(--gold-light) 82%, transparent);
}

/* Ornamental divider: hairline + lotus diamond */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin-block: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
}
.divider::before, .divider::after {
  content: ""; flex: 1; max-width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.divider::after { background: linear-gradient(270deg, transparent, var(--gold-light)); }
.divider svg { width: 34px; height: 14px; flex: none; color: var(--gold); }

/* Language: only the active language is in the flow, so screen readers and
   search engines never see doubled text. */
[data-lang-off] { display: none !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Target the element, not a class the icon helper never emits. An SVG with
   no intrinsic size stretches to fill its flex line — which is how these
   grew to ~200px tall once the button went full-width on mobile. */
.btn > svg { width: 17px; height: 17px; stroke-width: 1.9; flex: none; }
.btn > span { min-width: 0; }

.btn-primary { background: var(--kesar); color: #fff; box-shadow: 0 10px 22px -10px rgba(210, 118, 27, 0.75); }
.btn-primary:hover { background: var(--kesar-deep); }

.btn-gold {
  background: transparent; color: var(--gold-deep);
  border-color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--gold-pale);
}
.btn-gold:hover { background: var(--gold-wash); border-color: var(--gold); }

.btn-ghost { background: rgba(255,255,255,0.75); border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--gold-light); }

.btn-on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.17); }

/* ==========================================================================
   Announcement bar — the Upadhan Tap. Remove after 24 Jan 2027.
   ========================================================================== */
.announce { background: var(--shila-deep); color: #fff; }
.announce__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
  padding-block: 0.6rem; font-size: 0.88rem;
}
.announce__tag {
  flex: none;
  font-family: var(--font-label);
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--shila-deep); background: var(--gold-light);
  border-radius: 999px; padding: 0.16rem 0.7rem;
}
.announce__tag [data-hi] { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; }
.announce p { margin-right: auto; color: rgba(255, 255, 255, 0.86); }
.announce a {
  flex: none; color: var(--gold-light); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(217, 188, 133, 0.45); padding-bottom: 1px;
}
.announce a:hover { color: #fff; border-bottom-color: #fff; }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 250, 245, 0.9);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 8px 26px -20px rgba(36,31,23,0.6); }
.masthead__in { display: flex; align-items: center; gap: 1.1rem; min-height: 76px; padding-block: 0.55rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.18; }
.brand__place { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  padding-block: 0.35rem; border-bottom: 1.5px solid transparent;
  transition: color 0.18s, border-color 0.18s; white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--kesar); }

/* The Upadhan Tap carries a gold dot — it is the one time-bound thing here */
.nav a.nav-flag { position: relative; color: var(--gold-deep); font-weight: 600; }
.nav a.nav-flag::after {
  content: ""; position: absolute; top: 0.1rem; right: -9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--kesar);
}
.nav a.nav-donate {
  border: 1px solid var(--gold-light); border-radius: 999px;
  padding: 0.42rem 1.05rem; color: var(--gold-deep); font-weight: 600;
  background: var(--gold-wash);
}
.nav a.nav-donate:hover { background: var(--kesar); border-color: var(--kesar); color: #fff; }
.nav a.nav-donate[aria-current="page"] { background: var(--kesar); border-color: var(--kesar); color: #fff; }

/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.countdown div {
  text-align: center; padding: clamp(0.9rem, 2vw, 1.3rem) 0.5rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}
.countdown div > b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1;
  color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.countdown div > span {
  display: block; margin-top: 0.4rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.58);
}
.countdown--done { grid-template-columns: 1fr; }
.countdown--done div > b { font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.35; }

.lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: #fff; flex: none; }
.lang button {
  border: 0; background: none; padding: 0.28rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.lang button[aria-pressed="true"] { background: var(--shila-deep); color: #fff; }

.burger {
  display: none; border: 1px solid var(--rule); background: #fff;
  border-radius: 10px; padding: 0.5rem; cursor: pointer; flex: none;
}
.burger svg { width: 20px; height: 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 7vw, 5rem); }
.hero__frame {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--shila-deep); aspect-ratio: 16 / 8.4; min-height: 400px;
  box-shadow: var(--shadow-lg);
}
/* Framed left-of-centre: keeps the shikharas and the rock face in the
   visible right-hand band, and crops the neighbouring house out. */
.hero__frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(24,20,14,0.72) 0%, rgba(24,20,14,0.34) 46%, rgba(24,20,14,0.02) 74%);
}
/* Gold inlay frame, inset from the photo edge */
.hero__frame::before {
  content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(217, 188, 133, 0.45); border-radius: 10px;
}
.hero__plate {
  position: absolute; z-index: 4;
  left: clamp(1rem, 3.4vw, 3rem); bottom: clamp(1rem, 3.4vw, 3rem);
  width: min(580px, calc(100% - 2.5rem));
  background: rgba(252, 250, 245, 0.965);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.hero__invocation {
  font-family: var(--font-display); font-size: var(--step--1);
  letter-spacing: 0.08em; color: var(--gold-deep); margin-bottom: 0.5rem;
}
/* The hero heading is set one step below the raw h1 scale: at full --step-4
   it wraps to four lines and swamps the photograph behind it. */
.hero__plate h1 { font-size: var(--step-3); margin-bottom: 0.85rem; }
.hero__plate > p { color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* Lineage credits */
.lineage { margin-top: 1.5rem; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lineage > div { border-left: 2px solid var(--gold-light); padding-left: 0.8rem; }
.lineage dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.lineage dd { margin: 0; font-size: 0.93rem; line-height: 1.45; }

/* ==========================================================================
   Fact band
   ========================================================================== */
.facts { background: var(--shila-deep); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.6rem); }
.facts__grid { display: grid; gap: clamp(1.4rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 0.25rem; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,0.14); padding-left: clamp(1.4rem, 3vw, 2rem); }
.fact b {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1;
  color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.fact > span { font-size: 0.93rem; color: rgba(255,255,255,0.76); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section--tint { background: var(--paper-2); }
.section--stone { background: var(--shila-deep); color: #fff; }
.section--stone .eyebrow { color: var(--gold-light); }
.section--stone .eyebrow::before, .section--stone .eyebrow::after { background: rgba(217,188,133,0.5); }
.section--stone p { color: rgba(255,255,255,0.76); }
.section--stone .lede { color: rgba(255,255,255,0.82); }

.section__head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head.is-centred { margin-inline: auto; text-align: center; }
.section__head.is-centred .eyebrow { justify-content: center; }
.section__head h2 { margin-top: 0.85rem; }
.section__head p { margin-top: 0.9rem; }

/* ==========================================================================
   SIGNATURE — the yatra route.
   The shrines in parikrama order, stepping up the hill as the real site does.
   ========================================================================== */
.yatra { position: relative; }
/* The unlit route */
.yatra__path {
  position: absolute; left: 23px; top: 14px; bottom: 14px; width: 2px;
  background: var(--rule);
}
/* The walked part of the route, filled as you descend.
   scaleY rather than a calc()'d height: it composites on the GPU and does
   not depend on a percentage resolving against an absolute parent. */
.yatra__path::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  transition: transform 0.2s linear;
}
.stop {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.9rem);
  align-items: start; padding-block: clamp(1.15rem, 2.4vw, 1.9rem);
}
.stop + .stop { border-top: 1px solid var(--rule); }
.stop__marker {
  position: relative; z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--rule);
  font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.5s ease;
}
.stop.is-lit .stop__marker { background: var(--gold); border-color: var(--gold); color: #fff; transform: scale(1.06); }
.stop__body { padding-top: 0.3rem; }
.stop__name { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.28; letter-spacing: -0.004em; }
.stop__note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.15rem; }
.stop__tag {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-wash);
  border: 1px solid var(--gold-pale); border-radius: 999px; padding: 0.18rem 0.68rem;
}
.yatra__crown {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1.6rem; padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(100deg, var(--gold-wash), rgba(251,244,230,0.3));
  border: 1px solid var(--gold-pale); border-radius: var(--radius);
}
.yatra__crown b {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); color: var(--gold-deep); line-height: 1;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card--link { text-decoration: none; display: block; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: var(--gold-wash);
  border: 1px solid var(--gold-pale); color: var(--gold-deep); margin-bottom: 1rem;
}
.card__icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.card h3 { margin-bottom: 0.3rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card__more { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--gold-deep); letter-spacing: 0.02em; }


/* Illustrated ornament icon — the watercolour set, used where a card wants
   more presence than a line glyph */
.card__icon--art {
  width: 74px; height: 74px; border-radius: 12px;
  background: var(--gold-wash); border: 1px solid var(--gold-pale);
  overflow: hidden; padding: 0; display: block; margin-bottom: 1rem;
}
.card__icon--art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Arch card — the torana silhouette, from the building's own colonnade.
   Fixed 3-up on desktop so a six-card set makes two clean rows, never an
   orphan. */
.arch-grid { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arch {
  position: relative; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, #fff, var(--gold-wash));
  border: 1px solid var(--gold-pale);
  border-radius: var(--arch);
  padding: clamp(1.9rem, 3.5vw, 2.5rem) clamp(1.1rem, 2.5vw, 1.75rem) clamp(1.5rem, 2.5vw, 1.9rem);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.arch:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.arch::before {
  content: ""; position: absolute; inset: 7px; border-radius: inherit;
  border: 1px solid rgba(180, 137, 74, 0.28); pointer-events: none;
}
.arch__art { display: block; width: 38px; height: 38px; margin: 0 auto 1rem; color: var(--gold); }
.arch__art img { width: 100%; height: 100%; object-fit: contain; }
.arch__art svg { width: 100%; height: 100%; stroke-width: 1.5; }
.arch h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.arch p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }

/* Trustees */
/* Every trustee gets the same card. The adhyaksh is marked by its gold
   ground alone, not by taking more room than the rest. */
.trustees { display: grid; gap: clamp(0.9rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.trustee {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.1rem;
}
.trustee--lead { background: linear-gradient(115deg, #fff, var(--gold-wash)); border-color: var(--gold-pale); }
.trustee__role { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.trustee__name { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.26;
  text-wrap: balance; }
/* margin-top:auto drops the number to the foot of the card, so the numbers
   line up across a row whether the name above ran to one line or two. The
   padding keeps them off the name when the card has no slack to give. */
.trustee a {
  margin-top: auto; padding-top: 0.5rem; text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content;
}
.trustee a svg { width: 15px; height: 15px; stroke-width: 2; color: var(--gold-deep); }
.trustee a:hover { color: var(--gold-deep); }

/* ==========================================================================
   Quote — "Words of Wisdom"
   ========================================================================== */
.sutra { text-align: center; position: relative; padding-block: clamp(1rem, 3vw, 2rem); }
.sutra__art { width: min(190px, 45vw); margin: 0 auto clamp(1.25rem, 3vw, 2rem); }
.sutra blockquote {
  font-family: var(--font-display); font-size: var(--step-3);
  line-height: 1.42; max-width: 22ch; margin-inline: auto; color: var(--ink);
}
.sutra__roman { margin-top: 0.85rem; font-size: var(--step-1); color: var(--ink-soft); font-style: italic; }
.sutra cite {
  display: block; margin-top: 1.25rem; font-style: normal;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
}

/* ==========================================================================
   Timeline (History)
   ========================================================================== */
.era { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.era + .era { border-top: 1px solid var(--rule); }
.era__when { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-deep); line-height: 1.15; }
.era__when small { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.2rem; }
.era h3 { margin-bottom: 0.35rem; }
.era p { color: var(--ink-soft); }

/* ==========================================================================
   Media
   ========================================================================== */
.split { display: grid; gap: clamp(1.5rem, 3.5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); align-items: center; }
.split--top { align-items: start; }
.media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--paper-2); border: 1px solid var(--rule);
}
.media iframe, .media video, .media img { width: 100%; height: 100%; border: 0; }
.media--map { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 10; }
.media--wide img { object-fit: cover; }
.media--reel { aspect-ratio: 9 / 16; max-height: 640px; margin-inline: auto; background: #000; }
.media--reel video { object-fit: cover; }

/* Gallery */
.gallery { display: grid; gap: clamp(0.7rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery figure {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule); background: var(--paper-2); aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1.6rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(24,20,14,0.78));
  color: #fff; font-size: 0.85rem; font-weight: 500;
}
.gallery figure.is-tall { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Visit / contact rows
   ========================================================================== */
.visit-list { display: grid; gap: 1.15rem; }
.visit-item { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.visit-item__ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold-wash); border: 1px solid var(--gold-pale); color: var(--gold-deep);
}
.visit-item__ico svg { width: 19px; height: 19px; stroke-width: 1.8; }
.visit-item dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.visit-item dd { margin: 0; font-weight: 600; }
.visit-item dd a { text-decoration: none; border-bottom: 1.5px solid var(--gold-light); }
.visit-item dd a:hover { border-bottom-color: var(--gold); }

/* Timings table */
.timings { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.timings caption { caption-side: top; text-align: left; padding-bottom: 0.75rem; font-size: 0.95rem; color: var(--ink-soft); }
.timings th, .timings td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--rule); }
.timings thead th { background: var(--gold-wash); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.timings tbody tr:last-child th, .timings tbody tr:last-child td { border-bottom: 0; }
.timings td { font-variant-numeric: tabular-nums; font-weight: 600; }
.timings tbody th { font-weight: 500; font-family: var(--font-display); font-size: var(--step-0); }

/* ==========================================================================
   Donation
   ========================================================================== */
.bank {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
.bank__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 1rem; padding-block: 0.9rem; }
.bank__row + .bank__row { border-top: 1px solid rgba(255,255,255,0.11); }
.bank__label { flex: none; width: 200px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.bank__value { font-size: var(--step-1); font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.copy {
  margin-left: auto; border: 1px solid rgba(255,255,255,0.22); background: transparent;
  color: rgba(255,255,255,0.8); border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.74rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.copy:hover { background: rgba(255,255,255,0.12); color: #fff; }
.copy.is-done { background: var(--kesar); border-color: var(--kesar); color: #fff; }
.bank__note { margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Callout / editorial note
   ========================================================================== */
.callout {
  border: 1px solid var(--gold-pale); background: var(--gold-wash);
  border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 1.7rem);
  display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; align-items: start;
}
.callout svg { width: 22px; height: 22px; color: var(--gold-deep); stroke-width: 1.8; margin-top: 2px; }
.callout p { font-size: 0.95rem; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* Named contacts inside a callout. A hairline over each entry rules them
   into one directory, so the four read as peers rather than as a sentence
   of numbers. Numbers never break: a half-wrapped phone number is unusable. */
.contacts {
  list-style: none; padding: 0; margin: 0.85rem 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem 1.6rem;
}
.contacts a {
  display: block; text-decoration: none; color: inherit;
  border-top: 1px solid var(--gold-pale); padding-top: 0.5rem;
}
.contacts__name {
  display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  line-height: 1.35;
}
.contacts__num {
  display: block; margin-top: 0.1rem; white-space: nowrap;
  font-size: 0.95rem; font-weight: 700; color: var(--gold-deep);
}
.contacts a:hover .contacts__num { color: var(--kesar-deep); }
@media (max-width: 820px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .contacts { grid-template-columns: 1fr; gap: 0.55rem; } }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.pagehead { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.pagehead h1 { font-size: var(--step-3); margin-block: 0.8rem 0.9rem; }
.pagehead p { max-width: 60ch; margin-inline: auto; color: var(--ink-soft); }
.crumbs { font-size: var(--step--2); color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }

/* ==========================================================================
   Registration form — native fields that post into the trust's Google Form
   ========================================================================== */
.form {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.5rem); box-shadow: var(--shadow);
}
.form__grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form__row { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label, .fieldset > legend {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0;
}
.field .req { color: var(--kesar-deep); margin-left: 0.15rem; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 9px;
  padding: 0.72rem 0.9rem; width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff;
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash);
}
.field input:invalid:not(:placeholder-shown) { border-color: #C2410C; }
.field textarea { resize: vertical; min-height: 84px; }
.field__hint { font-size: 0.8rem; color: var(--ink-faint); }

.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  margin: 0; cursor: pointer;
}
.choice > span {
  display: block; padding: 0.6rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.choice > input:checked + span {
  background: var(--gold-wash); border-color: var(--gold);
  color: var(--gold-deep); font-weight: 600;
}
.choice > input:focus-visible + span { outline: 2.5px solid var(--kesar-deep); outline-offset: 2px; }
/* Choices that carry a description read as small cards, not long pills */
.choice--card > span {
  border-radius: 12px; text-align: center; min-width: 132px;
  padding: 0.7rem 1.1rem 0.8rem;
}
.choice > span small { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--ink-faint); font-weight: 500; }
.choice > input:checked + span small { color: var(--gold-deep); }

/* ---- Long questionnaire ------------------------------------------------ */
.form--long { padding: 0; overflow: hidden; }
.form--long > .callout { margin: 0 clamp(1.1rem,3vw,2.2rem) clamp(1.1rem,2.5vw,1.6rem); }

.form__masthead {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  padding: clamp(1.1rem,3vw,1.6rem) clamp(1.1rem,3vw,2.2rem);
  background: linear-gradient(100deg, var(--gold-wash), #fff);
  border-bottom: 1px solid var(--gold-pale);
}
.form__kicker {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-deep);
}
.form__appid { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.form__masthead p { font-size: 0.85rem; color: var(--ink-faint); margin-left: auto; }

.form__section { border: 0; padding: 0 clamp(1.1rem,3vw,2.2rem) clamp(1.4rem,3vw,2rem); margin: 0; }
.form__section + .form__section { border-top: 1px solid var(--rule); padding-top: clamp(1.4rem,3vw,2rem); }
/* float + width:100% stops the legend punching a gap in the section rule,
   which is what a legend does by default on a bordered fieldset */
.form__section > legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: var(--step-1);
  color: var(--ink); padding: 0 0 1.1rem;
}
.form__section > .form__grid { clear: both; }
.form__num {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--shila-deep); color: var(--gold-light);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
}

.tag-req, .tag-opt {
  display: inline-block; margin-left: 0.45rem; padding: 0.08rem 0.5rem;
  border-radius: 999px; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  vertical-align: middle;
}
.tag-req { background: #FDEDE3; color: #A8430A; }
.tag-req--hot { background: var(--kesar); color: #fff; }
.tag-opt { background: var(--paper-3); color: var(--ink-faint); }

.callout--warn { background: #FFF7E8; border-color: #EFD49A; }

/* Checkboxes */
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; cursor: pointer; }
.check input {
  appearance: none; width: 20px; height: 20px; margin-top: 2px; flex: none;
  border: 1.5px solid var(--rule); border-radius: 5px; background: var(--paper);
  cursor: pointer; transition: background-color 0.16s, border-color 0.16s;
}
.check input:checked {
  background: var(--kesar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--kesar);
}
.check input:focus-visible { outline: 2.5px solid var(--kesar-deep); outline-offset: 2px; }
.check--inline { grid-template-columns: auto auto; justify-content: start; align-items: center; margin-bottom: 0.1rem; }
.check--inline span { font-size: 0.84rem; color: var(--ink-soft); }
.check--inline input { width: 17px; height: 17px; margin-top: 0; }
.check--pledge {
  background: var(--gold-wash); border: 1px solid var(--gold-pale);
  border-radius: var(--radius); padding: clamp(1rem,2.5vw,1.3rem);
}
.check--pledge span { font-size: 0.95rem; line-height: 1.6; }

/* Photo capture */
.photo {
  border: 2px dashed var(--gold-pale); border-radius: var(--radius);
  background: var(--gold-wash); padding: clamp(1.2rem,3vw,1.8rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
.photo__preview {
  width: 108px; height: 132px; border-radius: 9px; overflow: hidden;
  background: #fff; border: 1px solid var(--gold-pale);
  display: grid; place-items: center; color: var(--gold-light);
}
.photo__preview svg { width: 46px; height: 46px; }
.photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.photo__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.photo__actions .btn { cursor: pointer; }
.photo .field__hint { max-width: 42ch; }

/* Signature pads */
.sign { position: relative; }
.sign__pad {
  width: 100%; height: 140px; display: block; touch-action: none; cursor: crosshair;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 9px;
  background-image: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px)),
                    linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 100%, 100% 104px;
  background-position: 0 0, 0 22px;
}
.sign__pad:focus-visible { outline: 2.5px solid var(--kesar-deep); outline-offset: 2px; }
.sign__pad.is-signed { border-color: var(--gold); background-color: #fff; }
.sign__clear {
  position: absolute; right: 0.55rem; bottom: 0.5rem;
  border: 1px solid var(--rule); background: rgba(255,255,255,0.92);
  border-radius: 999px; padding: 0.24rem 0.75rem;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.sign__clear:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn-lg { padding: 0.95rem 2rem; font-size: var(--step-0); }

/* Invalid highlighting once the user has tried to submit */
.was-validated :invalid { border-color: #C2410C !important; }
.was-validated .choices:has(:invalid) { outline: 2px dashed #E0A088; outline-offset: 6px; border-radius: 10px; }

.form__actions {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap;
  align-items: center; gap: 1rem; margin-top: 0.5rem;
  padding: 1.4rem clamp(1.1rem,3vw,2.2rem) clamp(1.4rem,3vw,2rem);
  border-top: 1px solid var(--rule);
}
.form--long .form__status { margin: 0 clamp(1.1rem,3vw,2.2rem); }
.form__note { font-size: 0.84rem; color: var(--ink-faint); margin-right: auto; max-width: 42ch; }

.form__status { grid-column: 1 / -1; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.93rem; }
.form__status[hidden] { display: none; }
.form__status--ok { background: #ECF7EE; border: 1px solid #B6DCC0; color: #1F5130; }
.form__status--err { background: #FDF0EA; border: 1px solid #F0C2AC; color: #8A3310; }

/* Muhurat cards */
.muhurats { display: grid; gap: clamp(0.9rem, 2vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.muhurat {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.muhurat--final { border-color: var(--gold); }
.muhurat__head {
  background: var(--gold-wash); border-bottom: 1px solid var(--gold-pale);
  padding: 0.8rem 1.1rem;
}
.muhurat--final .muhurat__head { background: var(--shila-deep); border-bottom-color: var(--shila-deep); }
.muhurat--final .muhurat__head * { color: #fff !important; }
.muhurat__kind { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); }
.muhurat__tithi { font-size: 0.88rem; color: var(--ink-soft); }
.muhurat__body { padding: 1.2rem 1.1rem 1.4rem; text-align: center; }
.muhurat__day {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.muhurat__month { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.3rem; }
.muhurat__weekday { font-size: 0.8rem; font-weight: 600; color: var(--gold-deep); letter-spacing: 0.05em; }

/* Nishra list */
.nishra { display: grid; gap: 0.75rem; }
.nishra li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: baseline;
  padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nishra li:last-child { border-bottom: 0; padding-bottom: 0; }
.nishra__mark { color: var(--gold-light); font-size: 0.8rem; }
.nishra__role { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.1rem; }
.nishra__name { font-family: var(--font-display); font-size: var(--step-1); color: #fff; line-height: 1.3; }
.nishra__thana { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.62); margin-top: 0.15rem; }


/* ---- Validation feedback ----------------------------------------------
   The form carries `novalidate` so messages can be bilingual and can cover
   things the browser cannot see, like a missing photo or an unsigned pad.
   That means every message has to be rendered here. */
.form__errors {
  margin: 0 clamp(1.1rem,3vw,2.2rem) 1.25rem;
  background: #FDF0EA; border: 1px solid #F0C2AC;
  border-left: 4px solid #C2410C;
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.form__errors strong { display: block; color: #8A3310; font-size: 0.95rem; margin-bottom: 0.5rem; }
.form__errors ul { margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.form__errors li { font-size: 0.9rem; }
.form__errors a {
  color: #8A3310; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.form__errors a:hover { color: #C2410C; }
.form__errors:focus-visible { outline: 2.5px solid #C2410C; outline-offset: 3px; }

.field-error {
  display: block; margin-top: 0.3rem;
  color: #A8430A; font-size: 0.82rem; font-weight: 600;
}
.field-error::before { content: "⚠ "; }
.is-invalid > input, .is-invalid > select, .is-invalid > textarea {
  border-color: #C2410C !important; background: #FFFBFA;
}
.photo.is-invalid, .sign.is-invalid .sign__pad { border-color: #C2410C; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer__brand img { width: 34px; height: 34px; }
.footer h4 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.85rem; }
.footer li { margin-bottom: 0.45rem; }
.footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer a:hover { color: var(--gold-deep); }
.footer__base {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center;
  font-size: 0.85rem; color: var(--ink-faint);
}
.footer__base p { margin-right: auto; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yatra__path::after { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery figure:hover img { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.85rem; }
}

@media (max-width: 980px) {
  .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .arch-grid { grid-template-columns: 1fr; }
  :root { --arch: 90px 90px 12px 12px / 60px 60px 12px 12px; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  /* Anchored to the masthead itself, not the viewport — otherwise the
     announcement bar pushes the header down and the panel covers it. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    max-height: 70dvh; overflow-y: auto;
  }
  .nav a.nav-flag::after { top: 50%; right: auto; left: 5.5rem; translate: 0 -50%; }
  .nav a.nav-donate {
    text-align: center; margin-top: 0.75rem;
    border-radius: 999px; background: var(--kesar);
    border-color: var(--kesar); color: #fff;
  }

  .announce__in { padding-block: 0.5rem; font-size: 0.8rem; }
  .announce__tag { display: none; }
  .announce p { flex: 1 1 100%; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }

  /* On mobile the plate drops below the photo instead of sitting on it.
     The frame's slate fill would then show around and beneath the plate,
     so the frame becomes a plain image wrapper and the plate sits on the
     page itself. */
  .hero__frame {
    aspect-ratio: auto; min-height: 0; box-shadow: none;
    background: transparent; border-radius: 0; overflow: visible;
  }
  .hero__frame > img { aspect-ratio: 16 / 11; border-radius: 14px; }
  .hero__frame::after, .hero__frame::before { display: none; }
  .hero__plate {
    position: static; width: auto; margin: -3rem 0.5rem 0;
    box-shadow: var(--shadow); border-radius: 14px;
  }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .era { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 560px) {
  /* The "same as mobile" row is a real control, so give it a real target */
  .check--inline { min-height: 44px; padding-block: 0.2rem; }
  .check--inline input { width: 21px; height: 21px; }

  /* Phone and email links are the main action on a phone, so give them a
     proper tap target. 27px was too small to hit reliably. */
  .trustee a, .visit-item dd a, .footer a[href^="tel:"], .footer a[href^="mailto:"] {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .trustee a { padding: 0.35rem 0.9rem 0.35rem 0.7rem; margin-left: -0.7rem;
               border-radius: 999px; background: var(--gold-wash);
               border: 1px solid var(--gold-pale); }
  .trustee a:active { background: var(--gold-pale); }
  .visit-item dd a { padding-block: 0.3rem; }
  .masthead__in { min-height: 68px; }
  .nav { inset-block-start: 68px; }
  .brand__name { font-size: 0.93rem; }
  .stop { grid-template-columns: 38px minmax(0, 1fr); gap: 0.9rem; }
  .stop__marker { width: 38px; height: 38px; font-size: 0.85rem; }
  .yatra__path { left: 18px; }
  .bank__label { width: 100%; }
  .copy { margin-left: 0; }
  .btn { width: 100%; }
  .hero__cta .btn { width: auto; flex: 1 1 auto; }
  .timings th, .timings td { padding: 0.7rem 0.8rem; font-size: 0.92rem; }
}

@media print {
  .masthead, .nav, .btn, .copy, .burger, .lang { display: none !important; }
  body::before { display: none; }
  .section--stone, .facts { background: #fff !important; color: #000 !important; }
}
