/*
  Author: Yogabrata Mukhopadhyay
  Organization: Brahmexa
  Copyright: Copyright (c) 2026 Brahmexa. All rights reserved.

  Meenananda.com — editorial house style.
  Navy header, cream reading surface, photographs as the architecture.
  Gold is an accent, not a wallpaper.
*/

:root {
  color-scheme: light;
  --bg: #f3eee4;
  --bg-soft: #fffaf3;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-mute: #57534e;
  --navy: #0b1c2c;
  --navy-2: #12263a;
  --gold: #b8860b;
  --gold-soft: #e4c56a;
  --vermillion: #9f1239;
  --vermillion-deep: #7f1d1d;
  --line: rgba(28, 25, 23, 0.12);
  --line-strong: rgba(28, 25, 23, 0.22);
  --read-bg: #fffaf3;
  --read-bg-2: #f6efe2;
  --read-ink: #1c1917;
  --read-muted: #44403c;
  --read-faint: #57534e;
  --read-line: rgba(28, 25, 23, 0.12);
  --paper: var(--read-bg);
  --paper-2: var(--read-bg-2);
  --panel: #ffffff;
  --lotus: #9f1239;
  --river: #0e7490;
  --orange: #c2410c;
  --muted: #57534e;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --bn: "Noto Serif Bengali", "Nirmala UI", serif;
  --max: 1140px;
  --narrow: 66ch;
  --radius: 14px;
  --radius-full: 999px;
  --header-h: 72px;
  --shadow: 0 16px 40px rgba(11, 28, 44, 0.12);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.65;
  min-height: 100%;
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
}
img, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--vermillion);
  text-underline-offset: 0.16em;
}
.site-header a, .site-footer a, .hero a, .page-hero a {
  color: #f6efe2;
}
.site-header a:hover, .site-footer a:hover { color: var(--gold-soft); }
.prose a, .card a, .today-panel a, .event-card a, .product-card a, .faq-item a, .reading-sheet a {
  color: var(--vermillion);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  border-radius: var(--radius-full);
}
.skip:focus { top: 12px; }

.temple-band {
  height: 3px;
  background: linear-gradient(90deg, #7f1d1d, var(--gold-soft) 45%, #0e7490 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(228, 197, 106, 0.22);
}
.header-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.btn-donate {
  background: var(--gold-soft);
  color: #1c1917 !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #f7f0e2;
  border-radius: 10px;
  padding: 0.28rem 0.85rem 0.28rem 0.35rem;
}
.brand img {
  height: 40px;
  width: auto;
  max-width: min(220px, 46vw);
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(246, 239, 226, 0.35);
  background: transparent;
  color: #fffef8;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  font: inherit;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a, .nav details summary {
  text-decoration: none;
  color: #fffef8;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"], .nav details[open] summary {
  background: rgba(228, 197, 106, 0.18);
  color: #fffef8;
}
.nav details summary::-webkit-details-marker { display: none; }
.nav details { position: relative; }
.nav details ul {
  position: absolute;
  left: 0;
  margin: 0.35rem 0 0;
  padding: 0.4rem;
  list-style: none;
  background: #0b1c2c;
  border: 1px solid rgba(228, 197, 106, 0.45);
  border-radius: 10px;
  min-width: 240px;
  z-index: 50;
}
.nav details ul a {
  display: block;
  color: #fffef8 !important;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
}
.nav details summary::after {
  content: " ▾";
  font-size: 0.72em;
  opacity: 0.75;
  margin-left: 0.15rem;
}
.nav details.is-current > summary {
  background: rgba(228, 197, 106, 0.18);
}
@media (min-width: 981px) {
  .nav details:hover > ul,
  .nav details:focus-within > ul {
    display: block !important;
  }
}
.btn-donate:hover { filter: brightness(1.05); color: #1c1917 !important; }

main { position: relative; z-index: 1; background: var(--bg); }

.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  color: #fffef8;
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video, .hero-media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media picture { display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 44, 0.18) 0%, rgba(11, 28, 44, 0.48) 48%, rgba(11, 28, 44, 0.86) 82%, rgba(11, 28, 44, 0.93) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 92vw;
  max-width: 900px;
  margin: 0 auto 2.2rem;
  padding-top: calc(var(--header-h) + 0.75rem);
}
.hero-copy .kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 4.6vw, 3.55rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
  color: #fffef8;
  max-width: none;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(11, 28, 44, 0.45);
}
.hero-copy .lede {
  color: #f4efe6;
  font-size: 1.15rem;
  margin: 0 0 1.4rem;
  max-width: 42rem;
  text-shadow: 0 1px 12px rgba(11, 28, 44, 0.4);
}
.hero .btn-row, .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}
.btn-ink {
  background: #fffef8;
  color: var(--navy) !important;
}
.btn-gold {
  background: var(--gold-soft);
  color: #1c1917 !important;
}
.btn-ghost, .btn-line {
  background: transparent;
  color: inherit !important;
  border-color: currentColor;
}
.hero .btn-ink {
  background: #0b1c2c;
  color: #fffef8 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.hero .btn-gold {
  background: #fffef8;
  color: #0b1c2c !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.hero .btn-ghost, .hero .btn-line {
  color: #fffef8 !important;
  border-color: #fffef8;
  background: rgba(11, 28, 44, 0.35);
}

