/* Layout: white page, one saffron accent. Split hero (welcome left, motto panel right),
   a facts strip, then card grids. Inner pages open on a soft tinted band. */
:root {
  --bg: #FFFFFF;
  --tint: #FFF5EA;
  --card: #FFFFFF;
  --fg: #1F1A17;
  --muted: #6B625C;
  --rule: #ECE6E0;
  --accent: #C25E00;
  --btn: #E8760A;
  --on-btn: #1F1A17;
  --font-display: "Poppins", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 70rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151312; --tint: #211B16; --card: #1C1917; --fg: #F3EEEA; --muted: #ADA39B; --rule: #2F2924;
    --accent: #FF9A3D; --btn: #FF9A3D; --on-btn: #1F1A17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151312; --tint: #211B16; --card: #1C1917; --fg: #F3EEEA; --muted: #ADA39B; --rule: #2F2924;
  --accent: #FF9A3D; --btn: #FF9A3D; --on-btn: #1F1A17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Header ---------- */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); text-decoration: none; min-width: 0; }
.brand-mark {
  position: relative; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--btn); color: var(--on-btn); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1; overflow: hidden;
}
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #FFFFFF; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.site-nav a { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--accent); }
@media (max-width: 40rem) { .site-nav ul { margin-inline: -0.8rem; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn { display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--btn); color: var(--on-btn); border: 1.5px solid var(--btn); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost:hover { border-color: var(--fg); filter: none; }

/* ---------- Home hero ---------- */
.hero .wrap { padding-block: clamp(2rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem 3.5rem; align-items: center; }
.hero-text { display: grid; gap: 1.25rem; min-width: 0; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.05; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.motto-panel {
  background: var(--tint); border-radius: calc(var(--radius) * 2); padding: clamp(1.75rem, 5vw, 3rem);
  display: grid; gap: 1rem; min-width: 0; align-content: center; min-height: 18rem;
}
.motto-deva { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.35; letter-spacing: 0; }
.motto-roman { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; }
.motto-mean { color: var(--muted); }

/* Facts strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); border-block: 1px solid var(--rule); }
.facts li { padding: 1.5rem 1rem 1.5rem 0; display: grid; gap: 0.125rem; }
.facts b { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Sections ---------- */
.section .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2rem; }
.section-head { display: grid; gap: 0.75rem; max-width: 40rem; }
.section h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
.prose { display: grid; gap: 1.125rem; max-width: 42rem; font-size: 1.0625rem; }
.muted { color: var(--muted); }
.band { background: var(--tint); }

.page-head { background: var(--tint); }
.page-head .wrap { padding-block: clamp(2.25rem, 6vw, 4rem); display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.03em; max-width: 20ch; }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.card h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.9375rem; }
a.card { color: var(--fg); text-decoration: none; }
a.card:hover { border-color: var(--btn); }
a.card .more { color: var(--accent); font-weight: 600; font-size: 0.9375rem; margin-top: 0.25rem; }
.icon { width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.5rem; }
.icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Verse */
.verse { display: grid; gap: 1rem; justify-items: center; text-align: center; max-width: 46rem; margin-inline: auto; }
.verse-deva { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 4.5vw, 2.25rem); line-height: 1.5; color: var(--accent); }
.verse-en { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.35; letter-spacing: -0.015em; }
.verse-src { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Principles */
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.principles li { counter-increment: p; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.principles li::before {
  content: counter(p); width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--tint); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Roster */
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; align-items: start; }
.roster section { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; min-width: 0; display: grid; gap: 0.75rem; }
.roster h3 { font-size: 1.25rem; }
.roster table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.roster th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.375rem 0; border-bottom: 1px solid var(--rule); }
.roster td { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.roster tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.roster td:first-child, .roster th:first-child { width: 4.25rem; padding-right: 0.75rem; white-space: nowrap; font-weight: 600; }
.tag { display: inline-block; margin-top: 0.3rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.8125rem; font-weight: 600; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--rule); display: grid; gap: 1.5rem; max-width: 40rem; }
.timeline li { position: relative; display: grid; gap: 0.125rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 7px); top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--btn); box-shadow: 0 0 0 4px var(--bg); }
.timeline .y { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Visit */
.visit { background: var(--tint); border-radius: calc(var(--radius) * 2); padding: clamp(1.5rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band .visit { background: var(--card); }
.address { font-style: normal; font-size: 1.125rem; line-height: 1.55; color: var(--muted); min-width: 0; }
.address strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 3.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 3rem; font-size: 0.9375rem; color: var(--muted); }
.site-foot h2 { font-size: 1rem; color: var(--fg); margin-bottom: 0.375rem; letter-spacing: -0.01em; }
.site-foot address { font-style: normal; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem 1.25rem; }
.site-foot ul a { color: var(--muted); text-decoration: none; }
.site-foot ul a:hover { color: var(--accent); }
.site-foot .motto { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .btn, a.card { transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease; }
}

.cards > li { display: grid; }

/* ================= Vivid layer ================= */
:root {
  --hot1: #DB5C08; --hot2: #A32712; --gold: #FFD27A; --on-hot: #FFFFFF;
  --deep: #3A0F0B; --deep2: #5A1810; --on-deep: #F8EDE4; --on-deep-muted: #DDBFAE;
  --band-bg: #F08A1C; --on-band: #1F1A17;
  --shadow: 0 14px 34px -18px rgba(120, 50, 0, 0.45);
  --i1: #E8760A; --i2: #C8371B; --i3: #F2A900; --i4: #2E7D4F; --i5: #7A1F1A; --on-i: #FFFFFF; --on-i3: #1F1A17;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --deep: #2A0B08; --deep2: #45130D; --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.8); }
}
:root[data-theme="dark"] { --deep: #2A0B08; --deep2: #45130D; --shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.8); }

/* Hero */
.hero { background: radial-gradient(60rem 30rem at 85% 0%, var(--tint), transparent 70%); }
.hero h1 { background: linear-gradient(100deg, var(--fg) 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.motto-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--hot1), var(--hot2)); color: var(--on-hot);
  box-shadow: var(--shadow); min-height: 21rem;
}
.motto-panel::before {
  content: ""; position: absolute; z-index: -1; width: 150%; aspect-ratio: 1; right: -55%; top: -60%;
  border-radius: 50%; opacity: 0.22;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 22.5% 70%, transparent 70.5%);
          mask: radial-gradient(circle, transparent 0 22%, #000 22.5% 70%, transparent 70.5%);
}
.motto-panel::after {
  content: "ॐ"; position: absolute; z-index: -1; right: 1.25rem; bottom: -1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 9rem; line-height: 1; color: var(--gold); opacity: 0.2;
}
.motto-deva { color: var(--gold); }
.motto-roman { color: var(--on-hot); }
.motto-mean { color: var(--on-hot); opacity: 0.85; }

/* Facts band */
.facts { background: var(--band-bg); color: var(--on-band); border: 0; border-radius: calc(var(--radius) * 1.5); padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.facts li { padding: 1.25rem 1rem 1.25rem 0; }
.facts span { color: var(--on-band); opacity: 0.85; }

/* Cards */
.card { box-shadow: 0 1px 0 var(--rule); }
a.card { position: relative; overflow: hidden; }
a.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--hot1), var(--i3)); transform: scaleX(0); transform-origin: left; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
a.card:hover::before { transform: scaleX(1); }
.icon { background: var(--i1); color: var(--on-i); width: 3rem; height: 3rem; border-radius: 14px; }
.cards > li:nth-child(5n+2) .icon { background: var(--i2); }
.cards > li:nth-child(5n+3) .icon { background: var(--i3); color: var(--on-i3); }
.cards > li:nth-child(5n+4) .icon { background: var(--i4); }
.cards > li:nth-child(5n+5) .icon { background: var(--i5); }

/* Deep verse section */
.section.deep { background: linear-gradient(160deg, var(--deep), var(--deep2)); color: var(--on-deep); position: relative; overflow: hidden; isolation: isolate; }
.section.deep::before {
  content: ""; position: absolute; z-index: -1; width: min(44rem, 120%); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  border-radius: 50%; opacity: 0.1;
  background: repeating-radial-gradient(circle, var(--gold) 0 2px, transparent 2px 34px);
}
.deep .verse-deva { color: var(--gold); }
.deep .verse-en { color: var(--on-deep); }
.deep .verse-src { color: var(--on-deep-muted); }

/* Inner page banner */
.page-head { background: linear-gradient(120deg, var(--hot1), var(--hot2)); color: var(--on-hot); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; z-index: -1; height: 260%; aspect-ratio: 1; right: -8%; top: 50%; translate: 0 -50%;
  border-radius: 50%; opacity: 0.2;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 0 24%, #000 24.5% 70%, transparent 70.5%);
          mask: radial-gradient(circle, transparent 0 24%, #000 24.5% 70%, transparent 70.5%);
}
.page-head .lede { color: var(--on-hot); opacity: 0.92; }

/* Principles, roster, timeline accents */
.principles li::before { background: linear-gradient(140deg, var(--hot1), var(--hot2)); color: var(--on-hot); }
.principles li:hover { border-color: var(--i1); }
.roster section { border-top: 4px solid var(--i1); }
.roster section:nth-child(3n+2) { border-top-color: var(--i2); }
.roster section:nth-child(3n+3) { border-top-color: var(--i3); }
.tag { background: var(--i1); color: var(--on-band); }
.visit { background: linear-gradient(120deg, var(--tint), var(--bg)); border: 1px solid var(--rule); }

/* Nav + buttons */
.site-nav a[aria-current="page"] { background: var(--i1); color: var(--on-band); }
.btn { box-shadow: 0 8px 18px -10px var(--hot1); }
.btn.ghost { box-shadow: none; }
.btn:hover { transform: translateY(-1px); }

/* Footer */
.site-foot { background: var(--deep); border-top: 0; }
.site-foot .wrap { color: var(--on-deep-muted); }
.site-foot h2 { color: var(--on-deep); }
.site-foot a, .site-foot ul a { color: var(--on-deep); }
.site-foot ul a:hover { color: var(--gold); }
.site-foot .motto { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  a.card, a.card::before, .btn, .principles li { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  .motto-panel::before { animation: spin 90s linear infinite; }
  .hero-text > * { animation: rise 0.6s ease both; }
  .hero-text > :nth-child(2) { animation-delay: 0.06s; }
  .hero-text > :nth-child(3) { animation-delay: 0.12s; }
  .hero-text > :nth-child(4) { animation-delay: 0.18s; }
  @keyframes spin { to { rotate: 360deg; } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ================= Identity layer: colours and sun taken from the Sabha's logo ================= */
:root {
  --hot1: #FFB000; --hot2: #F05A00; --on-hot: #2A0B08; --gold: #FFD23F;
  --band-bg: #FFC21A; --btn: #FF7A00;
  --i1: #FF7A00; --i2: #E63900; --i3: #FFC400;
  --ray: #FFF6C2; --sun-ink: #4A0E00; --disc: #FFFFFF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn: #FF8A1F; } }
:root[data-theme="dark"] { --btn: #FF8A1F; }

.brand-logo { flex: none; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: var(--disc); object-fit: cover; }
.brand-name { font-size: 1.0625rem; }
.brand-name small { color: var(--accent); font-weight: 500; font-style: italic; }

.motto-panel {
  background: radial-gradient(circle at 50% 34%, #FFE94D 0, #FFB000 34%, #FF7A00 66%, #E63900 100%);
  color: var(--sun-ink); justify-items: center; text-align: center; gap: 0.75rem; padding-block: clamp(2rem, 5vw, 3rem);
}
.motto-panel::before {
  width: 190%; right: auto; left: 50%; top: 34%; translate: -50% -50%; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 14%, #000 14.5% 62%, transparent 70%);
          mask: radial-gradient(circle, transparent 0 14%, #000 14.5% 62%, transparent 70%);
}
.motto-panel::after { content: none; }
.sun-logo { width: clamp(9rem, 22vw, 12.5rem); height: auto; aspect-ratio: 240 / 238; border-radius: 50%; background: var(--disc); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 18px 40px -16px rgba(90, 20, 0, 0.6); margin-bottom: 0.5rem; }
.motto-deva { color: var(--sun-ink); font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.motto-roman, .motto-mean { color: var(--sun-ink); opacity: 1; }
.motto-mean { font-weight: 500; }

.page-head::before { background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 6deg, transparent 6deg 18deg); opacity: 0.35; }
.page-head .lede { color: var(--on-hot); opacity: 1; }
.btn { color: var(--on-band); }
.btn.ghost { color: var(--fg); }

.foot-brand { display: flex; align-items: center; gap: 0.875rem; }
.foot-brand .brand-logo { width: 4.5rem; height: 4.5rem; }
.foot-brand strong { font-family: var(--font-display); font-weight: 600; color: var(--on-deep); font-size: 1rem; line-height: 1.3; }

/* ================= About page content ================= */
.subnav { border-bottom: 1px solid var(--rule); }
.subnav ul { list-style: none; margin: 0; padding: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subnav a { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--fg); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.subnav a:hover { border-color: var(--btn); color: var(--accent); }
.section[id] { scroll-margin-top: 1rem; }
.section .wrap.two-col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2.5rem 3.5rem; align-items: start; }
.prose h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); margin-top: 0; }
.prose h3 { font-size: 1.25rem; }
.objects { background: var(--tint); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 0.75rem; min-width: 0; border-top: 5px solid var(--i1); }
.objects h3 { font-size: 1.375rem; }
.objects ul { list-style: none; margin: 0.25rem 0; padding: 0; display: grid; gap: 0.875rem; }
.objects li { position: relative; padding-left: 1.75rem; }
.objects li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: radial-gradient(circle, var(--i3) 0 40%, var(--i1) 45%); }
.reg { margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.reg div { display: grid; gap: 0.1rem; min-width: 0; }
.reg dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.reg dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-reg { max-width: none; }
.people-group { display: grid; gap: 0.875rem; }
.people-group h3 { font-size: 1.125rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; }
.people li { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--i1); border-radius: 10px; padding: 0.75rem 1rem; display: grid; gap: 0.1rem; min-width: 0; }
.people .role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.people .name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.people-group:nth-of-type(2) .people li { border-left-color: var(--i3); }
.people-group:nth-of-type(3) .people li { border-left-color: var(--i4); }
.people .mail { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 0.25rem; }
#people .people { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
#people .people li { padding: 1rem 1.25rem; }

/* ================= Dropdown + sanskars ================= */
.site-nav .has-sub { position: relative; }
.site-nav .caret { font-size: 0.7em; opacity: 0.7; }
.site-nav .sub { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 13.5rem; padding: 0.4rem; margin: 0; flex-direction: column; align-items: stretch; gap: 0.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a { display: block; border-radius: 8px; white-space: nowrap; }
@media (max-width: 40rem) { .site-nav .sub { margin-inline: 0; } }

.stage { display: grid; gap: 1rem; }
.stage h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.stage h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.sanskars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.sanskars li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.sanskars .num { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--hot1), var(--hot2)); color: var(--on-hot); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.sanskars h4 { margin: 0 0 0.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.sanskars p { color: var(--muted); font-size: 0.9375rem; }

/* Principles: single column, English with Hindi beneath */
.principles { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.principles .en { font-size: 1.125rem; line-height: 1.55; font-weight: 500; }
.principles .hi { margin-top: 0.5rem; color: var(--muted); line-height: 1.8; }
.principles li > div { min-width: 0; }

/* Ceremonies intro */
.verse-panel { background: linear-gradient(160deg, var(--deep), var(--deep2)); color: var(--on-deep); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.75rem, 5vw, 2.75rem); display: grid; gap: 1rem; min-width: 0; position: relative; overflow: hidden; isolation: isolate; }
.verse-panel::before { content: ""; position: absolute; z-index: -1; width: 30rem; aspect-ratio: 1; right: -12rem; top: -12rem; border-radius: 50%; opacity: 0.12; background: repeating-radial-gradient(circle, var(--gold) 0 2px, transparent 2px 30px); }
.verse-panel .verse-deva { color: var(--gold); font-size: clamp(1.5rem, 3.5vw, 2rem); }
.verse-panel .verse-en { color: var(--on-deep); font-size: 1.25rem; }
.verse-panel .verse-src { color: var(--on-deep-muted); }
.cards.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card em { font-style: italic; color: var(--fg); }

/* Dayanand: portrait slot + horizontal timeline */
.section .wrap.bio { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem 3.5rem; align-items: start; }
.bio .prose { grid-column: span 2; }
.bio .portrait + .prose { grid-column: auto / span 2; }
@media (max-width: 60rem) { .bio .prose, .bio .portrait + .prose { grid-column: auto; } }
.portrait { margin: 0; display: grid; gap: 0.75rem; max-width: 22rem; }
.portrait img { width: 100%; height: auto; border-radius: calc(var(--radius) * 1.5); border: 6px solid var(--card); box-shadow: 0 0 0 2px var(--i1), var(--shadow); background: var(--tint); }
.portrait figcaption { font-size: 0.875rem; color: var(--muted); text-align: center; }

.timeline.across { max-width: none; padding: 0; border-left: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.timeline.across li { padding: 2.25rem 1.25rem 0 0; border-top: 3px solid var(--rule); align-content: start; gap: 0.375rem; }
.timeline.across li::before { left: 0; top: -9px; width: 15px; height: 15px; box-shadow: 0 0 0 5px var(--bg); }
.timeline.across li:last-child { border-image: linear-gradient(90deg, var(--rule), transparent) 1; }
.timeline.across .y { font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 52rem) {
  .timeline.across { grid-template-columns: minmax(0, 1fr); padding-left: 1.5rem; border-left: 3px solid var(--rule); gap: 1.5rem; }
  .timeline.across li { padding: 0; border-top: 0; border-image: none; }
  .timeline.across li::before { left: calc(-1.5rem - 9px); top: 0.5rem; }
}

/* ================= Dayanand page ================= */
.section .wrap.bio { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start; }
@media (max-width: 56rem) { .section .wrap.bio { grid-template-columns: minmax(0, 1fr); } }
.bio .prose, .bio .portrait + .prose { grid-column: auto; }
.chapters { display: grid; gap: 2rem; counter-reset: ch; min-width: 0; }
.chapter { position: relative; display: grid; gap: 0.5rem; padding-left: 1.5rem; border-left: 4px solid var(--i1); font-size: 1.0625rem; }
.chapter:nth-child(2) { border-left-color: var(--i2); }
.chapter:nth-child(3) { border-left-color: var(--i3); }
.chapter:nth-child(4) { border-left-color: var(--i4); }
.chapter h2 { font-size: 1.5rem; }
.bio-side { display: grid; gap: 1.5rem; min-width: 0; }
.portrait { max-width: none; }
.glance { background: linear-gradient(140deg, var(--hot1), var(--hot2)); color: var(--on-hot); border-radius: calc(var(--radius) * 1.5); padding: 1.75rem; box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.glance::before { content: ""; position: absolute; z-index: -1; width: 22rem; aspect-ratio: 1; right: -11rem; top: -11rem; border-radius: 50%; opacity: 0.35; background: repeating-conic-gradient(from 0deg, var(--ray) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, transparent 0 20%, #000 20.5% 68%, transparent 70%); mask: radial-gradient(circle, transparent 0 20%, #000 20.5% 68%, transparent 70%); }
.glance h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.glance dl { margin: 0; display: grid; }
.glance dl div { display: grid; gap: 0.05rem; padding-block: 0.6rem; border-top: 1px solid rgba(42, 11, 8, 0.2); }
.glance dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.glance dd { margin: 0; font-weight: 600; }
.deep .verse .verse-deva { font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.3; font-weight: 600; }
.deep .verse .verse-en { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.timeline.across .y { background: linear-gradient(120deg, var(--hot2), var(--i1)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.25rem; }
.timeline.across li::before { width: 18px; height: 18px; top: -11px; background: radial-gradient(circle, var(--i3) 0 35%, var(--i1) 40%); }
.timeline.across li { border-top-color: var(--i1); }
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.books li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 1.75rem; display: grid; gap: 0.4rem; align-content: start; position: relative; overflow: hidden; }
.books li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(180deg, var(--hot1), var(--hot2)); }
.books .yr { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.books h3 { font-size: 1.25rem; font-style: italic; }
.books p { color: var(--muted); font-size: 0.9375rem; }

/* Satsang notice */
.notice { background: var(--tint); border: 1px solid var(--rule); border-top: 5px solid var(--i1); border-radius: calc(var(--radius) * 1.5); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 0.75rem; justify-items: start; min-width: 0; }
.notice h3 { font-size: 1.375rem; }
.notice p { overflow-wrap: anywhere; }
.notice .tag { margin: 0; }

/* 2027 roster */
.section-head .tag { justify-self: start; margin: 0; }
.roster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.roster section, .roster section:nth-child(3n+2), .roster section:nth-child(3n+3) { border-top-color: var(--i1); }
.roster td:first-child, .roster th:first-child { width: 5rem; }
.host { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.host::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--muted); flex: none; }
.host.h1::before { background: var(--i2); }
.host.h2::before { background: var(--i1); }
.host.h3::before { background: var(--i3); }
.host.h4::before { background: var(--i4); }
.host.h5::before { background: var(--i5); }
.host.h6::before { background: #2A7F9E; }
.host.none { color: var(--muted); font-weight: 400; font-style: italic; }
.host.none::before { background: transparent; border: 1.5px solid var(--muted); }
.roster .tag { display: table; margin-top: 0.35rem; }
.roster .note { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.roster .host { display: flex; }
.roster .tag { display: inline-block; margin-top: 0.4rem; padding: 0.15rem 0.7rem; line-height: 1.5; }

/* Satsang: next, coming up, festivals, collapsed roster */
.next { background: radial-gradient(circle at 85% 0%, #FFE94D 0, #FFB000 30%, #FF7A00 65%, #E63900 100%); color: var(--sun-ink); border-radius: calc(var(--radius) * 2); padding: clamp(1.75rem, 5vw, 2.75rem); display: grid; gap: 0.5rem; align-content: center; min-height: 15rem; box-shadow: var(--shadow); min-width: 0; }
.next .label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.next .date { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.next .who { font-size: 1.1875rem; font-weight: 500; }
.next .extra { display: grid; gap: 0.35rem; justify-items: start; }
.next .tag { background: var(--sun-ink); color: #FFE9B8; margin: 0.25rem 0 0; }
.next .note { font-size: 0.875rem; }
.cards.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.card.up, .card.fest { gap: 0.4rem; justify-items: start; }
.card .when { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card.up .host { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.card.up .tag, .card.fest .tag { margin: 0.15rem 0 0; }
.card.fest { border-top: 4px solid var(--i1); }
.card.fest .host { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.card.fest .note { font-size: 0.8125rem; color: var(--muted); }
.card.fest.past { opacity: 0.5; }
details.full { background: var(--card); border: 1px solid var(--rule); border-radius: calc(var(--radius) * 1.5); }
details.full summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
details.full summary::-webkit-details-marker { display: none; }
details.full summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: calc(var(--radius) * 1.5); }
details.full .tag { margin: 0; }
.sum-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.sum-hint { margin-left: auto; color: var(--accent); font-weight: 600; }
.sum-hint::after { content: " +"; }
details.full[open] .sum-hint { font-size: 0; }
details.full[open] .sum-hint::after { content: "Hide \2212"; font-size: 1rem; }
.full-body { padding: 0 1.5rem 1.5rem; display: grid; gap: 1.25rem; }
.full-body .roster section { background: var(--bg); }
.card.up .note { font-size: 0.8125rem; color: var(--muted); }
[hidden] { display: none !important; }

/* Writings timeline */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 54rem; }
.works > li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 1.5rem; position: relative; padding-bottom: 1.75rem; }
.works > li::before { content: ""; position: absolute; left: calc(5.5rem + 0.75rem - 1.5px); top: 0.6rem; bottom: -0.6rem; width: 3px; background: var(--i1); opacity: 0.35; }
.works > li:last-child { padding-bottom: 0; }
.works > li:last-child::before { display: none; }
.works .wy { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--hot2), var(--i1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.works ul { list-style: none; margin: 0; padding: 0 0 0 1.5rem; display: grid; gap: 0.75rem; position: relative; }
.works ul::before { content: ""; position: absolute; left: -0.75rem; top: 0.55rem; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: radial-gradient(circle, var(--i3) 0 35%, var(--i1) 40%); box-shadow: 0 0 0 5px var(--tint); }
.works ul li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; gap: 0.25rem; }
.works ul li.major { border-left: 6px solid var(--i1); }
.works h3 { font-size: 1.125rem; font-style: italic; }
.works li.major h3 { font-size: 1.3125rem; }
.works p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 36rem) {
  .works > li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-left: 1.5rem; }
  .works > li::before { left: 0; top: 0.9rem; }
  .works .wy { text-align: left; }
  .works ul { padding-left: 0; }
  .works ul::before { left: -1.5rem; top: -1.75rem; margin-left: -6px; }
}

/* Banner sun: fixed-size rays with ओ३म् in the centre */
.page-head::before { height: auto; width: 30rem; right: -4rem; }
.page-head::after {
  content: "ओ३म्"; position: absolute; z-index: -1; right: 11rem; top: 50%; translate: 50% -50%;
  font-family: var(--font-display); font-weight: 600; font-size: 4.25rem; line-height: 1; white-space: nowrap;
  color: var(--ray); opacity: 0.9;
}
@media (max-width: 52rem) {
  .page-head::before { width: 22rem; right: -7rem; }
  .page-head::after { right: 4rem; font-size: 3rem; opacity: 0.35; }
}
.page-head::after { font-size: 3.4rem; top: calc(50% - 0.15rem); }
@media (max-width: 52rem) { .page-head::after { content: none; } }

/* Principles: read aloud */
.readbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; max-width: 52rem; padding: 1rem 1.25rem; background: var(--tint); border-radius: var(--radius); }
.readbar-label { font-family: var(--font-display); font-weight: 600; margin-right: auto; }
.readbar .btn { padding: 0.5rem 1.1rem; font-size: 0.9375rem; cursor: pointer; font-family: inherit; }
.readbar .btn.ghost { background: var(--card); }
.say { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }
.say-btn { font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; padding: 0.3rem 0.85rem 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); display: inline-flex; align-items: center; gap: 0.45rem; }
.say-btn::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 0.3rem 0 0.3rem 0.5rem; border-color: transparent transparent transparent var(--accent); }
.say-btn:hover { border-color: var(--btn); }
.say-btn:focus-visible, .readbar .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.say-btn.playing { background: var(--btn); border-color: var(--btn); color: var(--on-band); }
.say-btn.playing::before { width: 0.5rem; height: 0.5rem; border: 0; background: var(--on-band); border-radius: 1px; }
.readbar .btn.playing { background: var(--sun-ink); border-color: var(--sun-ink); color: #FFE9B8; }
.principles li.speaking { border-color: var(--btn); box-shadow: 0 0 0 3px var(--tint); }

/* Touch: tap About to open its list; roomier footer links */
.site-nav .has-sub.open .sub { display: flex; }
.site-nav .sub a { padding: 0.6rem 0.8rem; }
.site-foot ul a { display: inline-block; padding-block: 0.3rem; }
.say-msg { flex-basis: 100%; font-size: 0.875rem; color: var(--accent); font-weight: 500; }
.readbar .say-msg { order: 9; }

/* Portrait: never stretch beyond its own size, keep it from filling a phone screen */
.portrait { justify-items: center; }
.portrait img { width: auto; max-width: min(100%, 20rem); max-height: 32rem; display: block; }

/* Dayanand: At a glance as a full-width strip under the biography and portrait */
.bio .glance { grid-column: 1 / -1; }
.bio .glance dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0 1.5rem; }
.bio .glance h3 { margin-bottom: 0.5rem; }
.bio-side { justify-items: center; }
.glance dl div { align-content: start; }

/* Writings: a shelf of books by year, one description shown at a time */
.shelf { display: grid; gap: 1.25rem; }
.shelf-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.75rem; position: relative; }
.shelf-years::before { content: ""; position: absolute; left: 0; right: 0; top: 2.9rem; height: 3px; background: var(--i1); opacity: 0.35; }
.shelf-years > li { display: grid; gap: 1.5rem; align-content: start; position: relative; min-width: 0; }
.shelf-years > li::before { content: ""; position: absolute; left: 0; top: calc(2.9rem - 6px); width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, var(--i3) 0 35%, var(--i1) 40%); box-shadow: 0 0 0 4px var(--tint); }
.shelf .wy { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--hot2), var(--i1)); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: left; }
.books-in { display: grid; gap: 0.5rem; }
.book { font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; padding: 0.7rem 0.7rem 0.7rem 0.9rem; min-height: 3.6rem; border-radius: 4px 10px 10px 4px; border: 1px solid var(--rule); border-left: 6px solid var(--i3); background: var(--card); color: var(--fg); overflow-wrap: anywhere; }
.book.major { border-left-color: var(--i2); }
.book:hover { border-color: var(--btn); border-left-color: var(--btn); transform: translateY(-2px); }
.book:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.book[aria-pressed="true"] { background: linear-gradient(140deg, var(--hot1), var(--hot2)); color: var(--on-hot); border-color: transparent; border-left-color: var(--sun-ink); box-shadow: var(--shadow); }
.work-panel { display: grid; gap: 0.75rem; }
.work-detail { background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--i1); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: 0.25rem; }
.work-detail .yr { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.work-detail h3 { font-size: 1.375rem; font-style: italic; }
.work-detail p { color: var(--muted); max-width: 46rem; }
.shelf.js .work-detail { display: none; }
.shelf.js .work-detail.on { display: grid; min-height: 8.5rem; align-content: start; }
.shelf-note { font-size: 0.875rem; }
@media (max-width: 60rem) {
  .shelf-years { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .shelf-years::before { left: 6px; right: auto; top: 0.75rem; bottom: 0.75rem; width: 3px; height: auto; }
  .shelf-years > li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.75rem; padding-left: 1.75rem; align-items: start; }
  .shelf-years > li::before { top: 0.45rem; }
  .books-in { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
  .book { min-height: 0; }
}
@media (prefers-reduced-motion: no-preference) { .book { transition: transform 0.15s ease, border-color 0.15s ease; } }
@media (min-width: 60.01rem) { .shelf-years > li { gap: 2rem; } }

/* ================= Sanskaars: the journey of life ================= */
.journey { display: grid; gap: 1.5rem; }
.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.stage-col { --sc: var(--i1); flex: var(--n) 1 calc(var(--n) * 4.5rem); min-width: 9.5rem; display: grid; gap: 0.75rem; align-content: start; border-top: 6px solid var(--sc); padding-top: 0.75rem; }
.stage-col.s1 { --sc: var(--i3); } .stage-col.s2 { --sc: var(--i1); } .stage-col.s3 { --sc: var(--i4); } .stage-col.s4 { --sc: var(--i2); } .stage-col.s5 { --sc: var(--i5); }
.stage-col h3 { font-size: 1rem; letter-spacing: 0; }
.stage-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0.5rem; }
.sk { font: inherit; font-size: 0.875rem; font-weight: 600; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem 0.5rem 0.5rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--fg); min-width: 0; }
.sk-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #FFFFFF; font-family: var(--font-display); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.stage-col.s1 .sk-n { color: var(--on-i3); }
.sk:hover { border-color: var(--sc); transform: translateY(-2px); }
.sk:focus-visible, .sk-nav .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sk[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: var(--shadow); }
.sk-panel { display: grid; gap: 0.75rem; }
.sk-detail { --sc: var(--i1); background: var(--card); border: 1px solid var(--rule); border-left: 8px solid var(--sc); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sk-detail.s1 { --sc: var(--i3); } .sk-detail.s2 { --sc: var(--i1); } .sk-detail.s3 { --sc: var(--i4); } .sk-detail.s4 { --sc: var(--i2); } .sk-detail.s5 { --sc: var(--i5); }
.sk-num { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #FFFFFF; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.sk-detail.s1 .sk-num { color: var(--on-i3); }
.sk-stage { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sk-detail h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0.1rem 0 0.4rem; }
.sk-detail p { font-size: 1.0625rem; max-width: 44rem; }
.journey.js .sk-detail { display: none; }
.journey.js .sk-detail.on { display: grid; min-height: 11rem; }
.sk-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sk-nav .btn { font: inherit; font-weight: 600; cursor: pointer; background: var(--card); padding: 0.55rem 1.1rem; }
.sk-nav .btn:disabled { opacity: 0.4; cursor: default; }
#sk-count { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .sk-detail { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; } .sk-num { width: 3rem; height: 3rem; font-size: 1.25rem; } }
@media (prefers-reduced-motion: no-preference) { .sk { transition: transform 0.15s ease, border-color 0.15s ease; } }

.others { display: grid; gap: 1.25rem; min-width: 0; align-content: start; }
.others .cards { grid-template-columns: minmax(0, 1fr); }
.cta-panel { background: radial-gradient(circle at 85% 0%, #FFE94D 0, #FFB000 30%, #FF7A00 65%, #E63900 100%); color: var(--sun-ink); border-radius: calc(var(--radius) * 2); padding: clamp(1.75rem, 5vw, 2.75rem); display: grid; gap: 1rem; align-content: center; box-shadow: var(--shadow); min-width: 0; align-self: stretch; }
.cta-panel p { font-size: 1.125rem; font-weight: 500; }
.cta-panel .btn { background: var(--sun-ink); border-color: var(--sun-ink); color: #FFE9B8; box-shadow: none; }
.stage-col { flex: var(--n) 1 calc(var(--n) * 3rem); }

/* Home: Hindi greeting */
.greet-hi { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.625rem); color: var(--accent); line-height: 1.4; margin-bottom: -0.5rem; }

/* Principles: clearer Hindi */
.principles .hi {
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--font-body);
  font-size: 1.1875rem; font-weight: 500; line-height: 1.85; color: var(--fg);
  margin-top: 0.75rem; padding: 0.7rem 1rem; background: var(--tint);
  border-left: 4px solid var(--i1); border-radius: 0 10px 10px 0;
}

/* Footer: copyright line */
.site-foot .wrap.foot-legal { display: block; padding-block: 0 1.5rem; }
.legal-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; padding-top: 1rem; border-top: 1px solid rgba(248, 237, 228, 0.15); font-size: 0.8125rem; color: var(--on-deep-muted); }

/* Satsang: time in the next-satsang panel */
.next .time { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.next .time::before { content: ""; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) 50% 25% / 2px 35% no-repeat, linear-gradient(currentColor, currentColor) 62% 50% / 30% 2px no-repeat; box-sizing: border-box; }

/* Holidays: public holidays green, school holidays aqua */
:root { --ph-bg: #DFF3E6; --ph-fg: #17633A; --ph-dot: #2E9D5B; --sh-bg: #D9F4F6; --sh-fg: #0B6873; --sh-dot: #1FB5C4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ph-bg: #143524; --ph-fg: #8FE3B1; --ph-dot: #4CC384; --sh-bg: #0F363B; --sh-fg: #86E2EA; --sh-dot: #35C9D7; } }
:root[data-theme="dark"] { --ph-bg: #143524; --ph-fg: #8FE3B1; --ph-dot: #4CC384; --sh-bg: #0F363B; --sh-fg: #86E2EA; --sh-dot: #35C9D7; }
.mark { display: table; margin-top: 0.35rem; padding: 0.12rem 0.65rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.card .mark { display: inline-block; margin-top: 0.15rem; }
.mark.ph { background: var(--ph-bg); color: var(--ph-fg); }
.mark.sh { background: var(--sh-bg); color: var(--sh-fg); }
.hol-legend .mark { margin: 0; display: inline-block; }
.hol-note { font-size: 0.8125rem; margin-top: -0.5rem; }
.hols { list-style: none; margin: 0.25rem 0 0; padding: 0.75rem 0 0; border-top: 1px dashed var(--rule); display: grid; gap: 0.35rem; font-size: 0.8125rem; }
.hols li { display: flex; gap: 0.5rem; align-items: baseline; }
.hols li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; transform: translateY(0.05rem); }
.hols li.ph { color: var(--ph-fg); } .hols li.ph::before { background: var(--ph-dot); }
.hols li.sh { color: var(--sh-fg); } .hols li.sh::before { background: var(--sh-dot); }
/* Keep host dots clear of the holiday colours (green and aqua) */
.host.h4::before { background: #8A4FC2; }
.host.h6::before { background: #3D5BC7; }
.roster .mark { display: block; width: fit-content; max-width: 100%; }

/* Contact: topic cards, role cards with email + copy */
.topics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card.topic { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.card.topic p { flex: 1; }
.card.topic .btn { margin-top: 0.5rem; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.roles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.role-card { gap: 0.5rem; justify-items: start; border-left: 4px solid var(--i1); }
.role-card .role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
a.mail { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; text-decoration-color: var(--i1); }
a.mail:hover { color: var(--accent); }
.copy-btn { font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); }
.copy-btn:hover { border-color: var(--btn); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-btn.done { background: var(--ph-bg); color: var(--ph-fg); border-color: transparent; }
.people a.mail { font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
a.mail { overflow-wrap: normal; word-break: normal; }
.enquiry { display: grid; gap: 1.25rem; justify-items: start; }
