/* Shared palette for the app and publication readers. */
:root{--green:#3f6597;--ink:#28323d;--muted:#697586;--line:#dce2e9;--accent:#3f6597;--surface:#fff;--surface-soft:#f0f4f9;color-scheme:light}
body{color:var(--ink)}body:not(.jwac){background:#f4f6f8}a{color:#486d9e}a:hover{color:#294e80}h1,h2,h3,h4{color:#28323d}h1{font-weight:700}.eyebrow,.contextTtl{color:#61768e}
button,input,select,textarea{accent-color:#486d9e}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a8bdd7;outline-offset:3px}button:hover{background:#eef3f9}.primary{background:#3f6597!important;border-color:#3f6597!important;color:#fff!important}.primary:hover{background:#34577f!important}
.sidebar{background:#f9fafc;border-right-color:#dde3eb}.brand{color:#35577e}.mark{background:#3f6597}.sidebar nav button{border-radius:8px;color:#5c6b7c}.sidebar nav button.active{background:#e5edf7;color:#355b89;box-shadow:inset 3px 0 #4e75a5}.sidebar nav button:hover{color:#355b89;background:#edf2f8}.sidebar nav svg{color:inherit}
.paper,.side-card{border-color:#e0e5ec;box-shadow:0 2px 7px #243b5305}.top{border-bottom-color:#dce2e9}.paper>h2,.panel>h2{padding-bottom:.65rem;border-bottom:1px solid #e4e9f0}.daily-text{border-top:3px solid #6b8db8}.family-week-table th{background:#f2f5f9;color:#566779}progress{accent-color:#557ca9}progress::-webkit-progress-value{background:#557ca9}progress::-webkit-progress-bar{background:#e6ebf1}
.bible-book{background:#5b718e}.bible-book[data-book-group="law"]{background:#435d7f}.bible-book[data-book-group="history"]{background:#6d819c}.bible-book[data-book-group="poetry"]{background:#516a8d}.bible-book[data-book-group="prophets"]{background:#425b7d}.bible-book[data-book-group="letters"]{background:#647c9c}
.meeting-media,.meeting-study-audio{background:#f3f6fa;border-color:#d8e2ee}.meeting-media h3{color:#35577e}.meeting-audio-bar{background:#edf2f7}.meeting-audio-bar button{background:#486d9e}.meeting-audio-time{color:#566b83}.sfg-toc button{border-left-color:#93abc8;background:#fff}.sfg-toc button:hover{background:#eff4fa}.sfg-results button{border-color:#dce4ee;background:#fff}.sfg-results strong{color:#426898}.sfg-result-focus{background:#e7effa;border-left:3px solid #7196c3;padding-left:.65rem}
body.jwac{background:#fff;color:#303943}body.jwac .study-site-nav{background:#f0f3f7;border-bottom:1px solid #dce3eb}body.jwac .study-site-nav a{color:#456c9c}body.jwac h1,body.jwac h2,body.jwac h3{color:#334d6e}body.jwac .textbook-progress,body.jwac .textbook-mark{background:#edf2f8;color:#3f6597;border-color:#d8e2ef}body.jwac .textbook-download{border-color:#dce3ed;background:#f5f7fa}body.jwac .textbook-download a{color:#3f6597}.text-size-toggle,.text-size-panel{color:#426898;border-color:#dce3ed;background:#fff;box-shadow:0 4px 18px #273e5910}
@media(max-width:720px){.sidebar nav button.active{box-shadow:inset 0 -3px #4e75a5}.paper,.side-card{box-shadow:none}}

/* SJ navigation: a continuous four-column index inspired by the reference. */
#reader{max-width:58rem;margin:0 auto 2rem;padding:clamp(1rem,3vw,2.5rem);background:#fff;border:1px solid #e0e5eb;border-radius:5px;box-shadow:0 2px 8px #253b5510}
#reader .bible-book-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;margin:0}
#reader .bible-book-section h2{font-family:inherit;font-size:1rem;font-weight:600;color:#697586;margin:0 0 .8rem;line-height:1.5}
#reader .bible-book-section .bible-book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:transparent}
#reader .bible-book-tile{position:relative;aspect-ratio:auto;min-height:4.15rem;padding:.8rem .75rem;border:0;border-radius:0;box-shadow:none;background:#416b9e;color:#fff;font-size:1rem;font-weight:500;line-height:1.4;text-align:left;overflow:visible;overflow-wrap:anywhere;word-break:normal;transition:background .15s}
#reader .bible-book-tile[data-book-group=history]{background:#6f94bf}
#reader .bible-book-tile[data-book-group=poetry],#reader .bible-book-tile[data-book-group=letters]{background:#527fb4}
#reader .bible-book-tile:hover{background:#355c8b}
#reader .bible-book-tile:focus-visible{outline:3px solid #b6cceb;outline-offset:-3px;z-index:1}
#reader .bible-book-name{display:block;max-width:100%;white-space:normal}
#reader .bible-book-short{display:none}
#reader .offline-library{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;margin:0 0 1.8rem;padding:1rem;background:#f3f6fa;border:1px solid #dce4ee;border-radius:5px;box-shadow:none}
#reader .offline-library h2{flex:1 1 13rem;margin:0;padding:0;border:0;font-size:1rem}
#reader .offline-library>p{flex:1 1 100%;margin:.2rem 0;font-size:.8rem}
#reader .offline-library-actions button{font-size:.85rem;padding:.5rem .9rem}
#reader .offline-library progress{width:100%}
#bibleChapterDialog{border-radius:6px;border-color:#d4dfed;padding:1.4rem;box-shadow:0 12px 45px #243c5b26}
#bibleChapterPickerTitle{color:#416b9e}
.bible-chapter-options{gap:4px}
.bible-chapter-tile{border-radius:2px;background:#edf2f8;border-color:#dce5f0;color:#3d6596;min-height:2.8rem}
.bible-chapter-tile:hover{background:#dce8f6}
@media(max-width:700px){#reader{padding:.9rem;margin-bottom:1rem}#reader .bible-book-groups{gap:1.8rem}#reader .bible-book-tile{min-height:3.6rem;padding:.65rem .4rem;font-size:.875rem}#reader .bible-book-section h2{font-size:.95rem}#reader .offline-library{padding:.85rem;margin-bottom:1.3rem}}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.compact-search{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:0;max-width:40rem;margin:0 auto;padding:.65rem 0;background:#f4f6f8eF;backdrop-filter:blur(12px)}.compact-search input{flex:1;min-width:0;border-radius:0;padding:.5rem .7rem;height:2.35rem;font-size:.9rem}.compact-search select{width:5rem;flex:none;border-radius:6px 0 0 6px;border-right:0;height:2.35rem;padding:.4rem .6rem;font-size:.85rem}.compact-search button{width:2.6rem;border-left:0;border-radius:0 6px 6px 0;height:2.35rem;padding:0;font-size:1.3rem}.top>select,.top .network-mode select,.auth-top>select,.auth-top [data-network-mode]{width:8rem!important;max-width:8rem!important;height:2.55rem!important;padding:.45rem .65rem!important;font-size:.85rem!important;box-sizing:border-box}.top{align-items:flex-start}.top .network-mode{align-items:flex-start}.top .network-mode small{max-width:12rem}#textbookPane{background:#fff;border:1px solid #e0e5ec;border-radius:6px;padding:.7rem}#textbookFrame{width:100%;min-height:70vh;border:0;display:block}#textbookFrameStatus:empty{display:none}.sfg-article a{color:#426fa6;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}.sfg-article h1{font-family:inherit}.sfg-article [id]{scroll-margin-top:5rem}.sfg-scripture-popup{max-height:75dvh;overflow:auto}.sfg-scripture-popup p{line-height:1.8}@media(max-width:700px){.compact-search{margin:0;padding:.5rem 0}.top>select,.top .network-mode select{width:7.2rem!important;max-width:7.2rem!important}#textbookPane{padding:.3rem}.top{gap:.6rem}.top .network-mode small{font-size:.65rem}}
