:root{
  --saffron:#b45309;--deep-red:#991b1b;--maroon:#7f1d1d;--gold:#eab308;--paper:#fff8df;--cream:#fffdf4;--ink:#4a1c12;--line:#e7c56a;--shadow:0 16px 40px rgba(104,52,8,.12);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#fff7d6 0%,#fffdf4 50%,#fff6d8 100%);color:var(--ink);font-family:Georgia,"Noto Serif Devanagari","Mangal",serif}a{text-decoration:none;color:inherit}
.site-header{position:sticky;top:0;z-index:10;background:#fff9e7;box-shadow:0 8px 24px rgba(81,40,0,.08)}
.temple-banner{position:relative;min-height:230px;background-image:url('assets/hero-temple.jpg');background-position:center 46%;background-size:cover;display:grid;place-items:center;text-align:center;overflow:hidden}.temple-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,183,77,.12),rgba(255,246,210,.18) 60%,rgba(255,244,201,.7))}.brand-block{position:relative;padding:16px 24px}.eyebrow{font-size:18px;color:var(--deep-red);letter-spacing:3px;font-weight:700}.brand-block h1{margin:8px 0 2px;font-size:clamp(28px,4vw,48px);color:#9f1d13;text-shadow:0 2px 0 rgba(255,255,255,.55)}.brand-title{font-size:clamp(26px,3vw,38px);font-weight:800;color:#6b1a12}.brand-subtitle{font-size:18px;color:#8f291b;margin-top:6px;font-weight:700}.nav-wrap{max-width:1100px;margin:-1px auto 0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px 16px;background:rgba(255,248,226,.96);border:1px solid var(--line);border-radius:0 0 18px 18px}.nav-link{padding:11px 18px;border-radius:12px;font-size:16px;font-weight:700;color:#76251a}.nav-link.active,.nav-link:hover{background:var(--deep-red);color:#fff8dc}
.home-main{max-width:1400px;margin:28px auto 42px;padding:0 18px}.hero-card{position:relative;display:grid;grid-template-columns:220px 1fr 220px;align-items:stretch;gap:18px;background:linear-gradient(180deg,#fff9e7,#fff2bd);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden;min-height:550px}.hero-center{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:48px 32px}.side-figure{overflow:hidden}.side-figure img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.left-figure img{object-position:top center}.right-figure img{object-position:center 30%}.sanskrit-mark{color:var(--deep-red);font-weight:800;letter-spacing:2px;font-size:18px}.hero-center h2{font-size:clamp(44px,6vw,78px);margin:10px 0;color:#b21f13;line-height:1.05;text-shadow:0 3px 0 rgba(255,224,125,.65)}.lead{max-width:720px;font-size:20px;line-height:1.7;color:#74351f;margin:0 0 26px}.primary-cta{display:inline-flex;align-items:center;gap:12px;padding:16px 28px;background:linear-gradient(90deg,#991b1b,#c2410c);color:#fffbe8;border-radius:999px;font-size:19px;font-weight:800;box-shadow:0 10px 25px rgba(153,27,27,.2);transition:transform .2s ease,box-shadow .2s ease}.primary-cta:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(153,27,27,.27)}.feature-row{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px}.feature-card{display:flex;gap:10px;align-items:center;justify-content:center;background:rgba(255,255,255,.58);border:1px solid #efda9a;border-radius:16px;padding:14px 10px;text-align:left}.feature-card b,.feature-card small{display:block}.feature-card small{font-size:12px;color:#86614d;margin-top:2px}.feature-icon{font-size:24px;color:#b45309}.quote{margin-top:24px;color:#8c321f;font-style:italic;font-size:16px}.section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}.tile{display:flex;align-items:center;gap:14px;background:#fffdf5;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 10px 25px rgba(104,52,8,.07);transition:transform .18s ease}.tile:hover{transform:translateY(-3px)}.tile-icon{font-size:30px}.tile h3{margin:0 0 5px;font-size:21px;color:#851f17}.tile p{margin:0;color:#7d5a49;font-size:14px}.tile>span{margin-left:auto;color:#a62a1d;font-size:25px}.site-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px max(18px,calc((100vw - 1400px)/2));background:#4a1712;color:#fff6dd;font-size:14px}.footer-spacer{flex:1}
.simple-header,.reader-header{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;background:#fff8e6;border-bottom:1px solid var(--line);box-shadow:0 8px 20px rgba(67,28,0,.08)}.simple-header a,.back-link,.compact-link{font-weight:800;color:#8a231a}.simple-header div{font-size:19px;color:#8d2219}.reader-header{padding:10px 18px}.reader-title{text-align:center;display:flex;flex-direction:column;gap:2px}.reader-title span{font-size:14px;color:#a33a25;font-weight:800}.reader-title strong{font-size:25px;color:#8e1b13}.reader-title small{color:#7d5a49}.compact-link{font-size:14px}.reader-shell{max-width:1500px;margin:0 auto;padding:16px 18px 32px}.reader-ornament{text-align:center;color:#9d271c;font-weight:800;letter-spacing:2px;margin-bottom:12px}.reader-stage{display:grid;grid-template-columns:190px 1fr 190px;gap:14px;align-items:stretch}.reader-side{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff3c6;min-height:720px;box-shadow:var(--shadow)}.reader-side img{width:100%;height:100%;object-fit:cover}.reader-side-left img{object-position:top}.reader-side-right img{object-position:center 24%}.scroll-panel{height:min(72vh,820px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ba6a36 #f8eec9;background:linear-gradient(180deg,#fff7ce,#fffdf4 24%,#fff9df);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.scroll-panel::-webkit-scrollbar{width:12px}.scroll-panel::-webkit-scrollbar-track{background:#f8eec9;border-radius:12px}.scroll-panel::-webkit-scrollbar-thumb{background:#ba6a36;border:3px solid #f8eec9;border-radius:12px}.scroll-inner{max-width:900px;margin:0 auto;padding-bottom:80px}.title-plate{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,rgba(255,247,206,.98),rgba(255,247,206,.9),rgba(255,247,206,0));padding:10px 12px 30px;text-align:center}.title-plate h1{margin:3px 0;color:#ad2318;font-size:clamp(36px,5vw,58px)}.title-plate p{margin:0;color:#7a4a35}.small-devotion{color:#a93324;font-weight:800}.chalisa-text{font-size:clamp(25px,2.2vw,34px);line-height:1.95;text-align:center;color:#6f2117}.chalisa-text p{margin:20px auto;max-width:850px}.chalisa-text .doha{color:#8c2d1e;font-weight:700;font-size:.92em;border-top:1px dashed #d9b45c;border-bottom:1px dashed #d9b45c;padding:20px 10px}.ending{margin-top:34px;color:#9e2419;font-weight:800}.ending small{font-size:16px;color:#8d654f}.player-bar{position:sticky;bottom:12px;margin:16px auto 0;background:rgba(255,249,229,.97);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 35px rgba(65,29,0,.14);padding:14px 16px;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.player-main{display:flex;gap:8px;flex-wrap:wrap}.control-btn{border:1px solid #dab463;background:#fffdf4;color:#7d281e;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}.primary-control{background:#991b1b;color:#fff7df;border-color:#991b1b}.control-btn:hover{filter:brightness(.98);transform:translateY(-1px)}.speed-control{display:flex;align-items:center;justify-content:center;gap:10px}.speed-control label{font-weight:800;color:#7e3426}.speed-control input{width:min(260px,34vw)}.speed-control output{min-width:68px;font-weight:700;color:#8b4b35}.read-status{font-size:13px;color:#795d4e;text-align:right}.devotion-page{max-width:1100px;margin:44px auto 60px;padding:0 18px}.devotion-card{display:grid;grid-template-columns:1fr 1fr;gap:0;overflow:hidden;border-radius:28px;border:1px solid var(--line);background:linear-gradient(135deg,#fff7d6,#fffdf6);box-shadow:var(--shadow)}.devotion-card.reverse-card{grid-template-columns:1.1fr .9fr}.devotion-image{min-height:650px;background:#f6df9c}.devotion-image img{width:100%;height:100%;object-fit:cover}.devotion-image.tall img{object-position:center 18%}.devotion-image.wide img{object-position:top center}.devotion-copy{display:flex;justify-content:center;align-items:flex-start;flex-direction:column;padding:56px}.devotion-copy h1{font-size:clamp(44px,6vw,72px);color:#a21d13;margin:8px 0 12px}.devotion-copy p{font-size:20px;line-height:1.8;color:#744734}.mantra{margin:22px 0;padding:16px 20px;border-left:4px solid #b45309;background:#fff4c7;color:#8e2a1d;font-size:22px;font-weight:800}.devotion-copy .primary-cta{margin-top:8px}
@media (max-width:1000px){.hero-card{grid-template-columns:150px 1fr 150px}.reader-stage{grid-template-columns:120px 1fr 120px}.player-bar{grid-template-columns:1fr}.read-status{text-align:center}.speed-control{justify-content:flex-start}.devotion-image{min-height:520px}.devotion-copy{padding:34px}}
@media (max-width:760px){.temple-banner{min-height:190px}.nav-wrap{justify-content:flex-start;overflow:auto;flex-wrap:nowrap;border-radius:0;padding-left:12px}.nav-link{white-space:nowrap}.hero-card{grid-template-columns:1fr;min-height:0}.side-figure{max-height:220px}.left-figure{order:2}.hero-center{order:1;padding:34px 22px}.right-figure{order:3}.side-figure img{height:220px}.feature-row{grid-template-columns:1fr}.section-grid{grid-template-columns:1fr}.reader-stage{grid-template-columns:1fr}.reader-side{display:none}.scroll-panel{height:72vh;padding:12px}.reader-header{gap:8px}.reader-title strong{font-size:20px}.compact-link{display:none}.player-bar{bottom:6px}.player-main{justify-content:center}.speed-control{justify-content:center;flex-wrap:wrap}.read-status{font-size:12px}.devotion-card,.devotion-card.reverse-card{grid-template-columns:1fr}.devotion-image{min-height:430px}.devotion-copy{padding:30px}.simple-header span{display:none}.simple-header div{font-size:15px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.primary-cta,.tile{transition:none}}


/* v2.0 reader usability fixes */
.player-bar {
  position: sticky;
  top: 72px;
  bottom: auto;
  z-index: 20;
  margin: 10px auto 14px;
  grid-template-columns: minmax(280px, auto) minmax(220px, 1fr);
  gap: 10px 16px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}
.player-main { align-items: center; }
.reader-progress-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.reader-progress-wrap progress {
  width: 100%;
  height: 8px;
  accent-color: #991b1b;
}
.read-status { text-align: right; min-width: 210px; }
.scroll-panel {
  scroll-behavior: auto;
  height: min(64vh, 740px);
  min-height: 390px;
  overscroll-behavior: contain;
}
.control-btn { min-height: 42px; }
.control-btn:focus-visible, .speed-control input:focus-visible, a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 13px 22px;
  border: 1px solid #b45309;
  border-radius: 999px;
  color: #8e2a1d;
  background: #fff8df;
  font-weight: 800;
}
.secondary-cta:hover { background: #fff0c2; }
.verse-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #e7c56a;
  background: rgba(255, 244, 199, .7);
  color: #9a3412;
  font-size: .48em;
  font-weight: 800;
  letter-spacing: .4px;
}
.bajrang-baan-text p { margin: 18px auto 26px; }
.text-version-note {
  max-width: 1100px;
  margin: 16px auto 26px;
  padding: 12px 16px;
  border: 1px solid #e7c56a;
  border-radius: 14px;
  color: #79513d;
  background: rgba(255, 249, 229, .86);
  font-size: 13px;
  line-height: 1.65;
}
.text-version-note a { color: #8a231a; text-decoration: underline; font-weight: 700; }
.section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .player-bar { grid-template-columns: 1fr; top: 64px; }
  .reader-progress-wrap { grid-template-columns: 1fr; }
  .read-status { text-align: left; min-width: 0; }
  .scroll-panel { height: 62vh; min-height: 360px; }
}
@media (max-width: 760px) {
  .section-grid { grid-template-columns: 1fr; }
  .player-bar { top: 55px; padding: 10px; }
  .player-main { justify-content: center; }
  .player-main .control-btn { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; }
  .speed-control { justify-content: center; flex-wrap: wrap; }
  .speed-control input { width: min(220px, 55vw); }
  .scroll-panel { height: 62vh; min-height: 340px; padding: 12px; }
  .text-version-note { margin: 12px 8px 20px; }
}

/* Keep the title plate in normal flow so it never covers the first verse. */
.title-plate { position: static; }
