:root{color-scheme:light;--green:#193d31;--paper:#f4f0e5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--green);font:18px/1.6 system-ui,sans-serif}header{padding:20px 5vw;border-bottom:1px solid #ccd0bf;display:flex;align-items:center;justify-content:space-between;gap:20px}header>a{font:700 25px Georgia,serif}a{color:inherit}nav{display:flex;gap:22px;align-items:center}main{max-width:1120px;margin:auto;padding:48px 24px}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:clamp(36px,6vw,62px);max-width:760px;margin:16px 0}h2{font-size:30px}h3{font-size:24px}.intro{max-width:730px;color:#526354}.eyebrow{font-size:13px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}section{margin:40px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}.card,#signin{padding:24px;background:#fffdf7;border:1px solid #d4d7c8;border-radius:12px}.card{display:flex;flex-direction:column;gap:12px}.card h3{margin:0}.card button{margin-top:auto}button{font:inherit;background:var(--green);color:white;padding:12px 20px;border:0;border-radius:7px;cursor:pointer}button:disabled{opacity:.6;cursor:wait}input{display:block;width:100%;font:inherit;padding:10px;border:1px solid #788c7a;border-radius:5px;margin:6px 0 16px}form{max-width:420px}#notice:not(:empty){padding:16px;border-left:4px solid #9c7c44;background:#e7eadc}#reader{background:#fffdf7;padding:28px;border-radius:12px}#reading{max-width:720px;margin:auto;font:21px/1.8 Georgia,serif}footer{font-size:15px;margin-top:64px;padding-top:20px;border-top:1px solid #ccd0bf}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #b18643;outline-offset:4px}@media(max-width:600px){header{display:block}nav{margin-top:12px;font-size:15px;gap:16px}main{padding:28px 20px}h1{font-size:40px}.card,#signin{padding:20px}#reading{font-size:20px}}

.social-signin{display:flex;flex-wrap:wrap;gap:12px;max-width:580px}.social-signin button{flex:1;min-width:210px}#apple{background:#171717}#google{background:white;color:#243b31;border:1px solid #87968b}.signin-hint{font-size:15px;color:#526354;margin:12px 0}summary{cursor:pointer;padding:8px 0}details form{margin-top:16px}

.account-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:24px 0;background:#e7eadc;border:1px solid #c8d1be;border-radius:10px}.account-identity{display:flex;flex-direction:column;min-width:0}.account-label,.account-detail{font-size:14px;color:#526354}.account-label{font-weight:600}.account-identity strong{font-size:18px;overflow-wrap:anywhere}.account-switch{flex-shrink:0;padding:8px 12px;font-size:14px;background:transparent;color:var(--green);border:1px solid #87968b}@media(max-width:600px){.account-summary{align-items:flex-start;flex-direction:column;gap:12px;padding:14px 16px}.account-switch{padding:10px 12px}}

.reader-heading p{margin-top:0;color:#526354}.reader-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:20px 0;padding:12px 0;border-block:1px solid #d4d7c8;scroll-margin-top:15px}.reader-controls select{font:16px system-ui;color:var(--green);padding:12px;min-width:0;flex:1;border:1px solid #a8b1a0;border-radius:7px;background:#fffdf7}.reader-controls button{padding:8px 13px}.book-chapter h3{font-size:1.5em}.book-chapter img{max-width:100%;height:auto;max-height:65vh;object-fit:contain;display:block;margin:auto}.book-chapter figure{margin:22px 0}.book-chapter blockquote{margin:20px 0;padding-left:20px;border-left:3px solid #b4bca6}.reader-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;font:15px system-ui}.reader-pager button{font-size:15px;padding:10px 12px}.book-notes,.chapter-references{font:16px/1.6 system-ui;border-top:1px solid #d4d7c8;margin:20px 0}.chapter-references a{display:inline-block;margin:5px 15px 5px 0}.book-subheading{font-weight:bold}.book-front-matter{font-size:.9em}.book-cover-text{text-align:center}.book-list-item{padding-left:16px}@media(max-width:600px){#reader{padding:16px}#reading{font-size:20px}.reader-controls select{flex-basis:100%}.reader-pager{flex-wrap:wrap}.book-chapter{overflow-wrap:break-word}.book-chapter h3{font-size:1.35em}}

.quick-links{display:flex;gap:24px;font-size:16px}.catalog-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.catalog-heading h2{margin-bottom:12px}#book-count{font-size:15px;white-space:nowrap}.book-search{display:block;max-width:530px;font-size:15px}.book-search input{background:#fffdf7}.book-card{padding:20px;gap:14px}.book-art{display:flex;align-items:center;justify-content:center;height:250px;background:#ebe6d9;border-radius:7px;text-decoration:none;overflow:hidden}.book-art img{width:100%;height:100%;object-fit:contain;padding:16px}.book-card h3{font-size:25px}.book-card p{font-size:16px;line-height:1.55;margin:0 0 10px;color:#526354}.book-about{font-size:14px;text-align:center}.text-cover{flex-direction:column;padding:25px;text-align:center;background:#244538;color:#f4ecd5;font:28px/1.2 Georgia,serif;gap:24px}.text-cover small{font:13px system-ui}.selected-book{outline:3px solid #a48143;outline-offset:4px}#available,#owned{scroll-margin-top:24px}@media(min-width:900px){#catalog{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){#catalog{grid-template-columns:1fr}.book-art{height:260px}.catalog-heading h2{font-size:29px}}

/* TOT digital edition */
.words-of-jesus{color:#9b2429}.reader-controls .reader-red-toggle{font:14px system-ui;background:transparent;color:inherit;border:1px solid #87968b}.book-chapter sup{font-size:.65em;line-height:0;vertical-align:super}.book-chapter .book-paragraph{text-align:start}.reader-controls select[aria-label="Bible book"]{flex:2}.reader-controls select[aria-label="Chapter"]{flex:1}@media(max-width:600px){.reader-controls select[aria-label="Bible book"]{flex:0 0 calc(65% - 4px)}.reader-controls select[aria-label="Chapter"]{flex:0 0 calc(35% - 4px)}.reader-controls .reader-red-toggle{margin-left:auto}}@media(forced-colors:active){.words-of-jesus{color:inherit}}

/* Persistent reading navigation: compact on phones, available throughout the book. */
.reader-topbar{position:sticky;top:0;z-index:20;background:#fffdf7;border-bottom:1px solid #c9cebf;padding:10px 0 12px;font:15px/1.4 system-ui;box-shadow:0 6px 10px -10px #193d31}.reader-exit-links{display:flex;justify-content:space-between;gap:16px;margin:0 0 9px}.reader-exit-links a{padding:5px 0;text-underline-offset:3px}.reader-pager.reader-pager-top{margin:0;flex-wrap:nowrap}.reader-pager-top button{min-height:44px}.reader-heading{scroll-margin-top:125px}.reader-controls{scroll-margin-top:125px}.reader-pager button:disabled{cursor:default}.reader-topbar a:focus-visible,.reader-controls select:focus-visible{outline:3px solid #b18643;outline-offset:3px}@media(max-width:600px){.reader-topbar{margin:0 -8px;padding:8px;background:#fffdf7}.reader-pager-top{gap:8px}.reader-pager-top span{font-size:13px}.reader-pager-top button{font-size:14px;padding:9px 12px}}

.book-chapter{scroll-margin-top:125px}

#redeem{scroll-margin-top:24px;border:1px solid #b9c4b5;border-radius:12px;padding:24px;margin:24px 0;background:#f2f4ec}#redeem-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}#redeem-form label{width:100%;margin:0}#access-code{flex:1;min-width:180px;font-size:1rem;min-height:48px}#redeem-button{min-height:48px}#access-status{font-weight:600}#redeem [hidden]{display:none}@media(max-width:550px){#redeem{padding:18px}#redeem-form input,#redeem-form button{width:100%;flex-basis:100%}}

/* Keep redemption field and action aligned despite global input margins. */
#redeem-form{max-width:680px;align-items:stretch}#redeem-form #access-code{margin:0;min-width:0}#redeem-form #redeem-button{margin:0;display:flex;align-items:center;justify-content:center}
#recent-books{scroll-margin-top:24px}.recent-books-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.recent-book{display:flex;gap:16px;padding:18px;border:1px solid #c9cebf;border-radius:10px;background:#fffdf7;text-decoration:none;min-width:0}.recent-book img{width:66px;height:100px;object-fit:contain;flex-shrink:0;align-self:flex-start}.recent-book h3{font-size:20px;margin:0 0 6px}.recent-book p{font-size:14px;margin:0 0 8px}.recent-book span{display:block;font-size:13px}.recent-book strong{display:block;font:600 14px/1.5 system-ui;margin-top:10px}.recent-book progress{display:block;width:100%;height:7px;accent-color:#193d31}.recent-book:focus-visible{outline:3px solid #806023;outline-offset:3px}

/* One illustrated library, with ownership-aware actions. */
.library-views{display:flex;gap:8px;margin:8px 0 20px;flex-wrap:wrap}.library-views button{padding:9px 18px;min-height:44px;border:1px solid #87968b;background:transparent;color:var(--green);font-size:16px}.library-views button[aria-pressed="true"]{background:var(--green);color:#fff}.book-card .book-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px}.book-card .book-actions button{margin:0;width:100%;min-height:48px;line-height:1.35}.book-card .book-download{background:transparent;color:var(--green);border:1px solid #87968b}.book-card .book-about{padding:8px 0;line-height:1.4}.book-owned-label{align-self:flex-start;font:600 13px/1.4 system-ui;background:#e5ebdf;color:#193d31;padding:5px 9px;border-radius:5px}.library-anchor{scroll-margin-top:24px}.quick-links{flex-wrap:wrap;gap:10px 24px}#catalog-empty{padding:24px;border:1px solid #c9cebf;border-radius:10px;background:#fffdf7}#catalog .card{min-width:0}#catalog .card h3{overflow-wrap:anywhere}
