/* A continuous book: title, level, then the story. */
.history-book-page{background:#fcfbf7;color:#243c42}
.history-book-page #tq-shell .tq-shortcuts{display:none}
.history-book-page #tq-shell .tq-subjects{padding-block:4px}
.history-book-page #tq-shell .tq-subject img{display:none}
.history-book-page #tq-shell .tq-subject{display:flex;align-items:center;justify-content:center;min-height:32px;height:auto;padding:6px 10px;font-size:12px;line-height:1.3}
.history-book-page .life-page,.history-book-page .dossier-page{max-width:900px}
.history-book-page .life-hero,.history-book-page .dossier-hero{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:15px;background:none;border:0;border-radius:0;box-shadow:none;align-items:center;margin:10px 0}
.history-book-page .life-heading,.history-book-page .dossier-hero-copy{padding:0}
.history-book-page .dossier-hero{color:#243c42}
.history-book-page .dossier-hero .dossier-eyebrow{color:#8b6642}
.history-book-page .dossier-hero small,.history-book-page .dossier-hero p{color:#53686c}
.history-book-page .life-hero h1,.history-book-page .dossier-hero h1{font-size:clamp(25px,4vw,36px);margin:5px 0;line-height:1.17}
.history-book-page .life-hero figure,.history-book-page .dossier-hero figure{margin:0;min-height:0;width:88px;height:72px;border-radius:12px;overflow:hidden}
.history-book-page .life-hero img,.history-book-page .dossier-hero img{width:88px;height:72px;min-height:0;max-height:none;object-fit:cover}
.history-book-page .life-hero figcaption,.history-book-page #life-tagline,.history-book-page #life-badge,.history-book-page #life-date-note,.history-book-page #dossier-description{display:none}
.history-book-page #life-date{font-size:11px;display:block;margin:5px 0;color:#53686c;background:none;padding:0}
.history-book-page #life-generation{font-size:10px}
.history-book-page .life-levels,.history-book-page .dossier-levels,.history-book-page .figure-levels,.history-book-page .reader-levels{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 8px}
.history-book-page .life-levels button,.history-book-page .dossier-levels button,.history-book-page .figure-levels button,.history-book-page .reader-levels button{display:block;flex:1;min-height:44px;min-width:0;padding:7px 9px;border:1px solid #cedcd8;border-radius:9px;background:#fff;font-size:12px;line-height:1.3}
.history-book-page .life-levels strong,.history-book-page .dossier-levels strong,.history-book-page .figure-levels strong,.history-book-page .reader-levels strong{font-size:12px;font-weight:700}
.history-book-page .life-levels button[aria-pressed=true],.history-book-page .dossier-levels button[aria-pressed=true],.history-book-page .figure-levels button[aria-pressed=true],.history-book-page .reader-levels button[aria-pressed=true]{background:#e9f2eb;border-color:#3d7055;color:#244f3a}
.history-book-page .life-level-number,.history-book-page .life-levels small,.history-book-page .dossier-levels button>span,.history-book-page .figure-levels button>span,.history-book-page #dossier-level-note{display:none}
.history-book-page .reader-levels small{display:block;font-size:10px;margin:2px 0 0}
.history-book-reader{max-width:720px;margin:0 auto 28px}
.book-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#61736f;margin:10px 0 15px}
.book-actions button{font:inherit;font-size:12px;font-weight:700;color:#2a5944;cursor:pointer;border:1px solid #b7cdbf;background:#eff6f0;padding:8px 12px;border-radius:22px;min-height:38px}
.book-actions a{color:#546c61;text-decoration:none;margin-inline-start:auto}
.book-audio-status{font-size:12px;line-height:1.5;color:#925f26}.book-audio-status:empty{display:none}
.book-prose{font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.85;color:#263f43;overflow-wrap:break-word}
.book-prose h2{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-size:21px;line-height:1.35;margin:27px 0 10px;color:#214b41}
.book-prose section:first-child h2{margin-top:5px}
.book-prose p{margin:0 0 19px}
.book-section-refs{display:block;font:11px/1.6 system-ui;color:#6d7973;margin:0 0 15px}
.history-book-reader[dir=rtl] .book-prose{font-family:Arial,sans-serif}
.book-review{font-size:11px;color:#66736d;margin:25px 0 12px}
.book-practice{border-top:1px solid #d8e0d9;border-bottom:1px solid #d8e0d9;padding:21px 0;margin:15px 0}
.book-practice h2{font:700 20px/1.4 ui-rounded,'Trebuchet MS',system-ui;margin:0 0 15px}
.book-exercise{display:inline-block;border-radius:10px;padding:12px 18px;background:#285b44;color:white;text-decoration:none;font:700 14px/1.4 system-ui}
.book-practice details,.book-sources{font:13px/1.8 system-ui;margin:17px 0;color:#4f6259}
.book-practice summary,.book-sources summary,.book-supplements>summary{cursor:pointer;font-weight:700;min-height:30px}
.book-sources a,.book-practice li a{color:#3f6753}.book-sources li,.book-practice li{margin:7px 0}
.book-supplements{border-top:1px solid #d8e0d9;padding:18px 0;margin-top:20px;font:14px/1.6 system-ui}
.book-supplements[open]>summary{margin-bottom:20px}
.history-book-page .life-status:empty,.history-book-page #life-status:empty,.history-book-page #figures-status:empty,.history-book-page #load-status:empty,.history-book-page #dossier-status:empty{display:none}
.history-book-page .back-link,.history-book-page .dossier-back,.history-book-page .history-back{font-size:12px;margin:5px 0}
.history-book-page .figure-hero{display:grid;grid-template-columns:minmax(0,1fr) 72px;padding:0;background:none;box-shadow:none;border:0;gap:14px;margin:12px 0}
.history-book-page .figure-hero img{display:block;width:72px;height:65px;object-fit:cover;border-radius:10px}
.history-book-page .figure-hero h1{font-size:30px;margin:5px 0}.history-book-page .figure-hero p{margin:4px 0;font-size:12px}
.history-book-page #figure-kicker{display:none}.history-book-page .figure-hero>div{padding:0}
.history-book-page .lesson-title{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:12px;align-items:center;padding:0;margin:10px 0;background:none;border:0;box-shadow:none}
.history-book-page .lesson-title h1{font-size:28px;margin:5px 0}.history-book-page #intro,.history-book-page #lesson-meta,.history-book-page #sage-profile-link{display:none}
.history-book-page .exercise-only>summary{display:none}
.history-book-page #lesson-book-portrait{width:64px;height:64px;object-fit:cover;border-radius:12px}
.history-book-page .lesson-book-era{font-size:11px;color:#53686c}
.history-book-page #completion{display:none}
#lesson-root[data-story-lang=fr] .lesson-title [lang=he],#lesson-root[data-story-lang=fr] .reader-levels [lang=he],#lesson-root[data-story-lang=he] .lesson-title [lang=fr],#lesson-root[data-story-lang=he] .reader-levels [lang=fr]{display:none}
.history-book-page .reader-levels button{overflow-wrap:anywhere}
.history-book-page .reader-levels strong{font-size:11px}
@media(max-width:650px){
 .history-book-page .life-page,.history-book-page .dossier-page,.history-book-page .history-main{width:auto;padding:10px 16px 35px;margin:0}
 .history-book-page .life-hero,.history-book-page .dossier-hero{grid-template-columns:minmax(0,1fr) 64px;gap:10px}
 .history-book-page .life-hero figure,.history-book-page .dossier-hero figure,.history-book-page .life-hero img,.history-book-page .dossier-hero img{width:64px;height:64px}
 .book-prose{font-size:18px;line-height:1.8}.book-prose h2{font-size:19px}.book-actions{gap:8px;margin-block:8px 12px}
 .history-book-page #tq-shell .tq-subjects{display:none}
 .history-book-page .back-link,.history-book-page .dossier-back,.history-book-page .history-back{padding-block:2px;margin-block:3px}
 .book-actions a{display:none}
 .history-book-page #tq-shell .tq-subject{white-space:nowrap;flex-shrink:0}
 .history-book-page .life-levels strong,.history-book-page .figure-levels strong,.history-book-page .dossier-levels strong{font-size:11px}
}
@media print{.book-actions,.book-practice,.book-supplements,#tq-shell{display:none}.book-prose{font-size:12pt}.history-book-reader{max-width:none}}

/* Always visible at the end of a biography, outside the optional study panels. */
.book-continuation{max-width:720px;margin:26px auto 0;padding-top:22px;border-top:1px solid #d8e0d9;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.book-continuation a{display:flex;flex-direction:column;justify-content:center;gap:5px;box-sizing:border-box;min-height:78px;padding:15px 18px;border-radius:12px;font:700 14px/1.5 system-ui;text-decoration:none;overflow-wrap:anywhere}
.book-continuation .book-continue{background:#285b44;color:#fff;border:1px solid #285b44}
.book-continuation .book-continue[hidden]{display:none}
.book-continue strong{font-size:18px}
.book-continuation .book-browse{background:#fff;color:#285b44;border:1px solid #a6beb0}
.book-continuation a:hover{filter:brightness(.95)}
.book-continuation a:focus-visible{outline:3px solid #be8d2c;outline-offset:4px}
@media(max-width:650px){.book-continuation{grid-template-columns:1fr}.book-continuation a{min-height:60px}}
@media print{.book-continuation{display:none}}

/* Real photographs stay inside the narrative, after the first reading section. */
.book-photo{margin:30px 0 36px;border:1px solid #ddd7ca;border-radius:12px;overflow:hidden;background:#f1eee6;break-inside:avoid}
.book-photo>a{display:block;text-align:center;line-height:0}
.book-photo img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;margin:auto}
.book-photo img[hidden]{display:none}
.book-photo figcaption{padding:13px 17px 15px;font:14px/1.6 system-ui,sans-serif;color:#4a5c56}
.book-photo-kind{display:block;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#87674b;margin-bottom:4px}
.book-photo-caption{display:block}
.book-photo small{display:block;font-size:11px;margin-top:7px;color:#64746b}
.book-photo a{color:#335f4c}.book-photo-error{padding:12px 17px;font:13px/1.6 system-ui}
.book-actions .book-family-toggle{background:#fff7e6;border-color:#d8bc78;color:#76561b}
.book-actions .book-family-toggle[aria-pressed=true]{background:#e8d6aa;border-color:#9e792c;color:#4d3914}
.book-biography{margin:30px 0;border-top:1px solid #ddd7ca;padding-top:18px;font:14px/1.7 system-ui}
.book-biography summary{cursor:pointer;font-weight:700;color:#355846;min-height:34px}
.book-biography ol{padding:8px 0 0 20px;margin:0}.book-biography li{padding:6px 0 6px 8px}
.book-biography li::marker{color:#92713a;font-weight:700}.book-biography p{margin:3px 0}
.book-family{border:1px solid #dfd0af;border-radius:16px;background:#fff8e9;padding:24px;margin:28px 0;font:16px/1.8 system-ui,sans-serif;color:#3c4e45}
.book-family-eyebrow{margin:0;color:#8c662b;font:700 11px/1.4 system-ui;letter-spacing:.09em;text-transform:uppercase}
.book-family h2{font:700 25px/1.3 Georgia,serif;color:#305342;margin:8px 0 15px}
.book-family h3{font:700 16px/1.6 system-ui;margin:8px 0}
.book-family ol{padding-left:22px;margin:20px 0}.book-family li{padding:8px 0 12px 5px}
.book-family details{font-size:14px}.book-family summary{cursor:pointer;color:#7a592a;padding:6px 0}
.book-family-note{font-size:13px;color:#6b7565;margin-bottom:0}
@media(max-width:650px){.book-photo{margin:24px 0 28px}.book-photo img{max-height:350px}.book-photo figcaption{padding:11px 13px;font-size:13px}.book-family{padding:20px 17px}.book-actions{column-gap:7px;row-gap:7px}.book-actions span{font-size:10px}.book-actions button{padding-inline:10px}}
@media print{.book-photo img{max-height:75mm}.book-family details:not([open]){display:none}.book-photo{break-inside:avoid}}

/* A quiet illustrated book, shared by every history reading route. */
.history-book-page{background:#eee9de;background-image:radial-gradient(ellipse at 12% 0,#f9f3e6 0,transparent 65%);color:#343b32}
.history-book-page #tq-shell .tq-masthead{background:#24483f;background-image:none;border-bottom:1px solid #bca575;box-shadow:none}
.history-book-page #tq-shell .tq-subjects{display:none}
.history-book-page main:has(.history-book-reader){box-sizing:border-box;max-width:840px;width:calc(100% - 40px);margin:24px auto 56px;padding:26px 54px 42px;background:#fffcf5;border:1px solid #ded5c3;border-radius:18px;box-shadow:0 8px 40px #4539230b,4px 5px 0 -1px #f7f0e2,4px 5px 0 0 #ded5c3}
.history-book-page .back-link,.history-book-page .dossier-back,.history-book-page .history-back{font:500 11px/1.5 system-ui;color:#6d776b;text-decoration:none}
.history-book-page .life-hero,.history-book-page .dossier-hero,.history-book-page .figure-hero,.history-book-page .lesson-title{padding:0 0 15px;margin:14px 0 12px;border-bottom:1px solid #e4dac6;overflow:visible}
.history-book-page .life-hero h1,.history-book-page .dossier-hero h1,.history-book-page .figure-hero h1,.history-book-page .lesson-title h1{font:400 clamp(30px,4vw,43px)/1.12 Georgia,'Times New Roman',serif;letter-spacing:-.035em;color:#28483e;margin:7px 0 10px;text-wrap:balance}
.history-book-page #life-generation,.history-book-page .dossier-eyebrow{font:700 9px/1.5 system-ui;letter-spacing:.12em;color:#927047;text-transform:uppercase}
.history-book-page .life-hero figure,.history-book-page .dossier-hero figure{background:#fffdf8;padding:5px;overflow:visible;box-sizing:content-box;border:1px solid #e4d9c6;border-radius:4px;box-shadow:0 4px 10px #43392116;transform:rotate(3deg)}
.history-book-page .life-hero img,.history-book-page .dossier-hero img{border-radius:2px}
.history-book-page .figure-hero img,.history-book-page #lesson-book-portrait{box-sizing:content-box;padding:5px;background:#fffdf8;border:1px solid #e4d9c6;border-radius:4px;box-shadow:0 4px 10px #43392116;transform:rotate(3deg)}
.history-book-page .life-levels,.history-book-page .dossier-levels,.history-book-page .figure-levels,.history-book-page .reader-levels{padding:3px;background:#eeeadd;border-radius:24px;gap:3px;margin:0 0 13px}
.history-book-page .life-levels button,.history-book-page .dossier-levels button,.history-book-page .figure-levels button,.history-book-page .reader-levels button{background:transparent;border:1px solid transparent;border-radius:21px;color:#64705e;font-weight:500;min-height:38px;padding:7px}
.history-book-page .life-levels button[aria-pressed=true],.history-book-page .dossier-levels button[aria-pressed=true],.history-book-page .figure-levels button[aria-pressed=true],.history-book-page .reader-levels button[aria-pressed=true]{background:#fffcf5;border-color:#ded5c1;color:#365541;box-shadow:0 2px 4px #44372309}
.history-book-page .reader-levels small{display:none}
.history-book-reader{max-width:680px;margin-bottom:22px}
.book-actions{gap:9px;margin:5px 0 20px;color:#7b7b6d}
.book-actions button{background:#315448;color:#fffaf0;border-color:#315448;border-radius:24px;box-shadow:none;font-size:11px;font-weight:600;min-height:38px}
.book-actions [data-book-listen][aria-pressed=true]{background:#735239;border-color:#735239}
.book-actions .book-family-toggle{background:transparent;border-color:#dac9a6;color:#796342}
.book-actions .book-family-toggle[aria-pressed=true]{background:#f1e5c9;border-color:#d4bd8a;color:#6c532c}
.book-actions>span{font:italic 11px/1.4 Georgia,serif;margin-inline-start:auto}
.book-actions>a{display:none}
.book-prose{font:20px/1.95 Georgia,'Times New Roman',serif;color:#42463b;letter-spacing:.002em}
.book-prose h2{display:flex;align-items:center;gap:13px;font:400 27px/1.25 Georgia,'Times New Roman',serif;color:#325040;margin:38px 0 19px;letter-spacing:-.025em;text-wrap:balance}
.book-prose section:first-child h2{margin-top:8px}
.book-chapter-number{display:block;flex:none;font:500 10px/1.5 system-ui;letter-spacing:.08em;color:#98784d;border-bottom:1px solid #c9b78f;padding:0 0 4px}
.book-prose p{margin-bottom:22px}
.history-book-reader[dir=ltr] .book-prose>section:first-child>p:first-of-type::first-letter{float:left;font:400 3.1em/.84 Georgia,serif;padding:9px 8px 0 0;color:#8b6840}
.book-prose>section+section{position:relative}
.book-prose>section+section::before{content:"";display:block;width:42px;height:1px;background:#d8c7a6;margin:34px auto 29px}
.book-photo{position:relative;margin:32px 0 38px;padding:7px 7px 0;background:#fffefa;border:1px solid #e3dbc9;border-radius:5px;box-shadow:0 4px 18px #55422c0b}
.book-photo>a{background:#f3efe4;border-radius:2px;overflow:hidden}
.book-photo img{max-height:440px}
.book-photo figcaption{padding:13px 14px 16px;color:#6b705f;font:italic 14px/1.65 Georgia,serif}
.book-photo-kind{font:600 9px/1.5 system-ui;letter-spacing:.09em;color:#947648;margin-bottom:6px}
.book-photo small{font:10px/1.7 system-ui;color:#77796b;margin-top:9px}
.book-photo small a{text-underline-offset:3px;text-decoration-color:#c6c5b7}
.book-ending{display:flex;align-items:center;justify-content:center;gap:17px;color:#a68a57;font:20px/1 Georgia,serif;margin:42px 0 28px}
.book-ending::before,.book-ending::after{content:"";width:46px;height:1px;background:#ddcfb0}
.book-biography,.book-sources,.book-supplements{border-color:#e4dac6;color:#727567;font-size:12px}
.book-biography summary,.book-sources summary,.book-supplements>summary{font-weight:500;color:#52634f}
.book-biography li{padding-block:9px}.book-biography li strong{font-family:Georgia,serif;font-size:17px;font-weight:400;color:#725e3b}
.book-family{background:#f3eddf;border:0;border-radius:8px;padding:29px 30px;color:#4e5949;font-size:15px}
.book-family h2{font:400 30px/1.25 Georgia,serif;color:#365040}
.book-family-eyebrow{font-size:9px;letter-spacing:.14em}.book-family h3{font-weight:500}
.book-family li+li{border-top:1px solid #dfd6c3;padding-top:17px;margin-top:10px}
.book-review{color:#7c7d6d;font:10px/1.6 system-ui}
.book-practice{padding:0;border:1px solid #e2d9c4;border-radius:9px;background:#f7f3e8;margin:18px 0 22px;font:14px/1.5 system-ui;scroll-margin-top:18px}
.book-practice>summary{padding:17px 20px;color:#475e48;font:400 20px/1.3 Georgia,serif;cursor:pointer}
.book-practice>summary small{display:block;margin:6px 0 0 19px;color:#7d7f70;font:11px/1.4 system-ui}
.book-practice-content{padding:5px 20px 22px}.book-practice h2{font-size:15px;font-weight:500}
.book-exercise{background:#365443;border-radius:22px;font-size:12px;font-weight:500}
.book-continuation{border-color:#e4dac6;margin-top:27px;padding-top:22px;gap:10px}
.book-continuation a{border-radius:8px;font-size:11px;font-weight:500;padding:16px 19px}
.book-continuation .book-continue{background:#325244;border-color:#325244;color:#fff8e8}
.book-continue strong{font:400 23px/1.3 Georgia,serif}.book-continuation .book-browse{background:#f4efdf;border-color:#ded1b5;color:#617052}
.history-book-page :is(button,a,summary):focus-visible{outline:3px solid #9c782e;outline-offset:4px}
.history-book-reader[dir=rtl] .book-prose h2{font-family:Arial,sans-serif}
@media(max-width:650px){
 .history-book-page main:has(.history-book-reader){width:100%;margin:0;padding:12px 20px 32px;border:0;border-radius:0;box-shadow:none}
 .history-book-page .life-hero,.history-book-page .dossier-hero,.history-book-page .figure-hero,.history-book-page .lesson-title{margin:8px 0;padding-bottom:10px;gap:15px}
 .history-book-page #life-date{font-size:10px;line-height:1.5}
 .history-book-page .life-levels,.history-book-page .dossier-levels,.history-book-page .figure-levels,.history-book-page .reader-levels{margin-bottom:9px}
 .history-book-page .life-hero h1,.history-book-page .dossier-hero h1,.history-book-page .figure-hero h1,.history-book-page .lesson-title h1{font-size:29px;line-height:1.13;margin-block:5px 8px}
 .history-book-page .life-hero figure,.history-book-page .dossier-hero figure{padding:4px;transform:rotate(2deg)}
 .history-book-page .figure-hero{grid-template-columns:minmax(0,1fr) 64px}.history-book-page .figure-hero img{width:58px;height:64px}
 .history-book-page .life-levels button,.history-book-page .dossier-levels button,.history-book-page .figure-levels button,.history-book-page .reader-levels button{min-height:38px;padding:6px 4px}
 .history-book-page .life-levels strong,.history-book-page .dossier-levels strong,.history-book-page .figure-levels strong,.history-book-page .reader-levels strong{font-size:10px;margin:0}
 .book-actions{gap:6px;margin:0 0 12px}.book-actions button{font-size:11px;padding-inline:10px;min-height:40px}
 .book-actions>span{width:100%;margin:1px 0 0;font-size:10px}.book-prose{font-size:18px;line-height:1.9}
 .book-prose h2{font-size:23px;gap:10px;margin:28px 0 14px}.book-prose section:first-child h2{margin-top:5px}.book-prose p{margin-bottom:21px}
 .book-photo{margin:27px 0 31px;padding:5px 5px 0}.book-photo figcaption{padding:12px 10px 14px;font-size:13px}
 .book-photo img{max-height:350px}.book-family{padding:22px 19px}.book-family h2{font-size:27px}
 .book-practice>summary{padding:15px;font-size:18px}.book-practice-content{padding:5px 15px 18px}
}
@media print{.history-book-page{background:#fff}.history-book-page main:has(.history-book-reader){width:100%;padding:0;border:0;box-shadow:none;margin:0}.book-ending{margin-block:20px}.book-photo{box-shadow:none}.book-chapter-number{color:#555}}

/* A friendly storybook for young readers; the whole story stays visible. */
.history-book-page{background:#edf7f2;background-image:radial-gradient(#c7e4d6 1px,transparent 1px);background-size:21px 21px;color:#344f60}
.history-book-page #tq-shell .tq-masthead{background:#236e72;border-color:#f3cb73}
.history-book-page main:has(.history-book-reader){background:#fffefa;border:2px solid #dceadf;border-radius:26px;box-shadow:0 10px 30px #266b5510,5px 6px 0 -1px #e3edda,5px 6px 0 0 #cbdcc8}
.history-book-page .life-hero,.history-book-page .dossier-hero,.history-book-page .figure-hero,.history-book-page .lesson-title{border-bottom:2px dashed #e0dfcb}
.history-book-page .life-hero h1,.history-book-page .dossier-hero h1,.history-book-page .figure-hero h1,.history-book-page .lesson-title h1{font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;font-weight:800;font-size:clamp(28px,4vw,38px);letter-spacing:-.035em;color:#295b72}
.history-book-page #life-generation,.history-book-page .dossier-eyebrow{color:#846226;letter-spacing:.08em}
.history-book-page .life-hero figure,.history-book-page .dossier-hero figure{border:2px solid #c1dfdb;border-radius:13px;transform:rotate(3deg);background:#eef9f6;box-shadow:3px 4px 0 #dcefe6}
.history-book-page .life-hero img,.history-book-page .dossier-hero img{border-radius:7px}
.history-book-page .figure-hero img,.history-book-page #lesson-book-portrait{border:2px solid #c1dfdb;border-radius:13px;box-shadow:3px 4px 0 #dcefe6}
.history-book-page .life-levels,.history-book-page .dossier-levels,.history-book-page .figure-levels,.history-book-page .reader-levels{background:#edf3ed;padding:3px}
.history-book-page .life-levels button,.history-book-page .dossier-levels button,.history-book-page .figure-levels button,.history-book-page .reader-levels button{color:#506f62}
.history-book-page .life-levels button[aria-pressed=true],.history-book-page .dossier-levels button[aria-pressed=true],.history-book-page .figure-levels button[aria-pressed=true],.history-book-page .reader-levels button[aria-pressed=true]{background:#ffe7a4;border-color:#e8c66c;color:#69511b;box-shadow:0 2px 0 #dec579}
.book-actions button{background:#287a7c;border:1px solid #17686e;box-shadow:0 3px 0 #c2deda;font-size:12px;font-weight:700}
.book-actions .book-family-toggle{background:#fff1c6;border-color:#ead58d;color:#785d22;box-shadow:0 3px 0 #eee1b4}
.book-actions .book-family-toggle[aria-pressed=true]{background:#ffe095;border-color:#e0b858;color:#694d16}
.book-actions>span{font:11px/1.4 system-ui;color:#687969}
.book-prose{color:#354e5c}
.history-book-reader[data-reading-level=discovery] .book-prose{font:20px/1.85 ui-rounded,'Trebuchet MS',Arial,sans-serif;letter-spacing:.01em}
.book-prose h2,.history-book-reader[dir=rtl] .book-prose h2{font:750 25px/1.3 ui-rounded,'Trebuchet MS',Arial,sans-serif;color:var(--chapter-ink,#2e6976);letter-spacing:-.025em;gap:12px;align-items:flex-start;text-wrap:pretty}
.book-prose>section{--chapter-ink:#2e6976;--chapter-tint:#def2f1;--chapter-edge:#a9d8d7;scroll-margin-top:20px;outline:none}
.book-prose>section:nth-child(4n+2){--chapter-ink:#976126;--chapter-tint:#fff0c2;--chapter-edge:#edcd81}
.book-prose>section:nth-child(4n+3){--chapter-ink:#685a91;--chapter-tint:#eee9fa;--chapter-edge:#d7c8ef}
.book-prose>section:nth-child(4n+4){--chapter-ink:#497147;--chapter-tint:#e6f1d8;--chapter-edge:#c2d9a8}
.book-chapter-number{display:grid;place-items:center;box-sizing:border-box;width:34px;height:34px;padding:0;margin-top:1px;background:var(--chapter-tint);border:1px solid var(--chapter-edge);border-radius:11px;box-shadow:0 3px 0 var(--chapter-edge);font:800 15px/1 ui-rounded,'Trebuchet MS',Arial,sans-serif;letter-spacing:0;color:var(--chapter-ink);transform:rotate(-4deg)}
.history-book-reader[dir=ltr] .book-prose>section:first-child>p:first-of-type::first-letter{float:none;font:inherit;padding:0;color:inherit}
.book-prose>section+section::before{width:40px;height:4px;border-radius:4px;background:var(--chapter-edge);margin:28px auto 25px}
.book-prose p{margin-bottom:23px}
.book-next-chapter{display:flex;width:fit-content;max-width:100%;align-items:center;gap:16px;margin:23px 0 6px auto;padding:9px 11px 9px 17px;box-sizing:border-box;min-height:44px;border-radius:24px;border:1px solid var(--chapter-edge);background:var(--chapter-tint);color:var(--chapter-ink);font:700 12px/1.4 ui-rounded,'Trebuchet MS',Arial,sans-serif;text-decoration:none}
.book-next-chapter span{display:grid;place-items:center;width:26px;height:26px;background:#fffdf5;border-radius:50%;font-size:19px}.book-next-chapter:hover{text-decoration:underline;text-underline-offset:3px}
.history-book-reader[dir=rtl] .book-next-chapter{margin-inline-start:auto;margin-inline-end:0}
.book-photo{padding:8px 8px 0;border:2px solid #c9e0d6;border-radius:18px;background:#fafffc;box-shadow:4px 5px 0 #e2eee1;margin-block:31px 35px;overflow:visible}
.book-photo::before{content:"";position:absolute;top:-7px;left:calc(50% - 22px);width:44px;height:14px;border-radius:2px;background:#f6d87ac9;transform:rotate(-5deg);pointer-events:none}
.book-photo>a{border-radius:9px;background:#edf5eb;overflow:hidden}.book-photo img{border-radius:7px}
.book-photo figcaption{font:14px/1.65 ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#506b60;padding:14px 12px 16px}
.book-photo-kind{color:#6c642d;font-size:9px;letter-spacing:.06em}.book-photo small{color:#64705d;font-size:11px}
.book-ending{gap:15px;justify-content:flex-start;max-width:480px;margin:35px auto 28px;padding:18px 20px;border:2px dashed #decf92;border-radius:20px;background:#fff6d7;box-sizing:border-box;color:#725924}
.book-ending::before,.book-ending::after{display:none}.book-friend{flex:none;display:block}
.book-ending strong{display:block;font:800 18px/1.3 ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#6a5424}.book-ending p{font:13px/1.6 ui-rounded,'Trebuchet MS',Arial,sans-serif;margin:7px 0 0;color:#775f30}
.book-biography li strong{font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;font-weight:700;color:#496d74}
.book-family{border:2px solid #d8e6c5;border-radius:20px;background:#f1f7e8;color:#475b3b;padding:25px}
.book-family h2{font:800 27px/1.25 ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#4d753e}.book-family-eyebrow{color:#61743a;letter-spacing:.08em}
.book-family h3{font-weight:700}.book-family li+li{border-color:#dbe6ca}.book-family details{color:#655c2a}
.book-practice{background:#f0ebfa;border:1px solid #d9cdef;border-radius:18px}.book-practice>summary{font:750 20px/1.35 ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#675089}.book-practice>summary small{color:#726084;font-size:12px}
.book-exercise{background:#746095;box-shadow:0 3px 0 #dfd5ee;font-size:13px}
.book-continuation a{border-radius:17px}.book-continuation .book-continue{background:#247a7e;border-color:#20686d;box-shadow:0 4px 0 #c0dcd3}.book-continue strong{font:800 22px/1.25 ui-rounded,'Trebuchet MS',Arial,sans-serif}
.book-continuation .book-browse{background:#fff0c2;border-color:#e4ce81;color:#745c24;box-shadow:0 4px 0 #eee2b7}
.book-biography summary,.book-sources summary,.book-supplements>summary{font-size:13px;color:#526b61}.book-review{color:#66725e}
@media(max-width:650px){
 .history-book-page main:has(.history-book-reader){border:0;border-radius:0;box-shadow:none;padding-inline:20px}
 .history-book-page .life-hero h1,.history-book-page .dossier-hero h1,.history-book-page .figure-hero h1,.history-book-page .lesson-title h1{font-size:27px;line-height:1.12}
 .history-book-page .life-hero figure,.history-book-page .dossier-hero figure{padding:3px;box-shadow:2px 3px 0 #dcefe6}
 .book-actions button{font-size:11px;min-height:40px}.book-actions>span{font-size:10px}
 .history-book-reader[data-reading-level=discovery] .book-prose{font-size:19px;line-height:1.8}
 .book-prose h2,.history-book-reader[dir=rtl] .book-prose h2{font-size:21px;gap:10px;line-height:1.35;margin-bottom:17px}
 .book-chapter-number{width:31px;height:31px;font-size:14px;border-radius:10px}
 .book-photo{padding:6px 6px 0;border-radius:15px}.book-photo figcaption{font-size:13px;padding-inline:9px}
 .book-ending{padding:16px 13px;gap:11px}.book-friend{width:61px;height:auto}.book-ending strong{font-size:16px}.book-ending p{font-size:12px}
 .book-family{padding:22px 18px}.book-family h2{font-size:25px}.book-practice>summary{font-size:18px}
}
@media print{.history-book-page{background:#fff}.book-next-chapter,.book-ending{display:none}.book-photo,.book-chapter-number{box-shadow:none}.book-photo::before{display:none}.history-book-reader[data-reading-level=discovery] .book-prose{font-size:12pt}}
