/* ==========================================================================
   Holy Bhagavad Gita — public site theme
   Palette: Krishna blue, saffron, temple gold, peacock teal on a warm cream page.
   ========================================================================== */
:root {
  --krishna: #14284B;
  --krishna-2: #1F3C72;
  --peacock: #0F6E73;
  --saffron: #E8772E;
  --saffron-2: #C65A17;
  --gold: #D4A017;
  --gold-soft: #F6DB94;
  --lotus: #D9577A;
  --ink: #2A1E14;
  --ink-2: #5B4A3A;
  --muted: #8A7A68;
  --page: #FFF8EC;
  --paper: #FFFDF8;
  --line: #EEDDC2;
  --line-2: #F5EAD6;
  --ok: #2E7D5B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 8px 24px -8px rgba(60, 35, 10, .16);
  --shadow-lg: 0 2px 4px rgba(60, 35, 10, .06), 0 22px 44px -16px rgba(60, 35, 10, .28);
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Tiro Devanagari Sanskrit", Georgia, serif;
  --font-sanskrit: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
  --topbar-h: 64px;
  --bottomnav-h: 0px;
  --reading-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    radial-gradient(1200px 500px at 100% -10%, rgba(247, 185, 85, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(15, 110, 115, .07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: var(--bottomnav-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--saffron-2); text-decoration: none; }
a:hover { color: var(--krishna); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--krishna); line-height: 1.15; margin: 0 0 .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1em; height: 1em; flex: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- decorative page ornament ---------- */
.page-ornament {
  position: fixed; inset: auto -180px -180px auto; width: 560px; height: 560px; pointer-events: none; z-index: 0;
  background: url("/img/mandala.svg") center / contain no-repeat; opacity: .09;
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
main { position: relative; z-index: 1; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  background: linear-gradient(90deg, var(--krishna) 0%, #1A3360 60%, #20406f 100%);
  color: #fff;
  box-shadow: 0 2px 0 var(--gold), 0 6px 20px rgba(20, 40, 75, .25);
}
.topbar .wrap { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; }
.topbar .logo img { height: 34px; width: auto; }
.topbar .divider { width: 1px; height: 28px; background: rgba(255, 255, 255, .25); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand:hover { color: var(--gold-soft); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFE3A3, var(--saffron)); color: var(--krishna);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.brand-mark .ic { width: 58%; height: 58%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .3px; white-space: nowrap; }
.brand-text small { font-family: var(--font-sanskrit); font-size: 1.02rem; line-height: 1.25; color: var(--gold-soft); white-space: nowrap; margin-top: 1px; }
.topbar .spacer { flex: 1; }
.top-links { display: flex; align-items: center; gap: 6px; }
.top-links a { color: #E8EEF9; padding: 8px 12px; border-radius: 999px; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.top-links a:hover, .top-links a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--gold); color: var(--krishna) !important; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.btn-back:hover { background: var(--gold-soft); }

/* ==========================================================================
   Mobile bottom navigation (app-like)
   ========================================================================== */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  :root { --topbar-h: 56px; --bottomnav-h: calc(64px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  .topbar .logo img { height: 26px; }
  .topbar .divider, .top-links, .brand-text small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
    .brand-text strong { font-size: 1.08rem; }
  .btn-back { padding: 7px 10px; font-size: .8rem; }
  .btn-back .long { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--bottomnav-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(60, 35, 10, .08);
  }
  .bottom-nav a, .bottom-nav button {
    all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: .72rem; color: var(--ink-2); font-weight: 500; -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav .ic { width: 24px; height: 24px; }
  .bottom-nav .active { color: var(--saffron-2); }
  .bottom-nav .active .ic { filter: drop-shadow(0 2px 6px rgba(232, 119, 46, .4)); }
}

/* ==========================================================================
   Buttons, chips, cards
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; box-shadow: 0 8px 18px -8px rgba(198, 90, 23, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 24px -10px rgba(198, 90, 23, .8); }
.btn-ghost { background: var(--paper); color: var(--krishna); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--krishna); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(232, 119, 46, .1); color: var(--saffron-2); font-size: .82rem; font-weight: 600; letter-spacing: .2px;
}
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.divider-lotus { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 6px 0; }
.divider-lotus::before, .divider-lotus::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-lotus .ic { width: 26px; height: 26px; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero { padding: 40px 0 24px; position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero h1 { font-family: var(--font-sanskrit); font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--krishna); margin-bottom: 8px; }
.hero .eyebrow { font-family: var(--font-display); font-size: 1.25rem; color: var(--saffron-2); letter-spacing: .5px; font-weight: 600; }
.hero-text { color: var(--ink-2); font-size: 1.1rem; max-width: 560px; }
.hero-text p { margin: 0 0 .5em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art.photo img { width: 100%; height: 100%; }
.hero-art.photo img { object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow-lg); }
.hero-art::before { /* rotating chariot-wheel (v2) outline behind the lotus */
  content: ""; position: absolute; inset: -4%; z-index: -1; background-color: var(--saffron-2); opacity: .30;
  -webkit-mask: url("/img/wheel-outline.webp") center / contain no-repeat;
          mask: url("/img/wheel-outline.webp") center / contain no-repeat;
  animation: spin 120s linear infinite;
}
.hero-quote {
  margin: 26px 0 0; padding: 14px 20px; max-width: 640px;
  border-left: 4px solid var(--gold); background: rgba(246, 219, 148, .25); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.hero-quote blockquote { margin: 0; font-family: var(--font-sanskrit); color: var(--krishna); font-size: clamp(1.65rem, 2.1vw, 1.65rem); line-height: 1.25; }
.hero-quote { position: relative; }
.hero-quote figcaption { /* sits in the free space beside the shorter second line, so the box doesn't grow */
  position: absolute; right: 18px; bottom: 14px; margin: 0;
  font-size: .64rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--saffron-2);
}
@media (max-width: 860px) {
  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { max-width: 260px; order: -1; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-quote { text-align: left; margin-inline: auto; }
  .hero-quote blockquote { font-size: 1.12rem; }
}

/* ==========================================================================
   Home — 18 square chapter cards
   ========================================================================== */
.chapters { padding: 26px 0 56px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 760px) { .chapter-grid { gap: 12px; } }

.ch-card {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 22px;
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF6E4 100%);
  border: 1px solid var(--line); border-radius: 22px; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.ch-card::after { /* golden top accent */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--peacock));
}
.ch-card .bg-icon {
  position: absolute; top: -8%; right: -8%; width: 52%; height: 52%; z-index: -1;
  color: var(--saffron); opacity: .16; transform: rotate(-8deg); transition: transform .4s, opacity .3s;
}
.ch-card .no {
  font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1.05;
  background: linear-gradient(135deg, var(--saffron), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ch-card .no-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.ch-card h3 { font-family: var(--font-sanskrit); font-size: 1.45rem; color: var(--krishna); margin: 12px 0 2px; line-height: 1.25; }
.ch-card .sub { font-size: .86rem; color: var(--peacock); font-weight: 500; margin-bottom: 8px; }
.ch-card .snippet {
  color: var(--ink-2); font-size: .95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-card .snippet p { margin: 0 0 .3em; }
.ch-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ch-card .verses { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: .9rem; }
.ch-card .verses b { font-size: 1.35rem; color: var(--krishna); font-family: var(--font-display); }
.ch-card .open {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px;
  background: var(--krishna); color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.ch-card .stretched { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ch-card.active:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.ch-card.active:hover .bg-icon { transform: rotate(0) scale(1.06); opacity: .24; }
.ch-card.active:hover .open { background: var(--saffron-2); }

/* unavailable chapters: greyed and unclickable */
.ch-card.locked { background: #F4F1EC; filter: grayscale(1); opacity: .62; cursor: not-allowed; box-shadow: none; }
.ch-card.locked::after { background: #cfc7bb; }
.ch-card.locked .open { background: #B9B1A5; }
.ch-card.locked .no { background: #A79E92; -webkit-background-clip: text; background-clip: text; }

@media (max-width: 760px) {
  .ch-card { padding: 14px; border-radius: 18px; }
  .ch-card .no { font-size: 2.2rem; }
  .ch-card .no-label { font-size: .64rem; letter-spacing: 1px; }
  .ch-card h3 { font-size: 1.05rem; margin-top: 6px; }
  .ch-card .sub { font-size: .7rem; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .ch-card .snippet { font-size: .76rem; -webkit-line-clamp: 2; line-height: 1.4; }
  .ch-card .snippet p + p { display: none; }
  .ch-card .verses { font-size: .72rem; gap: 3px; }
  .ch-card .verses b { font-size: 1.05rem; }
  .ch-card .open { padding: 6px 9px; font-size: .72rem; }
  .ch-card .open .txt { display: none; }
  .ch-card .foot { padding-top: 8px; }
}

/* ==========================================================================
   Chapter banner (chapter page + sidebar)
   ========================================================================== */
.banner {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 260px; color: #fff; isolation: isolate;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--krishna) 0%, var(--krishna-2) 45%, var(--peacock) 100%);
}
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 20, 40, .85) 0%, rgba(10, 20, 40, .2) 60%, transparent 100%); }
.banner .b-mandala { position: absolute; right: -90px; top: -90px; width: 420px; height: 420px; z-index: -1; opacity: .25; filter: brightness(2.2); animation: spin 180s linear infinite; }
.banner .b-icon { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 170px; height: 170px; color: var(--gold-soft); opacity: .9; z-index: -1; }
.banner .b-sun { position: absolute; left: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 185, 85, .55), transparent 65%); z-index: -1; }
.banner-body { padding: 30px 34px; max-width: 75%; }
.banner .kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: var(--gold-soft); font-weight: 600; font-size: .85rem; letter-spacing: .5px; backdrop-filter: blur(4px); }
.banner h1 { color: #fff; font-family: var(--font-sanskrit); font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 10px 0 2px; }
.banner .sub { color: #E2EAF6; font-size: 1.05rem; }
.banner.small { min-height: 150px; border-radius: var(--radius); }
.banner.small .b-icon { width: 90px; height: 90px; right: 18px; top: 18px; transform: none; }
.banner.small .b-mandala { width: 240px; height: 240px; right: -70px; top: -70px; }
@media (max-width: 760px) {
  .banner { min-height: 210px; border-radius: 18px; }
  .banner-body { padding: 20px; max-width: 100%; }
  .banner .b-icon { width: 96px; height: 96px; top: 22px; right: 16px; transform: none; opacity: .55; }
}

/* ==========================================================================
   Breadcrumb & page layout
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); padding: 18px 0 12px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--saffron-2); }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.page { padding-bottom: 56px; }
.prose { color: var(--ink-2); font-size: calc(1.05rem * var(--reading-scale)); }
.prose p { margin: 0 0 .8em; }
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); margin-top: 1em; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--gold); background: rgba(246, 219, 148, .2); border-radius: 0 10px 10px 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose .ql-size-small { font-size: .85em; } .prose .ql-size-large { font-size: 1.35em; } .prose .ql-size-huge { font-size: 1.8em; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; }
.desc-card { padding: 24px 28px; margin: 22px 0; }

/* ==========================================================================
   Verse calendar
   ========================================================================== */
.vcal { padding: 22px; }
.vcal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vcal-head .t { flex: 1; text-align: center; }
.vcal-head .t strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--krishna); line-height: 1.1; }
.vcal-head .t small { color: var(--muted); font-size: .85rem; }
.nav-circle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--krishna);
}
.nav-circle:hover { background: var(--krishna); color: #fff; border-color: var(--krishna); }
.nav-circle.disabled { opacity: .3; pointer-events: none; }
.nav-circle .ic { width: 20px; height: 20px; }
.vcal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 6px; }
.vcal-dow span { text-align: center; font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.vcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.vday {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; position: relative;
  font-weight: 600; font-size: 1.05rem; border: 1px solid var(--line); background: #fff; color: var(--krishna);
  transition: transform .12s, background .12s, color .12s, box-shadow .12s;
}
a.vday:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(198, 90, 23, .7); }
a.vday::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--peacock); opacity: .7; }
a.vday:hover::after { background: #fff; }
.vday.current { background: linear-gradient(135deg, var(--krishna), var(--krishna-2)); color: #fff; border-color: var(--krishna); box-shadow: 0 0 0 3px var(--gold-soft); }
.vday.current::after { background: var(--gold); opacity: 1; }
.vday.off { background: #F3EFE8; color: #B8AFA3; border-style: dashed; cursor: not-allowed; }
.vcal-legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.vcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vcal-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; display: inline-block; }
.vcal-legend i.off { background: #F3EFE8; border-style: dashed; }
.vcal.compact { padding: 16px; }
.vcal.compact .vcal-grid, .vcal.compact .vcal-dow { gap: 6px; }
.vcal.compact .vday { font-size: .88rem; border-radius: 9px; }
.vcal.compact a.vday::after { bottom: 3px; width: 4px; height: 4px; }
@media (max-width: 760px) {
  .vcal { padding: 16px; }
  .vcal-grid, .vcal-dow { gap: 6px; }
  .vday { font-size: .92rem; border-radius: 10px; }
}

/* ---------- prev / next ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pager > a, .pager > span {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); color: var(--krishna); box-shadow: var(--shadow); min-width: 0;
}
.pager > a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pager .next { justify-content: flex-end; text-align: right; }
.pager .ic { width: 26px; height: 26px; color: var(--saffron); }
.pager small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.pager b { font-family: var(--font-display); font-size: 1.15rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager > span { opacity: .4; box-shadow: none; }
.pager > * > span { min-width: 0; }
@media (max-width: 520px) { .pager > a, .pager > span { padding: 12px; gap: 6px; } .pager b { font-size: 1rem; } }

/* ==========================================================================
   Verse page
   ========================================================================== */
.verse-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .verse-layout { grid-template-columns: 1fr; } }
.verse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.verse-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 0; }
.verse-head .sub { color: var(--muted); }
.reading-size { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.reading-size button { all: unset; cursor: pointer; padding: 6px 12px; color: var(--krishna); font-weight: 700; }
.reading-size button:hover { background: var(--line-2); }

.v-section { margin-bottom: 22px; padding: 24px 28px; }
.v-section > header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.v-section > header .badge {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--saffron), var(--gold)); color: #fff;
}
.v-section > header .badge .ic { width: 22px; height: 22px; }
.v-section > header h2 { margin: 0; font-size: 1.5rem; }
.v-section > header h2 small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
@media (max-width: 760px) { .v-section { padding: 18px; } }

.shlok {
  position: relative; text-align: center; padding: 30px 24px; border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(247, 185, 85, .25), transparent 70%),
    linear-gradient(180deg, #FFF9EC, #FFF3DB);
  border: 1px solid #F0D9A8;
  font-family: var(--font-sanskrit); color: #6B2E0B; font-size: calc(1.45rem * var(--reading-scale)); line-height: 1.9;
}
.shlok::before, .shlok::after {
  content: ""; position: absolute; left: 50%; width: 120px; height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.shlok::before { top: 12px; } .shlok::after { bottom: 12px; }
.shlok p { margin: 0; }
@media (max-width: 760px) { .shlok { font-size: calc(1.15rem * var(--reading-scale)); padding: 24px 12px; } }

.wm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; }
.wm {
  display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--saffron);
}
.wm dt { font-family: var(--font-sanskrit); color: var(--saffron-2); font-size: calc(1.12rem * var(--reading-scale)); font-weight: 600; }
.wm dd { margin: 2px 0 0; color: var(--ink-2); font-size: calc(.98rem * var(--reading-scale)); }
.wm p { margin: 0; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play {
  position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232, 119, 46, .95); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); transition: transform .2s;
}
.video-facade:hover .play { transform: scale(1.08); }
.video-facade .play .ic { width: 36px; height: 36px; margin-left: 4px; }
.video-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .9rem; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 16px); }
@media (max-width: 1000px) { .sidebar { position: static; } }
.side-chapter { padding: 18px; text-align: center; }
.side-chapter h3 { font-family: var(--font-sanskrit); font-size: 1.35rem; margin: 0 0 2px; }
.side-chapter .sub { color: var(--peacock); font-size: .85rem; margin-bottom: 12px; }
.side-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 999px; background: var(--line-2); }
.side-nav .mid { font-weight: 700; color: var(--krishna); }
.side-nav .mid small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

.jump { padding: 18px; }
.jump h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.jump h3 .ic { color: var(--saffron); width: 20px; height: 20px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 12px 40px 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314284B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  font: 500 1rem var(--font-body); color: var(--ink);
}
.select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 160, 23, .25); }
.select:disabled { background-color: #F3EFE8; color: var(--muted); }
.jump .btn { width: 100%; }

/* ---------- quick-jump bottom sheet (mobile) ---------- */
dialog.sheet {
  border: 0; padding: 0; width: min(520px, 100%); max-width: 100%; margin: auto auto 0; border-radius: 22px 22px 0 0;
  background: var(--paper); box-shadow: var(--shadow-lg);
}
dialog.sheet::backdrop { background: rgba(20, 40, 75, .45); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-inner { padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet .close { all: unset; cursor: pointer; float: right; font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0 4px; }
@media (min-width: 761px) { dialog.sheet { margin: auto; border-radius: 22px; } }

/* ==========================================================================
   Footer & misc
   ========================================================================== */
.site-footer { margin-top: 30px; padding: 30px 0 34px; color: #C9D3E6; background: var(--krishna); position: relative; z-index: 1; overflow: hidden; }
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer::before { content: ""; display: block; height: 4px; margin-top: -30px; margin-bottom: 26px; background: linear-gradient(90deg, var(--saffron), var(--gold), var(--peacock)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .92rem; }
.site-footer a { color: var(--gold-soft); }
.site-footer .quote { font-family: var(--font-sanskrit); color: #fff; font-size: 1.05rem; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .ic { width: 60px; height: 60px; color: var(--gold); margin: 0 auto 10px; }
.install-btn { display: none; }
.install-btn.show { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* refinements */
@media (min-width: 761px) { .vcal:not(.compact) .vday { aspect-ratio: auto; height: 64px; font-size: 1.15rem; } }
@media (max-width: 760px) { .ch-card .sub { display: none; } }

/* ==========================================================================
   Krishna & Arjun chariot line art (one transparent image, coloured with CSS)
   ========================================================================== */
.chariot-lines {
  position: absolute; pointer-events: none; display: block; background-color: currentColor;
  -webkit-mask: url("/img/hero/krishna-chariot-lines.webp") center / contain no-repeat;
          mask: url("/img/hero/krishna-chariot-lines.webp") center / contain no-repeat;
}
.hero-chariot { left: -40px; bottom: -30px; width: min(760px, 62vw); aspect-ratio: 1393 / 1179; color: var(--saffron-2); opacity: .09; z-index: 0; }
.b-chariot { right: 4%; bottom: -6%; height: 112%; aspect-ratio: 1393 / 1179; color: var(--gold-soft); opacity: .32; z-index: -1; }
.banner .b-icon { opacity: .55; }
.banner.small .b-chariot { right: -8%; height: 120%; opacity: .25; }
.footer-chariot { right: 2%; bottom: -24px; height: 150px; aspect-ratio: 1393 / 1179; color: var(--gold); opacity: .22; }
@media (max-width: 860px) {
  .hero-chariot { width: 120vw; left: -10vw; bottom: auto; top: 60px; opacity: .07; }
  .footer-chariot { height: 110px; opacity: .14; }
}
@media (max-width: 760px) { .b-chariot { right: -18%; opacity: .26; } }

/* ==========================================================================
   Home hero animation: big lotus resting on counter-rotating mandala rings
   ========================================================================== */
.hero-anim { position: absolute; inset: 0; }
.hero-anim > * { position: absolute; display: block; }
.hero-anim img { max-width: none; }
.ha-glow {
  inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, 1) 0%, rgba(247, 185, 85, .55) 48%, rgba(232, 119, 46, 0) 72%);
  animation: ha-pulse 6s ease-in-out infinite;
}
.ha-water {
  width: 62%; height: 10%; left: 19%; top: 66%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(15, 110, 115, .30), rgba(15, 110, 115, 0) 70%);
  animation: ha-ripple 5s ease-in-out infinite;
}
.ha-lotus {
  width: 64%; height: auto; left: 18%; top: 26%; transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 16px rgba(185, 58, 90, .28));
  animation: ha-in-lotus 1.1s .3s cubic-bezier(.2, .8, .2, 1) both, ha-float 5.5s 1.4s ease-in-out infinite;
}
.ha-spark { width: 7px; height: 7px; border-radius: 50%; background: #FFE3A3; box-shadow: 0 0 10px 3px rgba(247, 185, 85, .8); opacity: 0; animation: ha-spark 6s ease-in infinite; }
.ha-spark.s1 { left: 24%; top: 62%; animation-delay: 1.2s; }
.ha-spark.s2 { left: 72%; top: 58%; animation-delay: 2.4s; width: 5px; height: 5px; }
.ha-spark.s3 { left: 40%; top: 68%; animation-delay: 3.4s; }
.ha-spark.s4 { left: 60%; top: 66%; animation-delay: 4.3s; width: 5px; height: 5px; }
.ha-spark.s5 { left: 14%; top: 46%; animation-delay: 5.1s; width: 4px; height: 4px; }
.ha-spark.s6 { left: 84%; top: 42%; animation-delay: 6.2s; width: 4px; height: 4px; }

@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes ha-fade { from { opacity: 0; } }
@keyframes ha-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes ha-in-lotus { from { opacity: 0; transform: translateY(40px) scale(.6); } }
@keyframes ha-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ha-ripple { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(1.14); opacity: .55; } }
@keyframes ha-spark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-170px) scale(1); } }

