/* Chapter flow inherits the reader's font, paper and theme preferences. */
.reading-paper .continuous-chapter { color: inherit; overflow-anchor: auto; }
.reading-paper .continuous-chapter + .continuous-chapter { margin-top: 72px; padding-top: 56px; border-top: 1px solid #94a3b833; }
.reading-paper .continuous-heading > p { color: #687695; letter-spacing: .04em; }
.reading-paper .continuous-chapter-label { display: block; color: #8c652f; font: 600 11px/1.4 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 13px; }
.reading-paper .continuous-heading h1 { color: inherit; font-family: var(--reading-font, Georgia, serif); font-size: clamp(25px, 3vw, 34px); line-height: 1.3; letter-spacing: -.025em; }
.reading-paper .continuous-heading .chapter-meta { color: #687695; flex-wrap: wrap; align-items: center; border-color: #94a3b82b; }
.continuous-member-label { color: #735026; background: #eee6d7; padding: 3px 8px; border-radius: 20px; }
.continuous-sentinel { min-height: 56px; overflow-anchor: none; }
.continuous-status { padding: 25px 0 8px; text-align: center; color: #687695; font: 13px/1.6 Arial, sans-serif; }
.continuous-retry { border: 0; background: transparent; padding: 8px; color: #8c652f; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.continuous-retry:focus-visible { outline: 2px solid #8c652f; outline-offset: 3px; border-radius: 3px; }
.continuous-status[data-continuous-end] { border-top: 1px solid #94a3b82b; margin-top: 32px; padding-top: 32px; }
.reader-page.theme-night .continuous-heading > p,
.reader-page.theme-night .continuous-heading .chapter-meta,
.reader-page.theme-night .continuous-status { color: #a7b5cd; }
.reader-page.theme-night .continuous-chapter-label,
.reader-page.theme-night .continuous-retry { color: #e0bf87; }
.reader-page.theme-night .continuous-member-label { color: #e8d6b5; background: #3a3023; }
@media (max-width: 600px) {
  .reading-paper .continuous-chapter + .continuous-chapter { margin-top: 48px; padding-top: 36px; }
}
/* A quiet reading canvas; the site header scrolls away while chapter tools remain. */
.is-reading .site-header { position:relative; }
.reader-page { --reader-bg:#eef2f8; --paper-bg:#fcfaf6; --reading-color:#27334a; padding-bottom:84px; }
.reader-page.theme-white { --reader-bg:#f1f5fc; --paper-bg:#fff; --reading-color:#26344b; }
.reader-page.theme-night { --reader-bg:#101a2c; --paper-bg:#162337; --reading-color:#d7e0ee; }
.reader-nav { position:sticky; top:0; z-index:25; width:100%; padding:0 max(20px,calc((100% - 920px)/2)); background:var(--reader-bg); border-bottom:1px solid #94a3b829; color:inherit; }
.reader-nav > a { max-width:65%; }
.reader-layout { padding-top:28px; }
.reading-paper { width:min(800px,100%); padding:48px 64px 28px; border:0; box-shadow:none; border-radius:8px; }
.chapter-text { line-height:1.9; }
.continuous-chapter-label { letter-spacing:.04em!important; text-transform:none!important; }
.reader-page.theme-night .reader-tools { background:#1b2b43; color:#d7e0ee; }
.reader-page.theme-night .reader-dialog { background:#162337; color:#d7e0ee; }
@media(max-width:760px){
 .reader-layout { padding-top:0; }
 .reading-paper { padding:32px 23px 20px; border-radius:0; }
 .reader-nav { padding:0 16px; }
 .reader-nav > a { max-width:60%; }
 .reader-page { padding-bottom:90px; }
}
.reader-tools{color:var(--reading-color)}
.reader-tools>button{color:inherit}
