/* Temporary e-reader palette: only change these variables during palette review. */
:root{--paper:#f4ecd8;--ink:#29251f;--toolbar:#e8ddc5;--button:#faf6eb;--border:#b6a78e;--news:#f9f5e9;--font-size:18px}
*{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Georgia,"Noto Serif","Times New Roman",serif}
button,a{-webkit-tap-highlight-color:transparent}
.reader-toolbar{position:sticky;top:0;z-index:10;background:var(--toolbar);border-bottom:1px solid var(--border);padding:calc(7px + env(safe-area-inset-top)) 10px 7px}
.reader-toolbar__inner{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:700px;margin:auto}
.reader-toolbar button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;border:1px solid var(--border);border-radius:6px;background:var(--button);color:var(--ink);font:600 13px/1.25 Arial,sans-serif;cursor:pointer;padding:6px}
.reader-toolbar .symbol{font-size:20px;font-weight:800;white-space:nowrap}
.reader-toolbar button:disabled{opacity:.48;cursor:default}
:focus-visible{outline:3px solid #1f5fa9;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.reading-page{width:min(100% - 48px,700px);margin:0 auto;padding:27px 0 55px}
h1{text-align:center;font-size:1.15rem;line-height:1.3;margin:14px 0 30px;font-weight:700}
.chapter-text{font-size:var(--font-size);line-height:1.55;text-align:justify;hyphens:auto;overflow-wrap:break-word}
.chapter-text>p{margin:0 0 .76em;text-indent:1.1em}
.chapter-text>p:first-child,.scene-break+p{text-indent:0}
.scene-break{border:0;margin:2.3em auto;width:100%;text-align:center;height:1em}
.scene-break:before{content:"*  *  *";letter-spacing:.32em;font-size:.72em;color:var(--ink)}
.news-clip{margin:1.7em 0;padding:1.15em .85em;border-top:3px double var(--ink);border-bottom:3px double var(--ink);background:var(--news);font:normal .86em/1.45 Georgia,"Times New Roman",serif;text-align:left;hyphens:auto}
.news-headline{font:800 1.28em/1.13 Georgia,"Times New Roman",serif;letter-spacing:.012em;text-align:center;margin:0 0 .7em}
.news-clip p{margin:.35em 0;text-indent:0}
.news-clip p:last-child{margin-bottom:0}
.chapter-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:3em 0 0}
.action{min-height:54px;padding:13px 12px;display:flex;justify-content:center;align-items:center;text-align:center;border-radius:7px;border:1px solid var(--border);font:700 16px/1.25 Arial,sans-serif;text-decoration:none}
.action--primary {
    background: #A94E13;
    color: #FFFFFF;
    border-color: #A94E13;
}
.action--primary:hover {
    background: #8F3F0E;
}
.action--secondary{background:var(--button);color:var(--ink)}
.action:disabled{opacity:.56;cursor:not-allowed}
@media(max-width:390px){.reader-toolbar button{gap:4px;font-size:11px}.reader-toolbar .symbol{font-size:18px}.reading-page{width:calc(100% - 48px)}}
@media print{.reader-toolbar,.chapter-actions{display:none}.reading-page{max-width:none;padding:0}.chapter-text{font-size:12pt}}
.chapter-heading {
    text-align: center;
    margin: 45px auto 65px;
}

.chapter-number {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 35px;
}

.chapter-heading h1 {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: bold;
    font-style: italic;
    line-height: 1.3;
    margin: 0;
}