.section, .section-tight {
  padding: 3.6rem 0;
  background: var(--bg);
}
.section-tight { padding: 2.4rem 0; }
.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--vermillion);
  font-weight: 700;
  margin: 0 0 0.4rem;
}
h2, .display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.intro {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}
.today-grid, .grid-2, .grid-3, .album-grid, .doorway-grid, .path-grid {
  display: grid;
  gap: 1.1rem;
}
.today-grid { grid-template-columns: repeat(3, 1fr); }
.grid-2, .doorway-grid, .path-grid { grid-template-columns: 1fr 1fr; }
.grid-3, .album-grid { grid-template-columns: repeat(3, 1fr); }
.today-panel, .card, .event-card, .product-card, .reading-sheet, .callout, .disabled-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}
.today-panel h3, .card h3, .event-card h3, .product-card h3 {
  font-family: var(--serif);
  margin: 0.15rem 0 0.4rem;
  font-size: 1.35rem;
}
.doorway, .album-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.doorway figure, .album-card figure, .photo-frame {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1c1917;
}
.doorway img, .album-card img, .photo-frame img,
.doorway picture, .album-card picture, .photo-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.doorway .copy, .album-card .copy {
  padding: 1rem 1.05rem 1.15rem;
}
.doorway h3, .album-card h3 {
  font-family: var(--serif);
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  color: var(--ink);
}
.doorway p, .album-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.doorway:hover, .album-card:hover {
  border-color: rgba(184, 134, 11, 0.55);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: start;
}
.split > div > picture,
.split > div > img,
.split > figure picture,
.split > figure img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.frame, .photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1917;
}
.frame { aspect-ratio: 4 / 3; }
.frame img, .frame video, .frame picture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.caption, .frame figcaption {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin-top: 0.45rem;
}
.prose {
  max-width: var(--narrow);
}
.prose h2 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.quote-block {
  background: var(--navy);
  color: #f6efe2;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  margin: 0;
  color: #fffef8;
}
.quote-block cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--gold-soft);
  font-style: normal;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #1c1917;
}
.gallery-grid img, .gallery-grid picture {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.gallery-grid a:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }

.video-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1rem; }
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1c1917;
  border-radius: var(--radius);
  overflow: hidden;
}
.embed iframe, .embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-list { display: grid; gap: 0.55rem; }
.video-list a {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink) !important;
  padding: 0.4rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  align-items: center;
  min-height: 44px;
}
.video-list img {
  border-radius: 8px;
  width: 6.4rem;
  height: 3.6rem;
  object-fit: cover;
}
.video-list small { color: var(--ink-mute); }

