:root{--paper:#fff;--ink:#090909;--muted:#6e6e6e;--rule:#e0e0e0;--toolbar:#fff;--toolbar-rule:#f0f0f0;--toolbar-ink:#111;--toolbar-muted:#666;--top:56px;--gutter:34px;--font:21px;--leading:1.54}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--paper);color:var(--ink);font-family:"Source Serif 4",Georgia,"Times New Roman",serif}button,input{font:inherit;color:inherit}.app{position:relative;width:100%;height:100dvh;background:var(--paper);overflow:hidden}.topbar{position:absolute;z-index:20;left:0;right:0;top:0;height:var(--top);display:flex;align-items:center;background:var(--toolbar);border-bottom:1px solid var(--toolbar-rule);transform:translateY(0);transition:transform .14s ease}.app.toolbar-hidden .topbar{transform:translateY(calc(-100% - 1px))}
.iconbtn{position:relative;z-index:2;flex:0 0 48px;width:48px;height:100%;border:0;background:transparent;color:var(--toolbar-ink);font:600 21px/1 system-ui,-apple-system,"Segoe UI",sans-serif;opacity:.86}.iconbtn:hover{opacity:1}.titlebox{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(700px,calc(100% - 210px));max-width:calc(100% - 210px);text-align:center;color:var(--toolbar-ink);pointer-events:none}.titlebox b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:700 13px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}.menu{margin-right:auto}
.reader{position:absolute;inset:0;background:var(--paper);overflow:hidden;touch-action:pan-y}.page-viewport{position:absolute;inset:0;overflow:hidden;padding-top:calc(var(--top) + 56px);padding-bottom:30px;padding-left:max(var(--gutter),calc((100vw - 820px)/2));padding-right:max(var(--gutter),calc((100vw - 820px)/2));transition:padding-top .14s ease,padding-bottom .14s ease}.app.toolbar-hidden .page-viewport{padding-top:56px;padding-bottom:calc(30px + var(--top))}
.paragraph-page{width:100%;height:100%;overflow:hidden;font-size:var(--font);line-height:var(--leading);font-family:"Source Serif 4",Georgia,"Times New Roman",serif;font-weight:400;text-align:justify;text-align-last:left;text-justify:auto;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:12 5 5;overflow-wrap:normal;word-break:normal;orphans:2;widows:2;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.paragraph-page p{margin:0}.paragraph-page i,.paragraph-page em{font-family:"Gentium Plus","Source Serif 4",serif;font-style:italic;font-weight:400}.paragraph-page br{line-height:1.2}
.paragraph-progress{position:absolute;z-index:9;left:50%;bottom:7px;transform:translateX(-50%);width:min(82vw,560px);text-align:center;background:transparent;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:5px}.footer-title{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#626262;font:400 10.5px/1.12 "Source Serif 4",Georgia,serif}.footer-count{display:block;color:#858585;font:600 10px/1.08 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.02em}
.loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font:600 13px/1.3 system-ui;pointer-events:none}.loading[hidden]{display:none}.desktop-edge{position:absolute;z-index:8;top:50%;transform:translateY(-50%);width:34px;height:62px;border:0;background:transparent;color:var(--ink);font:400 30px/1 Arial,sans-serif;opacity:.55}.desktop-edge.left{left:4px}.desktop-edge.right{right:4px}.desktop-edge:hover{opacity:1}.desktop-edge:disabled{display:none}
.measure-stage{position:fixed;z-index:-999;left:-100000px;top:0;visibility:hidden;pointer-events:none}.measure-source,.measure-chunk{font:400 var(--font)/var(--leading) "Source Serif 4",Georgia,"Times New Roman",serif;text-align:justify;text-align-last:left;text-justify:auto;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:12 5 5;overflow-wrap:normal;word-break:normal}.measure-source p,.measure-chunk p{margin:0}.measure-source i,.measure-source em,.measure-chunk i,.measure-chunk em{font-family:"Gentium Plus","Source Serif 4",serif;font-style:italic;font-weight:400}
.scrim{position:fixed;z-index:40;inset:0;background:rgba(0,0,0,.28);opacity:0;pointer-events:none;transition:opacity .14s}.scrim.show{opacity:1;pointer-events:auto}.drawer,.panel{position:fixed;z-index:50;top:0;bottom:0;width:min(420px,94vw);background:var(--paper);color:var(--ink);transition:transform .16s ease;box-shadow:none}.drawer{left:0;border-right:1px solid var(--rule);transform:translateX(-101%)}.drawer.open{transform:none}.panel{right:0;border-left:1px solid var(--rule);transform:translateX(101%)}.panel.open{transform:none}
.panel-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 18px;border-bottom:1px solid var(--rule);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.panel-head b,.panel-head span{display:block}.panel-head b{font-size:14px}.panel-head span{margin-top:2px;color:var(--muted);font-size:10px}.close{width:46px;height:100%;border:0;background:transparent;font:400 28px/1 system-ui}.drawer-scroll,.panel-scroll{height:calc(100% - 58px);overflow:auto;padding:14px 16px 30px}.back-library{display:block;padding:10px 0 15px;border-bottom:1px solid var(--rule);color:inherit;text-decoration:none;font:650 12px/1.2 system-ui}.continue-card{display:block;width:100%;margin:14px 0 18px;padding:14px;text-align:left;border:1px solid var(--rule);background:transparent;border-radius:12px}.continue-card span,.continue-card b,.continue-card small{display:block}.continue-card span{color:var(--muted);font:600 10px/1.2 system-ui;text-transform:uppercase;letter-spacing:.08em}.continue-card b{margin-top:7px;font:650 15px/1.25 system-ui}.continue-card small{margin-top:5px;color:var(--muted);font:500 11px/1.2 system-ui}.volume-title{margin:24px 0 7px;color:var(--muted);font:700 10px/1.2 system-ui;text-transform:uppercase;letter-spacing:.12em}.chapter-button{display:block;width:100%;padding:12px 2px;border:0;border-top:1px solid var(--rule);background:transparent;text-align:left}.chapter-button b{display:block;font:650 13px/1.3 system-ui}.chapter-button span{display:block;margin-top:4px;color:var(--muted);font:500 10px/1.2 system-ui}.chapter-button.current b{font-weight:800}
.search-input{width:100%;padding:12px;border:1px solid var(--rule);border-radius:8px;background:var(--paper);color:var(--ink);font:500 15px/1.2 system-ui}.search-results button{display:block;width:100%;padding:12px 2px;border:0;border-bottom:1px solid var(--rule);background:transparent;text-align:left}.search-results b{display:block;font:650 12px/1.3 system-ui}.search-results span{display:block;margin-top:4px;color:var(--muted);font:500 10px/1.35 system-ui}
@media(max-width:620px){:root{--top:52px;--gutter:22px;--font:21px;--leading:1.54}.iconbtn{flex-basis:48px;width:48px;font-size:20px}.titlebox{width:clamp(150px,calc(100% - 164px),300px);max-width:calc(100% - 164px)}.titlebox b{font-size:12px}.titlebox span{font-size:9px}.page-viewport{padding-top:calc(var(--top) + 64px);padding-bottom:30px}.app.toolbar-hidden .page-viewport{padding-top:64px;padding-bottom:30px}.paragraph-page{font-size:var(--font);line-height:var(--leading)}.desktop-edge{display:none}.drawer,.panel{width:min(94vw,390px)}.paragraph-progress{bottom:8px}.footer-title{font-size:10px}.footer-count{font-size:9px}}
@media(prefers-reduced-motion:reduce){.topbar,.drawer,.panel,.scrim,.page-viewport{transition:none}}

/* v0.2.14-M1: final prose-reader toolbar/menu treatment */
.menu-dots{font-size:31px;font-weight:500;line-height:1;letter-spacing:0;padding-bottom:4px}
.toolbar-spacer{flex:0 0 48px;width:48px;height:100%}
.menu-action{width:100%;min-height:52px;border:0;border-bottom:1px solid #eeeeee;background:#fff;color:#111;display:flex;align-items:center;gap:11px;padding:0 2px;text-align:left;font:600 15px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;touch-action:manipulation}
.menu-action-icon{display:inline-grid;place-items:center;width:24px;font-size:22px;font-weight:400;line-height:1}
.menu-section-label{padding:17px 0 5px;color:#888;font:700 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.12em}
.menu-fav-toast{position:fixed;z-index:80;left:50%;bottom:44px;transform:translate(-50%,8px);opacity:0;pointer-events:none;background:#111;color:#fff;border-radius:999px;padding:8px 12px;font:600 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;transition:opacity .14s ease,transform .14s ease}.menu-fav-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:620px){.toolbar-spacer{flex-basis:48px;width:48px}.menu-dots{font-size:30px}}

/* production whole-book front matter */
.paragraph-page.special-page{overflow-y:auto;text-align:left}.paragraph-page.special-page .book-title-page{text-align:center;padding:8vh 0 0}.paragraph-page.special-page .book-title-page h1{font:400 1.55em/1.18 "Source Serif 4",Georgia,serif;margin:0 0 1rem}.paragraph-page.special-page .book-title-page p{margin:.4rem 0;text-align:center}.front-title{font:650 11px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--muted);margin:0 0 20px;text-transform:uppercase;letter-spacing:.08em}.front-group .chapter-button b{font-weight:650}.menu-dots{min-width:48px}

/* v3.0.4: footer title contrast + breathing room only */

/* v3.0.5: printed-book running head shown only while toolbar is hidden */
.running-head{position:absolute;z-index:10;left:50%;top:18px;transform:translateX(-50%);width:min(78vw,620px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;color:#777;font:400 10px/1.2 "Source Serif 4",Georgia,serif;letter-spacing:.08em;pointer-events:none;opacity:0;transition:opacity .14s ease}.app.toolbar-hidden .running-head{opacity:1}@media(max-width:620px){.running-head{top:19px;width:calc(100% - 64px);font-size:9.5px;letter-spacing:.075em}}


/* v3.0.6: quiet collapsible book drawer only; reading page frozen */
.drawer{width:min(88vw,390px);box-shadow:none}
.drawer-scroll{padding:10px 16px 28px}
.current-location{display:block;width:100%;margin:10px 0 8px;padding:12px 2px 13px;border:0;border-bottom:1px solid #e9e9e9;background:#fff;text-align:left;touch-action:manipulation}
.current-location-label{display:block;margin-bottom:5px;color:#888;font:700 9px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.13em}
.current-location b{display:block;color:#111;font:400 16px/1.22 "Source Serif 4",Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.current-location small{display:block;margin-top:5px;color:#777;font:500 10px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.continue-card{display:none!important}
.toc-group{border-bottom:1px solid #e9e9e9}
.toc-group-toggle{width:100%;min-height:48px;border:0;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;padding:0 2px;text-align:left;touch-action:manipulation}
.toc-group-toggle span:first-child{color:#555;font:700 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.1em;text-transform:uppercase}
.toc-chevron{color:#777;text-align:center;font:400 18px/1 system-ui;transition:transform .14s ease}
.toc-group.open .toc-chevron{transform:rotate(180deg)}
.toc-group-body{display:none;padding:0 0 8px}
.toc-group.open .toc-group-body{display:block}
.chapter-button{position:relative;display:block;width:100%;padding:11px 2px 11px 12px;border:0;border-top:1px solid #f1f1f1;background:#fff;text-align:left}
.chapter-button:first-child{border-top:0}
.chapter-button::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:transparent}
.chapter-button.current::before{background:#111}
.chapter-button .chapter-kicker{display:block;margin-bottom:3px;color:#858585;font:700 9px/1.15 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.07em;text-transform:uppercase}
.chapter-button b{display:block;color:#111;font:400 15px/1.22 "Source Serif 4",Georgia,serif}
.chapter-button small{display:flex;justify-content:space-between;gap:8px;margin-top:5px;color:#858585;font:500 9.5px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}
.chapter-button.current b{font-weight:400}
.chapter-row-progress{color:#555;white-space:nowrap}
.front-item b{font-size:14px}
@media(max-width:620px){.drawer{width:min(88vw,370px)}.current-location b{font-size:15px}.chapter-button b{font-size:14.5px}}

/* v3.0.7: hidden toolbar space is usable reading height; locked 64px top breathing room retained */
/* v4 shared prose reader: preserve mixed source blocks while paging by prose paragraph */
.reading-fragment{margin:0}.reading-fragment>p,.reading-fragment>div{margin-top:0}.reading-fragment .prose{margin:0}.reading-fragment .sanskrit,.reading-fragment .centered{text-align:center!important;margin:0 0 .9em;font-family:"Gentium Plus","Source Serif 4",serif;font-style:italic;font-weight:400;line-height:1.35}.reading-fragment .source-heading{text-align:center!important;margin:0 0 .9em;font-weight:400}.reading-fragment .source-kicker{text-align:center!important;margin:0 0 .8em}.paragraph-page.special-page{padding-bottom:24px}.toc-subgroup{border-top:1px solid #f1f1f1}.toc-sub-toggle{width:100%;min-height:44px;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 8px;color:#666;text-align:left;font:600 11px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}.toc-sub-body{display:none;padding-left:8px}.toc-subgroup.open>.toc-sub-body{display:block}.toc-subgroup.open>.toc-sub-toggle span:last-child{transform:rotate(180deg)}

/* v4.1.0 navigation hierarchy */
.toc-parent{border-top:1px solid #f1f1f1}.toc-parent-toggle{width:100%;min-height:50px;border:0;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;padding:9px 2px 9px 12px;text-align:left}.toc-parent-toggle>span:first-child b{display:block;font:400 15px/1.22 "Source Serif 4",Georgia,serif;color:#111}.toc-parent-toggle>span:first-child small{display:block;margin-top:4px;color:#858585;font:500 9.5px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}.toc-parent.open>.toc-parent-toggle .toc-chevron{transform:rotate(180deg)}.toc-parent-body{display:none;padding:0 0 4px 10px}.toc-parent.open>.toc-parent-body{display:block}.toc-parent-body>.toc-read-main{border-top:1px solid #f1f1f1}.toc-parent-body>.toc-read-main b{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#555}.toc-parent-body>.chapter-button{padding-left:12px}

/* v4.1.1 hybrid scripture/prose books: preserve source text, present verse opening + commentary like the premium scripture family. */
.paragraph-page.discourse-opening .reading-fragment{width:100%;max-width:820px;margin:0 auto}
.scripture-opening{width:100%}
.scripture-opening .opening-chapter{text-align:center;margin:0 0 1.2em}
.scripture-opening .opening-chapter-number{font:650 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.09em;color:#888;margin:0 0 .45em}
.scripture-opening .opening-chapter-title{font:400 17px/1.28 "Source Serif 4",Georgia,serif;color:#222}
.scripture-opening .sanskrit{text-align:center!important;text-align-last:center!important;margin:0 auto 1.2em!important;font-family:"Gentium Plus","Source Serif 4",serif;font-style:italic;font-weight:400;line-height:1.36}
.scripture-opening .section-label,.purport-kicker{text-align:center;font:650 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.10em;color:#777;margin:0 0 .85em}
.scripture-opening .translation{margin:0!important;font-family:"Source Serif 4",Georgia,"Times New Roman",serif;font-size:1em;font-weight:400!important;line-height:var(--leading);text-align:justify!important;text-align-last:left!important}
.scripture-opening .translation b,.scripture-opening .translation strong{font-weight:400!important}
.scripture-opening .source-reference{text-align:center!important;text-align-last:center!important;margin:.95em 0 0!important;font:400 .72em/1.35 "Source Serif 4",Georgia,serif;color:#777}
.paragraph-page.discourse-purport .purport-kicker{height:18px;margin:0 0 12px}
.paragraph-page.discourse-purport .reading-fragment{height:calc(100% - 30px)}
.paragraph-page.discourse-purport .reading-fragment .prose{font-weight:400;text-align:justify;text-align-last:left}
.paragraph-page.discourse-purport .reading-fragment .sanskrit{text-align:center!important;text-align-last:center!important;margin:0 0 .9em;font-family:"Gentium Plus","Source Serif 4",serif;font-style:italic;font-weight:400;line-height:1.35}
/* text-align-last is inherited from the justified page; reset it for centred discourse furniture. */
.scripture-opening .opening-chapter,.scripture-opening .opening-chapter-number,.scripture-opening .opening-chapter-title,.scripture-opening .section-label,.paragraph-page.discourse-purport .purport-kicker{text-align-last:center!important}

/* v4.2.0: hybrid scripture opening follows the frozen Bhagavatam page model.
   Verse + supplied translation stay together on one vertically scrollable opening page;
   commentary begins on the next horizontal swipe. */
.paragraph-page.discourse-opening{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
}
.paragraph-page.discourse-opening .reading-fragment{width:100%;max-width:820px;margin:0 auto}
.scripture-opening{width:100%;padding-bottom:1.1em}
.scripture-opening .opening-chapter{margin:0 0 1.25rem;text-align:center!important;text-align-last:center!important}
.scripture-opening .opening-chapter-number{margin:0 0 .45rem;color:#777;font:600 .63em/1 "Source Serif 4",Georgia,serif;letter-spacing:.07em;text-transform:uppercase;text-align:center!important;text-align-last:center!important}
.scripture-opening .opening-chapter-title{color:#222;font:400 .88em/1.25 "Source Serif 4",Georgia,serif;text-align:center!important;text-align-last:center!important}
.scripture-opening .sanskrit{
  max-width:31ch;
  margin:.06em auto 1.3rem!important;
  color:#20294f;
  font-family:"Cormorant Garamond","Gentium Plus",Georgia,serif;
  font-style:italic;
  font-weight:500;
  font-size:1.18em;
  line-height:1.20;
  text-align:center!important;
  text-align-last:center!important;
  hyphens:none!important;
  -webkit-hyphens:none!important;
  word-break:normal!important;
}
.scripture-opening .section-label,.paragraph-page.discourse-purport .purport-kicker{
  display:block;
  width:100%;
  margin:1.25rem 0 .72rem;
  color:#444;
  font-family:"Source Serif 4",Georgia,serif;
  font-size:.63em;
  font-weight:600;
  line-height:1;
  letter-spacing:.07em;
  text-transform:uppercase;
  text-align:center!important;
  text-align-last:center!important;
  white-space:nowrap;
}
.scripture-opening .translation{
  margin:0!important;
  font-family:"Source Serif 4",Georgia,"Times New Roman",serif;
  font-size:1em;
  font-weight:400!important;
  line-height:var(--leading);
  text-align:justify!important;
  text-align-last:left!important;
  text-justify:auto;
  hyphens:auto;
  -webkit-hyphens:auto;
  hyphenate-limit-chars:10 4 4;
  word-break:normal;
  overflow-wrap:normal;
}
.scripture-opening .translation b,.scripture-opening .translation strong{font-weight:400!important}
.scripture-opening .source-reference{margin:1rem 0 0!important;color:#777;font:400 .72em/1.35 "Source Serif 4",Georgia,serif;text-align:center!important;text-align-last:center!important}
.paragraph-page.discourse-purport .purport-kicker{height:auto;margin:0 0 1.05rem}
.paragraph-page.discourse-purport .reading-fragment{height:calc(100% - 30px)}



/* v4.2.3: compact reader drawer controls; reading surface unchanged */
#searchMenuItem{display:none!important}
.drawer>.panel-head{padding-right:96px!important}
.drawer>.panel-head>#fullscreenMenuItem{position:absolute;z-index:3;right:50px;top:0;width:46px!important;height:58px!important;min-height:58px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;text-align:center!important;touch-action:manipulation}
.drawer>.panel-head>#fullscreenMenuItem .menu-action-icon,.drawer>.panel-head>#fullscreenMenuItem .menu-search-icon{display:inline-grid!important;place-items:center!important;width:auto!important;font-size:22px!important;font-weight:400!important;line-height:1!important}
#fullscreenMenuLabel{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.drawer>.panel-head>.close{position:absolute;right:4px;top:0;width:46px;height:58px;padding:0;border:0;background:transparent}

/* v4.2.4: one compact favourites action strip — no extra menu rows */
.favourites-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;background:#fff;border-bottom:1px solid #eeeeee}
.favourites-actions>#favouriteMenuItem,.favourites-actions>.my-favourites-link{width:100%;min-height:52px;margin:0!important;padding:0 8px!important;border:0!important;border-bottom:0!important;background:#fff!important;color:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;text-decoration:none!important;font:600 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important;touch-action:manipulation}
.favourites-actions>#favouriteMenuItem{border-right:1px solid #eeeeee!important}
.favourites-actions>#favouriteMenuItem:active,.favourites-actions>.my-favourites-link:active{background:#f7f7f7!important}
.favourites-actions>#favouriteMenuItem:focus-visible,.favourites-actions>.my-favourites-link:focus-visible{outline:2px solid #111;outline-offset:-2px}
.favourites-actions #favouriteMenuStar,.favourites-actions .menu-favourite-star,.my-favourites-star{display:inline-grid!important;place-items:center!important;width:22px!important;font-size:21px!important;font-weight:400!important;line-height:1!important}
.favourites-actions #favouriteMenuLabel{font-size:0!important;line-height:0!important}
.favourites-actions #favouriteMenuLabel::after{content:"Add";font:600 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}
.favourites-actions>#favouriteMenuItem[hidden]+.my-favourites-link{grid-column:1/-1}



/* v4.2.6 premium book title pages: cover furniture only; reading typography/paging untouched. */
.app.title-page-active .paragraph-progress,.app.title-page-active .running-head{display:none!important}
.app.title-page-active .page-viewport{padding-bottom:18px}
.paragraph-page.special-page.title-page{
  overflow:hidden!important;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  text-align:center!important;
  text-align-last:center!important;
  -webkit-hyphens:none!important;
  hyphens:none!important;
}
.paragraph-page.special-page.title-page .book-title-page{
  width:100%;
  max-width:620px;
  margin:0 auto;
  padding:clamp(64px,14vh,132px) 0 0!important;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .book-edition{
  margin:0 0 16px;
  color:#777;
  font:650 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-align:center;
}
.paragraph-page.special-page.title-page .book-title-page h1{
  max-width:16ch;
  margin:0 auto!important;
  color:#0b0b0b;
  font:400 clamp(29px,8.4vw,42px)/1.06 "Source Serif 4",Georgia,serif!important;
  letter-spacing:-.025em;
  text-wrap:balance;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .book-title-page .book-author{
  max-width:27ch;
  margin:30px auto 0!important;
  color:#353535;
  font:400 16px/1.42 "Source Serif 4",Georgia,serif!important;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .book-title-page::after{
  content:"";
  display:block;
  width:38px;
  height:1px;
  margin:30px auto 0;
  background:#dedede;
}
@media(max-width:620px){
  .paragraph-page.special-page.title-page .book-title-page{padding-top:clamp(58px,13vh,104px)!important}
  .paragraph-page.special-page.title-page .book-title-page h1{font-size:clamp(29px,8.4vw,36px)}
  .paragraph-page.special-page.title-page .book-title-page .book-author{font-size:15.5px}
}

/* v4.2.8 — mobile library menus are full-screen surfaces, not partial drawers. */
.drawer{
  width:100vw!important;
  max-width:none!important;
  border-right:0!important;
  box-shadow:none!important;
  overscroll-behavior:contain;
}

/* Jaiva-Dharma source formatting + adaptive PDF reading flow v1.3. */
.reading-fragment .translation{margin:0;text-align:justify!important;text-align-last:left!important;font-style:normal!important}
.reading-fragment .sanskrit{max-width:34ch;margin:0 auto 1.05em!important;text-align:center!important;text-align-last:center!important;font-style:italic;hyphens:none!important;-webkit-hyphens:none!important}
.reading-fragment .source-heading{margin:1.15em 0 .8em!important;text-align:center!important;text-align-last:center!important;font-size:.78em;line-height:1.35;letter-spacing:.01em}
.reading-fragment .source-kicker{margin:.65em 0 .45em!important;color:#666;text-align:left!important;text-align-last:left!important;font-size:.72em}
.reading-fragment .reference-page{font-size:.92em!important;line-height:1.48!important;text-align:left!important;text-align-last:left!important}
.reading-fragment .reference-page-no{display:block;margin:0 0 .9em;color:#777;font:600 .68em/1.2 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.08em;text-transform:uppercase}
.reading-fragment .reference-block{display:block;margin:0 0 .8em}
.reading-fragment .prose-flow{margin:0!important;text-align:inherit!important}
.reading-fragment .prose-flow .flow-paragraph{margin:0 0 .92em!important;text-align:justify!important;text-align-last:left!important}
.reading-fragment .prose-flow .flow-paragraph:last-child{margin-bottom:0!important}
.reading-fragment .dialogue-flow .flow-paragraph{margin-bottom:.72em!important}
.reading-fragment .prose-list{margin:0!important;text-align:left!important;text-align-last:left!important;font-size:.94em;line-height:1.48}
.reading-fragment .prose-list .list-item{margin:0 0 .48em;padding-left:1.65em;text-indent:-1.65em}
.reading-fragment .bibliography-heading{margin-top:.2em!important;margin-bottom:.8em!important;font-size:.72em!important;letter-spacing:.08em!important;text-transform:uppercase}
.reading-fragment .verse-lead-flow>.flow-paragraph{margin-bottom:1.15em!important}
/* Jaiva front-matter/cache hardening retained from v1.1. */
.paragraph-page.special-page.title-page .book-title-page,.paragraph-page.special-page.title-page .book-title-page *{text-align:center!important;text-align-last:center!important;hyphens:none!important;-webkit-hyphens:none!important}
.reading-fragment .reference-page-no{display:none!important}
.reading-fragment .front-opening{margin:0 0 2.2rem;text-align:center!important;text-align-last:center!important}

/* v4.2.9 gtest shared books: keep the book title bar stable like the Jaiva-Dharma pilot. */
.app.toolbar-hidden .topbar{
  transform:none!important;
}
.app.toolbar-hidden .page-viewport{
  padding-top:calc(var(--top) + 56px)!important;
  padding-bottom:30px!important;
}
.topbar,.page-viewport{
  transition:none!important;
}
@media(max-width:620px){
  .app.toolbar-hidden .page-viewport{
    padding-top:calc(var(--top) + 64px)!important;
    padding-bottom:30px!important;
  }
}

/* v4.3.0 gtest shared books: Jaiva-Dharma adaptive flow rolled into the common reader. */
.paragraph-page.adaptive-page{
  overflow:hidden;
  scroll-behavior:auto;
  scrollbar-width:none;
}
.paragraph-page.adaptive-page::-webkit-scrollbar{
  display:none;
}
.adaptive-flow{
  width:100%;
  height:100%;
  column-fill:auto;
  column-gap:0;
}
.adaptive-paragraph{
  margin:0 0 .92em;
  padding:0;
  break-inside:auto;
  orphans:3;
  widows:3;
}
.adaptive-paragraph:last-child{
  margin-bottom:0;
}
.adaptive-paragraph>.prose,
.adaptive-paragraph>p,
.adaptive-paragraph .flow-paragraph{
  orphans:3;
  widows:3;
}
.adaptive-paragraph .source-heading,
.adaptive-paragraph .source-kicker,
.adaptive-paragraph .sanskrit,
.adaptive-paragraph .centered{
  break-after:avoid;
}
.paragraph-progress .page-nav-count{
  color:#666;
  font:650 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
  white-space:nowrap;
  letter-spacing:.01em;
}
.reading-fragment .front-opening b{display:block;font:400 1.48em/1.05 "Source Serif 4",Georgia,serif}
.reading-fragment .front-opening span{display:block;margin:.42em auto 0;max-width:31ch;color:#555;font-size:.78em;line-height:1.35}
.reading-fragment .front-kicker{display:block;margin:0 0 1.35rem;color:#777;font:650 .58em/1.2 ui-sans-serif,-apple-system,"Segoe UI",sans-serif;letter-spacing:.13em;text-transform:uppercase;text-align:center!important;text-align-last:center!important}
.reading-fragment .front-ack{max-width:30ch;margin:18vh auto 0!important;text-align:center!important;text-align-last:center!important;font-size:.95em!important;line-height:1.6!important}
.reading-fragment .front-ack span{display:inline-block;margin-top:1.1em;color:#777;font-size:.75em}
.reading-fragment .front-dedication{max-width:31ch;margin:5vh auto 0!important;text-align:center!important;text-align-last:center!important;line-height:1.52!important}
.reading-fragment .front-dedication b{font-size:1.12em}.reading-fragment .front-dedication strong{font-size:1.18em;font-weight:400}
.reading-fragment .front-publication{max-width:36ch;margin:0 auto!important;font-size:.86em!important;line-height:1.48!important;text-align:left!important;text-align-last:left!important;hyphens:none!important;-webkit-hyphens:none!important}
.reading-fragment .front-contents{max-width:39ch;margin:0 auto!important;font-size:.82em!important;line-height:1.44!important;text-align:left!important;text-align-last:left!important;hyphens:none!important;-webkit-hyphens:none!important}
.reading-fragment .front-contents b{font-size:.94em;letter-spacing:.02em}
.paragraph-page.special-page.title-page .book-title-page{padding-top:clamp(42px,8vh,76px)!important}
.paragraph-page.special-page.title-page .book-invocation{margin:0 auto clamp(34px,6vh,58px);color:#555;font:400 13px/1.25 "Source Serif 4",Georgia,serif;font-style:italic;letter-spacing:.02em}
.paragraph-page.special-page.title-page .book-subtitle{margin:13px auto 0;color:#333;font:400 18px/1.3 "Source Serif 4",Georgia,serif}
.paragraph-page.special-page.title-page .book-credit{max-width:32ch;margin:30px auto 0;color:#444;font:400 13.5px/1.4 "Source Serif 4",Georgia,serif}
.paragraph-page.special-page.title-page .book-publisher{margin:clamp(35px,7vh,66px) auto 0;color:#222;font:400 13px/1.45 "Source Serif 4",Georgia,serif;letter-spacing:.015em}
.paragraph-page.special-page.title-page .book-publisher span{color:#777;font:600 9.5px/1.3 ui-sans-serif,-apple-system,"Segoe UI",sans-serif;letter-spacing:.08em;text-transform:uppercase}


/* Jaiva-Dharma v1.3 — polished book front matter.
   The main prose/verse reader remains unchanged from v1.2. */
.app.front-sheet-active .paragraph-progress{display:none!important}
.app.front-sheet-active .page-viewport{padding-bottom:18px!important}
.paragraph-page.special-page.front-sheet-page{
  overflow-y:auto!important;
  text-align:left!important;
  text-align-last:left!important;
  -webkit-hyphens:none!important;
  hyphens:none!important;
  overscroll-behavior:contain;
}
.paragraph-page.special-page.front-sheet-page *{
  text-align-last:inherit;
  -webkit-hyphens:none!important;
  hyphens:none!important;
}
.front-sheet{
  width:100%;
  max-width:680px;
  margin:0 auto;
  padding:6px 0 48px;
  color:#111;
  font:400 17px/1.55 "Source Serif 4",Georgia,"Times New Roman",serif;
  text-align:left!important;
  text-align-last:left!important;
}
.front-sheet p{margin:0 0 1em}
.front-sheet-centred{
  min-height:calc(100% - 8px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding-top:10px;
  padding-bottom:34px;
  text-align:center!important;
  text-align-last:center!important;
}
.front-sheet-centred *{text-align:center!important;text-align-last:center!important}
.front-overline,
.front-section-label,
.contents-division-label{
  color:#777;
  font:700 9.5px/1.2 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.front-sheet-header{margin:0 0 28px}
.front-sheet-header h1{
  margin:7px 0 0;
  font:400 30px/1.08 "Source Serif 4",Georgia,serif;
  letter-spacing:-.018em;
}
.front-small-rule{width:36px;height:1px;margin:22px auto;background:#ddd}
.front-ack-copy{max-width:29ch;font-size:18px;line-height:1.55}
.front-web{margin-top:18px;color:#777;font:600 10.5px/1.2 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em}

/* Title page: hierarchy instead of inherited paragraph justification. */
.paragraph-page.special-page.title-page .book-title-page{
  max-width:620px!important;
  padding:6px 0 18px!important;
}
.paragraph-page.special-page.title-page .book-title-page::after{display:none!important;content:none!important}
.paragraph-page.special-page.title-page .book-invocation{
  margin:0 auto clamp(28px,5vh,44px)!important;
  color:#666!important;
  font:400 italic 13px/1.3 "Source Serif 4",Georgia,serif!important;
}
.paragraph-page.special-page.title-page .book-title-page h1{
  max-width:none!important;
  margin:0 auto!important;
  font:400 clamp(31px,8.6vw,40px)/1.04 "Source Serif 4",Georgia,serif!important;
  letter-spacing:-.028em!important;
}
.paragraph-page.special-page.title-page .book-subtitle{
  margin:12px auto 0!important;
  color:#444!important;
  font:400 18px/1.3 "Source Serif 4",Georgia,serif!important;
}
.paragraph-page.special-page.title-page .book-author{
  max-width:30ch;
  margin:24px auto 0!important;
  color:#222!important;
  font:400 16px/1.38 "Source Serif 4",Georgia,serif!important;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .title-rule{
  width:38px;height:1px;margin:26px auto;background:#ddd
}
.paragraph-page.special-page.title-page .book-credit{
  max-width:32ch!important;
  margin:0 auto!important;
  color:#555!important;
  font:400 13.5px/1.42 "Source Serif 4",Georgia,serif!important;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .book-credit span,
.paragraph-page.special-page.title-page .book-credit strong{
  display:block;
  text-align:center!important;
  text-align-last:center!important;
}
.paragraph-page.special-page.title-page .book-credit strong{
  margin-top:8px;
  color:#222;
  font-weight:400;
}
.paragraph-page.special-page.title-page .book-publisher{
  margin:clamp(30px,5.5vh,50px) auto 0!important;
  color:#333!important;
  font:400 13px/1.45 "Source Serif 4",Georgia,serif!important;
  text-align:center!important;
  text-align-last:center!important;
}

/* Publication and legal pages */
.front-publication-sheet{max-width:610px}
.front-section{padding:0 0 25px;margin:0 0 25px;border-bottom:1px solid #e4e4e4}
.front-section:last-child{border-bottom:0;margin-bottom:0}
.front-biblio h2{margin:0;font:400 23px/1.18 "Source Serif 4",Georgia,serif}
.front-byline{margin:.35em 0 1.25em!important;color:#555}
.front-editions{margin:0 0 1.15em;padding-left:14px;border-left:1px solid #ddd;font-size:15px;line-height:1.55}
.front-meta{margin:18px 0 0}
.front-meta div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:9px 0;border-top:1px solid #eee}
.front-meta dt{color:#777;font:650 10px/1.3 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.06em}
.front-meta dd{margin:0;text-align:right!important;text-align-last:right!important;font-size:14px}
.front-legal{font-size:15px;line-height:1.52}
.front-copyright{font-weight:600}
.front-legal-caps{
  font-size:14px;
  line-height:1.55;
  letter-spacing:.005em;
  text-transform:none;
}
.front-url{overflow-wrap:anywhere;color:#555}
.front-catalogue{font-size:14.5px;line-height:1.52}
.front-catalogue .front-section-label{margin-bottom:14px}
.catalogue-entry{padding-left:13px;border-left:1px solid #ddd}

/* Dedication */
.front-dedication-sheet{max-width:560px}
.front-dedication-copy{max-width:34ch}
.front-dedication-copy p{margin:0 0 25px}
.front-dedication-title{margin:4px 0 6px;font:400 24px/1.15 "Source Serif 4",Georgia,serif}
.front-dedication-mantra{max-width:31ch;margin:0 auto;color:#666;font-size:14px;line-height:1.4}
.front-dedication-name{margin:25px auto 0;font:400 20px/1.25 "Source Serif 4",Georgia,serif}
.front-dedication-note{margin-top:28px!important;color:#444;font-size:14.5px;line-height:1.5}

/* Printed contents: one polished vertically scrollable surface.
   Sidebar contents remain available exactly as before. */
.front-contents-sheet{max-width:700px;padding-bottom:72px}
.contents-header{margin-bottom:20px}
.contents-front{margin:0 0 30px;border-top:1px solid #ddd}
.contents-division{margin:0 0 34px}
.contents-division-label{margin-bottom:7px}
.contents-division h2{
  max-width:34ch;
  margin:0 0 13px;
  font:400 19px/1.28 "Source Serif 4",Georgia,serif;
}
.contents-list{border-top:1px solid #ddd}
.contents-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"label page" "title page";
  column-gap:14px;
  row-gap:3px;
  padding:11px 2px 12px;
  border-bottom:1px solid #ededed;
  color:#111;
  text-decoration:none;
  touch-action:manipulation;
}
.contents-row:active{background:#f7f7f7}
.contents-label{
  grid-area:label;
  color:#777;
  font:700 9.5px/1.2 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.contents-label:empty{display:none}
.contents-title{
  grid-area:title;
  font:400 15.5px/1.32 "Source Serif 4",Georgia,serif;
}
.contents-print-page{
  grid-area:page;
  align-self:center;
  color:#8a8a8a;
  font:650 10px/1 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.contents-endnote{
  margin-top:38px;
  padding-top:18px;
  border-top:1px solid #ddd;
  color:#555;
  font-size:14px;
  line-height:1.45;
}

/* Portrait artwork is intentionally not redistributed; captions are presented
   as a purposeful lineage page instead of eight mostly-empty swipe pages. */
.front-lineage-sheet{max-width:600px}
.lineage-list{border-top:1px solid #ddd}
.lineage-item{padding:17px 1px;border-bottom:1px solid #ededed}
.lineage-item span{
  display:block;
  margin-bottom:5px;
  color:#777;
  font:600 10px/1.25 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.035em;
}
.lineage-item strong{
  display:block;
  font:400 17px/1.35 "Source Serif 4",Georgia,serif;
}
.lineage-note{margin-top:28px;color:#555;font-size:15px;line-height:1.5}

@media(max-width:620px){
  .front-sheet{font-size:16.5px;padding-top:2px}
  .front-sheet-header{margin-bottom:23px}
  .front-sheet-header h1{font-size:28px}
  .front-sheet-centred{justify-content:flex-start;padding-top:clamp(48px,10vh,82px)}
  .front-ack-copy{font-size:17px}
  .paragraph-page.special-page.title-page .book-title-page{padding-top:2px!important}
  .paragraph-page.special-page.title-page .book-invocation{margin-bottom:clamp(24px,4.5vh,38px)!important}
  .front-publication-sheet{font-size:15.5px}
  .front-meta div{grid-template-columns:1fr}
  .front-meta dd{text-align:left!important;text-align-last:left!important}
  .contents-row{padding-top:10px;padding-bottom:11px}
  .contents-title{font-size:15px}
  .contents-division h2{font-size:18px}
}

/* Jaiva-Dharma v1.5 — invisible-scroll + semantic reference appendices. */
.paragraph-page{scrollbar-width:none!important;-ms-overflow-style:none!important}
.paragraph-page::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.paragraph-page.special-page,.paragraph-page.discourse-opening{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.paragraph-page.special-page::-webkit-scrollbar,.paragraph-page.discourse-opening::-webkit-scrollbar{
  width:0!important;height:0!important;display:none!important;
}
.reference-sheet{max-width:680px!important;padding:4px 0 56px!important;font-size:17px!important;line-height:1.5!important}
.reference-header{margin:0 0 28px;padding:0 0 18px;border-bottom:1px solid #e2e2e2;text-align:left!important;text-align-last:left!important}
.reference-header h1{margin:7px 0 0;font:400 30px/1.08 "Source Serif 4",Georgia,serif;letter-spacing:-.02em}
.reference-subtitle{margin:9px 0 0!important;color:#666;font-size:.85em!important;line-height:1.4!important}
.reference-letter{margin:20px 0 0;color:#777;font:700 10px/1 ui-sans-serif,-apple-system,"Segoe UI",sans-serif;letter-spacing:.16em;text-transform:uppercase}
.glossary-list{display:block}
.glossary-entry{padding:0 0 17px;margin:0 0 17px;border-bottom:1px solid #ededed;break-inside:avoid}
.glossary-entry:last-child{border-bottom:0}
.glossary-term{margin:0 0 5px;font-size:1.04em;line-height:1.3;font-weight:650;text-align:left!important;text-align-last:left!important}
.glossary-term i{font-weight:650}
.glossary-definition{color:#222;font-size:.96em;line-height:1.56;text-align:left!important;text-align-last:left!important}
.reference-note{margin:0 0 1em;color:#444}
.index-list{display:block}
.index-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:6px 0;border-bottom:1px solid #f0f0f0;font-size:.94em;line-height:1.38}
.index-row:last-child{border-bottom:0}
.index-term{min-width:0;text-align:left!important;text-align-last:left!important}
.index-ref{color:#666;font:600 .78em/1.45 ui-sans-serif,-apple-system,"Segoe UI",sans-serif;white-space:nowrap;text-align:right!important;text-align-last:right!important}
.index-parent{margin:17px 0 5px;font-weight:650;font-size:.98em;line-height:1.32;text-align:left!important;text-align-last:left!important}
.index-level-1{padding-left:14px}.index-level-2{padding-left:28px}.index-level-3{padding-left:42px}
.verse-index-row .index-term{font-size:.96em}
.publisher-links{display:grid;gap:14px}
.publisher-item{padding:17px 0;border-bottom:1px solid #ededed}
.publisher-item strong{display:block;margin-bottom:5px;font-size:1.02em}
.publisher-item p{margin:0!important;color:#333;font-size:.94em;line-height:1.5}
.publisher-book-list{list-style:none;margin:0;padding:0;columns:1}.publisher-book-list li{padding:7px 0;border-bottom:1px solid #f0f0f0;font-size:.94em;line-height:1.4;break-inside:avoid}.publisher-book-list li:last-child{border-bottom:0}
.contact-region{padding:0 0 19px;margin:0 0 19px;border-bottom:1px solid #ededed}
.contact-region h2{margin:0 0 7px;color:#555;font:700 10px/1.2 ui-sans-serif,-apple-system,"Segoe UI",sans-serif;letter-spacing:.12em;text-transform:uppercase}
.contact-list{display:grid;gap:0}.contact-item{padding:10px 0;border-top:1px solid #f1f1f1}.contact-item:first-child{border-top:0;padding-top:0}.contact-item strong{display:block;margin:0 0 4px;font-size:.95em;line-height:1.35}.contact-region p,.contact-item p{margin:0!important;font-size:.92em;line-height:1.55;text-align:left!important;text-align-last:left!important}
@media(max-width:620px){.reference-sheet{font-size:16.5px!important}.reference-header h1{font-size:28px}.glossary-entry{padding-bottom:15px;margin-bottom:15px}.index-row{gap:10px}}

/* Jaiva-Dharma v1.6 — exact A–Z sidebar reference navigation. */
.reference-nav-parent{border-top:1px solid #f1f1f1}
.reference-nav-toggle{width:100%;min-height:54px;border:0;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;padding:9px 2px 9px 12px;text-align:left;touch-action:manipulation}
.reference-nav-toggle>span:first-child b{display:block;color:#111;font:400 15px/1.22 "Source Serif 4",Georgia,serif}
.reference-nav-toggle>span:first-child small{display:block;margin-top:4px;color:#858585;font:500 9.5px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif}
.reference-nav-parent>.reference-nav-toggle .toc-chevron{transform:none}
.reference-nav-parent.open>.reference-nav-toggle .toc-chevron{transform:rotate(180deg)}
.reference-nav-body{display:none;padding:1px 8px 13px 12px}
.reference-nav-parent.open>.reference-nav-body{display:block}
.reference-letter-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:5px 0 2px}
.reference-letter-button{min-width:0;height:37px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#333;font:650 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:center;touch-action:manipulation}
.reference-letter-button.current{border-color:#111;background:#111;color:#fff}
.reference-letter-button:focus-visible{outline:2px solid #111;outline-offset:2px}
@media(max-width:620px){.reference-nav-toggle>span:first-child b{font-size:14.5px}.reference-letter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.reference-letter-button{height:39px;border-radius:9px}}
\n/* Wave 3: alignment rules inherited from approved Krishna reader families. */
.paragraph-page .synonyms{ text-align:left!important; text-align-last:left!important; -webkit-hyphens:none!important; hyphens:none!important; }
.paragraph-page .translation{ text-align:justify!important; text-align-last:left!important; }
.paragraph-page .sanskrit{ text-align:center!important; text-align-last:center!important; -webkit-hyphens:none!important; hyphens:none!important; }
.paragraph-page .wave3-section-heading{margin:0 0 1.1em;text-align:center!important;text-align-last:center!important;font:400 1.08em/1.25 "Source Serif 4",Georgia,serif;}


/* Bhagavad-gita 4th ed. v5.3 — Prabhupada-style semantic swipe flow.
   One verse opening (TEXT -> SYNONYMS -> TRANSLATION) per vertical page,
   followed horizontally by Sārārtha-Varṣiṇī and Prakāśikā-vṛtti when supplied. */
.paragraph-page.gita-layer-page{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.paragraph-page.gita-layer-page::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.paragraph-page.gita-layer-page .reading-fragment{width:100%;max-width:820px;margin:0 auto;padding:0 0 44px}
.gita-layer{width:100%;max-width:820px;margin:0 auto}
.gita-layer>.source-heading:first-child{margin:0 0 1.05rem!important;text-align:center!important;text-align-last:center!important;font-weight:400!important}
.gita-opening .section-label,.gita-commentary>.section-label{
  margin:1.18rem 0 .8rem!important;
  color:#777!important;
  font:650 10px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
  text-align:center!important;
  text-align-last:center!important;
}
.gita-opening .section-label:first-of-type{margin-top:.2rem!important}
.gita-opening .devanagari-source{margin:0 auto 1rem!important;text-align:center!important;text-align-last:center!important}
.gita-opening .devanagari-source img{display:block;max-width:min(100%,720px);height:auto;margin:0 auto}
.gita-opening .sanskrit{
  margin:0 auto 1.15rem!important;
  font-family:"Source Serif 4",Georgia,"Times New Roman",serif!important;
  font-style:normal!important;font-weight:400!important;line-height:1.4!important;
  text-align:center!important;text-align-last:center!important;
  -webkit-hyphens:none!important;hyphens:none!important;
}
.gita-opening .synonyms{margin:0 0 1rem!important;text-align:left!important;text-align-last:left!important;-webkit-hyphens:none!important;hyphens:none!important}
.gita-opening .translation{margin:0 0 1rem!important;font-style:normal!important;font-weight:400!important;text-align:justify!important;text-align-last:left!important}
.gita-opening .gita-opening-note{margin:.65rem 0!important;font-size:.86em;line-height:1.45;color:#555;text-align:left!important;text-align-last:left!important}
.gita-commentary>.section-label.gita-source-commentary-heading{text-transform:none!important;letter-spacing:.045em!important;font-family:"Source Serif 4",Georgia,serif!important;font-size:.72em!important;font-weight:600!important}
.gita-commentary .gita-commentary-body,.gita-commentary .prose{margin:0 0 .95em!important;text-align:justify!important;text-align-last:left!important;font-weight:400!important}
.gita-commentary .sanskrit{margin:1.05em auto!important;font-family:"Source Serif 4",Georgia,serif!important;font-style:normal!important;text-align:center!important;text-align-last:center!important;-webkit-hyphens:none!important;hyphens:none!important}
.gita-commentary .source-heading:not(.section-label){margin:1.05em 0 .7em!important;text-align:center!important;text-align-last:center!important;font-weight:400!important}
@media(max-width:620px){
  .gita-opening .section-label,.gita-commentary>.section-label{font-size:9.5px!important}
}

/* v4.3.2 shared books: port the stable Jaiva-Dharma adaptive layout scope to the common reader. */
.app{height:var(--reader-vh,100dvh)!important}
.app.adaptive-flow-active .page-viewport,
.app.adaptive-flow-active.toolbar-hidden .page-viewport{
  padding-top:calc(var(--top) + 42px)!important;
  padding-bottom:42px!important;
}
@media(max-width:620px){
  .app.adaptive-flow-active .page-viewport,
  .app.adaptive-flow-active.toolbar-hidden .page-viewport{
    padding-top:calc(var(--top) + 34px)!important;
    padding-bottom:42px!important;
  }
}
@media(min-width:900px){
  .app.adaptive-flow-active .page-viewport,
  .app.adaptive-flow-active.toolbar-hidden .page-viewport{
    padding-top:calc(var(--top) + 50px)!important;
    padding-bottom:62px!important;
  }
}
.paragraph-page.gita-layer-page{
  overflow:hidden!important;
}
.paragraph-page.gita-layer-page .reading-fragment{
  padding-bottom:0!important;
}
@media(max-width:620px){
  .app:not(.title-page-active):not(.front-sheet-active) .page-viewport,
  .app:not(.title-page-active):not(.front-sheet-active).toolbar-hidden .page-viewport{
    padding-bottom:42px!important;
  }
}
\n.selection-search-pop{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 86px);transform:translateX(-50%);z-index:120;border:1px solid var(--ink,#111);border-radius:999px;background:var(--ink,#111);color:var(--paper,#fff);box-shadow:0 10px 26px rgba(0,0,0,.22);padding:11px 17px;font:700 13px/1 var(--ui,Arial,sans-serif);letter-spacing:.01em}.selection-search-pop[hidden]{display:none!important}.selection-search-pop:active{transform:translateX(-50%) translateY(1px)}\n
/* allow selecting reader text for search/share */
.paragraph-page,
.paragraph-page * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