/* ==========================================================================
   Chariot wheel (v2) outline — behind the hero lotus and the verse calendar
   ========================================================================== */
.wheel-outline {
  position: absolute; pointer-events: none; display: block; aspect-ratio: 1; background-color: currentColor;
  -webkit-mask: url("/img/wheel-outline.webp") center / contain no-repeat;
          mask: url("/img/wheel-outline.webp") center / contain no-repeat;
}
.chapters { position: relative; overflow: hidden; }
.chapters > .wrap { position: relative; z-index: 1; }
.vcal { position: relative; overflow: hidden; isolation: isolate; }
.vcal-wheel { width: 82%; max-width: 560px; left: 50%; top: 50%; translate: -50% -50%; color: var(--saffron); opacity: .11; z-index: -1; }
@media (max-width: 760px) { .vcal-wheel { width: 110%; } }
.banner:not(.small) .b-icon { width: 96px; height: 96px; top: 22px; right: 26px; transform: none; opacity: .5; }

/* ---------- uploaded chapter banner: whole image + title strip ---------- */
.banner-photo { margin: 0; border-radius: 24px; overflow: hidden; background: var(--krishna); box-shadow: var(--shadow-lg); }
.banner-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.banner-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 4px; padding: 16px 26px 18px; color: #fff;
  background: linear-gradient(90deg, var(--krishna) 0%, #1F3C72 60%, var(--peacock) 100%); border-top: 3px solid var(--gold);
}
.banner-caption .kicker { flex-basis: 100%; color: var(--gold-soft); font-weight: 600; font-size: .85rem; letter-spacing: .5px; }
.banner-caption h1 { color: #fff; font-family: var(--font-sanskrit); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; }
.banner-caption .sub { color: #E2EAF6; font-size: 1rem; }
.banner-photo.small { border-radius: var(--radius); }
@media (max-width: 760px) { .banner-photo { border-radius: 18px; } .banner-caption { padding: 12px 16px 14px; } }

/* headings inside rich-text content (Hindi / English) */
.prose h2 { font-family: var(--font-sanskrit); color: var(--krishna); font-size: calc(1.55rem * var(--reading-scale)); margin: 0 0 .6em; }
.prose h3 { font-family: var(--font-sanskrit); color: var(--krishna); font-size: calc(1.25rem * var(--reading-scale)); }
.prose blockquote { font-family: var(--font-sanskrit); color: var(--krishna); font-size: 1.08em; }

/* ---------- "Install app" banner ---------- */
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.install-banner {
  position: fixed; z-index: 70; right: 16px; bottom: 16px; width: min(420px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s;
}
.install-banner.show { opacity: 1; transform: none; }
.install-banner > img { border-radius: 12px; flex: none; }
.install-banner .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.install-banner strong { color: var(--krishna); font-size: .98rem; }
.install-banner span { color: var(--ink-2); font-size: .85rem; }
.install-banner .ic { width: 16px; height: 16px; color: var(--saffron-2); }
.ib-close { all: unset; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--muted); padding: 2px 6px; }
@media (max-width: 760px) { .install-banner { left: 12px; right: 12px; width: auto; bottom: calc(var(--bottomnav-h) + 10px); } }

/* ---------- Share button ---------- */
.crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.share { position: relative; }
.share-btn {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 14px -8px rgba(198, 90, 23, .8);
}
.share-btn:hover { filter: brightness(1.06); }
.share-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.share-btn .ic { width: 18px; height: 18px; }
.share-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.share-menu a, .share-menu button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); font-size: .93rem;
}
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--line-2); color: var(--krishna); }
.share-menu i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.s-wa i { background: #25D366; } .s-fb i { background: #1877F2; } .s-x i { background: #111; } .s-tg i { background: #229ED9; }
.s-in i { background: #0A66C2; } .s-mail i { background: var(--saffron); } .s-copy i { background: var(--peacock); }
@media (max-width: 520px) { .share-btn span { display: none; } .share-btn { padding: 9px; } }

/* ---------- About (home) ---------- */
.about { padding: 0 0 56px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-card { padding: 24px 28px; }
.about-card h2 { font-size: 1.5rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* installed app: anchor jumps & dialogs clear the taller top bar */
html { scroll-padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 12px); }
@media (display-mode: standalone) {
  .site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
}

/* ---------- chapter description: text-size tools ---------- */
.desc-card { position: relative; }
.desc-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -6px -6px 6px 0; }
.muted-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
@media (max-width: 760px) { .desc-card { padding: 18px; } }

/* ---------- install banner: "How?" ---------- */
.ib-how {
  all: unset; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--krishna); border: 1px solid var(--line); background: #fff; white-space: nowrap;
}
.ib-how:hover { border-color: var(--gold); }
.ib-how.primary { background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; border-color: transparent; }

/* ---------- install guide (dialog) ---------- */
dialog.install-help { width: min(560px, 100%); max-height: min(88vh, 860px); overflow: auto; }
.ih-head { display: flex; gap: 14px; align-items: center; margin: 4px 30px 12px 0; }
.ih-head img { border-radius: 14px; box-shadow: var(--shadow); flex: none; }
.ih-head h3 { margin: 0 0 2px; font-size: 1.4rem; }
.ih-head p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.ih-benefits { list-style: none; margin: 0 0 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: rgba(246, 219, 148, .25); border-radius: 12px; font-size: .86rem; color: var(--ink-2); }
.ih-benefits li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
@media (max-width: 480px) { .ih-benefits { grid-template-columns: 1fr; } }
.ih-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line-2); margin-bottom: 14px; }
.ih-tabs button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.ih-tabs button[aria-selected="true"] { background: var(--krishna); color: #fff; box-shadow: var(--shadow); }
.ih-tabs button:focus-visible { outline: 2px solid var(--gold); }
.ih-panel h4 { margin: 12px 0 6px; font-size: 1rem; color: var(--krishna); }
.ih-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ih-steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .95rem; line-height: 1.5; }
.ih-steps li::before {
  content: counter(s); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--saffron), var(--saffron-2)); color: #fff; font-weight: 700; font-size: .85rem;
}
.ih-steps small { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.ih-steps .key { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; margin: 0 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); font-weight: 700; color: var(--krishna); vertical-align: middle; }
.ih-steps .key .ic { width: 15px; height: 15px; }
.mini-icon { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; }
.ih-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.ih-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---------- Home hero: title + photo + introduction ---------- */
.hero-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 26px; align-items: center;
  grid-template-areas: "title photo" "intro photo"; max-width: 680px;
}
.hero-title { grid-area: title; align-self: start; }
.hero-title h1 { margin-bottom: 10px; }
.presenter-text { grid-area: intro; align-self: start; color: var(--ink-2); font-size: 1.1rem; line-height: 1.6; }
.presenter-text p { margin: 0 0 .55em; }
.presenter-text strong { color: var(--krishna); font-weight: 700; }
.presenter-text p:first-child strong { font-family: var(--font-sanskrit); }
.presenter-text p:last-child strong { font-size: 1.22em; white-space: nowrap; }