.page-hero {
  background: var(--navy);
  color: #f6efe2;
  padding: 1.6rem 0 1.35rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  max-width: 18ch;
  margin: 0;
  color: #fffef8;
}
.page-hero .lede { color: #e7e5e4; max-width: 58ch; }
.page-hero .eyebrow { color: var(--gold-soft); }
.ym-books-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 0;
  background: #07131f;
}
.ym-books-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 18%;
}
.ym-books-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 31, 0.92) 0%, rgba(7, 19, 31, 0.62) 38%, rgba(7, 19, 31, 0.12) 72%),
    linear-gradient(180deg, rgba(7, 19, 31, 0.22) 0%, rgba(7, 19, 31, 0.78) 100%);
  pointer-events: none;
}
.ym-books-hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.2rem 0 2.4rem;
}
.ym-books-hero h1 {
  max-width: 14ch;
  text-shadow: 0 2px 18px rgba(7, 19, 31, 0.55);
}
.ym-books-hero .lede {
  color: #f4efe6;
  text-shadow: 0 1px 12px rgba(7, 19, 31, 0.45);
}
@media (max-width: 700px) {
  .ym-books-hero {
    min-height: min(70vh, 560px);
  }
  .ym-books-hero-photo {
    object-position: 78% 12%;
  }
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #d6d3d1;
  margin-bottom: 0.7rem;
}
.crumbs a { color: var(--gold-soft); }
.note, .status-pill {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  border-radius: var(--radius-full);
  padding: 0.18rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.status-upcoming { background: #ecfccb; color: #1a1612 !important; }
.status-past { background: #e7e5e4; color: #1a1612 !important; }
.status-standing { background: #fecaca; color: #1a1612 !important; }

.form {
  display: grid;
  gap: 0.85rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.6rem;
  margin-top: 1.4rem;
}
.form label, .form legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form select,
.form textarea {
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
.form textarea { min-height: 8rem; resize: vertical; }
.checks {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.checks legend {
  padding: 0 0.35rem;
}
.checks label {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  column-gap: 0.7rem;
  align-items: start;
  font-weight: 500;
  line-height: 1.45;
  max-width: 100%;
}
.form input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  min-width: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  accent-color: var(--navy);
  flex: none;
  justify-self: start;
}
.form .btn-ink {
  background: var(--navy);
  color: #fffef8 !important;
  justify-self: start;
  min-width: 9rem;
}
.form .muted { color: var(--ink-mute); }
.form a { color: var(--vermillion) !important; }
.form-status { min-height: 1.4rem; font-size: 0.95rem; }
.form-status.error { color: #9f1239; }
.form-status.ok { color: #166534; }

.site-footer {
  background: var(--navy);
  color: #e7e5e4;
  padding: 3rem 0 1.4rem;
  margin-top: 2.4rem;
}
.site-footer a { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--serif);
  color: #fffaf1;
  margin: 0 0 0.6rem;
}
.foot-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(228, 197, 106, 0.16);
  color: #d6d3d1;
  font-size: 0.92rem;
}

.reel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-ctrl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  background: rgba(11, 28, 44, 0.86);
  color: #fffaf1;
  font: inherit;
}

.nexus-root { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.nexus-launch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.nexus-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(380px, calc(100vw - 2rem));
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  max-height: min(74vh, 560px);
}
.nexus-panel.open { display: flex; }
.nexus-head { padding: 0.9rem 1rem 0.45rem; border-bottom: 1px solid var(--line); }
.nexus-head strong { font-family: var(--serif); font-size: 1.2rem; }
.nexus-head p { font-size: 0.9rem; color: var(--ink-mute); margin: 0.35rem 0 0; }
.nexus-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.55rem 0.8rem 0; }
.nexus-actions button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.7rem;
  min-height: 44px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.nexus-log { padding: 0.8rem 1rem; overflow: auto; flex: 1; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.nexus-msg { padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--bg); }
.nexus-msg.bot { background: #efe4cc; }
.nexus-form { display: flex; gap: 0.4rem; padding: 0.7rem; border-top: 1px solid var(--line); }
.nexus-form input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #d6d3d1;
  padding: 0.55rem 0.8rem;
  font: inherit;
  min-height: 44px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 44, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 10px; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  font: inherit;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.filter-row button {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  min-height: 44px;
  font: inherit;
}
.filter-row button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.muted { color: var(--ink-mute); }
.center { text-align: center; }
.search-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.search-row input {
  flex: 1;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #d6d3d1;
  padding: 0.6rem 0.95rem;
  font: inherit;
}
.amount-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amount-row button, .amount-row label {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}
.planet-map, .site-map {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius);
}

.local-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .today-grid, .grid-2, .grid-3, .split, .video-grid, .footer-grid, .album-grid, .doorway-grid, .path-grid, .local-reels {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid a:nth-child(1) { grid-column: span 2; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 3px);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0.8rem 1rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav details ul { position: static; width: 100%; }
}
@media (min-width: 768px) {
  .hero-copy { width: 86%; }
}
@media (min-width: 1100px) {
  .hero-copy { width: min(900px, 92vw); }
}
.knowledge-article .answer-first { font-size: 1.05rem; }
.review-meta { margin-top: 1.5rem; padding: 0.8rem 1rem; border: 1px solid var(--line, #d6d3d1); border-radius: 12px; font-size: 0.92rem; }
html[lang^="en"] .hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 24ch;
}
html[lang^="bn"] .hero-copy .kicker {
  text-transform: none;
  letter-spacing: 0.02em;
}
html[lang^="bn"] .hero h1 {
  font-family: var(--bn), var(--serif), serif;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.34;
  max-width: 16em;
  font-weight: 600;
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.85rem; }
  html[lang^="bn"] .hero h1 { font-size: 1.7rem; }
  .brand img { height: 32px; }
  .gallery-grid, .gallery-grid a:nth-child(1) { grid-template-columns: 1fr; grid-column: span 1; }
}

html[lang^="bn"] body,
html[lang^="bn"] h1,
html[lang^="bn"] h2,
html[lang^="bn"] h3,
html[lang^="bn"] .nav,
html[lang^="bn"] .prose,
html[lang^="bn"] .lede,
html[lang^="bn"] .btn,
html[lang^="bn"] .form,
html[lang^="bn"] .reader-column {
  font-family: var(--bn), var(--serif), serif;
}
html[lang^="bn"] body { font-size: 1.05rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(246, 239, 226, 0.38);
  border-radius: var(--radius-full);
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.lang-switch a {
  color: #f6efe2 !important;
  text-decoration: none;
  padding: 0.32rem 0.7rem;
}
.lang-switch a[aria-current="true"] {
  background: #f6efe2;
  color: var(--navy) !important;
}

.book-shelf { display: grid; gap: 2rem; }
.book-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.book-card-art img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.book-card-copy { padding: 1.4rem 1.4rem 1.6rem; }
.book-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fffef8;
}
.book-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.book-hero.is-cover,
.reader-hero.is-cover {
  background: #0b1c2c;
  min-height: min(92vh, 860px);
}
.book-hero.is-cover img,
.reader-hero.is-cover img {
  object-fit: contain;
  object-position: center center;
}
.book-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,28,44,0.15), rgba(11,28,44,0.78) 70%);
}
.book-hero.is-cover::after,
.reader-hero.is-cover::after {
  background: linear-gradient(180deg, rgba(11,28,44,0.05) 42%, rgba(11,28,44,0.88));
}
.book-hero-copy, .reader-hero-copy {
  position: relative;
  z-index: 1;
  padding: 3rem 6vw 2.4rem;
  max-width: 46rem;
}
.book-open { padding: 2.4rem 0 4rem; }
.book-parts { list-style: none; padding: 0; display: grid; gap: 1rem; }
.book-parts a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.book-parts img { width: 180px; height: 112px; object-fit: cover; }
.book-parts span { padding-right: 1rem; }
.book-parts strong { display: block; font-size: 1.25rem; }

