.ebook-hero{grid-template-columns:.85fr 1.3fr;gap:35px}.ebook-hero h1{font-size:clamp(52px,6vw,80px)}.cover-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.cover-pair figure{margin:0;min-width:0}.cover-pair img{display:block;width:100%;height:auto;border:1px solid #645334;border-radius:5px}.cover-pair figcaption{text-align:center;font-size:10px;color:#c7b58b;letter-spacing:.13em;margin-top:15px}.back-cover{aspect-ratio:2/3;border:1px solid #645334;border-radius:5px;background:linear-gradient(150deg,#121212e8,#090909f5),url('/assets/asymmetric-background.png') center/cover;display:flex;flex-direction:column;padding:8%;color:#e7d2a4;container-type:inline-size;box-shadow:0 20px 45px #0006}.back-brand{font-size:4.5cqw;letter-spacing:.13em;font-weight:800}.back-copy{margin:auto 0}.back-copy h2{font-size:10.5cqw;line-height:1.05;letter-spacing:-.025em;color:#e8d4a6;margin:6% 0}.back-copy p{font-size:4.2cqw;line-height:1.6;color:#d0c9bb}.back-rule{display:block;width:30%;height:1px;background:#bb9654}.back-credit{font-weight:700;font-size:4cqw;line-height:1.6}.back-credit span{font-weight:400;color:#c5b99c}.book-contents summary{font-weight:800;font-size:24px;cursor:pointer}.reader-shell{max-width:780px;margin:0 auto 50px}.reader-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}.reader-toolbar label{font-size:14px;color:#e5d2ac}.reader-toolbar select{flex:1;min-width:0;border:1px solid #68583b;border-radius:10px;padding:12px;background:#151515;color:#f5ead3;font:inherit;font-size:14px;max-width:100%}.reader-toolbar a{font-size:14px;color:#dfc48b}.notes-settings{padding:20px 22px;background:#171714;border:1px solid #4b4231;border-radius:12px;margin-bottom:24px;font-size:13px;color:#c8c0b1}.notes-settings label{display:flex;gap:10px;align-items:center;font-weight:700;font-size:14px;color:#f1e1bc}.notes-settings input{width:18px;height:18px;accent-color:#d4b477}.notes-settings p{line-height:1.6;margin:12px 0}.notes-settings button{background:none;border:0;color:#dfc48b;padding:0;text-decoration:underline;font:inherit;cursor:pointer}.notes-settings [role=status]{display:block;margin-top:10px}.reader-page{background:#faf8f3;color:#171717;box-shadow:0 18px 50px #0005;border-radius:5px;overflow:hidden;scroll-margin-top:20px}.reader-page[hidden]{display:none}.paper-brand{display:flex;justify-content:space-between;background:#171717;color:#dcc08a;font-size:10px;padding:17px 38px;letter-spacing:.04em}.paper-body{padding:38px 48px;min-height:500px}.paper-body .chapter-label{font-size:12px;letter-spacing:.08em;font-weight:700;color:#886326}.paper-body h2{font-size:clamp(27px,4vw,38px);line-height:1.12;letter-spacing:-.025em;color:#171717;margin:14px 0 25px}.paper-body h3{font-size:16px;line-height:1.5;margin:32px 0 16px;color:#76541c}.paper-body p{font-size:17px;line-height:1.8;color:#242424;margin:0 0 20px}.paper-footer{display:flex;justify-content:space-between;border-top:1px solid #d2c6b0;margin:0 38px;padding:20px 0;font-size:10px;color:#514731}.note-block{margin:26px 0}.note-block label{display:block;font-size:13px;font-weight:700;color:#785620;margin-bottom:12px}.note-block textarea{box-sizing:border-box;display:block;width:100%;min-height:135px;resize:vertical;color:#222;background:repeating-linear-gradient(transparent,transparent 30px,#d4cab6 30px,#d4cab6 31px);border:1px solid #c9bda6;border-radius:6px;font:16px/31px Arial,sans-serif;padding:10px 14px}.note-block textarea:focus{outline:2px solid #9f7b3b;outline-offset:3px}.note-block small{display:block;min-height:18px;margin-top:8px;color:#6f582e;font-size:12px}.page-navigation{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 0}.page-navigation button{border:1px solid #957844;background:#ddc38b;color:#151515;padding:14px 22px;border-radius:999px;font:700 14px Arial;cursor:pointer}.page-navigation button:disabled{opacity:.4;cursor:default}.page-navigation span{font-size:13px;color:#ddcfb2}.reader-shell :focus-visible{outline:2px solid #c7a364;outline-offset:4px}
@media(max-width:780px){.ebook-hero{grid-template-columns:1fr}.cover-pair{max-width:550px;margin:10px auto 0;width:100%;gap:14px}.paper-body{padding:28px 24px;min-height:300px}.paper-body p{font-size:16px}.paper-brand{padding:15px 24px;font-size:9px}.paper-footer{margin:0 24px}.reader-toolbar label{flex-basis:100%}.notes-settings{padding:18px}.page-navigation{gap:7px}.page-navigation button{padding:13px 16px;font-size:12px}.page-navigation span{font-size:11px}.book-contents{margin-top:20px}.back-copy p{font-size:4.7cqw}.back-copy h2{font-size:11cqw}}
@media(max-width:370px){.page-navigation button{padding:12px}.cover-pair{gap:8px}.paper-body{padding:25px 20px}}

.notes-bar{display:flex;align-items:center;gap:16px;margin:12px 0 22px;font-size:.85rem}.notes-bar>span:empty{display:none}.notes-bar button{border:1px solid #ffffff30;border-radius:999px;background:#171717;color:#e2c989;padding:9px 15px;cursor:pointer}#notes-dialog{width:min(92vw,520px);max-height:85vh;overflow:auto;background:#151515;color:#eee;border:1px solid #b89b594d;border-radius:24px;padding:30px;box-shadow:0 24px 100px #000b}#notes-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}#notes-dialog h2{font-size:1.8rem;margin:0 0 14px}#notes-dialog p{line-height:1.6;color:#ccc}#notes-dialog fieldset{border:0;padding:0;margin:24px 0}#notes-dialog legend{margin-bottom:12px}#notes-dialog label{display:block;padding:15px;border:1px solid #ffffff25;border-radius:13px;margin:10px 0;cursor:pointer}#notes-dialog small{display:block;margin:7px 0 0 24px;line-height:1.5;color:#bbb}#notes-dialog input{accent-color:#d9bc79}#notes-dialog button{cursor:pointer;margin:5px;padding:10px 15px;border-radius:12px;border:1px solid #ffffff30;background:#262626;color:#eee}#notes-dialog button.primary{background:#ddc58d;color:#111}#notes-dialog a{color:#e2c989}#notes-dialog .notes-tools{margin-top:20px;border-top:1px solid #ffffff20;padding-top:12px}#notes-dialog button:disabled{opacity:.4;cursor:wait}.note-conflict{padding:16px;border:1px solid #9b752e;margin-top:10px;border-radius:12px}.note-conflict p{white-space:pre-wrap}.note-conflict button{padding:10px;margin:4px;border-radius:8px}#notes-dialog-status:empty{display:none}


/* Opening focus rests on the heading; interactive controls retain keyboard focus rings. */
#notes-title:focus{outline:none}

/* Read contents across each row: 01 / 02, then 03 / 04. */
.book-contents .chapter-links{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;column-gap:28px}
.book-contents .chapter-links a{display:grid;grid-template-columns:2ch minmax(0,1fr);align-items:baseline;gap:10px;min-width:0;overflow-wrap:anywhere}
.book-contents .chapter-links span{min-width:0;font-variant-numeric:tabular-nums}
@media(max-width:780px){.book-contents{padding:20px 16px}.book-contents .chapter-links{column-gap:18px}.book-contents .chapter-links a{font-size:13px;line-height:1.45;padding:13px 0;gap:7px}.book-contents .chapter-links span{font-size:11px}}


/* Contents may wrap independently of the main navigation. */
.book-contents{container-type:inline-size;container-name:ebook-contents}
.book-contents .chapter-links a{white-space:normal;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:780px){.book-contents .chapter-links a{font-size:12px}}
@container ebook-contents (max-width:440px){.book-contents .chapter-links{grid-template-columns:minmax(0,1fr)}}


/* Consistent book leaves; text flows into additional pages. */
.book-leaf{height:900px;display:flex;flex-direction:column;box-sizing:border-box}
.book-leaf[hidden]{display:none}
.book-leaf>.paper-brand{flex:none}
.book-leaf>.paper-body{flex:1;min-height:0;padding:34px 44px;overflow:hidden}
.book-leaf .page-flow{height:100%;display:flow-root}
.book-leaf>.paper-footer{flex:none;padding:16px 0;min-height:46px;box-sizing:border-box}
.book-leaf .paper-body p{font-size:16px;line-height:1.75;margin-bottom:17px}
.book-leaf .paper-body h2{font-size:30px;margin:10px 0 22px}
.book-leaf .paper-body h3{margin:20px 0 12px}
.book-leaf .paper-body .chapter-label{font-size:11px;margin:0}
.book-leaf .book-subsection h2{font-size:23px}
.book-leaf .book-subsection{padding-top:16px}
.book-leaf .book-graphic{margin:18px 0}
.book-leaf .book-graphic img{width:100%;height:auto;max-height:240px;object-fit:contain}
.book-leaf .note-block{margin:16px 0}
.book-leaf .note-block textarea{height:150px;min-height:150px;resize:none}
.book-leaf .note-block small{line-height:1.4}
.book-leaf .note-conflict{max-height:180px;overflow:auto}
.book-leaf .split-paragraph{white-space:pre-line}
.book-leaf .book-overflow-block{max-height:100%;overflow:auto}
.book-leaf:focus{outline:none}
.book-pages.paginating{visibility:hidden}
.reader-toolbar .book-toc-button{padding:12px 18px;border:1px solid #8b754a;border-radius:999px;white-space:normal}
.book-contents .chapter-links a{grid-template-columns:minmax(0,1fr) 2.5ch;gap:14px}
.book-contents .chapter-links .toc-title{font:inherit;color:inherit;min-width:0}
.book-contents .chapter-links .toc-page{text-align:right;color:#d5b878;font-size:12px}
@media(max-width:780px){.book-leaf{height:780px}.book-leaf>.paper-body{padding:25px 23px}.book-leaf .paper-body p{font-size:16px;line-height:1.65}.book-leaf .paper-body h2{font-size:26px}.book-leaf .book-subsection h2{font-size:21px}.book-leaf .book-graphic img{max-height:175px}}


.book-leaf .note-block{height:260px;overflow:auto;box-sizing:border-box}

/* The contents is now a numbered page inside the book. */
.book-leaf .book-toc-entry{display:grid;grid-template-columns:minmax(0,1fr) 3ch;gap:14px;align-items:baseline;padding:10px 0;border-bottom:1px solid #d7cbb5;text-decoration:none;color:#25221d;font-size:15px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.book-leaf .book-toc-entry .toc-page{text-align:right;color:#87662c;font-variant-numeric:tabular-nums;font-size:12px}
.book-leaf .book-toc-entry:hover .toc-title{text-decoration:underline;text-underline-offset:4px}
.book-illustration{padding:18px 20px 12px;margin:16px 0;background:#f0ebdf;border-top:2px solid #b49964;border-radius:2px}
.book-leaf .book-illustration p{font-size:15px;line-height:1.65;margin-bottom:12px}
.book-leaf .book-illustration .book-graphic{margin:10px 0 0}
.book-leaf .book-illustration img{max-height:200px}
@media(max-width:780px){.book-leaf .book-toc-entry{font-size:13px;padding:8px 0}.book-illustration{padding:14px 14px 8px}.book-leaf .book-illustration p{font-size:15px}.book-leaf .book-illustration img{max-height:150px}}


.book-pages{touch-action:pan-y pinch-zoom}
.book-pages .note-block,.book-pages textarea{touch-action:auto}
