/* Shared book chrome: quiet navigation, consistent controls and private review. */
body.book-ui{margin:0;background:#faf8f2;color:#283c32;font-family:'Baloo Bhaina 2',sans-serif}
body.book-ui .book-site-header{box-sizing:border-box;max-width:none;margin:0;padding:14px max(18px,calc((100% - 1120px)/2));display:flex;align-items:center;gap:16px;text-align:left;border-bottom:1px solid #dcded4;background:#faf8f2}
body.book-ui .book-site-brand{font-size:28px;font-weight:600;text-decoration:none;color:#294d3a;line-height:1.3}
body.book-ui .book-back{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #c9d2c5;border-radius:50%;color:#294d3a;text-decoration:none;font:24px sans-serif}
body.book-ui .book-view-links{position:static;box-sizing:border-box;display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:0;padding:12px 18px;border-bottom:1px solid #dcded4;background:#f3f3e9;max-width:none}
body.book-ui .book-view-links a,body.book-ui button,body.book-ui select{font-family:inherit;font-size:18px;min-height:44px;border:1px solid #bdc9b9;border-radius:9px;background:#fafaf4;color:#294534;padding:8px 14px}
body.book-ui .book-view-links a{text-decoration:none;display:inline-flex;align-items:center}
body.book-ui .book-view-links a[aria-current]{background:#315641;color:#fff;border-color:#315641}
body.book-ui .book-header,body.book-ui>header:not(.book-site-header):not(.book-bar):not(.reader-header){padding-top:24px;padding-bottom:14px}
body.book-ui .book-bar{position:static;max-width:1120px;margin:auto;background:transparent;border:0;justify-content:flex-end}
body.book-ui .book-bar>strong{display:none}
body.book-ui .reader-tools,body.book-ui>nav:not(.book-view-links):not(.pager){font-family:inherit;background:#f3f3e9;border-color:#dcded4;gap:10px}
body.book-ui .book-private-footer{position:static;max-width:1120px;margin:36px auto 0;padding:20px 18px;border-top:1px solid #dcded4;text-align:center;font-size:16px}
body.book-ui .book-private-footer a{color:#617564;text-decoration:underline;text-underline-offset:4px}
body.book-ui .book-intro{max-width:1000px;margin:30px auto}.book-intro img{object-fit:contain}
body.book-ui .book-contents{display:none}
body.book-ui.night,body.book-ui[data-theme=night]{background:#14221c;color:#e8eddf}
body.book-ui.night .book-site-header,body.book-ui[data-theme=night] .book-site-header,body.book-ui.night .book-view-links,body.book-ui[data-theme=night] .book-view-links{background:#1e3026;border-color:#576a59}
body.book-ui.night .book-site-brand,body.book-ui[data-theme=night] .book-site-brand{color:#e8eddf}
.review-app{box-sizing:border-box;max-width:1240px;margin:30px auto;padding:0 20px}.review-app h1{font-size:32px}.review-account,.review-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}.review-controls{position:static}.review-controls select{max-width:100%}.review-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.review-comparison img{display:block;width:100%;height:auto}.review-comparison textarea{box-sizing:border-box;width:100%;min-height:70vh;border:1px solid #bdc9b9;border-radius:8px;padding:20px;font:22px/1.9 'Baloo Bhaina 2',sans-serif;background:#fffdf5;color:#263a2d;resize:vertical}
@media(max-width:700px){body.book-ui .book-site-header{padding:12px 16px}.book-site-brand{font-size:25px!important}.review-comparison{grid-template-columns:1fr}.review-app h1{font-size:27px}.review-comparison textarea{min-height:55vh}}
/* Override the legacy magazine decoration on quiet book pages. */
body.book-ui{background:#faf8f2!important;border-top:0!important}body.book-ui .book-bar{background:transparent!important}body.book-ui .book-controls{background:#f3f3e9;border-color:#dcded4}body.book-ui.night,body.book-ui[data-theme=night]{background:#14221c!important}

/* Reading opens by default; keep only a small download shortcut. */
body.book-ui .book-quick-download{margin-left:auto;display:inline-flex;align-items:center;min-height:44px;color:#356347;font-size:16px;line-height:1.4;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
body.book-ui .book-private-footer p{margin:0 0 10px;line-height:1.8}
body.book-ui.night .book-quick-download{color:#c3e4c4}
@media(max-width:450px){body.book-ui .book-site-header{flex-wrap:wrap;gap:10px}body.book-ui .book-quick-download{font-size:14px}}

/* The first two illustrated books share one responsive illustration size. */
body.uniform-illustrations .story-art,body.uniform-illustrations .cover,body.uniform-illustrations .cover-art{display:block;width:min(100%,720px,calc(100vw - 48px));max-width:720px;height:auto;max-height:none;aspect-ratio:3/2;object-fit:contain;margin:25px auto}

/* Keep reading controls and footer links legible in night mode. */
body.book-ui.night .reader-tools,body.book-ui.night>nav:not(.pager){background:#1e3026;border-color:#576a59;color:#e8eddf}
body.book-ui.night button,body.book-ui.night select{background:#263b2e;color:#e8eddf;border-color:#71836e;color-scheme:dark}
body.book-ui.night .book-back,body.book-ui.night .book-private-footer a{color:#c3e4c4;border-color:#71836e}
body.book-ui.night .book-private-footer{border-color:#576a59}