.reader-progress {
  position: sticky; top: 0; z-index: 20; height: 4px; background: rgba(11,28,44,0.12);
}
.reader-progress i {
  display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left;
}
.reader-hero {
  position: relative; min-height: 62vh; color: #fffef8; display: grid; align-items: end;
}
.reader-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reader-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,28,44,0.08), rgba(11,28,44,0.82));
}
.reader-hero .crumbs a { color: #f6efe2; }
.reader-tools {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
  width: min(var(--reader-w, 38rem), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.reader-size button {
  font: inherit; margin-left: 0.35rem; border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 0.25rem 0.8rem; cursor: pointer;
}
.reader { background: #efe6d3; --reader-w: 38rem; }
.reader-column {
  width: min(var(--reader-w, 38rem), calc(100% - 1.5rem));
  max-width: none;
  margin: 0 auto 3rem;
  padding: 2.4rem 1.8rem 3.2rem;
  font-family: var(--bn), var(--serif), serif;
  font-size: 1.18rem;
  line-height: 1.95;
  color: #1c1917;
  background: #fbf6ea;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(11, 28, 44, 0.12);
}
@media (min-width: 900px) {
  .reader { --reader-w: min(56rem, 88vw); }
  .reader-column { padding: 2.8rem 3rem 3.6rem; }
}
@media (min-width: 1200px) {
  .reader { --reader-w: min(72rem, 84vw); }
  .reader-column { padding: 3.1rem 3.6rem 4rem; font-size: 1.22rem; }
}
html[lang="en"] .reader-column { font-family: var(--serif), Georgia, serif; }
.reader-column p { margin: 0 0 1.15em; }
.reader-column .is-drop::first-letter {
  float: left; font-size: 3.4rem; line-height: 0.8; padding: 0.12em 0.12em 0 0; color: var(--navy);
  font-weight: 700;
}
.reader-column .is-poem {
  margin: 1.1rem 0 1.4rem 1rem;
  font-style: italic;
}
.reader-column .is-dialogue {
  margin-left: 0.4rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(184, 134, 11, 0.45);
  color: #292524;
}
.page-mark {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b12;
  margin: 2.2rem 0 1.1rem !important;
  font-style: normal;
}
.reader-plate {
  margin: 2.2rem 0;
}
.reader-plate img { width: 100%; border-radius: 8px; }
.reader-plate figcaption {
  font-family: var(--serif), var(--bn), serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #57534e;
  margin-top: 0.55rem;
  text-align: center;
}
.reader-nav {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 3rem;
  font-weight: 600;
  width: min(var(--reader-w, 38rem), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}
.english-book { max-width: 52rem; }
.nivedan p { margin: 0.15em 0; }
.book-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.book-stills img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.book-stills figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.scan-note { padding-top: 1.2rem; }
.page-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 auto 1rem;
  padding: 1rem 0 2rem;
}
.page-sheet { margin: 0; background: #111; padding: 0.4rem; border-radius: 6px; }
.page-sheet img { width: 100%; height: auto; display: block; background: #fff; }
.page-sheet figcaption { color: #e7e5e4; font-size: 0.82rem; text-align: center; padding: 0.4rem 0 0.2rem; }
.page-toolbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #f6efe2;
  padding: 0.7rem 1rem;
}
.page-toolbar button,
.page-toolbar input[type="number"] {
  font: inherit;
  border: 1px solid rgba(246,239,226,0.35);
  background: transparent;
  color: #f6efe2;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}
.page-toolbar input[type="number"] { width: 4.2rem; text-align: center; }
.page-toolbar input[type="range"] { width: min(280px, 40vw); }
.page-jump { display: flex; align-items: center; gap: 0.4rem; }
.donate-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.2fr;
  gap: 2rem;
  align-items: start;
  margin: 0 0 2.5rem;
}
.qr-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.3rem;
  box-shadow: var(--shadow);
}
.qr-card img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
.upi-id { font-size: 1.05rem; letter-spacing: 0.02em; margin: 0.7rem 0 0.3rem; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.6rem; }
.amount-chips button {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  cursor: pointer;
}
.amount-chips button[aria-pressed="true"] {
  background: var(--navy);
  color: #f6efe2;
  border-color: var(--navy);
}
.kind-row { display: grid; gap: 0.45rem; }
.kind-row label { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.5rem; align-items: start; font-weight: 500; }
.membership-form textarea { min-height: 5rem; }
@media (max-width: 860px) {
  .donate-grid { grid-template-columns: 1fr; }
}
.form-pages {
  display: grid;
  gap: 1.2rem;
}
.form-pages img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.rules-list { padding-left: 1.2rem; }
.rules-list li { margin: 0.45rem 0; }
.bank-dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.35rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.bank-dl dt { color: var(--muted); font-size: 0.88rem; }
.bank-dl dd { margin: 0; font-weight: 600; letter-spacing: 0.01em; word-break: break-word; }
@media (max-width: 860px) {
  .book-card, .book-parts a { grid-template-columns: 1fr; }
  .book-parts img, .book-card-art img { width: 100%; height: 200px; }
  .book-stills, .page-spread, .bank-dl { grid-template-columns: 1fr; }
  .nav a { padding: 0.45rem 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
}