.presenter-photo { grid-area: photo; position: relative; width: 190px; height: 332px; flex: none; right:5px; }
.presenter-arch { /* temple-arch frame: saffron glow + faint chariot-wheel outline */
  position: absolute; left: 0; right: 0; bottom: 0; height: 278px; border-radius: 95px 95px 18px 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #FFE3A3 0%, #F7B955 55%, #E8772E 100%);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold), var(--shadow);
}
.presenter-arch::after {
  content: ""; position: absolute; inset: -25%; background-color: #fff; opacity: .28;
  -webkit-mask: url("/img/wheel-outline.webp") center / contain no-repeat;
          mask: url("/img/wheel-outline.webp") center / contain no-repeat;
  animation: spin 120s linear infinite;
}
.presenter-photo img { /* cut-out portrait: head rises above the arch */
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 190px; height: auto;
  clip-path: inset(0 0 0 0 round 0 0 18px 18px); filter: drop-shadow(0 6px 10px rgba(60, 20, 10, .3));
}

/* ---------- Footer: website & YouTube ---------- */
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(246, 219, 148, .35); color: #fff; font-weight: 600; font-size: .9rem;
}
.footer-links a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.footer-links .ic { width: 20px; height: 20px; color: var(--gold-soft); }
.footer-links .yt .ic { color: #FF3B30; }

/* ---------- Home hero on tablets & phones ---------- */
@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "intro"; justify-items: center; text-align: center; margin-inline: auto; row-gap: 14px; }
  .hero-title { align-self: auto; }
  .hero-title h1 { margin-bottom: 0; }
  .presenter-text p:last-child strong { white-space: normal; }
  /* lotus + chariot wheel, and the Krishna-Arjun chariot drawing, centred */
  .hero-art { justify-self: center; margin-inline: auto; }
  .hero-chariot { left: 50%; right: auto; transform: translateX(-50%); top: 10px; bottom: auto; width: min(150vw, 760px); }
  /* quote reference moves below the verse, left-aligned */
  .hero-quote figcaption { position: static; display: block; margin-top: 8px; text-align: left; font-size: .7rem; }
}
@media (max-width: 560px) {
  .presenter-photo { width: 160px; height: 280px; }
  .presenter-arch { height: 234px; border-radius: 80px 80px 16px 16px; }
  .presenter-photo img { width: 160px; }
  .presenter-text { font-size: 1.02rem; }
}
