/* Shared mobile-app language, with room to study alongside the desktop reader. */
:root{--study-width:460px;--reader-header-height:88px}
body .app,body.study-open .app{display:block;grid-template-columns:1fr}
body .sidebar,body.study-open .sidebar,#menu,#book-select,#chapter-select,#mobile-tool-room{display:none!important}
body .workspace{display:block;width:100%;max-width:1000px;margin:auto}
body #main,body.study-open #main{padding:0 clamp(24px,5vw,80px) 110px;min-width:0}
body.study-open #main{margin-right:var(--study-width)}
body .reading-page,body.study-open .reading-page,body:has(.study-panel:not([hidden])) .reading-page{max-width:880px;width:100%;margin:auto;padding:24px 0 40px}
body .reader-toolbar{max-width:1000px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin:28px auto 16px}
.reader-toolbar .location{display:block;width:auto}
.unified-passage{display:flex;align-items:center;justify-content:center;gap:14px;min-height:52px;padding:12px 22px;border-radius:32px;border:1px solid #e4e5dd;background:#faf9f6;color:#252826;box-shadow:0 4px 20px #30353605}
.unified-passage:hover,.unified-passage[aria-expanded=true]{background:#f0f1eb;border-color:#929f78}
.passage-version{font-size:12px;letter-spacing:1.2px;color:#6b7067}
.unified-passage .picker-chevron{border-color:#586649}
.reader-toolbar .toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.reader-toolbar .toolbar-actions>button{background:transparent;border-color:transparent;color:#62695d;font-size:13px;padding:0 10px}
#reader-sync{max-width:1000px;margin:0 auto;font-size:12px}
body .study-launcher{left:50%;right:auto;transform:translateX(-50%);bottom:24px;width:auto;min-width:176px;height:52px;min-height:52px;padding:0 22px;gap:15px;border:1px solid #dedfd5;border-radius:32px;background:#faf9f6f5;color:#303536;box-shadow:0 6px 28px #2528261c;backdrop-filter:blur(14px);transition:left .2s,box-shadow .2s}
body .study-launcher:hover{transform:translateX(-50%);background:#f4f5ee;color:#303536;box-shadow:0 8px 30px #25282624}
.study-launcher-word{font:600 14px/1.2 Arial,sans-serif;letter-spacing:0}
.study-launcher-chevron{font-size:24px;color:#60704c;line-height:1;transform:rotate(-90deg)}
body.study-open .study-launcher{left:calc((100% - var(--study-width))/2)}
.study-launcher[aria-expanded=true] .study-launcher-chevron{transform:rotate(90deg)}
body .study-panel{--ink:#faf9f6;--muted:#bcc1b6;--olive:#cbd6b8;--line:#ffffff20;--divider:#929f78;position:fixed;z-index:40;top:var(--reader-header-height);right:0;bottom:0;width:var(--study-width);max-width:none;height:auto;max-height:none;padding:0;border:0;border-left:1px solid #7a866d;border-radius:0;background:#303536;color:#faf9f6;box-shadow:-12px 0 36px #25282614;overflow:visible;animation:study-enter .2s ease-out}
body .study-panel[hidden]{display:none}
body .study-top{background:transparent;padding:18px 20px 0}
.study-top .panel-header{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.study-panel .panel-header h2{font:600 14px/1.3 Arial,sans-serif;color:#cbd6b8;margin:0;white-space:nowrap}
.study-panel #study-reference{font:14px/1.3 Arial,sans-serif;margin:0;color:#c0c5bc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
#close-study{background:transparent;border:0;color:#faf9f6;width:44px;height:44px;font-size:26px;flex:none}
.study-top .panel-header>span{color:#8a9283}
.study-tabs{gap:4px;padding:10px 0 14px;margin:0;border-bottom:1px solid #ffffff1a}
.study-tabs button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:65px;border:0;border-radius:12px;padding:10px 3px;color:#b5bcb2;font:600 12px/1.3 Arial,sans-serif}
.study-tabs button svg{width:22px;height:22px;flex-shrink:0}
.study-tabs button[aria-selected=true],.study-tabs button:hover{background:#cbd6b815;color:#cbd6b8;border:0}
body .study-scroll{padding:24px;max-height:none;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#89947a #303536}
.study-panel button:focus-visible,.study-panel a:focus-visible{outline-color:#cbd6b8}
.study-panel select{background:#3c4241;color:#faf9f6;border-color:#737d68;max-width:65%}
.study-panel button:not(.passage-link):not(.icon):not([role=tab]){color:inherit}
.study-panel .word-choices button,.study-panel .entry button{background:#414742;border-color:#69765c}
.study-panel .reflection,.study-panel .tag{background:#cbd6b810;color:#cbd6b8}
.study-panel a,.study-panel .lexicon-back{color:#cbd6b8}
.study-panel .lexicon-back{background:transparent;border:0;padding-left:0}
.study-panel .commentary-title{font:30px/1.24 Georgia,serif;margin:4px 0 16px}
.study-panel .commentary-prose{font:18px/1.8 Georgia,serif;color:#efefe8}
.saved-verse-prose{white-space:pre-wrap}
.study-panel .study-scripture{color:#cbd6b8;border-left:2px solid #929f78;padding-left:14px;font:18px/1.7 Georgia,serif}
.study-panel .all-sources a{display:block;margin:8px 0}
.more-study-tool{position:relative;display:block;width:100%;text-align:left;padding:18px 35px 18px 16px;background:#ffffff08;border:1px solid #ffffff12;border-radius:14px;margin:14px 0}
.more-study-tool:hover{background:#cbd6b812}
.more-study-tool strong,.more-study-tool span{display:block}.more-study-tool strong{font-size:15px}.more-study-tool span{font-size:13px;color:#bdc4b6;line-height:1.5;margin-top:7px}
.more-study-tool .more-tool-arrow{position:absolute;right:16px;top:21px;color:#cbd6b8;font-size:22px}
#study-resize{position:absolute;left:-8px;top:0;bottom:0;width:16px;cursor:col-resize;touch-action:none;z-index:2;display:flex;align-items:center;justify-content:center}
#study-resize span{height:44px;width:4px;border-radius:4px;background:#adb99a}
#study-resize:hover,#study-resize:focus-visible{background:#929f7833;outline:0}
.study-resizing,.study-resizing *{cursor:col-resize!important;user-select:none!important}
.study-resizing .study-launcher{transition:none}
.unified-picker{left:50%!important;transform:translate(-50%,-50%);width:460px!important;max-width:calc(100vw - 28px);height:650px;background:#faf9f6;z-index:70;animation:none;border:1px solid #dcded5;box-shadow:0 18px 100px #161c2455;border-radius:22px}
.unified-picker .picker-heading{padding:24px 22px 14px;background:#faf9f6;align-items:center}
.unified-picker .picker-title{font:28px Georgia,serif}
.picker-translation{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;padding:0 22px 18px;color:#6b7067}.picker-translation strong{color:#586649;font-size:12px}
.picker-selection{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:8px;padding:0 22px 20px}
.picker-selection button{background:#f0f1ed;border:1px solid transparent;min-width:0;border-radius:12px;text-align:left;padding:10px}
.picker-selection span{display:block;font-size:11px;color:#6b7067;margin-bottom:6px}.picker-selection strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picker-selection button[aria-pressed=true]{background:#e9ecdf;border-color:#929f78}
.picker-selection button:disabled{opacity:.4}
.unified-picker .picker-results{padding:0 22px 16px}
.picker-tile{background:#f1f2ee;border:1px solid transparent;border-radius:10px;min-height:44px;padding:10px;font-size:14px;text-align:left}
.picker-chapter-grid .picker-tile{text-align:center}
.picker-tile:hover{background:#e7e9df}
.unified-picker .picker-results button[aria-current=true]{background:#e7ebdf;border-color:#929f78;color:#303536}
.picker-footer{padding:16px 22px;background:#faf9f6;border-top:1px solid #e0e2d9;flex-shrink:0}
.picker-read{width:100%;text-align:left;background:#303536;color:#faf9f6;border:0;border-radius:12px;padding:14px 16px;min-height:48px}
.picker-read:hover{background:#424a3f;color:#faf9f6}
@media(min-width:701px) and (max-width:1000px){body.study-open #main{padding-left:24px;padding-right:24px}.reader-toolbar .toolbar-actions{gap:0}.study-panel .commentary-prose{font-size:17px}}
@media(max-width:700px){
 :root{--reader-header-height:var(--mobile-header-height)}
 body .reader-toolbar{display:none}
 body #main,body.study-open #main{margin-right:0;padding:12px 22px calc(var(--mobile-nav-height) + 90px)}
 body .study-panel{top:var(--mobile-header-height);bottom:var(--mobile-nav-height);right:0;width:100%;height:auto;border-left:0;z-index:45}
 body.study-open .study-launcher{display:none}
 body .study-launcher{left:50%;bottom:calc(var(--mobile-nav-height) + 12px);height:48px;min-height:48px}
 #study-resize{display:none}
 .study-panel .study-top{padding:12px 16px 0}.study-panel .study-scroll{padding:22px}
 .unified-picker{height:660px;max-height:calc(100dvh - 32px);border-radius:18px}
 .picker-selection{padding:0 18px 16px}.picker-translation{padding:0 18px 18px}.unified-picker .picker-results{padding:0 18px 16px}
}
@media(prefers-reduced-motion:reduce){body .study-panel{animation:none}body .study-launcher{transition:none}}
body .study-launcher[aria-pressed=true]{background:#faf9f6f5;color:#303536;box-shadow:0 6px 28px #2528261c}
.study-tabs button{flex:1 1 0}
.study-panel .timeline-current,.study-panel .timeline-detail,.study-panel .timeline-wisdom,.study-panel .timeline-era{background:#39403b;color:#faf9f6;border-color:#67735c}
.study-panel .timeline-era[aria-pressed=true],.study-panel .timeline-wisdom[aria-pressed=true]{background:#4a5542;color:#faf9f6}
.study-panel .timeline-marker{background:#cbd6b8;color:#303536}
@media(max-width:700px){
 .mobile-passage{background:#faf9f6;color:#303536;border:1px solid #e1e3d9;border-radius:30px;height:44px;flex-direction:row;gap:10px;padding:8px 14px;margin:0 8px}
 .mobile-passage:hover,.mobile-passage[aria-expanded=true]{background:#f0f2e9;color:#303536}
 .mobile-passage-line{font:600 14px/1.2 Arial,sans-serif}
 .mobile-passage .picker-chevron{border-color:#586649}
 .mobile-passage-caption{font-size:10px;color:#62695d;letter-spacing:.7px}
}
.picker-selection button,.picker-selection button[aria-pressed=true]{color:#303536}
/* Keep the passage picker visible below the site header as the reader scrolls. */
body .reader-toolbar{
 position:sticky;top:var(--reader-header-height);z-index:5;
 justify-content:center;min-height:68px;margin:16px auto 10px;padding:8px 48px;
 background:transparent;pointer-events:none;
}
.reader-toolbar button{pointer-events:auto}
.reader-toolbar .toolbar-actions{display:none}
#desktop-reader-tools{position:absolute;right:0;top:12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;border:0;background:transparent;color:#62695d}
#desktop-reader-tools:hover{background:#e9ecdf}
.mobile-passage-row,#mobile-menu-toggle,#study-height-resize,.reader-word-toggle,.mobile-chapter-number{display:none}
.reader-word-dialog{background:#faf9f6;color:#303536}
.reader-word-dialog .original-word{font:38px Georgia,serif;color:#586649;margin:20px 0 8px}
.reader-word-dialog .translit,.reader-word-dialog a,.reader-word-dialog .lexicon-back{color:#586649}
.reader-word-dialog .lexicon-back{border:0;background:transparent;padding-left:0}
.reader-word-dialog h4{margin:22px 0 8px}.reader-word-dialog p{line-height:1.7}
.reader-word-dialog .entry{border-top:1px solid #dedfd5;margin-top:20px}
@media(max-width:700px){
 :root{--mobile-nav-height:0px;--mobile-header-height:calc(72px + env(safe-area-inset-top,0px));--study-height:50dvh}
 .mobile-nav-bar{display:none!important}
 body .mobile-header .mobile-brand{display:flex;font-size:31px;margin:0 auto 0 0}
 .mobile-header{padding-left:20px;padding-right:12px}
 .mobile-reader-back{display:none!important}
 .mobile-header .brand-subtitle{font-size:9px;letter-spacing:1px}
 .mobile-header .mobile-icon{width:40px;min-width:40px}
 .mobile-passage-row{display:flex;justify-content:center;align-items:center;position:sticky;top:var(--mobile-header-height);z-index:20;background:#faf9f6;min-height:68px;padding:10px 20px}
 .home-view .mobile-passage-row,.giving-view .mobile-passage-row,.privacy-view .mobile-passage-row,.mobile-personal-open .mobile-passage-row{display:none}
 body .mobile-passage{flex:0 1 auto;margin:0;min-height:48px;height:auto;padding:13px 20px}
 .mobile-passage-line{font-size:14px;gap:12px}.mobile-passage-caption{font-size:11px}
 body .reader-toolbar{display:none}
 body #main,body.study-open #main{padding:14px 23px 110px;margin:0}
 #reader-sync{display:none}
 .reading-page>.eyebrow{font-size:10px;letter-spacing:1.4px}
 body .reading-page{padding-top:10px}
 .reading-page h1{font-size:36px;margin:16px 0 10px}
 .mobile-chapter-number{display:block;font-size:12px;color:#6b7067;margin:0 0 20px}
 .reader-word-toggle{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600;margin:16px 0 6px}
 .reader-word-toggle input{appearance:none;width:42px;height:25px;min-height:25px;border:0;border-radius:20px;background:#c1c6bb;position:relative;padding:0;cursor:pointer;transition:background .15s}
 .reader-word-toggle input:before{content:'';position:absolute;width:21px;height:21px;left:2px;top:2px;border-radius:50%;background:#faf9f6;transition:transform .15s}
 .reader-word-toggle input:checked{background:#687854}.reader-word-toggle input:checked:before{transform:translateX(17px)}
 .reader-intro .reader-word-toggle,.reader-intro .mobile-chapter-number{display:none}
 #reading-hint{font-size:12px;line-height:1.55;margin:6px 0 26px}
 #book-intro-link{display:none}
 .verse{font-size:var(--reader-size);line-height:1.8;margin:0 0 28px;padding-left:28px}
 .verse .word{text-decoration-color:#929f7855}
 body .study-panel{top:auto;bottom:0;width:100%;height:var(--study-height);max-height:calc(100dvh - var(--mobile-header-height) - 68px);border:0;border-radius:24px 24px 0 0;box-shadow:0 -8px 32px #2528261c;overflow:hidden;animation:study-mobile-enter .25s ease-out}
 #study-height-resize{display:flex;align-items:center;justify-content:center;min-height:38px;flex:0 0 38px;width:100%;cursor:ns-resize;touch-action:none}
 #study-height-resize span{width:48px;height:5px;background:#aeb99c;border-radius:8px}
 #study-height-resize:focus-visible{outline:2px solid #cbd6b8;outline-offset:-6px}
 .study-panel .study-top{padding:0 16px}
 .study-panel .study-scroll{padding:22px 22px max(24px,env(safe-area-inset-bottom))}
 .study-full .reading-page{visibility:hidden}
 body .study-launcher{bottom:calc(14px + env(safe-area-inset-bottom));left:50%;min-width:156px;padding:0 18px;height:54px}
 .study-launcher-word{font-size:14px}
 #mobile-menu-toggle{display:flex;align-items:center;justify-content:center;position:fixed;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:55;width:56px;height:56px;border-radius:50%;border:1px solid #aeb99c88;background:#303536;color:#faf9f6;font:34px/1 Arial,sans-serif;padding:0;box-shadow:0 5px 20px #25282630}
 .study-open #mobile-menu-toggle{display:none}
 #mobile-navigation{margin:0;position:fixed;inset:auto 14px calc(80px + env(safe-area-inset-bottom)) auto;width:250px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 110px);padding:10px;border-radius:24px;border:1px solid #dce0d5;background:#faf9f6;overflow-y:auto}
 #mobile-navigation .dialog-heading{margin:0;padding:4px 8px;align-items:center}
 #mobile-navigation h2{font:11px Arial,sans-serif;letter-spacing:1.5px;text-transform:uppercase;color:#69765c}
 #mobile-navigation-items button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:0;background:transparent;color:#303536;border-radius:14px;padding:9px 12px;min-height:46px;font-size:14px}
 #mobile-navigation-items button:hover{background:#e9eddf}
 #mobile-navigation-items svg{width:26px;height:26px;background:#cbd6b835;border-radius:50%;padding:3px;box-sizing:content-box;flex-shrink:0}
 #mobile-navigation-items button:nth-last-child(2){margin-top:7px;border-top:1px solid #dedfd5;border-radius:0}
 dialog[data-mobile-surface][open]{bottom:0;padding-bottom:100px;height:calc(100dvh - var(--mobile-header-height))}
 .mobile-personal-open #mobile-menu-toggle{display:flex}
 .unified-picker{top:auto!important;bottom:0;left:0!important;transform:none;width:100%!important;max-width:100%;height:calc(100dvh - 28px);max-height:calc(var(--mobile-viewport-height,100dvh) - 28px)!important;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 .mobile-scroll-locked .mobile-passage-row{visibility:hidden}
 .focus-mode .reader-word-toggle,.focus-mode .mobile-chapter-number{display:none}
}
@keyframes study-mobile-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body .study-panel{animation:none}}
