/* Shared public header: brand left; existing navigation right. */
.site-header .container.nav-wrap { width:calc(100% - 48px); max-width:none; margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-header .brand { flex-shrink:0; margin-right:auto; }
.site-header .site-nav { margin-left:auto; }
/* Public reader only. The existing chapter editor CSS is unchanged. */
.eb-reader { box-sizing:border-box; width:calc(100% - 48px); max-width:1680px; margin:30px auto 60px; display:grid; grid-template-columns:minmax(210px,260px) minmax(0,820px) minmax(180px,230px); gap:24px; justify-content:center; align-items:start; color:#d6c2a2; }
.eb-reader *, .eb-reader *::before, .eb-reader *::after { box-sizing:border-box; }
.eb-reader-main { min-width:0; }
.eb-reader-side { position:sticky; top:24px; max-height:calc(100dvh - 48px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#856248 #171717; }
.eb-reader-card { padding:20px; margin-bottom:18px; border:1px solid #674b334f; border-radius:14px; background:radial-gradient(ellipse at top left,#8055a018,transparent 70%),#151313; }
.eb-reader-card h2 { margin:0 0 16px; font:1.15rem/1.5 Georgia,serif; color:#e9d6b7; }
.eb-reader a { color:#dcb27b; text-decoration:none; }
.eb-reader a:hover { color:#fff0d4; text-decoration:underline; }
.eb-reader :is(a,summary):focus-visible { outline:2px solid #d78d34; outline-offset:4px; }
.eb-cover-placeholder { aspect-ratio:3/4; display:grid; place-items:center; margin-bottom:18px; border:1px solid #795538; border-radius:7px; background:radial-gradient(ellipse at 50% 30%,#583427,#171313 70%); color:#d78d34; font:3rem Georgia,serif; letter-spacing:.12em; }
.eb-book-card h2 { margin-bottom:0; }
.eb-books details { border-top:1px solid #674b335f; padding:14px 0; }
.eb-books summary { cursor:pointer; font-weight:bold; line-height:1.5; overflow-wrap:anywhere; }
.eb-book-overview { display:block; margin:12px 0; font-size:.85rem; }
.eb-books ul { list-style:none; padding:0 0 0 18px; margin:12px 0 0 8px; border-left:1px solid #674b33; }
.eb-books li { margin:6px 0; }
.eb-books li a { display:block; padding:9px 10px; border-radius:5px; overflow-wrap:anywhere; }
.eb-books [aria-current=page] { background:#d78d341c; color:#ffe2b2; border-left:3px solid #d78d34; }
.eb-reader-title { text-align:center; padding:24px 28px 16px; margin-bottom:20px; border:1px solid #674b335f; border-radius:14px; background:linear-gradient(120deg,#1d171b,#121111); }
.eb-reader-title p { margin:0 0 12px; }
.eb-reader-title h1 { margin:0; font-size:clamp(2rem,3.5vw,3.5rem); line-height:1.2; overflow-wrap:anywhere; color:#f2e2ca; }
.eb-title-footer { display:flex; justify-content:flex-end; margin-top:24px; font-size:.9rem; }
.eb-preview { padding:10px; border:1px solid #ad804b; font-size:.85rem; }
.eb-reader .chapter-paper { min-height:0; border-radius:10px; box-shadow:0 12px 36px #0005; }
.eb-eyebrow { margin:0 0 10px; color:#ad885b; text-transform:uppercase; font-size:.7rem; letter-spacing:.15em; }
#reader-outline { list-style:none; margin:0 0 22px; padding:0; }
#reader-outline li { padding:9px 0; border-bottom:1px solid #674b334f; font-size:.9rem; line-height:1.6; }
#chapter-text :is(h2,h3) { scroll-margin-top:24px; }
@media (max-width:1200px) { .eb-reader { grid-template-columns:220px minmax(0,1fr); } .eb-reader-extra { grid-column:2; position:static; max-height:none; } }
@media (max-width:800px) { .site-header .container.nav-wrap { width:calc(100% - 28px); flex-wrap:wrap; gap:14px; } .eb-reader { width:calc(100% - 28px); grid-template-columns:minmax(0,1fr); gap:18px; margin-top:18px; } .eb-reader-side { position:static; max-height:none; } .eb-reader-extra { grid-column:1; } .eb-book-card { display:none; } .eb-books { max-height:300px; overflow:auto; } .eb-reader-title { padding:22px 18px 16px; } }
@media print { .site-header, .eb-reader-side, .eb-title-footer { display:none; } .eb-reader { display:block; width:100%; margin:0; } .eb-reader .chapter-paper { box-shadow:none; border:0; } }
