/* Shared navigation only: no cards, page sizing, or reader scroll overrides. */
.site-back { display:inline-flex; align-items:center; gap:10px; min-width:76px; min-height:44px; color:#fff1d3; font:17px/1.2 Georgia,serif; text-decoration:none; background:none; border:0; border-radius:0; text-shadow:0 1px 8px #000; }
.site-back > span:first-child { font:32px/1 Arial,sans-serif; }
.site-back:hover > span:last-child { text-decoration:underline; text-underline-offset:5px; }
.site-back:focus-visible { outline:3px solid #ffe2a3; outline-offset:4px; }
.reader-header .site-back { flex:none; }
/* Keep the single Back link and reading controls visible while the book scrolls. */
body[data-book] { height:100vh; height:100dvh; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
body[data-book] > .reader-header,body[data-book] > .reader-footer { flex:0 0 auto; }
body[data-book] > main { flex:1 1 0; min-height:0; display:flex; flex-direction:column; }
body[data-book] .reader-tools,body[data-book] .reader-hint,body[data-book] .reader-status { flex:0 0 auto; }
body[data-book] .reader-viewport { flex:1 1 0; min-height:0; max-height:none; }
@media(max-width:520px) {
 body[data-book] .reader-tools button { font-size:14px; }
}
@media(max-height:480px) {
 body[data-book] .reader-header { padding:4px 16px; }
 body[data-book] .reader-tools { padding:3px 6px; }
 body[data-book] .reader-hint { display:none; }
 body[data-book] .reader-status { padding:3px 12px; min-height:24px; }
 body[data-book] .reader-footer { padding:0 12px; font-size:12px; }
}
