/* Canonical reader styles. Rule order preserves the established responsive cascade. */
@font-face{
  font-family:Gujarati;
  font-display:swap;
  src:url('assets/NotoSansGujarati-Regular.ttf')
}
@font-face{
  font-family:Gujarati;
  font-display:swap;
  src:url('assets/NotoSansGujarati-Bold.ttf');
  font-weight:700
}
:root{
  --bg:#140309;
  --maroon:#3a121c;
  --gold:#f0c84a;
  --cream:#f8f0d8;
  --muted:#cdbda4;
  --line:#644634;
  --size:1.25rem
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font-family:Gujarati,serif
}
button,a{
  -webkit-tap-highlight-color:transparent
}
button{
  font:inherit;
  cursor:pointer
}
button:focus-visible,a:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:4px
}
header{
  height:88px;
  padding:16px 4vw;
  display:flex;
  align-items:center;
  gap:14px;
  border-bottom:1px solid var(--line);
  background:#1e070e
}
header img{
  width:48px;
  height:48px
}
header>div{
  font-family:Georgia,serif;
  letter-spacing:.16em;
  color:var(--gold);
  font-size:1.15rem
}
header>div span{
  display:block;
  font-family:Gujarati,serif;
  letter-spacing:0;
  font-size:.9rem;
  color:var(--muted);
  margin-top:6px
}
.private{
  margin-left:auto;
  font-size:.875rem;
  color:var(--muted);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:30px
}
.layout{
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  max-width:1600px;
  margin:auto
}
aside{
  border-right:1px solid var(--line);
  padding:32px 18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  scrollbar-color:#684a36 transparent
}
.aside-title{
  color:var(--gold);
  font-size:1.25rem;
  padding:0 14px 20px
}
nav a{
  display:flex;
  gap:12px;
  color:var(--muted);
  padding:12px 14px;
  margin-bottom:3px;
  text-decoration:none;
  font-size:.94rem;
  line-height:1.65;
  border-left:2px solid transparent;
  border-radius:0 6px 6px 0
}
nav a .num{
  color:#b39761;
  min-width:24px
}
nav a.active{
  background:#44202a;
  color:var(--gold);
  border-left-color:var(--gold)
}
nav a:hover{
  background:#30111b;
  color:var(--cream)
}
main{
  min-width:0;
  padding:0 5.5vw 24px
}
.intro{
  min-height:278px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  border-bottom:1px solid var(--line);
  padding:28px 0;
  background:radial-gradient(ellipse at right,#3a121c,transparent 65%)
}
.eyebrow{
  color:var(--gold);
  font-size:.9rem
}
.intro h1{
  font-size:clamp(2rem,3.4vw,3.6rem);
  margin:16px 0 8px;
  font-weight:700;
  line-height:1.5
}
.intro p{
  margin:0;
  line-height:1.9;
  color:var(--muted);
  font-size:1rem
}
.stats{
  font-size:.9rem;
  color:var(--gold);
  margin-top:18px
}
.stats span{
  margin:0 12px
}
.intro img{
  height:222px;
  width:166px;
  object-fit:cover;
  border-radius:90px 90px 8px 8px;
  border:1px solid #ad8245;
  box-shadow:0 8px 44px #0008
}
.reader-toolbar{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  background:#140309f5;
  padding:20px 0;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px)
}
button{
  border:1px solid var(--line);
  background:transparent;
  color:var(--cream);
  border-radius:6px;
  padding:10px 14px;
  min-height:44px;
  font-size:.94rem
}
button:hover{
  background:#48202b
}
button[aria-pressed=true]{
  background:var(--gold);
  border-color:var(--gold);
  color:#20060d
}
.views{
  display:flex;
  gap:6px
}
.size{
  display:flex;
  gap:6px
}
#menu{
  display:none
}
article{
  padding:36px 0;
  min-height:480px
}
article h2{
  font-size:clamp(1.5rem,2.3vw,2.1rem);
  line-height:1.65;
  color:var(--gold);
  margin:8px 0 8px
}
.chapter-meta{
  color:var(--muted);
  font-size:.875rem
}
.chapter-number{
  font-size:.875rem;
  letter-spacing:.06em;
  color:var(--muted)
}
.text-body{
  margin-top:28px;
  font-size:var(--size);
  line-height:2.2
}
.text-body p{
  margin:0;
  overflow-wrap:anywhere
}
.page-label{
  display:flex;
  align-items:center;
  gap:12px;
  color:#bb9c67;
  font-size:.875rem;
  margin:30px 0 16px
}
.page-label:after{
  content:'';
  height:1px;
  background:var(--line);
  flex:1
}
.uncertain{
  background:#f0c84a20;
  border-bottom:1px dotted var(--gold);
  color:inherit
}
.review-note{
  border-left:2px solid #ab843c;
  padding:10px 16px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.9;
  margin:24px 0
}
.scan{
  display:block;
  width:100%;
  height:auto;
  background:white;
  border-radius:4px
}
.scan-link{
  color:var(--gold);
  font-size:.9rem;
  display:inline-block;
  margin:12px 0 24px
}
.chapter-nav{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:24px 0;
  border-top:1px solid var(--line)
}
button:disabled{
  opacity:.35;
  cursor:default
}
footer{
  text-align:center;
  color:#b59661;
  padding:28px;
  font-size:1rem
}
.supplement{
  color:var(--muted);
  font-size:.875rem;
  padding:24px 14px 12px
}
@media(min-width:1450px){
  main{
    padding-left:80px;
    padding-right:80px
  }
}
@media(max-width:900px){
  .layout{
    grid-template-columns:250px minmax(0,1fr)
  }
  main{
    padding:0 28px
  }
  .intro img{
    height:180px;
    width:134px
  }
  .intro{
    gap:12px
  }
  .intro h1{
    font-size:2rem
  }
  nav a{
    font-size:.875rem;
    padding:10px
  }
}
@media(max-width:700px){
  header{
    height:76px;
    padding:12px 20px
  }
  header>div{
    font-size:.95rem
  }
  header img{
    width:42px;
    height:42px
  }
  .private{
    font-size:.8rem;
    padding:6px 9px
  }
  .layout{
    display:block
  }
  aside{
    display:none;
    position:fixed;
    top:76px;
    left:0;
    width:min(340px,92vw);
    height:calc(100dvh - 76px);
    z-index:10;
    background:#1e070e;
    box-shadow:10px 0 60px #000a
  }
  aside.open{
    display:block
  }
  main{
    padding:0 20px
  }
  .intro{
    min-height:220px;
    padding:24px 0
  }
  .intro img{
    width:100px;
    height:148px
  }
  .intro h1{
    font-size:1.85rem
  }
  .intro p{
    font-size:.9rem
  }
  .eyebrow{
    font-size:.8rem
  }
  .stats{
    font-size:.8rem
  }
  .reader-toolbar{
    gap:6px;
    flex-wrap:wrap;
    padding:12px 0
  }
  #menu{
    display:block;
    font-size:.85rem;
    padding:8px
  }
  .views button{
    font-size:.85rem;
    padding:8px 10px
  }
  .size button{
    padding:8px;
    min-width:40px
  }
  .size{
    margin-left:auto
  }
  article{
    padding-top:28px
  }
  .text-body{
    font-size:var(--size);
    line-height:2.25
  }
  .chapter-nav button{
    font-size:.85rem;
    padding:10px
  }
  .intro h1{
    white-space:normal
  }
}
@media(prefers-reduced-motion:no-preference){
  button,a{
    transition:background .15s,color .15s
  }
}
@media print{
  header,aside,.intro,.reader-toolbar,.chapter-nav,footer,.review-note{
    display:none
  }
  body{
    color:black;
    background:white
  }
  .layout{
    display:block
  }
  article h2{
    color:black
  }
  main{
    padding:0
  }
  .uncertain{
    background:#ffea8c
  }
}
header>div{
  letter-spacing:.025em;
  font-family:Georgia,serif
}
header>div #brand{
  display:block;
  font:inherit;
  color:var(--gold);
  margin:0
}
header small{
  display:block;
  font: .85rem Gujarati,serif;
  color:var(--muted);
  margin-top:6px
}
.skip{
  position:absolute;
  left:10px;
  top:-100px;
  z-index:30;
  background:var(--gold);
  padding:12px;
  color:#140309
}
.skip:focus{
  top:10px
}
.aside-title{
  display:flex;
  justify-content:space-between;
  align-items:center
}
#close-menu{
  display:none
}
#search{
  width:100%;
  padding:12px;
  margin-bottom:20px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--bg);
  color:var(--cream);
  font-family:var(--ui),Gujarati,sans-serif;
  font-weight:400
}
.language-label{
  font-size:.75rem;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0
}
select{
  max-width:100%;
  min-height:44px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#30111b;
  color:var(--cream);
  font: .9rem Gujarati,serif
}
.text-body[lang=en]{
  font-family:Georgia,serif;
  line-height:1.9
}
.text-body[lang=en] p{
  margin-bottom:18px
}
.text-body{
  overflow-wrap:break-word
}
.review-note{
  font-family:Gujarati,system-ui,sans-serif
}
.unavailable{
  padding:24px 0;
  line-height:1.9;
  color:var(--muted)
}
footer a{
  display:inline-block;
  color:var(--cream);
  font: .95rem system-ui,sans-serif;
  margin-top:12px;
  overflow-wrap:anywhere
}
.size{
  flex-shrink:0
}
#reader:focus{
  outline:none
}
#backdrop{
  position:fixed;
  inset:0;
  background:#0009;
  z-index:9
}
#backdrop[hidden]{
  display:none
}
@media(max-width:700px){
  header{
    height:auto;
    min-height:76px
  }
  header>div{
    font-size:1.03rem
  }
  aside{
    top:0;
    height:100dvh;
    padding-top:20px;
    width:min(340px,88vw)
  }
  #close-menu{
    display:block
  }
  body.menu-open{
    overflow:hidden
  }
  .intro{
    min-height:0;
    padding:22px 0;
    align-items:center
  }
  .intro img{
    width:76px;
    height:112px
  }
  .intro h1{
    font-size:1.65rem
  }
  .intro p{
    font-size:.82rem
  }
  .reader-toolbar{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px
  }
  #menu{
    justify-self:start
  }
  .language-label{
    grid-column:1;
    grid-row:2
  }
  .size{
    grid-column:2;
    grid-row:2;
    margin:0
  }
  .text-body{
    line-height:2.1
  }
  main{
    padding:0 16px
  }
  article{
    min-height:350px
  }
  footer{
    padding:24px 0
  }
  .chapter-nav{
    gap:10px
  }
  .chapter-nav button{
    max-width:49%
  }
}
@media(max-width:360px){
  .intro img{
    width:60px;
    height:90px
  }
  .intro h1{
    font-size:1.4rem
  }
  .eyebrow{
    font-size:.7rem
  }
}
/* Polished reading experience, release 2. */
body{
  background:radial-gradient(ellipse at 90% 0,#35131e 0,transparent 42%),var(--bg)
}
header{
  background:linear-gradient(110deg,#210a12,#17060c);
  border-bottom-color:#a87d403d
}
header img{
  filter:drop-shadow(0 0 13px #e4b85030)
}
header>div #brand{
  font-size:1.18em
}
.intro{
  position:relative;
  background:radial-gradient(ellipse at right,#63302038,transparent 70%);
  padding:38px 0
}
.intro img{
  box-shadow:0 12px 45px #0009,0 0 0 5px #c9984210;
  border-color:#c49753
}
.eyebrow{
  letter-spacing:.04em
}
.stats{
  display:inline-block;
  padding:7px 14px;
  border:1px solid #b18c4438;
  border-radius:30px;
  background:#bd93430b
}
.reader-toolbar{
  background:#1b080fee;
  border-color:#ad814d38;
  padding:16px 0
}
.language-switch{
  display:flex;
  gap:4px;
  border:1px solid #ae854543;
  border-radius:30px;
  padding:4px;
  background:#09020555
}
.language-switch button{
  border:0;
  border-radius:24px;
  padding:9px 19px;
  min-height:42px;
  color:var(--muted)
}
.language-switch button[aria-pressed=true]{
  background:linear-gradient(135deg,#f0d28a,#d5ab57);
  color:#301016;
  box-shadow:0 2px 12px #0004
}
.size button{
  border-radius:50%;
  width:44px;
  padding:7px;
  background:#45202a38
}
article{
  padding:38px 0
}
article h2{
  margin-bottom:22px
}
article h2:after{
  content:'';
  display:block;
  width:64px;
  height:2px;
  background:linear-gradient(90deg,#d6ac60,transparent);
  margin-top:18px
}
.text-body{
  margin-top:24px;
  line-height:2.05
}
.text-body p{
  margin-bottom:5px
}
.text-body[lang=en]{
  line-height:1.9
}
.text-body[lang=en] p{
  margin-bottom:12px
}
nav a{
  border-radius:10px
}
nav a.active{
  background:linear-gradient(100deg,#69403365,#42202c55);
  box-shadow:inset 0 0 0 1px #c6964630
}
.chapter-nav button{
  border-radius:24px;
  background:#41212a38
}
footer{
  border-top:1px solid #ad814d22;
  margin-top:14px
}
footer a{
  text-decoration:none;
  color:#ccb99b
}
footer a:hover{
  color:var(--gold)
}
@media(prefers-reduced-motion:no-preference){
  button,a{
    transition:background .2s,color .2s,box-shadow .2s,transform .2s
  }
  button:active{
    transform:scale(.97)
  }
  .text-body{
    animation:reader-appear .24s ease-out
  }
  @keyframes reader-appear{
    from{
      opacity:0;
      transform:translateY(5px)
    }
    to{
      opacity:1;
      transform:translateY(0)
    }
  }
}
@media(max-width:700px){
  header>div #brand{
    font-size:1.02em
  }
  .intro{
    padding:26px 0
  }
  .intro h1{
    font-size:1.6rem
  }
  .intro img{
    width:78px;
    height:116px
  }
  .reader-toolbar{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:12px 0
  }
  #menu{
    grid-column:1 / -1;
    grid-row:1;
    border:0;
    padding:4px 0;
    min-height:32px;
    color:var(--muted);
    background:none
  }
  .language-switch{
    grid-column:1;
    grid-row:2;
    justify-self:start
  }
  .language-switch button{
    font-size:.86rem;
    padding:7px 13px;
    min-height:40px
  }
  .size{
    grid-column:2;
    grid-row:2;
    gap:5px
  }
  .size button{
    width:38px;
    min-height:40px;
    font-size:.85rem
  }
  article{
    padding-top:28px
  }
  article h2{
    font-size:1.4rem
  }
  .text-body{
    line-height:2.05
  }
  .stats{
    padding:5px 11px;
    font-size:.75rem
  }
}
@media(max-width:350px){
  .language-switch button{
    padding:7px 10px
  }
  .size button{
    width:34px
  }
  .intro h1{
    font-size:1.4rem
  }
  .intro img{
    width:62px;
    height:94px
  }
}
.brand-home{
  display:flex;
  align-items:center;
  gap:14px;
  color:inherit;
  text-decoration:none;
  min-width:0
}
.brand-home img{
  width:52px;
  height:52px
}
.brand-home #brand{
  display:block;
  font:1.18rem Georgia,serif;
  color:var(--gold);
  letter-spacing:.025em
}
.brand-home #subtitle{
  display:block;
  font:.85rem Gujarati,serif;
  color:var(--muted);
  margin-top:6px
}
.aside-title{
  font-family:Georgia,serif
}
.intro h1{
  font-size:clamp(1.8rem,3vw,3rem);
  max-width:660px;
  line-height:1.55
}
@media(max-width:700px){
  .brand-home img{
    width:44px;
    height:44px
  }
  .brand-home #brand{
    font-size:1.06rem
  }
  .intro h1{
    font-size:1.55rem;
    line-height:1.65
  }
  .intro>div{
    min-width:0
  }
  .intro img{
    flex-shrink:0
  }
  #menu{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    padding:9px 17px;
    border:1px solid #d8af64;
    border-radius:24px;
    color:#fbe3ad;
    background:linear-gradient(120deg,#583126,#371520);
    font:600 .95rem system-ui,sans-serif;
    box-shadow:0 3px 14px #0003
  }
  aside{
    display:block;
    visibility:hidden;
    transform:translateX(-105%);
    pointer-events:none
  }
  aside.open{
    visibility:visible;
    transform:translateX(0);
    pointer-events:auto
  }
  .aside-title{
    font-size:1.35rem
  }
}
@media(max-width:350px){
  .intro h1{
    font-size:1.35rem
  }
}
@media(prefers-reduced-motion:no-preference) and (max-width:700px){
  aside{
    transition:transform .24s ease,visibility .24s
  }
}
/* Theme controls and light reading palette. */
:root{
  color-scheme:dark
}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#fffaf1;
  --maroon:#efe0ce;
  --gold:#805019;
  --cream:#34221f;
  --muted:#725b4d;
  --line:#d8c4aa
}
.icon-button{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  min-width:44px;
  padding:0;
  border-radius:50%;
  font:24px/1 system-ui,sans-serif;
  background:#32141e;
  color:#f0d28a;
  box-shadow:0 3px 14px #0003
}
#theme-toggle{
  margin-left:auto;
  flex-shrink:0
}
#scroll-top{
  position:fixed;
  right:max(16px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:8
}
#scroll-top[hidden]{
  display:none
}
body.menu-open #scroll-top{
  visibility:hidden
}
html[data-theme="light"] body{
  background:radial-gradient(ellipse at 90% 0,#ecd9bb55,transparent 42%),var(--bg)
}
html[data-theme="light"] header{
  background:linear-gradient(110deg,#f6e7d0,#fffaf1);
  border-bottom-color:var(--line)
}
html[data-theme="light"] aside{
  background:#fcf4e7;
  scrollbar-color:#bda17c transparent
}
html[data-theme="light"] .intro{
  background:radial-gradient(ellipse at right,#eacba34d,transparent 70%)
}
html[data-theme="light"] .intro img{
  box-shadow:0 10px 30px #7c53252b,0 0 0 5px #c9984210
}
html[data-theme="light"] .reader-toolbar{
  background:#fffaf1f2;
  border-color:var(--line)
}
html[data-theme="light"] .language-switch{
  background:#efe2cf;
  border-color:#ccb38b
}
html[data-theme="light"] .language-switch button[aria-pressed=true]{
  background:linear-gradient(135deg,#efd092,#dfb66f);
  color:#34221f;
  box-shadow:0 2px 8px #80501920
}
html[data-theme="light"] nav a .num{
  color:#85633b
}
html[data-theme="light"] nav a.active{
  background:linear-gradient(100deg,#edd7b9,#f7ead8);
  color:#713e17;
  border-left-color:#805019
}
html[data-theme="light"] nav a:hover,html[data-theme="light"] button:hover{
  background:#e9d5b6;
  color:#34221f
}
html[data-theme="light"] .size button,html[data-theme="light"] .chapter-nav button{
  background:#f2e6d4
}
html[data-theme="light"] .icon-button{
  background:#fff3dc;
  color:#805019;
  border-color:#bd965d;
  box-shadow:0 3px 14px #80501925
}
html[data-theme="light"] #menu{
  color:#713e17;
  background:linear-gradient(120deg,#f5dfb7,#ecd2ac);
  border-color:#b68a4c
}
html[data-theme="light"] footer,html[data-theme="light"] footer a{
  color:#765333
}
@media(max-width:350px){
  header{
    padding-left:12px;
    padding-right:12px;
    gap:8px
  }
  .brand-home{
    gap:8px
  }
  .brand-home #brand{
    font-size:.95rem
  }
}
@media print{
  #theme-toggle,#scroll-top{
    display:none!important
  }
}
/* Daily reading improvements. */
header{
  position:sticky;
  top:0;
  z-index:7;
  height:76px;
  min-height:76px;
  padding:10px 4vw
}
.reading-scrolled header{
  height:60px;
  min-height:60px
}
.reading-scrolled .brand-home img{
  width:36px;
  height:36px
}
.reading-scrolled #subtitle{
  display:none
}
.reader-toolbar{
  top:76px
}
.reading-scrolled .reader-toolbar{
  top:60px
}
aside{
  top:76px;
  height:calc(100dvh - 76px)
}
.reading-scrolled aside{
  top:60px;
  height:calc(100dvh - 60px)
}
nav a small{
  display:block;
  font: .78rem/1.6 system-ui,sans-serif;
  color:var(--muted);
  margin-top:4px
}
.saved-label{
  display:block;
  font: .7rem/1.6 system-ui,sans-serif;
  color:var(--gold)
}
#favorites-filter{
  width:100%;
  margin-bottom:16px;
  border-radius:22px
}
#search{
  margin-bottom:10px;
  min-height:48px
}
input:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px
}
.empty-state{
  font: .9rem/1.8 system-ui,sans-serif;
  color:var(--muted);
  padding:12px
}
.reading-progress{
  height:3px;
  background:var(--line);
  position:sticky;
  top:calc(76px + 85px);
  z-index:4;
  overflow:hidden
}
.reading-scrolled .reading-progress{
  top:calc(60px + 85px)
}
.reading-progress span{
  display:block;
  height:100%;
  width:0;
  background:var(--gold)
}
.reading-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:20px;
  color:var(--muted);
  font: .8rem system-ui,sans-serif
}
.reading-actions button{
  border-radius:24px;
  font: .85rem system-ui,sans-serif
}
article{
  padding-top:22px;
  scroll-margin-top:190px
}
.text-body{
  max-width:760px
}
.text-body .verse{
  margin:0 0 22px;
  padding-bottom:18px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent)
}
.text-body .verse:last-child{
  border-bottom:0
}
.text-body .verse p{
  margin:0 0 3px;
  text-wrap:pretty;
  overflow-wrap:break-word
}
.text-body[lang=en]{
  font-family:Georgia,'Times New Roman',serif;
  letter-spacing:.005em;
  line-height:1.95
}
.chapter-nav button{
  flex:1;
  text-align:left;
  border-radius:16px;
  padding:14px 18px;
  font: .9rem/1.5 system-ui,sans-serif;
  min-width:0
}
.chapter-nav button:last-child{
  text-align:right
}
.chapter-nav small{
  display:block;
  font:.85rem/1.8 Gujarati,serif;
  margin-top:7px;
  color:var(--muted)
}
.offline-tools{
  font: .85rem/1.7 system-ui,sans-serif;
  margin-bottom:24px
}
.offline-tools button{
  font:inherit;
  margin:4px;
  border-radius:24px
}
.offline-tools p{
  max-width:540px;
  margin:12px auto
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden]{
  display:none!important
}
button:disabled:hover{
  background:transparent
}
button{
  touch-action:manipulation
}
#reader:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:8px
}
@media(max-width:700px){
  header{
    padding:10px 16px
  }
  .reader-toolbar{
    grid-template-columns:1fr auto;
    gap:8px
  }
  .language-switch button,.size button{
    min-height:44px
  }
  .size button{
    min-width:44px
  }
  .reading-progress{
    top:calc(76px + 132px)
  }
  .reading-scrolled .reading-progress{
    top:calc(60px + 132px)
  }
  aside,.reading-scrolled aside{
    top:0;
    height:100dvh;
    z-index:12
  }
  .text-body{
    line-height:2
  }
  .text-body .verse{
    margin-bottom:18px;
    padding-bottom:16px
  }
  .reading-actions{
    padding-top:16px
  }
  article{
    padding-top:20px
  }
  .intro{
    padding:22px 0
  }
  .chapter-nav{
    gap:8px
  }
  .chapter-nav button{
    padding:12px;
    font-size:.82rem
  }
  #scroll-top{
    bottom:max(18px,env(safe-area-inset-bottom));
    right:12px
  }
  footer{
    padding-bottom:70px
  }
}
@media(prefers-reduced-motion:no-preference){
  header,.brand-home img{
    transition:height .18s ease,min-height .18s ease,width .18s ease
  }
  .reading-progress span{
    transition:width .1s linear
  }
}
@media print{
  .reading-actions,.reading-progress,.offline-tools{
    display:none!important
  }
  .text-body .verse{
    break-inside:avoid
  }
}
.reading-progress,.reading-scrolled .reading-progress{
  top:var(--toolbar-bottom,160px)
}
html[data-theme="light"] #favorite[aria-pressed="true"],html[data-theme="light"] #favorites-filter[aria-pressed="true"]{
  background:#805019;
  color:#fffaf1;
  border-color:#805019
}
.text-body .pronunciation-help{
  font: .8rem/1.65 system-ui,sans-serif;
  color:var(--muted);
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  margin:0 0 24px;
  max-width:650px
}
/* Modern reader: the original maroon, gold, cream and coral palette. */
:root{
  --ui:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --quiet-line:color-mix(in srgb,var(--line) 55%,transparent);
  --surface:color-mix(in srgb,var(--bg) 96%,var(--cream) 4%);
  --soft:color-mix(in srgb,var(--bg) 91%,var(--gold) 9%)
}
body,html[data-theme=light] body{
  background:var(--bg)
}
button,input{
  font-family:var(--ui),Gujarati,sans-serif
}
button{
  border-radius:8px;
  box-shadow:none
}
button:focus-visible,a:focus-visible{
  outline-width:2px;
  outline-offset:3px
}
.ui-icon{
  width:20px;
  height:20px;
  flex:none;
  vertical-align:middle
}
header,html[data-theme=light] header{
  background:var(--bg);
  border-bottom:1px solid var(--quiet-line);
  padding:10px 32px;
  height:76px;
  min-height:76px
}
.brand-home{
  gap:12px
}
.brand-home img{
  width:42px;
  height:42px;
  filter:none
}
.brand-home #brand{
  font:600 1.05rem/1.4 var(--ui);
  letter-spacing:-.02em;
  color:var(--cream)
}
.brand-home #subtitle{
  font-size:.72rem;
  margin-top:2px
}
.icon-button,html[data-theme=light] .icon-button{
  border-radius:10px;
  background:var(--surface);
  border:1px solid var(--quiet-line);
  box-shadow:none;
  color:var(--gold)
}
.reading-scrolled header{
  height:60px;
  min-height:60px
}
.reading-scrolled .brand-home img{
  width:34px;
  height:34px
}
.layout{
  grid-template-columns:288px minmax(0,1fr);
  max-width:1500px
}
aside,html[data-theme=light] aside{
  background:var(--bg);
  border-right:1px solid var(--quiet-line);
  padding:28px 16px
}
.aside-title{
  font:600 .8rem/1.4 var(--ui);
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--muted);
  padding:0 12px 20px
}
#search{
  border-radius:8px;
  background:var(--surface);
  border-color:var(--quiet-line);
  font-size:.85rem;
  padding:12px;
  min-height:46px
}
#favorites-filter{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:.8rem;
  border-radius:8px;
  border-color:var(--quiet-line);
  margin-bottom:24px
}
nav a{
  padding:12px 10px;
  border-radius:6px;
  gap:10px;
  margin-bottom:4px;
  border-left:2px solid transparent;
  font-size:.9rem
}
nav a .num{
  font: .75rem/1.9 var(--ui);
  min-width:23px;
  color:var(--muted)
}
nav a small{
  font: .73rem/1.55 var(--ui);
  opacity:.85;
  margin-top:5px
}
nav a.active,html[data-theme=light] nav a.active{
  background:var(--soft);
  box-shadow:none;
  border-left-color:var(--gold);
  color:var(--gold)
}
nav a:hover,html[data-theme=light] nav a:hover{
  background:var(--surface);
  color:var(--cream)
}
nav a.active small{
  opacity:1
}
.saved-label{
  font-size:.65rem
}
main{
  padding:0 clamp(24px,5vw,76px) 24px
}
.intro,html[data-theme=light] .intro{
  background:none;
  min-height:250px;
  padding:40px 0;
  gap:32px;
  border-bottom-color:var(--quiet-line)
}
.intro :is(h1,h2){
  font-size:clamp(1.8rem,2.8vw,2.6rem);
  line-height:1.6;
  letter-spacing:-.025em;
  margin:16px 0 10px;
  max-width:620px
}
.intro p{
  font-size:.88rem;
  max-width:520px;
  line-height:1.85
}
.eyebrow{
  font-size:.75rem;
  letter-spacing:0
}
.intro img,html[data-theme=light] .intro img{
  width:124px;
  height:174px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:64px 64px 8px 8px;
  box-shadow:none
}
.stats{
  border:0;
  border-radius:0;
  background:none;
  padding:0;
  margin-top:20px;
  font-size:.72rem;
  color:var(--muted)
}
.reader-toolbar,html[data-theme=light] .reader-toolbar{
  background:var(--bg);
  border-bottom:0;
  backdrop-filter:none;
  padding:14px 0;
  gap:16px
}
.language-switch,html[data-theme=light] .language-switch{
  border-radius:8px;
  border:1px solid var(--quiet-line);
  background:var(--surface);
  padding:3px;
  gap:3px
}
.language-switch button{
  border-radius:5px;
  color:var(--muted);
  font-family:var(--ui),Gujarati,sans-serif;
  font-size:.83rem;
  padding:9px 15px;
  min-height:44px
}
.language-switch button[aria-pressed=true],html[data-theme=light] .language-switch button[aria-pressed=true]{
  background:var(--soft);
  box-shadow:none;
  color:var(--gold);
  font-weight:600
}
.size{
  gap:0;
  border:1px solid var(--quiet-line);
  border-radius:8px;
  overflow:hidden
}
.size button,html[data-theme=light] .size button{
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
  border-radius:0;
  width:44px;
  min-height:44px;
  color:var(--muted)
}
.size button+button{
  border-left:1px solid var(--quiet-line)
}
button:hover,html[data-theme=light] button:hover{
  background:var(--soft);
  color:var(--gold)
}
.reading-progress{
  height:2px;
  background:var(--quiet-line)
}
.reading-actions{
  padding-top:16px
}
.reading-actions button{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 0;
  border:0;
  border-radius:4px;
  font: .77rem var(--ui);
  color:var(--muted);
  background:transparent
}
.reading-actions .ui-icon{
  width:17px;
  height:17px
}
#favorite[aria-pressed=true],html[data-theme=light] #favorite[aria-pressed=true]{
  color:var(--gold);
  background:transparent;
  border:0
}
#favorite[aria-pressed=true] .ui-icon{
  fill:var(--soft)
}
#progress-label{
  font-size:.72rem;
  font-variant-numeric:tabular-nums;
  color:var(--muted)
}
article{
  padding:26px 0 36px
}
.chapter-number{
  font-size:.73rem;
  letter-spacing:.04em
}
article :is(h1,h2){
  font-size:clamp(1.45rem,2.3vw,1.9rem);
  line-height:1.7;
  margin:12px 0 26px;
  letter-spacing:-.02em
}
article :is(h1,h2):after{
  display:none
}
.text-body{
  max-width:730px;
  margin-top:26px
}
.text-body[lang=en]{
  font-family:var(--ui);
  font-weight:400;
  letter-spacing:0;
  line-height:1.9
}
.text-body .verse{
  border-bottom-color:var(--quiet-line);
  margin-bottom:24px;
  padding-bottom:22px
}
.text-body .verse p{
  margin-bottom:5px
}
.chapter-nav{
  border-top:1px solid var(--quiet-line);
  padding-top:24px;
  gap:16px
}
.chapter-nav button,html[data-theme=light] .chapter-nav button{
  background:var(--surface);
  border:1px solid var(--quiet-line);
  border-radius:8px;
  padding:16px;
  font-size:.82rem
}
.chapter-nav .ui-icon{
  width:17px;
  height:17px;
  margin:0 7px 0 0
}
.chapter-nav button:last-child .ui-icon{
  margin:0 0 0 7px
}
.chapter-nav small{
  font-size:.8rem;
  margin-top:10px;
  line-height:1.8
}
.offline-tools button{
  border-radius:6px;
  font-size:.76rem;
  border-color:var(--quiet-line)
}
footer,html[data-theme=light] footer{
  border-color:var(--quiet-line);
  color:var(--muted)
}
footer a,html[data-theme=light] footer a{
  color:var(--muted);
  font-size:.82rem
}
.offline-tools{
  font-size:.73rem
}
#scroll-top{
  box-shadow:0 3px 14px #0002
}
@media(max-width:900px) and (min-width:701px){
  .layout{
    grid-template-columns:240px minmax(0,1fr)
  }
  main{
    padding:0 28px
  }
  .intro img{
    width:96px;
    height:138px
  }
  .intro{
    gap:20px
  }
  .intro :is(h1,h2){
    font-size:1.7rem
  }
}
@media(max-width:700px){
  header,html[data-theme=light] header{
    padding:10px 16px
  }
  .brand-home #brand{
    font-size:.96rem
  }
  .brand-home img{
    width:38px;
    height:38px
  }
  .layout{
    display:block
  }
  main{
    padding:0 18px
  }
  .intro,html[data-theme=light] .intro{
    min-height:0;
    padding:28px 0;
    gap:18px;
    align-items:center
  }
  .intro :is(h1,h2){
    font-size:1.45rem;
    line-height:1.65;
    margin:12px 0 8px
  }
  .intro p{
    font-size:.77rem
  }
  .intro img,html[data-theme=light] .intro img{
    width:72px;
    height:108px
  }
  .eyebrow{
    font-size:.68rem
  }
  .stats{
    font-size:.66rem;
    margin-top:14px
  }
  .reader-toolbar{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:12px 0
  }
  #menu,html[data-theme=light] #menu{
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    gap:8px;
    justify-self:start;
    background:transparent;
    border:0;
    border-radius:5px;
    box-shadow:none;
    color:var(--cream);
    padding:7px 0;
    font:500 .84rem var(--ui);
    min-height:44px
  }
  .size{
    grid-column:2;
    grid-row:1
  }
  .language-switch{
    grid-column:1 / -1;
    grid-row:2;
    width:100%
  }
  .language-switch button{
    flex:1;
    padding:8px 12px;
    font-size:.81rem
  }
  .reading-actions{
    padding-top:10px
  }
  article{
    padding-top:18px
  }
  article :is(h1,h2){
    font-size:1.4rem;
    margin-bottom:22px
  }
  .text-body{
    margin-top:22px
  }
  .text-body .verse{
    margin-bottom:20px;
    padding-bottom:18px
  }
  .chapter-nav{
    gap:10px
  }
  .chapter-nav button{
    padding:12px
  }
  .chapter-nav small{
    font-size:.75rem
  }
  aside,html[data-theme=light] aside{
    padding:20px 16px
  }
  .aside-title{
    padding-left:10px;
    font-size:.85rem
  }
  .icon-button{
    width:44px;
    height:44px
  }
  footer{
    padding-bottom:74px
  }
}
@media(max-width:350px){
  main{
    padding:0 14px
  }
  .intro{
    gap:12px
  }
  .intro :is(h1,h2){
    font-size:1.3rem
  }
  .intro img,html[data-theme=light] .intro img{
    width:60px;
    height:92px
  }
  .brand-home #brand{
    font-size:.87rem
  }
  .brand-home{
    gap:9px
  }
  .chapter-nav button{
    font-size:.75rem;
    padding:10px
  }
  .chapter-nav .ui-icon{
    width:14px;
    margin-right:4px
  }
}
@media print{
  body,html[data-theme=light] body{
    background:white;
    color:black
  }
  .text-body{
    max-width:none
  }
}
/* Two collections share the reader and remain accessible while scrolling. */
.collection-switch{
  grid-column:1 / -1;
  display:flex;
  gap:8px;
  border-bottom:1px solid var(--quiet-line);
  padding-bottom:10px;
  width:100%
}
.collection-switch button,html[data-theme=light] .collection-switch button{
  flex:1;
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
  border-radius:8px;
  min-height:44px;
  font:500 .88rem var(--ui);
  padding:8px 12px
}
.collection-switch button[aria-pressed=true],html[data-theme=light] .collection-switch button[aria-pressed=true]{
  background:var(--soft);
  color:var(--gold);
  border-color:var(--line)
}
.chapter-nav[hidden]{
  display:none
}
#toc a:not(:has(.num)){
  grid-template-columns:1fr
}
@media(max-width:700px){
  .collection-switch{
    grid-row:1
  }
  #menu,html[data-theme=light] #menu,.size{
    grid-row:2
  }
  .language-switch{
    grid-row:3
  }
  .reader-toolbar{
    gap:6px
  }
  .collection-switch{
    padding-bottom:6px
  }
}
@media(min-width:701px){
  .reader-toolbar{
    display:grid;
    grid-template-columns:1fr auto
  }
  .collection-switch{
    grid-row:1
  }
  .language-switch{
    grid-row:2;
    justify-self:start
  }
  .size{
    grid-row:2;
    grid-column:2
  }
}
/* Devotional theme: warm depth, restrained ornament, and a calm reading surface. */
:root{
  --halo:color-mix(in srgb,var(--gold) 11%,transparent);
  --glass:color-mix(in srgb,var(--bg) 94%,transparent);
  --lift:0 12px 36px #00000012
}
body,html[data-theme=light] body{
  background:radial-gradient(ellipse at 85% 8%,var(--halo),transparent 42%),var(--bg)
}
header,html[data-theme=light] header{
  background:var(--glass);
  backdrop-filter:blur(18px);
  border-bottom-color:var(--quiet-line);
  box-shadow:0 4px 24px #00000006
}
.brand-home img{
  filter:drop-shadow(0 3px 8px var(--halo))
}
.brand-home #brand{
  letter-spacing:-.035em
}
aside,html[data-theme=light] aside{
  background:color-mix(in srgb,var(--bg) 97%,var(--gold) 3%);
  padding-top:32px
}
#search{
  border-radius:12px;
  padding:14px;
  background:var(--surface)
}
#search:focus{
  outline:2px solid var(--gold);
  outline-offset:2px
}
#favorites-filter{
  border-radius:12px;
  margin-bottom:22px
}
nav a{
  border-radius:12px;
  padding:14px 12px;
  margin-bottom:6px
}
nav a.active,html[data-theme=light] nav a.active{
  background:linear-gradient(110deg,var(--soft),var(--surface));
  box-shadow:inset 0 0 0 1px var(--quiet-line);
  border-left-color:var(--gold)
}
nav a .num{
  padding-top:2px;
  font-size:.7rem
}
nav a small{
  margin-top:6px
}
.intro,html[data-theme=light] .intro{
  position:relative;
  isolation:isolate;
  min-height:310px;
  padding:48px 0;
  gap:36px;
  border-bottom:1px solid var(--quiet-line);
  background:radial-gradient(ellipse at 90% 50%,var(--halo),transparent 62%)
}
.intro:after{
  content:'';
  position:absolute;
  bottom:-3px;
  left:0;
  width:46px;
  height:5px;
  border-radius:4px;
  background:var(--gold);
  opacity:.65
}
.eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.8rem;
  color:var(--gold)
}
.eyebrow:before{
  content:'';
  width:24px;
  height:1px;
  background:currentColor;
  opacity:.6
}
.intro :is(h1,h2){
  font-size:clamp(1.9rem,3vw,2.8rem);
  line-height:1.6;
  letter-spacing:-.035em;
  margin:20px 0 12px;
  text-wrap:balance
}
.intro p{
  line-height:1.9;
  color:var(--muted)
}
.intro img,html[data-theme=light] .intro img{
  width:140px;
  height:196px;
  border-radius:80px 80px 14px 14px;
  border:1px solid var(--line);
  outline:1px solid var(--quiet-line);
  outline-offset:7px;
  box-shadow:0 16px 40px #00000020
}
.stats{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:22px;
  font-size:.75rem
}
.stats:before{
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--gold)
}
.reader-toolbar,html[data-theme=light] .reader-toolbar{
  padding:18px 0 14px;
  background:var(--glass);
  backdrop-filter:blur(18px);
  row-gap:14px
}
.collection-switch{
  gap:0;
  padding:0;
  border-bottom:1px solid var(--quiet-line)
}
.collection-switch button,html[data-theme=light] .collection-switch button{
  position:relative;
  flex:0 1 auto;
  min-width:150px;
  padding:14px 24px;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:.9rem
}
.collection-switch button:after{
  content:'';
  position:absolute;
  left:20px;
  right:20px;
  bottom:-1px;
  height:3px;
  border-radius:3px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:center
}
.collection-switch button[aria-pressed=true],html[data-theme=light] .collection-switch button[aria-pressed=true]{
  border:0;
  background:linear-gradient(0deg,var(--soft),transparent);
  color:var(--gold)
}
.collection-switch button[aria-pressed=true]:after{
  transform:scaleX(1)
}
.language-switch,html[data-theme=light] .language-switch{
  border-radius:12px;
  padding:4px;
  background:var(--surface)
}
.language-switch button{
  border-radius:8px;
  padding:9px 20px
}
.language-switch button[aria-pressed=true],html[data-theme=light] .language-switch button[aria-pressed=true]{
  box-shadow:0 2px 8px #0000000d
}
.size{
  border-radius:12px
}
.icon-button,html[data-theme=light] .icon-button{
  border-radius:14px
}
.reading-progress{
  height:2px;
  background:var(--quiet-line)
}
.reading-progress span{
  background:linear-gradient(90deg,var(--line),var(--gold))
}
article{
  padding:34px 0 48px
}
.chapter-number{
  color:var(--muted);
  font-size:.74rem
}
article :is(h1,h2){
  font-size:clamp(1.55rem,2.45vw,2.1rem);
  line-height:1.65;
  margin:14px 0 30px;
  text-wrap:balance
}
article :is(h1,h2):after{
  content:'';
  display:block;
  width:34px;
  height:2px;
  background:var(--gold);
  opacity:.6;
  margin-top:20px
}
.text-body{
  max-width:750px;
  margin-top:30px
}
.text-body .verse{
  border-bottom:1px solid var(--quiet-line);
  padding-bottom:26px;
  margin-bottom:26px
}
.chapter-nav button,html[data-theme=light] .chapter-nav button{
  border-radius:14px;
  padding:20px;
  background:linear-gradient(135deg,var(--surface),var(--soft));
  box-shadow:0 4px 18px #00000005
}
.chapter-nav button:disabled{
  opacity:.4
}
.offline-tools button{
  border-radius:10px
}
footer{
  padding-top:32px
}
#scroll-top{
  box-shadow:var(--lift);
  backdrop-filter:blur(12px)
}
@media(hover:hover){
  nav a:hover,html[data-theme=light] nav a:hover{
    transform:translateX(3px);
    background:var(--soft)
  }
  .chapter-nav button:not(:disabled):hover{
    transform:translateY(-2px);
    box-shadow:var(--lift)
  }
  .icon-button:hover{
    transform:translateY(-2px)
  }
}
@media(prefers-reduced-motion:no-preference){
  button,nav a,.brand-home img{
    transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s
  }
  .collection-switch button:after{
    transition:transform .26s ease
  }
  .intro>div{
    animation:welcome-in .55s ease both
  }
  .intro img{
    animation:welcome-in .7s ease both
  }
  .reader-enter .text-body,.reader-enter .chapter-number{
    animation:reading-in .32s ease both
  }
  .reader-enter .text-body{
    animation-delay:.045s
  }
  #backdrop{
    animation:veil-in .2s ease
  }
  .reading-progress span{
    transition:width .15s ease
  }
  @keyframes welcome-in{
    from{
      opacity:0;
      transform:translateY(12px)
    }
    to{
      opacity:1;
      transform:translateY(0)
    }
  }
  @keyframes reading-in{
    from{
      opacity:0;
      transform:translateY(7px)
    }
    to{
      opacity:1;
      transform:translateY(0)
    }
  }
  @keyframes veil-in{
    from{
      opacity:0
    }
    to{
      opacity:1
    }
  }
}
@media(min-width:701px) and (max-width:1000px){
  .intro,html[data-theme=light] .intro{
    min-height:270px;
    gap:24px
  }
  .intro img,html[data-theme=light] .intro img{
    width:106px;
    height:150px
  }
  .intro :is(h1,h2){
    font-size:1.85rem
  }
  .collection-switch button{
    min-width:135px
  }
}
@media(max-width:700px){
  .intro,html[data-theme=light] .intro{
    min-height:0;
    padding:32px 0;
    gap:22px
  }
  .intro :is(h1,h2){
    font-size:1.5rem;
    margin:14px 0 10px
  }
  .intro img,html[data-theme=light] .intro img{
    width:72px;
    height:108px;
    outline-offset:4px
  }
  .eyebrow{
    font-size:.66rem;
    gap:7px
  }
  .eyebrow:before{
    width:12px
  }
  .stats{
    font-size:.69rem;
    margin-top:16px
  }
  .reader-toolbar,html[data-theme=light] .reader-toolbar{
    padding:10px 0;
    gap:6px
  }
  .collection-switch button,html[data-theme=light] .collection-switch button{
    flex:1;
    min-width:0;
    padding:10px 12px;
    font-size:.85rem
  }
  .collection-switch button:after{
    left:14px;
    right:14px;
    height:2px
  }
  .language-switch button{
    padding:8px 10px
  }
  .reading-actions{
    padding-top:14px
  }
  article{
    padding:24px 0 34px
  }
  article :is(h1,h2){
    font-size:1.45rem;
    margin-bottom:24px
  }
  article :is(h1,h2):after{
    margin-top:16px
  }
  .text-body{
    margin-top:24px
  }
  .text-body .verse{
    padding-bottom:22px;
    margin-bottom:22px
  }
  .chapter-nav button,html[data-theme=light] .chapter-nav button{
    padding:14px
  }
  .intro:after{
    height:3px;
    bottom:-2px
  }
}
@media(max-width:350px){
  .intro :is(h1,h2){
    font-size:1.3rem
  }
  .intro img,html[data-theme=light] .intro img{
    width:58px;
    height:88px
  }
  .intro{
    gap:16px
  }
}
@media print{
  header,.reader-toolbar,aside,.reading-actions,.reading-progress,.chapter-nav,#scroll-top{
    display:none!important
  }
  .layout{
    display:block
  }
  main{
    padding:0
  }
  .intro{
    min-height:0!important
  }
  .intro img{
    box-shadow:none!important
  }
  *{
    animation:none!important;
    backdrop-filter:none!important
  }
}
/* Progress belongs to the toolbar, never to a separate sticky layer over text. */
.reader-toolbar,html[data-theme=light] .reader-toolbar{
  border-bottom:1px solid var(--quiet-line)
}
.reader-toolbar .reading-progress,.reading-scrolled .reader-toolbar .reading-progress{
  position:absolute;
  top:auto;
  bottom:0;
  left:0;
  right:0;
  height:3px;
  width:100%;
  margin:0;
  z-index:1;
  border-radius:3px;
  pointer-events:none;
  background:var(--quiet-line)
}
.reader-toolbar .reading-progress span{
  height:100%;
  border-radius:3px;
  background:var(--gold)
}
#reader .reading-title{
  transform-origin:left center
}
@media(prefers-reduced-motion:no-preference){
  #reader .reading-title.heading-pulse{
    animation:heading-heartbeat .58s ease-in-out 1
  }
  @keyframes heading-heartbeat{
    0%,100%{
      transform:scale(1)
    }
    22%{
      transform:scale(1.025)
    }
    42%{
      transform:scale(1)
    }
    65%{
      transform:scale(1.015)
    }
  }
}
/* Collection navigation belongs to the shared site header. */
:root{
  --site-header-height:76px
}
header,html[data-theme=light] header,.reading-scrolled header{
  height:var(--site-header-height);
  min-height:var(--site-header-height);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(44px,1fr);
  gap:24px;
  padding:10px 32px
}
header .collection-switch{
  grid-column:2;
  grid-row:1;
  width:auto;
  align-self:stretch;
  border:0;
  gap:8px;
  padding:0;
  display:flex;
  align-items:stretch
}
header .collection-switch button,html[data-theme=light] header .collection-switch button{
  min-width:124px;
  padding:10px 18px;
  border-radius:10px;
  font-size:.88rem
}
header .collection-switch button:after{
  bottom:0;
  left:18px;
  right:18px;
  height:2px
}
header #theme-toggle{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  margin:0
}
header .brand-home{
  grid-column:1;
  grid-row:1
}
.reading-scrolled .brand-home img{
  width:42px;
  height:42px
}
.reading-scrolled #subtitle{
  display:block
}
.reader-toolbar,.reading-scrolled .reader-toolbar{
  top:var(--site-header-height)
}
aside,.reading-scrolled aside{
  top:var(--site-header-height);
  height:calc(100dvh - var(--site-header-height))
}
@media(min-width:701px){
  .reader-toolbar .language-switch{
    grid-row:1;
    grid-column:1
  }
  .reader-toolbar .size{
    grid-row:1;
    grid-column:2
  }
}
html[data-theme=light]{
  --bg:#fffaf2;
  --cream:#271914;
  --muted:#584338;
  --gold:#754312;
  --line:#cbb493;
  --surface:#f6ecdf;
  --soft:#efdfc7;
  --quiet-line:#dfccb2;
  --glass:#fffaf2fa;
  --halo:#bb84301a
}
html[data-theme=light] body{
  background:radial-gradient(ellipse at 85% 8%,#c79b5812,transparent 45%),var(--bg)
}
html[data-theme=light] header{
  background:#fffaf2f5;
  border-bottom:1px solid #d7bea0;
  box-shadow:0 3px 22px #6b43100a
}
html[data-theme=light] aside{
  background:#f7efe3;
  border-right-color:#dfccb2
}
html[data-theme=light] .reader-toolbar{
  background:#fffaf2fa;
  border-bottom-color:#d7bea0
}
html[data-theme=light] .text-body{
  color:#271914
}
html[data-theme=light] nav a{
  color:#453025
}
html[data-theme=light] nav a small{
  color:#584338;
  opacity:1
}
html[data-theme=light] nav a.active{
  background:linear-gradient(110deg,#efdfc7,#f7eedf);
  color:#60350f;
  box-shadow:inset 0 0 0 1px #d7bea0
}
html[data-theme=light] #search{
  background:#fffaf2;
  color:#271914;
  border-color:#d7bea0
}
html[data-theme=light] #search::placeholder{
  color:#685044;
  opacity:1
}
html[data-theme=light] .chapter-number,html[data-theme=light] .stats,html[data-theme=light] .reading-actions button,html[data-theme=light] #progress-label{
  color:#584338
}
html[data-theme=light] .text-body .verse{
  border-bottom-color:#dfccb2
}
@media(max-width:1000px) and (min-width:701px){
  header,html[data-theme=light] header{
    gap:14px;
    padding-left:24px;
    padding-right:24px;
    grid-template-columns:minmax(0,1fr) auto 44px
  }
  header .collection-switch button,html[data-theme=light] header .collection-switch button{
    min-width:106px;
    padding:10px 12px
  }
  .brand-home #brand{
    font-size:.94rem
  }
}
@media(max-width:700px){
  :root{
    --site-header-height:122px
  }
  header,html[data-theme=light] header,.reading-scrolled header{
    grid-template-columns:minmax(0,1fr) 44px;
    grid-template-rows:44px 48px;
    gap:8px 12px;
    padding:10px 16px
  }
  header .brand-home{
    grid-column:1;
    grid-row:1
  }
  header #theme-toggle{
    grid-column:2;
    grid-row:1
  }
  header .collection-switch{
    grid-column:1 / -1;
    grid-row:2;
    gap:8px;
    width:100%;
    border-top:1px solid var(--quiet-line);
    padding-top:3px
  }
  header .collection-switch button,html[data-theme=light] header .collection-switch button{
    min-width:0;
    flex:1;
    font-size:.83rem;
    padding:6px 10px;
    border-radius:7px
  }
  .reading-scrolled .brand-home img{
    width:38px;
    height:38px
  }
  .brand-home #subtitle,.reading-scrolled #subtitle{
    display:none
  }
  .reader-toolbar #menu,html[data-theme=light] .reader-toolbar #menu,.reader-toolbar .size{
    grid-row:1
  }
  .reader-toolbar .language-switch{
    grid-row:2
  }
  aside,.reading-scrolled aside{
    top:0;
    height:100dvh
  }
}
@media print{
  header,html[data-theme=light] header{
    display:none!important
  }
}
/* The visible mobile Contents button always carries a gentle repeating heartbeat. */
@media(max-width:700px){
  #menu,html[data-theme=light] #menu{
    border:1px solid var(--gold);
    border-radius:10px;
    padding:7px 12px;
    color:var(--gold);
    background:var(--soft);
    transform-origin:center;
  }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
  #menu{
    animation:contents-heartbeat 5s ease-in-out infinite;
  }
  @keyframes contents-heartbeat{
    0%,100%{border-color:var(--line);box-shadow:0 0 0 0 transparent}
    50%{border-color:color-mix(in srgb,var(--line) 65%,var(--gold) 35%);box-shadow:0 0 0 1px var(--halo)}
  }
}
.site-directory{
  font-family:var(--ui),Gujarati,sans-serif;
  text-align:left;
  margin:20px 0 32px
}
.site-directory summary{
  cursor:pointer;
  min-height:44px;
  padding:12px 0;
  color:var(--muted)
}
.site-directory>div{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:6px
}
.site-directory a{
  display:block;
  padding:10px;
  color:var(--cream);
  font-family:Gujarati,var(--ui);
  font-size:.85rem
}
.site-directory small{
  display:block;
  font: .75rem var(--ui);
  margin-top:6px;
  color:var(--muted)
}
