/* Scrolled reading toolbar: original controls, with their dialogs intact. */
/* Never paint temporary shell coordinates before the first toolbar measure. */
:root:root:root body.reading-bar-stuck:not(.reading-bars-ready) :is(.site-header,.reading-actions-dock),
:root:root:root body.reading-bar-stuck:not(.reading-bars-ready) :is(.site-header,.reading-actions-dock) *{visibility:hidden!important}
/* Back and Classic anchor to card edges; search has its own centered slot. */
body.reading-bar-stuck{--reading-dock-left:8px;--reading-dock-right:8px;--reading-dock-center:50vw}
@media(min-width:601px){body.reading-bar-stuck{--reading-dock-left:var(--reading-content-left,0px);--reading-dock-right:var(--reading-content-right,0px)}}
:root:root body .reading-actions-dock{padding-left:var(--reading-dock-left,8px);padding-right:var(--reading-dock-right,8px)}
:root:root:root body .reading-actions-dock>.reading-action-row{display:grid!important;grid-template-columns:max-content 36px minmax(0,1fr) 40px max-content;gap:8px;align-items:center;width:100%}
:root:root:root body .reading-actions-dock>.reading-action-row>.reading-back{grid-column:1;grid-row:1;justify-self:start}
:root:root:root body .reading-actions-dock>.reading-action-row>.root-map-link{grid-column:2;grid-row:1;justify-self:center}
:root:root:root body .reading-actions-dock>.reading-action-row>.verse-marker-tools{grid-column:4;grid-row:1;justify-self:center}
:root:root:root body .reading-actions-dock>.reading-action-row>.simple-reading{grid-column:5;grid-row:1;justify-self:end}
:root:root:root body .reading-actions-dock>.global-search{position:absolute;left:var(--reading-dock-center,50vw);top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:max-content;max-width:none}
@media(max-width:600px){
 :root:root:root body .reading-actions-dock>.reading-action-row{grid-template-columns:max-content 32px minmax(0,1fr) 32px max-content;gap:4px}
 :root:root:root body .reading-actions-dock>.reading-action-row>.simple-reading{max-width:max-content;width:auto!important;padding-inline:6px;font-size:12px;white-space:nowrap}
 :root:root body .reading-actions-dock .verse-marker-tools,:root:root body .reading-actions-dock .verse-marker-toggle{width:32px}
}
body.reading-bar-stuck{--reading-bar-height:54px}
@media(min-width:601px){body.reading-bar-stuck{--reading-bar-height:58px}}
/* These pages are visible before their controller adds flowing-header. */
html body.site-page:is(.book-directory,.about-page).reading-bar-stuck{padding-top:calc(var(--reading-bar-height) + 10px)!important}
@media(max-width:600px){
 :root:root body.reading-bar-stuck .passage-breadcrumb .crumb-book-two-line{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;white-space:normal;line-height:1.15;padding-block:0}
 :root:root body.reading-bar-stuck .passage-breadcrumb .crumb-book-line{display:block;white-space:nowrap;text-align:center;line-height:inherit}
}
@media(min-width:601px){body.reading-bar-stuck{--reading-content-left:8px;--reading-content-right:8px}}
@media(min-width:761px){body.reading-bar-stuck{--reading-content-left:calc(max(0px,(100vw - 900px)/2) + 80px);--reading-content-right:calc(max(0px,(100vw - 900px)/2) + 80px)}}
html body.site-page.flowing-header.reading-bar-stuck>.site-header,body.reading-bar-stuck .passage-breadcrumb{animation:none!important}
:root:root body .reading-actions-dock .reading-action-row>.reading-settings{display:none!important}
/* Guest menu above, highlighter in the former settings slot below. */
:root:root body.reading-bar-stuck>.site-header>.guest-profile{position:absolute;top:50%;right:10px;transform:translateY(-50%);width:40px;height:44px;margin:0;padding:6px;display:grid;place-items:center;border:0;border-radius:0;background:transparent;box-shadow:none;color:#aaa}
:root:root body.reading-bar-stuck>.site-header>.guest-profile svg{width:26px;height:26px}
:root:root body .reading-actions-dock .verse-marker-tools{position:relative;inset:auto;transform:none;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:0;flex:0 0 36px;height:44px;width:36px}
:root:root body .reading-actions-dock .verse-marker-tools button{display:grid;place-items:center;width:36px;height:44px;padding:5px}
:root:root body .reading-actions-dock .verse-marker-toggle svg{width:26px;height:26px}
:root:root body .reading-actions-dock .verse-marker-tools [hidden]{display:none!important}
:root:root body .reading-actions-dock .verse-marker-clear{position:absolute;right:0;bottom:calc(100% + 5px);width:30px;height:30px;background:#333;z-index:2}
:root:root body .reading-actions-dock .verse-marker-hint{top:auto;bottom:calc(100% + 40px);right:0}
@media(min-width:601px){
 :root:root body.reading-bar-stuck>.site-header>.guest-profile{width:44px;height:44px}
 :root:root body.reading-bar-stuck>.site-header>.guest-profile svg{width:28px;height:28px}
 :root:root body .reading-actions-dock .verse-marker-tools{height:44px;width:40px;flex-basis:40px}
 :root:root body .reading-actions-dock .verse-marker-tools .verse-marker-toggle{width:40px;height:44px}
 :root:root body .reading-actions-dock .verse-marker-toggle svg{width:28px;height:28px}
}
.reading-actions-dock{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:120;display:flex;align-items:center;gap:8px;width:min(660px,calc(100vw - 20px));box-sizing:border-box;padding:5px 10px calc(5px + env(safe-area-inset-bottom,0px));border:.5px solid #5c5c5c;border-radius:17px 17px 0 0;background:linear-gradient(135deg,#333333,#2d2d2d);backdrop-filter:blur(18px);box-shadow:0 9px 28px #0006,inset 0 1px 0 #ffffff09}
.reading-actions-dock[hidden]{display:none!important}
body.verse-detail.reading-bar-stuck .passage-breadcrumb{visibility:visible}
/* Suppress obsolete in-page controls before JavaScript mounts the bars. */
:root:root body.reading-bar-stuck main .reading-settings-row:not(.breadcrumb-row),
:root:root body.reading-bar-stuck main .breadcrumb-row>:is(.reading-settings,.root-map-link){display:none!important}
:root:root body.reading-bar-stuck>.site-header>.global-search{display:none!important}
body.reading-dock-visible{padding-bottom:calc(var(--reading-dock-height,60px) + 24px + env(safe-area-inset-bottom,0px))!important}
:root:root:root body .reading-actions-dock>.reading-action-row{display:flex;flex:1;align-items:center;justify-content:space-evenly;gap:8px;position:static;min-width:0;margin:0!important;padding:0;height:44px}
:root:root body .reading-actions-dock .reading-action-row>:is(.reading-back,.root-map-link,.reading-settings){flex-shrink:0;margin:0!important;grid-column:auto;grid-row:auto}
:root:root body .reading-actions-dock .reading-back{display:inline-flex;align-items:center;justify-content:center;min-width:max-content;min-height:44px;height:44px;box-sizing:border-box;padding:5px 8px;border:0;background:transparent}
:root:root body .reading-actions-dock .root-map-link:not([hidden]){display:flex!important;align-items:center;justify-content:center;width:36px;height:44px;min-height:44px;box-sizing:border-box;padding:7px;margin:0!important}
:root:root body .reading-actions-dock .reading-settings>summary{width:36px;height:44px;box-sizing:border-box;padding:6px;border:0;background:transparent}
:root:root body .reading-actions-dock .reading-settings>summary svg{width:24px;height:24px}
:root:root body .reading-actions-dock .simple-reading{width:auto!important;min-width:0;max-width:max-content;flex:0 1 auto;height:36px;min-height:36px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;font-size:13px;white-space:normal;text-align:center;line-height:1.25}
:root:root body .reading-actions-dock .reading-settings{position:static}
:root:root body .reading-actions-dock .reading-settings-panel{top:auto;bottom:calc(100% + 12px);right:8px;max-height:calc(100dvh - var(--reading-bar-height,54px) - var(--reading-dock-height,60px) - 40px);overflow-y:auto}
body .reading-actions-dock>.verse-marker-tools{position:static;display:flex;flex-direction:row;flex-shrink:0;gap:0;align-items:center}
body .reading-actions-dock .verse-marker-hint{top:auto;bottom:calc(100% + 10px);right:10px}
/* Standard scrolled layout: pen above, search below, original controls retained. */
/* Keep the page-level Back and verse jump on one compact row above the text. */
html body.site-page.flowing-header.reading-bar-stuck{padding-top:calc(var(--reading-bar-height,54px) + 10px)!important}
:root:root body.reading-bar-stuck .breadcrumb-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;min-height:44px;margin:0 0 8px;padding:0}
:root:root body.reading-bar-stuck .breadcrumb-row>.reading-page-back{margin:0;height:44px;min-height:44px;flex:0 0 auto}
:root:root body.reading-bar-stuck .breadcrumb-row>.reading-page-back span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}
:root:root body.reading-bar-stuck .breadcrumb-row>.reading-verse-jump{margin:0;margin-inline-start:auto;min-height:0;flex-wrap:nowrap!important}
:root:root body.reading-bar-stuck .reading-dock-placeholder{display:none}
:root:root body.reading-bar-stuck .reader-head{gap:0}
body.reading-bar-stuck>.site-header>.verse-marker-tools{position:absolute;top:5px;right:8px;left:auto;height:44px;display:flex;flex-direction:row;align-items:center;gap:0}
body.reading-bar-stuck>.site-header .verse-marker-hint{top:calc(100% + 10px);bottom:auto;right:0}
:root:root body .reading-actions-dock>.global-search{position:static;inset:auto;transform:none;flex:0 0 auto;width:auto;max-width:none;height:44px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;--search-type-size:13px}
:root:root body .reading-actions-dock>.global-search input{display:none}
:root:root body .reading-actions-dock>.global-search>button.search-brand-button{width:max-content;max-width:none;height:36px;min-height:36px;box-sizing:border-box;padding:0 8px;border-radius:11px;white-space:nowrap}
@media(max-width:600px){.reading-actions-dock{gap:4px;padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));border-radius:15px 15px 0 0}:root:root body .reading-actions-dock .reading-back span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}:root:root body .reading-actions-dock .reading-back{padding:5px;justify-content:center}:root:root body .reading-actions-dock .simple-reading{font-size:12px;padding:5px 6px}}
html body.site-page.flowing-header.reading-bar-stuck>.site-header{position:fixed!important;height:58px!important;min-height:58px!important;background:#1c1c1cf5!important;backdrop-filter:blur(12px)}
body.reading-bar-stuck>.site-header .brand{visibility:visible;pointer-events:auto;position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0}
body.reading-bar-stuck>.site-header .brand img{display:block;width:40px;height:auto;max-height:32px;object-fit:contain}
@media(max-width:600px){body.reading-bar-stuck>.site-header .brand{left:10px}}
:root:root body.reading-bar-stuck>.site-header .global-search{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(540px,calc(100vw - 28px));max-width:calc(100vw - 28px);height:46px}
:root:root body.reading-bar-stuck>.site-header .global-search input{height:34px;font-size:15px}
:root:root body.reading-bar-stuck>.site-header .global-search button{height:34px;min-height:34px;font-size:14px}
body.reading-bar-stuck .passage-breadcrumb{position:fixed;top:64px;left:0;right:0;z-index:100;box-sizing:border-box;min-height:44px;padding:8px max(14px,calc((100vw - 856px)/2));background:#1c1c1cf5;backdrop-filter:blur(12px);border-bottom:.5px solid #555;box-shadow:0 8px 16px #0003;font-size:18px}
/* One compact line; leave the search dialog's expanded layout unchanged. */
html body.site-page.flowing-header.reading-bar-stuck>.site-header{height:54px!important;min-height:54px!important;border-bottom:.5px solid #555!important;box-shadow:0 6px 18px #0003;animation:reading-bar-arrive .24s ease-out}
:root:root body.reading-bar-stuck>.site-header .global-search{left:auto;right:max(14px,calc((100vw - 620px)/2));top:50%;transform:translateY(-50%);width:180px;max-width:180px;height:36px;padding:3px;border-radius:12px}
:root:root body.reading-bar-stuck>.site-header .global-search input{height:28px;padding:4px 7px;font-size:13px}
:root:root body.reading-bar-stuck>.site-header .global-search button{height:28px;min-height:28px;padding:0 8px;font-size:12px;border-radius:8px}
body.reading-bar-stuck .passage-breadcrumb{top:0;left:max(14px,calc((100vw - 620px)/2));right:calc(max(14px, (100vw - 620px)/2) + 194px);min-height:54px;height:54px;padding:0;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;background:transparent;backdrop-filter:none;border:0;box-shadow:none;font-size:17px;scrollbar-width:none;animation:reading-bar-arrive .24s ease-out}
body.reading-bar-stuck .passage-breadcrumb>*{flex-shrink:0}
body.reading-bar-stuck .passage-breadcrumb::-webkit-scrollbar{display:none}
@keyframes reading-bar-arrive{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
@media(max-width:600px){
 :root:root body.reading-bar-stuck>.site-header .global-search{right:max(18px,calc((100vw - 360px)/2));width:104px;max-width:104px}
 :root:root body.reading-bar-stuck>.site-header .global-search input{padding:4px;width:0}
 :root:root body.reading-bar-stuck>.site-header .global-search button{padding:0 5px;font-size:10px}
 body.reading-bar-stuck .passage-breadcrumb{left:max(18px,calc((100vw - 360px)/2));right:calc(max(18px, (100vw - 360px)/2) + 116px);font-size:14px;gap:5px}
}
@media(prefers-reduced-motion:reduce){html body.site-page.flowing-header.reading-bar-stuck>.site-header,body.reading-bar-stuck .passage-breadcrumb{animation:none}}
/* Floating, centered toolbar shared by reading and verse pages. */
html body.site-page.flowing-header.reading-bar-stuck>.site-header{inset:10px auto auto 50%!important;width:min(660px,calc(100% - 20px));height:54px!important;min-height:54px!important;transform:translateX(-50%)!important;padding:0!important;border:.5px solid #5c5c5c!important;border-radius:17px;background:linear-gradient(135deg,#333333,#2d2d2d)!important;backdrop-filter:blur(18px);box-shadow:0 9px 28px #0006,inset 0 1px 0 #ffffff09}
:root:root body.reading-bar-stuck>.site-header .global-search{right:12px;width:180px;max-width:180px;background:#242424;border-radius:11px;box-shadow:none}
body.reading-bar-stuck .passage-breadcrumb{top:10px;left:max(24px,calc((100vw - 632px)/2));right:calc(max(24px, (100vw - 632px)/2) + 194px);height:54px;min-height:54px}
@media(max-width:600px){
 html body.site-page.flowing-header.reading-bar-stuck>.site-header{inset:8px auto auto 50%!important;width:calc(100% - 20px);border-radius:15px}
 :root:root body.reading-bar-stuck>.site-header .global-search{right:9px;width:104px;max-width:104px}
 body.reading-bar-stuck .passage-breadcrumb{top:8px;left:22px;right:133px}
}
html body.site-page.flowing-header.reading-bar-stuck>.site-header{top:0!important}
body.reading-bar-stuck .passage-breadcrumb{top:0}
/* Share the available line between the actual breadcrumb and search width. */
:root:root body.reading-bar-stuck>.site-header .global-search input{background:#303030;border-radius:7px;box-shadow:inset 0 1px 2px #0002}
:root:root body.reading-bar-stuck>.site-header .global-search{right:14px;width:var(--reading-search-width,220px);max-width:var(--reading-search-width,220px)}
/* Reserve the logo and pen slots even before the first layout measurement. */
body.reading-bar-stuck .passage-breadcrumb{left:var(--reading-trail-left,max(72px,calc((100vw - 660px)/2 + 62px)));right:var(--reading-trail-right,max(68px,calc((100vw - 660px)/2 + 58px)));width:var(--reading-trail-width);max-width:var(--reading-trail-width);min-width:0;box-sizing:border-box}
@media(max-width:600px){body.reading-bar-stuck .passage-breadcrumb{left:var(--reading-trail-left,68px);right:var(--reading-trail-right,62px)}}
:root:root body.reading-bar-stuck>.site-header .global-search{min-width:0;box-sizing:border-box;transition:border-color .2s}
@media(max-width:600px){
 :root:root body.reading-bar-stuck>.site-header .global-search{right:10px;width:var(--reading-search-width,144px);max-width:var(--reading-search-width,144px)}
 :root:root body.reading-bar-stuck>.site-header .global-search input{min-width:0;flex:1;padding:4px 6px}
 :root:root body.reading-bar-stuck>.site-header .global-search button{flex-shrink:0;font-size:11px;padding:0 7px}
}
/* Full-width strips with desktop controls still aligned to the reading column. */
html body.site-page.flowing-header.reading-bar-stuck>.site-header{left:50%!important;width:100%!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important;box-shadow:0 9px 28px #0006}
.reading-actions-dock{width:100%;max-width:100%;min-height:calc(56px + env(safe-area-inset-bottom,0px));border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important}
@media(min-width:601px){
 :root:root body.reading-bar-stuck>.site-header .brand{left:calc(var(--reading-content-left,0px) + 14px)}
 :root:root body.reading-bar-stuck>.site-header>.guest-profile{right:calc(var(--reading-content-right,0px) + 10px)}
 .reading-actions-dock{padding-left:calc(var(--reading-content-left,0px) + 12px);padding-right:calc(var(--reading-content-right,0px) + 12px)}
}
/* Final responsive geometry: full-width mobile strips, card-width desktop bars. */
:root:root body.reading-bar-stuck>.site-header .brand{top:50%;transform:translateY(-50%);width:72px;height:46px;display:flex;align-items:center;justify-content:center}
:root:root body.reading-bar-stuck>.site-header .brand img{width:72px;height:36px;max-height:36px;object-fit:contain}
:root:root body.reading-bar-stuck>.site-header>.verse-marker-tools{top:50%;right:10px;height:44px;transform:translateY(-50%);align-items:center}
:root:root body.reading-bar-stuck>.site-header .verse-marker-tools [hidden]{display:none!important}
:root:root body.reading-bar-stuck>.site-header .verse-marker-tools button{width:40px;height:44px;padding:6px;display:grid;place-items:center}
:root:root body.reading-bar-stuck>.site-header .verse-marker-toggle svg{width:26px;height:26px}
:root:root body.reading-bar-stuck .passage-breadcrumb{height:var(--reading-bar-height,54px);min-height:var(--reading-bar-height,54px);align-items:center}
:root:root body .reading-actions-dock .reading-back svg{width:20px;height:20px}
:root:root body .reading-actions-dock .root-map-link svg{width:24px;height:24px}
:root:root body .reading-actions-dock .reading-settings>summary svg{width:26px;height:26px}
@media(max-width:600px){
 html body.site-page.flowing-header.reading-bar-stuck>.site-header{width:100%!important;border-radius:0!important;border-left:0!important;border-right:0!important;left:50%!important}
 .reading-actions-dock{width:100%;max-width:100%;border-radius:0!important;border-left:0!important;border-right:0!important}
 body.reading-bar-stuck .passage-breadcrumb{font-size:15px;left:var(--reading-trail-left,88px);right:var(--reading-trail-right,102px)}
}
@media(min-width:601px){
 body.reading-bar-stuck{--reading-bar-height:58px}
 .reading-actions-dock{min-height:calc(58px + env(safe-area-inset-bottom,0px))}
 html body.site-page.flowing-header.reading-bar-stuck>.site-header{height:58px!important;min-height:58px!important}
 :root:root body.reading-bar-stuck>.site-header .brand{width:84px;height:54px}
 :root:root body.reading-bar-stuck>.site-header .brand img{width:84px;height:42px;max-height:42px}
 :root:root body.reading-bar-stuck>.site-header .verse-marker-tools button{width:44px;height:44px}
 :root:root body.reading-bar-stuck>.site-header>.verse-marker-tools{height:44px}
 :root:root body.reading-bar-stuck>.site-header .verse-marker-toggle svg{width:28px;height:28px}
 :root:root body.reading-bar-stuck .passage-breadcrumb{font-size:19px;left:var(--reading-trail-left,calc(var(--reading-dock-left,0px) + 92px));right:var(--reading-trail-right,calc(var(--reading-dock-right,0px) + 102px))}
 .reading-actions-dock{padding:6px calc(var(--reading-content-right,0px) + 12px) calc(6px + env(safe-area-inset-bottom,0px)) calc(var(--reading-content-left,0px) + 12px)}
 :root:root:root body .reading-actions-dock>.reading-action-row,:root:root body .reading-actions-dock>.global-search{height:44px}
 :root:root body .reading-actions-dock .reading-back,:root:root body .reading-actions-dock .root-map-link:not([hidden]),:root:root body .reading-actions-dock .reading-settings>summary{height:44px;min-height:44px;width:auto}
 :root:root body .reading-actions-dock .reading-back{font-size:15px}
 :root:root body .reading-actions-dock .reading-back svg{width:22px;height:22px}
 :root:root body .reading-actions-dock .root-map-link svg,:root:root body .reading-actions-dock .reading-settings>summary svg{width:28px;height:28px}
 :root:root body .reading-actions-dock .simple-reading,:root:root body .reading-actions-dock>.global-search>button.search-brand-button{height:40px;min-height:40px;font-size:15px}
}
@media(max-width:600px){
 html body.site-page.flowing-header.reading-bar-stuck>.site-header{height:54px!important;min-height:54px!important}
 body.reading-bar-stuck>.site-header .brand{top:27px}
 :root:root body.reading-bar-stuck>.site-header .global-search{top:27px;height:36px;padding:0;border:0;background:transparent;overflow:visible}
 :root:root body.reading-bar-stuck>.site-header .global-search input{display:none}
 :root:root body.reading-bar-stuck>.site-header .global-search>button.search-brand-button{max-width:none;width:max-content;height:36px;min-height:36px;padding:0 9px;font-size:13px;border-radius:11px;white-space:nowrap}
 :root:root body.reading-bar-stuck.reading-bar-wrap .breadcrumb-row .passage-breadcrumb{top:54px;height:auto;min-height:40px;padding:4px 0 10px;flex-wrap:wrap;overflow:visible;white-space:normal}
 :root:root body.reading-bar-stuck.reading-bar-wrap .breadcrumb-row .passage-breadcrumb>*{max-width:100%;overflow-wrap:anywhere;white-space:normal}
}
/* Pen immediately left of the guest menu; grey until hovered or active. */
:root:root:root body.reading-bar-stuck>.site-header .brand{left:var(--reading-dock-left,8px)}
:root:root:root body.reading-bar-stuck>.site-header>.guest-profile{right:var(--reading-dock-right,8px)}
:root:root:root body.reading-bar-stuck>.site-header>.verse-marker-tools{right:calc(var(--reading-dock-right,8px) + 46px);height:44px;top:50%;transform:translateY(-50%)}
:root:root:root body.reading-bar-stuck>.site-header .verse-marker-toggle{color:#aaa}
:root:root:root body.reading-bar-stuck>.site-header .verse-marker-toggle:is(:hover,:focus-visible,[aria-pressed="true"]){color:#f8941c;background:transparent}
:root:root:root body.reading-bar-stuck>.site-header .verse-marker-clear{position:absolute;right:0;top:calc(100% + 4px);width:30px;height:30px;background:#333}
:root:root:root body.reading-bar-stuck>.site-header .verse-marker-hint{top:calc(100% + 40px)}
:root:root:root body .reading-actions-dock .root-map-link{color:#aaa}
:root:root:root body .reading-actions-dock .root-map-link svg{stroke:currentColor}
:root:root:root body .reading-actions-dock .root-map-link:is(:hover,:focus-visible){color:#f8941c}
@media(min-width:601px){:root:root:root body.reading-bar-stuck>.site-header>.verse-marker-tools{right:calc(var(--reading-dock-right,0px) + 50px)}}
/* 50% transparent at the center, fading completely toward viewport edges.
   Keep opacity on the surface only so labels, icons and menus stay readable. */
:root:root:root body.reading-bar-stuck>.site-header,
:root:root:root body.reading-bar-stuck .reading-actions-dock{
 background:transparent!important;isolation:isolate;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;
 border:0!important;border-image:none!important;
}
/* Local clipping prevents a detached strip from covering cards on mobile. */
.reading-bar-backdrop{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;border-radius:inherit}
.reading-bar-backdrop[hidden]{display:none}
.reading-bar-backdrop::before{content:"";position:absolute;left:0;top:calc(0px - var(--bar-backdrop-y,0px));width:100vw;height:100vh;height:100lvh;background:#101010;background-image:linear-gradient(rgba(10,10,10,.18),rgba(10,10,10,.34)),url('assets/nuuur-space-background-v2.webp');background-position:center top;background-size:cover;background-repeat:no-repeat}
.reading-bar-backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(51,51,51,0) 0,rgba(51,51,51,.25) var(--reading-dock-left,8px),rgba(51,51,51,.5) var(--reading-dock-center,50vw),rgba(51,51,51,.25) calc(100% - var(--reading-dock-right,8px)),rgba(51,51,51,0) 100%)}
:root:root:root body.verse-detail.reading-bar-stuck main .breadcrumb-row>.root-map-link:not([hidden]){display:grid!important;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;box-sizing:border-box;margin:0 0 0 auto;padding:9px;color:#aaa}
:root:root:root body.verse-detail.reading-bar-stuck main .breadcrumb-row>.root-map-link svg{width:24px;height:24px;stroke:currentColor}
:root:root:root body.verse-detail.reading-bar-stuck main .breadcrumb-row>.root-map-link:is(:hover,:focus-visible){color:#f8941c}
:root:root:root body .reading-actions-dock>.verse-marker-tools{position:absolute;left:var(--reading-pen-center,25vw);right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:40px;height:44px;display:flex;align-items:center;justify-content:center}
:root:root:root body .reading-actions-dock .verse-marker-toggle{color:#aaa}
:root:root:root body .reading-actions-dock .verse-marker-toggle:is(:hover,:focus-visible,[aria-pressed="true"]){color:#f8941c;background:transparent}
/* Map strips share the reading surface; their own search and filters stay in-page. */
:root:root:root body.root-directory.reading-bar-stuck main{padding-top:10px}
:root:root:root body.root-directory.reading-bar-stuck .root-toolbar{display:flex;min-height:44px;margin-bottom:8px}
:root:root:root body.root-directory.reading-bar-stuck .root-breadcrumb{visibility:visible;font-size:17px;align-items:center}
:root:root:root body.root-directory.reading-bar-stuck .root-breadcrumb h1{font:inherit;margin:0}
:root:root:root body.root-directory.reading-bar-stuck .root-toolbar-reading{flex-shrink:0;margin-left:6px}
:root:root:root body.root-directory .reading-actions-dock>.reading-action-row>.word-usage-link{grid-column:5;grid-row:1;justify-self:end;margin:0;min-height:36px;height:auto;padding:5px 8px;font-size:13px;line-height:1.25;text-align:center;text-decoration:none;max-width:calc((100vw - var(--reading-dock-left) - var(--reading-dock-right))/2 - 32px)}
/* Book catalogs retain their chapter picker and both map destinations. */
:root:root:root body.book-directory.reading-bar-stuck main{margin:0 auto;padding-top:10px}
:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb h1{margin:0;font:inherit;color:var(--site-blue,#79b8ff)}
:root:root:root body.book-directory.reading-bar-stuck .catalog-intro{display:block;margin:0 0 18px}
:root:root:root body.book-directory.reading-bar-stuck .catalog-heading{display:block;text-align:center}
:root:root:root body.book-directory .reading-actions-dock .catalog-root-link{display:flex;align-items:center;justify-content:center;margin:0;min-height:44px;padding:6px;color:#aaa;background:transparent;border:0}
:root:root:root body.book-directory .reading-actions-dock .catalog-root-link:is(:hover,:focus-visible){color:#f8941c}
:root:root:root body.book-directory .reading-actions-dock .book-map-primary{grid-column:5;grid-row:1;justify-self:end}
:root:root:root body.book-directory .reading-actions-dock .book-map-secondary{position:absolute;left:var(--reading-pen-center,25vw);top:50%;transform:translate(-50%,-50%)}
@media(max-width:600px){:root:root:root body.book-directory .reading-actions-dock .catalog-root-link{width:44px;height:44px;padding:9px}:root:root:root body.book-directory .reading-actions-dock .catalog-root-link svg{width:26px;height:26px}:root:root:root body.book-directory .reading-actions-dock .catalog-root-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
/* No legacy controls flash in the document before their dock mounts. */
:root:root:root body.reading-bar-stuck:is(.book-directory,.root-directory) main .reading-action-row{display:none!important}
:root:root:root body.book-directory.reading-bar-stuck .catalog-intro>.catalog-root-link{display:none!important}
:root:root:root body.book-directory.reading-bar-stuck .reader-head{margin:0;gap:0}
:root:root:root body.book-directory.reading-bar-stuck #catalog-count{display:block;min-height:20px;line-height:20px}
:root:root:root body.root-directory.reading-bar-stuck main .root-toolbar>.root-toolbar-reading{visibility:hidden}
body.reading-bar-stuck:is(.book-directory,.root-directory){--reading-dock-left:calc(max(0px,(100vw - 900px)/2) + 22px);--reading-dock-right:calc(max(0px,(100vw - 900px)/2) + 22px);--reading-trail-left:calc(var(--reading-dock-left) + 92px);--reading-trail-right:calc(var(--reading-dock-right) + 52px);--reading-trail-width:calc(100vw - var(--reading-trail-left) - var(--reading-trail-right))}
@media(max-width:600px){body.reading-bar-stuck:is(.book-directory,.root-directory){--reading-dock-left:14px;--reading-dock-right:14px;--reading-trail-left:calc(var(--reading-dock-left) + 80px);--reading-trail-right:calc(var(--reading-dock-right) + 48px)}}
@media(display-mode:standalone) and (max-width:760px){body.reading-bar-stuck:is(.book-directory,.root-directory){--reading-dock-left:max(8px,env(safe-area-inset-left,0px));--reading-dock-right:max(8px,env(safe-area-inset-right,0px))}}
/* About retains staff sign-in, tab navigation and the online count. */
body.about-page.reading-bar-stuck{--reading-dock-left:calc(max(0px,(100vw - 900px)/2) + 22px);--reading-dock-right:calc(max(0px,(100vw - 900px)/2) + 22px);--reading-trail-left:calc(var(--reading-dock-left) + 92px);--reading-trail-right:calc(var(--reading-dock-right) + 52px);--reading-trail-width:calc(100vw - var(--reading-trail-left) - var(--reading-trail-right))}
:root:root:root body.about-page.reading-bar-stuck>main{padding-top:10px}
:root:root:root body.about-page.reading-bar-stuck .reader-head,:root:root:root body.about-page.reading-bar-stuck .breadcrumb-row{margin:0;gap:0;min-height:0}
:root:root:root body.about-page.reading-bar-stuck>.site-header>.staff-login-link{position:absolute;top:50%;right:var(--reading-dock-right);transform:translateY(-50%);width:44px;height:44px;margin:0;padding:6px;display:grid;place-items:center;border:0;background:transparent;box-shadow:none;color:#aaa}
:root:root:root body.about-page.reading-bar-stuck>.site-header>.staff-login-link svg{width:28px;height:28px}
:root:root:root body.about-page.reading-bar-stuck .reading-actions-dock .online-presence{position:absolute;top:50%;right:var(--reading-dock-right);bottom:auto;transform:translateY(-50%);margin:0;height:44px;display:flex;align-items:center;justify-content:flex-end;z-index:auto}
@media(max-width:600px){body.about-page.reading-bar-stuck{--reading-dock-left:16px;--reading-dock-right:16px;--reading-trail-left:calc(var(--reading-dock-left) + 80px);--reading-trail-right:calc(var(--reading-dock-right) + 48px)}:root:root:root body.about-page.reading-bar-stuck>.site-header>.staff-login-link{width:40px}:root:root:root body.about-page.reading-bar-stuck>.site-header>.staff-login-link svg{width:26px;height:26px}}
@media(display-mode:standalone) and (max-width:760px){body.about-page.reading-bar-stuck{--reading-dock-left:max(8px,env(safe-area-inset-left,0px));--reading-dock-right:max(8px,env(safe-area-inset-right,0px))}}
/* The book name itself stays centered; the count does not push it sideways. */
:root:root:root body.book-directory.reading-bar-stuck .reader-head,:root:root:root body.book-directory.reading-bar-stuck .breadcrumb-row{min-height:0;margin:0;gap:0}
:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb{left:var(--reading-dock-left)!important;right:var(--reading-dock-right)!important;width:auto!important;max-width:none!important;overflow:visible;pointer-events:none;display:flex;align-items:center;justify-content:center}
:root:root:root body.book-directory.reading-bar-stuck .catalog-bar-heading{position:relative;width:max-content;flex:none;direction:ltr}
:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb #catalog-title{font-size:24px;line-height:1.2;font-weight:500;color:#fff;white-space:nowrap;text-align:center;margin:0;max-width:calc(100vw - var(--reading-dock-left) - var(--reading-dock-right) - 184px);overflow:hidden;text-overflow:ellipsis}
:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb #catalog-count{position:absolute;left:calc(100% + 8px);top:auto;bottom:0;transform:none;display:block;min-height:0;margin:0;font-size:12px;line-height:1.2;white-space:nowrap;color:#aaa;max-width:calc(50vw - var(--reading-dock-right) - 52px - 50%);overflow:hidden}
:root:root:root body.book-directory.reading-bar-stuck #catalog-status:empty{display:none}
@media(max-width:600px){:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb #catalog-title{font-size:22px;max-width:calc(100vw - var(--reading-dock-left) - var(--reading-dock-right) - 160px)}:root:root:root body.book-directory.reading-bar-stuck .passage-breadcrumb #catalog-count{left:calc(100% + 6px);font-size:11px;max-width:calc(50vw - var(--reading-dock-right) - 46px - 50%)}}
