:root{--cream:#f7f0e4;--paper:#fffdf7;--ink:#2f312d;--sepia:#745e41;--gold:#b38b49;--rule:#dacbaa;--small:#8e7a5b;--font-multiplier:1;color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 52% 8%,#fcf7ed 0%,#eee2d0 75%,#e6d6bd 100%);font-family:Georgia,'Times New Roman',serif;color:var(--ink);min-height:100vh}button,input{font:inherit}button{cursor:pointer}a{color:inherit}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;z-index:100}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 max(25px,calc((100vw - 1300px)/2));border-bottom:1px solid #dfd2bd;background:rgba(255,252,246,.93);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:11px;font-family:Georgia,serif;font-size:16px;letter-spacing:.11em;white-space:nowrap;font-weight:500}.brand b{color:#987344}.brand small{display:block;font-family:Arial,sans-serif;font-weight:500;font-size:8px;letter-spacing:.24em;color:#8c7e69;margin-top:5px}.brand-symbol{border:1px solid #bfa47c;border-radius:50%;color:#aa7f45;font-size:20px;width:35px;height:35px;display:grid;place-items:center}.top-actions{display:flex;align-items:center;gap:9px}.pill,.glyph{border:1px solid #d9ccb6;color:#544e41;background:#fffaf1;border-radius:24px;font:600 12px Arial,sans-serif;letter-spacing:.03em;min-height:36px;padding:8px 14px;text-decoration:none;display:flex;align-items:center;gap:7px}.glyph{border-radius:10px;padding:8px 11px}.pill:hover,.glyph:hover,.turn-button:hover{background:#f2e4ca}.main{max-width:1310px;margin:auto;padding:18px 22px 104px}.eyebrow{display:flex;justify-content:space-between;margin:0 15px 16px;color:#91754d;font:700 10px Arial,sans-serif;letter-spacing:.21em}.book-surround{position:relative;max-width:1180px;margin:auto;filter:drop-shadow(0 24px 24px #69583b37)}.book-open{position:relative;height:min(730px,calc(100vh - 255px));min-height:590px;display:grid;grid-template-columns:1fr 1fr;background:#fffdfa;border:1px solid #d2b88f;border-radius:4px 12px 12px 4px;box-shadow:0 0 0 9px #6b5540,0 0 0 11px #b38f59,0 10px 36px #3e352c2a;overflow:hidden}.book-open::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,transparent 46%,#b7a78a24 48.5%,#33200c18 49.7%,#fff7e03d 50.3%,#af97742c 51.4%,transparent 54%);z-index:3}.leaf{position:relative;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:51px 51px 55px;scrollbar-width:thin;scrollbar-color:#d9c7a7 transparent;background-color:#fffbf3;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 29px,#7a644808 30px);transform-origin:center}.leaf-left{box-shadow:inset -18px 0 26px -20px #49372355;border-right:1px solid #ddceb5}.leaf-right{box-shadow:inset 18px 0 28px -18px #43311e3b}.leaf::after{content:"";position:absolute;bottom:15px;right:29px;width:38px;height:18px;background:linear-gradient(135deg,transparent 55%,#eadfcd 56%,#fff5df 75%);opacity:.56;clip-path:polygon(40% 0,100% 0,100% 100%)}.leaf.page-enter-forward{animation:forward .26s ease both}.leaf.page-enter-backward{animation:backward .26s ease both}@keyframes forward{from{opacity:.64;transform:perspective(900px) rotateY(-6deg) translateX(10px)}to{opacity:1;transform:none}}@keyframes backward{from{opacity:.64;transform:perspective(900px) rotateY(6deg) translateX(-10px)}to{opacity:1;transform:none}}.seam{position:absolute;left:50%;top:2px;bottom:2px;width:1px;background:#8b6b4338;z-index:4;pointer-events:none}.folio-top{display:flex;align-items:center;justify-content:space-between;font:700 9px Arial,sans-serif;letter-spacing:.15em;color:#92764a;min-height:13px;border-bottom:1px solid #ded0b5;padding-bottom:14px;margin-bottom:30px}.folio-top span:last-child{font-weight:400}.folio-foot{position:absolute;bottom:21px;left:51px;right:51px;display:flex;align-items:center;justify-content:space-between;font:10px Arial,sans-serif;letter-spacing:.12em;color:#967e58}.folio-foot b{font-family:Georgia,serif;color:#8e6e3c;font-size:13px}.leaf h2{font-weight:400;font-size:clamp(25px,2.3vw,35px);line-height:1.08;letter-spacing:-.025em;margin:7px 0 22px;color:#3f392e}.leaf .subheading{font-family:Georgia,serif;font-style:italic;color:#8c785a;margin-top:-9px;margin-bottom:22px;font-size:16px}.leaf .leaf-body{font-size:calc(17px * var(--font-multiplier));line-height:1.67;max-width:700px}.leaf .leaf-body p{margin:0 0 17px}.leaf .leaf-body p:first-of-type:first-letter{font-weight:500}.leaf .leaf-body blockquote{margin:22px 0;padding:17px 20px;background:#f6eddf;border-left:3px solid #b69660;font-style:italic;font-size:calc(17px * var(--font-multiplier));line-height:1.6}.leaf .exercise-head{font:700 10px Arial,sans-serif;letter-spacing:.22em;color:#99733e;margin:24px 0}.write-lines{margin-top:24px}.write-lines span{font:700 9px Arial,sans-serif;letter-spacing:.14em;color:#9b8767}.write-lines div{border-bottom:1px solid #ccb994;height:22px}.leaf .small-ornament{font-size:24px;color:#c3a36c;margin:16px 0}.leaf-illustration{height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:22px 0}.cover-leaf{padding:0;background:#fdfaf4;background-image:none}.cover-layout{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:40px 50px;background:linear-gradient(140deg,#fffdf8,#f3e8d5)}.cover-layout img{width:min(78%,335px);max-height:56%;object-fit:contain;margin:auto;box-shadow:0 6px 23px #7f63332a;border:1px solid #dac9ac}.cover-kicker{font:700 10px Arial,sans-serif;letter-spacing:.23em;color:#987b4a;margin:18px 0}.cover-layout h1{font-weight:400;font-size:31px;line-height:1.08;letter-spacing:-.02em;margin:0 0 9px}.cover-layout h1 em{font-size:44px;color:#a5793a;font-weight:normal}.cover-layout p{font-style:italic;font-size:16px;color:#88785a;max-width:340px;margin:10px auto}.cover-flourish{color:#bf9d60;letter-spacing:.8em;margin-top:18px}.divider-leaf{padding:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(155deg,#fdf9ef 0%,#f3e7d3 88%)}.divider-frame{margin:32px;align-self:stretch;flex:1;border:1px solid #cdb68e;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;outline:1px solid #e4d5bc;outline-offset:-10px}.divider-kicker{font:700 10px Arial,sans-serif;letter-spacing:.22em;color:#94733f;margin-bottom:30px}.divider-leaf h2{font-size:clamp(30px,2.7vw,41px);margin:10px 0 18px;text-wrap:balance}.divider-leaf .divider-subtitle{color:#896f4b;line-height:1.5;font-style:italic;font-size:18px}.divider-ornament{font-size:34px;color:#b79354}.toc-item{display:flex;align-items:center;text-align:left;gap:12px;width:100%;border:0;border-bottom:1px solid #e3d7c4;background:transparent;padding:15px 0;color:inherit}.toc-item:hover{background:#f8efdf}.toc-roman{font-size:12px;letter-spacing:.09em;color:#a17e47}.toc-item strong{display:block;font:700 14px Georgia,serif}.toc-item small{display:block;margin-top:5px;font:11px Arial,sans-serif;color:#8a785b}.toc-item span:nth-child(2){flex:1}.toc-item i{font:12px Georgia,serif;color:#aa8857}.toc-hint{font:12px/1.6 Arial,sans-serif;color:#86745b;margin-top:20px}.book-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin:26px auto 0}.turn-button{background:#fffcf5;border:1px solid #caba9e;padding:10px 20px;border-radius:30px;color:#665236;display:flex;gap:10px;align-items:center;font:600 12px Arial,sans-serif;min-height:42px;box-shadow:0 3px 7px #7c65351a}.turn-button:disabled{opacity:.33;cursor:not-allowed}.turn-button span:first-child{font-size:18px}.page-indicator{min-width:150px;text-align:center;font:700 12px Arial,sans-serif;color:#6e5a3b}.page-indicator small{display:block;font-size:10px;color:#958269;margin-top:3px;font-weight:400}.progress-track{height:3px;background:#d6c8b1;margin-top:8px;border-radius:8px;overflow:hidden}.progress-track div{height:100%;background:#aa8350;transition:width .25s}.navigation-help{text-align:center;color:#937e5f;font:11px Arial,sans-serif;line-height:1.4;margin:14px 0}.audio-dock{position:fixed;bottom:0;left:0;right:0;z-index:10;background:rgba(35,39,40,.96);border-top:2px solid #a17a46;color:#fff;display:flex;align-items:center;gap:14px;height:67px;padding:10px max(28px,calc((100vw - 1180px)/2))}.dock-cover{height:45px;width:45px;object-fit:cover;border-radius:4px}.dock-play{background:#e5c58e;border:none;border-radius:50%;width:34px;height:34px;color:#272b2b;font-size:13px;flex-shrink:0}.dock-info{display:flex;flex-direction:column;gap:4px;min-width:170px}.dock-info strong{font:600 13px Georgia,serif}.dock-info span{font:10px Arial,sans-serif;color:#cbbfae}.audio-time{font:11px Arial,sans-serif;white-space:nowrap;color:#d7d0bf}.audio-dock input[type=range]{flex:1;accent-color:#e2c28a;height:4px;min-width:60px}.player-inner{margin:24px 0 12px;border-radius:12px;background:linear-gradient(135deg,#29313a,#17212b);color:#fff;padding:22px;display:flex;gap:15px;align-items:center;min-width:0;box-shadow:0 15px 29px #25324122}.player-inner img{width:88px;height:88px;object-fit:cover;border-radius:4px}.player-label{font:700 10px Arial,sans-serif;letter-spacing:.18em;color:#cdb88f;margin-bottom:10px}.player-inner h3{font-size:19px;margin:0 0 12px;font-weight:400}.inline-play{border:1px solid #dec089;border-radius:25px;background:transparent;color:#f5e4c2;padding:8px 20px;font:12px Arial,sans-serif}.player-link{font:11px Arial,sans-serif;color:#806844;margin:20px 0;line-height:1.6;display:block;overflow-wrap:anywhere}.page-note{margin-top:25px;padding:14px 18px;background:#f6eee0;border-left:2px solid var(--gold);font:12px/1.65 Arial,sans-serif;color:#74644c}.prayer-body{font-style:normal;line-height:1.76!important}.prayer-body p{margin-bottom:13px!important}.prayer-body p:nth-child(4n){color:#826438}.back-leaf{background:#f5ead7!important}.back-panel{border:1px solid #d0b58a;height:100%;padding:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.back-panel h2{font-weight:400;font-size:34px}.back-panel p{line-height:1.7;font-size:16px}.back-email{display:block;margin-top:30px;color:#795c34;font:14px Arial,sans-serif;overflow-wrap:anywhere}.back-emblem{font-size:36px;color:#ba9254}.toc-overlay[hidden]{display:none}.toc-overlay{position:fixed;z-index:30;inset:0}.toc-dimmer{position:absolute;inset:0;background:#1a1616a8}.toc-panel{position:absolute;right:0;top:0;bottom:0;max-width:430px;width:min(100%,430px);overflow-y:auto;background:#fffaf1;box-shadow:-15px 0 35px #0002;padding:35px}.toc-panel-head{display:flex;justify-content:space-between;align-items:center}.toc-panel-head .section-label{font:700 10px Arial,sans-serif;letter-spacing:.19em;color:#9f7c46}.toc-panel-head button{border:0;background:transparent;font-size:34px;color:#5f513c}.toc-panel h2{font-size:42px;font-weight:400;line-height:1;margin:32px 0 22px}.toc-panel h2 em{color:#a78049}.toc-panel>p{font:14px/1.7 Arial,sans-serif;color:#7b6b53}.toc-chapters{margin:28px 0}.toc-chapters button{width:100%;border:0;border-bottom:1px solid #dfd3bb;background:transparent;text-align:left;padding:16px 0}.toc-chapters strong{display:block;font:16px Georgia,serif;margin-bottom:4px}.toc-chapters small{color:#927956;font:12px Arial,sans-serif}.toc-email{border-top:1px solid #d4bea0;padding-top:22px;color:#9a825f;font:10px/1.8 Arial,sans-serif;letter-spacing:.08em}.toc-email a{color:#876334;letter-spacing:normal;font-size:13px}@media (max-width:820px){.topbar{height:63px;padding:0 13px}.brand{font-size:11px;gap:7px;letter-spacing:.055em}.brand small{font-size:7px;letter-spacing:.12em}.brand-symbol{width:29px;height:29px;font-size:16px}.top-actions{gap:4px}.pill,.glyph{min-height:33px;padding:7px 9px;font-size:12px}.hide-mobile{display:none}.main{padding:14px 15px 120px}.eyebrow{font-size:9px;margin:4px 5px 14px;letter-spacing:.07em}.book-surround{max-width:540px;filter:drop-shadow(0 14px 17px #59462628)}.book-open{display:block;height:calc(100dvh - 243px);min-height:550px;border-radius:4px 12px 12px 4px;box-shadow:0 0 0 5px #64533b,0 0 0 7px #bea16c,0 6px 20px #62533e30}.book-open::after,.seam{display:none}.leaf{height:100%;padding:37px 28px 45px;background-color:#fffbf4}.leaf-left{border-right:0;box-shadow:none}.leaf-right{display:none!important}.folio-top{margin-bottom:20px;padding-bottom:10px;letter-spacing:.09em}.folio-foot{left:28px;right:28px}.leaf h2{font-size:clamp(27px,6.3vw,35px);margin-bottom:21px}.leaf .leaf-body{font-size:calc(16.3px * var(--font-multiplier));line-height:1.62}.leaf .leaf-body p{margin-bottom:15px}.cover-layout{padding:19px 25px}.cover-layout img{width:min(77%,280px)}.cover-layout h1{font-size:25px}.cover-layout h1 em{font-size:34px}.cover-layout p{font-size:14px}.divider-frame{margin:22px;padding:14px}.divider-leaf h2{font-size:29px}.divider-leaf .divider-subtitle{font-size:16px}.audio-dock{gap:10px;height:60px;padding:8px 14px}.dock-cover{height:40px;width:40px}.dock-info{min-width:125px}.dock-info strong{font-size:11px}.dock-info span{font-size:9px}.audio-time{font-size:10px}.audio-dock input{min-width:40px}.player-inner{flex-direction:column;align-items:flex-start;padding:18px}.player-inner img{width:70px;height:70px}.navigation-help{max-width:330px;margin:12px auto}.book-controls{margin-top:18px}.turn-button{padding:7px 18px}.page-indicator{min-width:120px}.toc-panel{padding:24px}}@media (max-width:410px){.brand{font-size:10px}.brand-symbol{display:none}.leaf{padding:31px 22px 48px}.folio-foot{left:22px;right:22px}.leaf .leaf-body{font-size:calc(15.9px * var(--font-multiplier))}.book-open{min-height:505px;height:calc(100dvh - 223px)}.dock-cover{display:none}.audio-time{display:none}.dock-info{min-width:130px}.toc-item small{font-size:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{.topbar,.book-controls,.navigation-help,.audio-dock{display:none}.book-open{box-shadow:none;display:block;height:auto}.leaf{height:auto;overflow:visible;break-after:page}.leaf-right{display:block!important}}


/* 2026 reader revision: book occupies the usable viewport, not a scrolling document. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{display:flex;flex-direction:column;height:100dvh;min-height:0}
.topbar{flex:0 0 67px;height:67px;position:relative;z-index:11}
.main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 20px 10px;width:100%}
.book-surround{flex:1 1 auto;min-height:0;width:100%}
.book-open{height:100%;min-height:0}
.leaf{height:100%;overflow:hidden}
.book-controls{flex:0 0 54px;margin:9px auto 0}
.eyebrow{flex:0 0 auto;margin:0 14px 10px}
.navigation-help{display:none}
.audio-dock{position:relative;flex:0 0 61px;height:61px;bottom:auto}
.chapter-select{height:36px;max-width:175px;border:1px solid #d9ccb6;border-radius:22px;background:#fffaf1;color:#594c3a;padding:0 26px 0 13px;font:600 12px Arial,sans-serif;cursor:pointer;min-width:0}
.chapter-select:focus-visible,.pill:focus-visible,.turn-button:focus-visible,.folio-jump:focus-visible{outline:3px solid #ae8750;outline-offset:2px}
.folio-foot{gap:7px}.folio-foot b{margin-left:auto}.folio-jump{border:0;background:transparent;padding:0 4px;color:#8c6a39;font:700 10px Arial,sans-serif;letter-spacing:.04em;cursor:pointer;white-space:nowrap}
.leaf .leaf-body p.prayer-line{margin:0 0 9px;line-height:1.4}
.leaf .leaf-body p.prayer-line.prayer-start{margin-top:12px}
.leaf .leaf-body p.text-fragment{margin-bottom:6px;line-height:1.52}
.leaf .leaf-body p.text-fragment.fragment-tail{margin-bottom:14px}
.leaf .leaf-body .write-lines{margin-top:13px}
.leaf .leaf-body .write-lines div{height:16px}
.leaf.continuation .folio-top{margin-bottom:14px}
.leaf.continuation h2{font-size:clamp(20px,1.8vw,28px);margin-bottom:13px}
.leaf.continuation .subheading{margin-bottom:13px;font-size:13px}
.book-open .leaf .leaf-body{overflow:visible}
@media(max-width:820px){
 .topbar{height:54px;flex-basis:54px;padding:0 10px}
 .main{padding:8px 9px 6px}
 .eyebrow{margin:0 6px 7px;font-size:8px}
 .book-surround{max-width:550px;min-height:0}
 .book-open{height:100%;min-height:0;box-shadow:0 0 0 3px #64533b,0 0 0 4px #bea16c,0 4px 16px #62533e30}
 .leaf{height:100%;padding:18px 20px 34px}
 .leaf h2{font-size:clamp(21px,5.2vw,28px);margin:4px 0 11px;line-height:1.12}
 .leaf .subheading{font-size:13px;margin:0 0 11px}
 .folio-top{padding-bottom:7px;margin-bottom:12px;font-size:8px}
 .folio-foot{left:20px;right:20px;bottom:12px;font-size:8px;white-space:nowrap}
 .leaf .leaf-body{font-size:calc(15.5px * var(--font-multiplier));line-height:1.48}
 .leaf .leaf-body p{margin-bottom:11px}
 .leaf .leaf-body blockquote{margin:8px 0;padding:9px 11px;font-size:calc(15px * var(--font-multiplier));line-height:1.4}
 .leaf .leaf-body p.prayer-line{margin-bottom:6px;line-height:1.4}
 .leaf .leaf-body p.prayer-line.prayer-start{margin-top:9px}
 .leaf .exercise-head{margin:10px 0;font-size:9px}
 .write-lines{margin-top:10px}.write-lines div{height:14px}
 .book-controls{flex-basis:46px;margin:5px auto 0;gap:12px}
 .turn-button{min-height:37px;padding:6px 13px}
 .page-indicator{min-width:118px;font-size:11px}
 .audio-dock{height:54px;flex-basis:54px;padding:5px 9px;gap:7px}
 .dock-cover{height:36px;width:36px}.dock-info{min-width:110px}.audio-time{font-size:10px}
 .brand{font-size:10px;letter-spacing:0}.brand small{font-size:6px;letter-spacing:.02em}
 .brand-symbol{display:none}.top-actions{gap:5px}
 .top-actions .save-btn,.top-actions .glyph{display:none}
 .top-actions .pill{padding:7px 9px;min-height:34px}
 .chapter-select{max-width:118px;padding:0 12px 0 7px;height:34px;font-size:11px}
 .cover-layout{padding:10px 14px}.cover-layout img{width:min(72%,240px);max-height:53%}.cover-kicker{margin:7px 0;font-size:8px}.cover-layout h1{font-size:22px}.cover-layout h1 em{font-size:30px}.cover-layout p{font-size:12px;margin:4px auto}.cover-flourish{margin-top:8px}
 .divider-frame{margin:12px;padding:9px}.divider-kicker{margin-bottom:14px;font-size:8px}.divider-leaf h2{font-size:clamp(22px,6vw,30px)}.divider-leaf .divider-subtitle{font-size:13px}.divider-ornament{font-size:25px}
 .back-panel{padding:14px}
 .leaf.continuation h2{font-size:20px;margin:2px 0 9px}
 .leaf.continuation .subheading{font-size:12px;margin-bottom:8px}
}
@media(max-width:370px){.brand{font-size:9px}.chapter-select{max-width:95px}.top-actions .pill{padding:6px 7px}.leaf{padding:13px 14px 29px}.folio-foot{left:14px;right:14px}.leaf .leaf-body{font-size:calc(15px * var(--font-multiplier))}.audio-dock input{min-width:22px}}
@media(max-height:690px) and (max-width:820px){.brand small{display:none}.leaf{padding-top:12px}.folio-top{margin-bottom:8px}.leaf h2{font-size:20px;margin-bottom:8px}.leaf .subheading{font-size:12px;margin-bottom:8px}.audio-dock{flex-basis:48px;height:48px}.book-controls{flex-basis:42px}.eyebrow{display:none}.leaf .leaf-body{font-size:calc(15px * var(--font-multiplier))}}
/* Finishing touches: chapter openers and compact back cover truly fill the leaf */
.leaf.divider-leaf{display:flex!important}
@media(max-width:820px){
 .back-panel{height:100%;padding:13px 12px;min-height:0;justify-content:space-evenly}
 .back-panel .back-emblem{font-size:21px}
 .back-panel h2{font-size:clamp(20px,5vw,27px);line-height:1.12;margin:5px 0}
 .back-panel .leaf-body{font-size:calc(13.5px * var(--font-multiplier));line-height:1.35}
 .back-panel .leaf-body p{font-size:inherit;line-height:1.37;margin:6px 0}
 .back-panel>p{font-size:12px;line-height:1.3;margin:7px 0}
 .back-email{font-size:12px;margin-top:5px}
}
@media(max-height:690px) and (max-width:820px){
 .back-panel{padding:7px 10px}
 .back-panel h2{font-size:19px}
 .back-panel .leaf-body{font-size:12.8px;line-height:1.25}
 .back-panel .leaf-body p{line-height:1.27;margin:4px 0}
 .back-panel>p{font-size:11px;margin:3px 0}
 .back-email{font-size:11px;margin-top:2px}
}


/* ACCESSIBLE NAVIGATION — legible buttons for senior readers */
:root { --button-brown:#73522e; --button-gold:#bb934e; }
.topbar {gap:12px; min-width:0;}
.top-actions {gap:10px; flex-shrink:0;}
.top-actions .pill,.top-actions .glyph,.chapter-select {
 min-height:45px; height:45px; border-radius:12px; padding:8px 15px;
 border:2px solid #a98a57; background:#fff8e9; color:#604625;
 font:700 14px/1.2 Arial,sans-serif; letter-spacing:.015em;
 box-shadow:0 3px 0 #bba7865c,0 3px 9px #5c46221a;
 transition:background-color .17s ease, box-shadow .17s ease, transform .17s ease;
}
.top-actions .pill .action-icon {font-size:19px; line-height:1; font-weight:700}
.top-actions .nav-index {background:#70512f; border-color:#70512f;color:#fff9ec}
.top-actions .nav-home {background:#f9edce; border-color:#9a743c}
.top-actions .pill:hover,.top-actions .glyph:hover,.chapter-select:hover {
 transform:translateY(-2px); box-shadow:0 5px 0 #ad926865,0 7px 12px #5c46222b;
 background:#f0dbad; color:#463319
}
.top-actions .nav-index:hover {background:#8e673c;color:#fff;}
.top-actions .pill:active,.top-actions .glyph:active {transform:translateY(1px);box-shadow:0 1px 0 #a98a57}
.chapter-select {max-width:216px; min-width:0; padding:0 29px 0 12px; cursor:pointer; text-overflow:ellipsis;}
.top-actions .save-btn {white-space:nowrap;}
.folio-foot {z-index:6; align-items:center; justify-content:flex-start; gap:10px; bottom:12px;}
.folio-foot b {margin-left:auto; padding-left:5px; font:700 15px Georgia,serif;color:#73542a;}
.folio-jump {
 flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px;
 min-height:38px; min-width:90px; padding:6px 12px;
 border:1.5px solid #9c7943; border-radius:10px;
 background:#fff5dd; color:#5d4120;
 font:800 12px/1 Arial,sans-serif; letter-spacing:.045em;
 box-shadow:0 2px 0 #bc9d6d9a,0 2px 8px #44331c18;
 transition:transform .17s ease, background-color .17s ease, box-shadow .17s ease;
 animation:navInvitation 1.35s ease-out 1 both;
}
.folio-jump.footer-index {background:#775531; color:#fffdf4; border-color:#775531;animation-delay:.06s;}
.folio-jump.footer-home {animation-delay:.21s;}
.folio-jump .jump-symbol {font-size:16px; line-height:1;}
.folio-jump:hover {background:#f0d59c;color:#403019;transform:translateY(-2px);box-shadow:0 4px 0 #a78856a8,0 6px 12px #44331c30;}
.folio-jump.footer-index:hover {background:#90683a;color:#fffdf4;}
.folio-jump:active {transform:translateY(1px);box-shadow:0 1px 0 #9c7943;}
@keyframes navInvitation {
 0% {box-shadow:0 2px 0 #bc9d6d9a,0 0 0 0 #ceaa6866}
 48% {box-shadow:0 2px 0 #bc9d6d9a,0 0 0 5px #ceaa6833}
 100% {box-shadow:0 2px 0 #bc9d6d9a,0 2px 8px #44331c18}
}
/* Controls remain on every leaf, including title and chapter covers. */
.cover-layout {padding-bottom:67px;}
.divider-frame {margin-bottom:68px;}
.back-panel {padding-bottom:64px;}
.leaf:not(.cover-leaf):not(.divider-leaf):not(.back-leaf) {padding-bottom:66px;}
.chapter-select:focus-visible,.pill:focus-visible,.glyph:focus-visible,.folio-jump:focus-visible,.turn-button:focus-visible {
 outline:3px solid #2667aa; outline-offset:3px;
}
@media(max-width:1100px) and (min-width:821px) {
 .topbar {padding:0 16px;}
 .brand {font-size:13px;}
 .top-actions .save-btn {display:none;}
 .top-actions {gap:6px;}
 .top-actions .pill,.top-actions .glyph {padding-left:10px;padding-right:10px;}
 .chapter-select {max-width:180px;}
}
@media(max-width:820px) {
 .topbar {flex:0 0 98px;height:98px;display:flex; flex-direction:column;
   justify-content:center;align-items:stretch;gap:5px;padding:4px 10px 6px;}
 .brand {height:28px;flex:0 0 28px;justify-content:center;font-size:12px;letter-spacing:.075em;}
 .brand small {font-size:7px;letter-spacing:.12em;margin-top:2px;}
 .top-actions {display:grid;grid-template-columns:minmax(76px,1fr) minmax(116px,1.75fr) minmax(77px,1fr);
   align-items:center;width:100%;gap:7px;}
 .top-actions .nav-home,.top-actions .nav-index {display:flex;justify-content:center;
   width:100%;padding:4px 7px;min-height:47px;height:47px;font-size:13px;gap:5px;}
 .top-actions .pill .action-icon{font-size:18px;}
 .top-actions .save-btn,.top-actions .glyph {display:none;}
 .top-actions .chapter-select {display:block;width:100%;max-width:none; min-height:47px;height:47px;
   font-size:13px;padding:0 22px 0 9px;}
 .folio-foot {bottom:8px;left:15px;right:15px;gap:8px;}
 .folio-jump {min-height:40px;min-width:82px;padding:5px 9px;font-size:12px;gap:5px;}
 .folio-jump .jump-symbol{font-size:17px;}
 .folio-foot b{font-size:14px;}
 .leaf:not(.cover-leaf):not(.divider-leaf):not(.back-leaf) {padding-bottom:64px;}
 .cover-layout {padding-bottom:60px;}
 .divider-frame {margin-bottom:58px;}
 .back-panel {padding-bottom:58px;}
}
@media(max-width:370px) {
 .brand {font-size:11px;}
 .top-actions {grid-template-columns:minmax(71px,1fr) minmax(109px,1.6fr) minmax(74px,1fr);gap:5px;}
 .top-actions .nav-home,.top-actions .nav-index {font-size:12px;padding:3px 5px;gap:4px;}
 .chapter-select {font-size:12px!important;}
 .folio-foot {left:12px;right:12px;gap:6px;}
 .folio-jump {min-width:77px;padding:5px 7px;font-size:11.5px;}
}
@media(max-height:690px) and (max-width:820px){
 .topbar {flex-basis:88px;height:88px;gap:2px;padding:3px 10px 4px;}
 .brand {height:25px;flex-basis:25px;}
 .top-actions .nav-home,.top-actions .nav-index,.top-actions .chapter-select {height:45px;min-height:45px;}
 .cover-layout {padding-bottom:54px;}
 .divider-frame {margin-bottom:52px;}
}
@media(prefers-reduced-motion:reduce){.folio-jump,.top-actions .pill,.top-actions .glyph,.chapter-select{animation:none!important;transition:none!important}}
@media print {.folio-foot {display:none!important;} .topbar{display:none!important;}}
