@font-face{font-family:Gujarati;src:url('book-assets/gujarati.ttf') format('truetype');font-display:swap}
:root{--ink:#352c20;--muted:#655640;--paper:#efe4c8;--cloth:#54543b;--accent:#714c37;--book-width:min(1040px,calc(100vw - 216px),calc((100svh - 150px)*1.5))}
*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;width:100%}body{background:#24180f;color:var(--ink);font:20px/1.55 Georgia,Gujarati,serif}button,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.32;cursor:default}button:focus-visible,select:focus-visible,.page-content:focus-visible{outline:2px solid #8e5a22;outline-offset:4px}img{display:block;max-width:100%;user-select:none;-webkit-user-drag:none}h1,h2,p,figure{margin:0}h1,h2{font-weight:400;line-height:1.2;text-wrap:balance}h1{font-size:clamp(30px,2.9vw,42px);white-space:pre-line}h2{font-size:clamp(25px,2.1vw,32px)}p{line-height:1.6}.desk{min-height:100svh;position:relative;isolation:isolate;background:#3b291b url('book-assets/desk.webp') center/cover fixed}.desk:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,transparent 35%,#10080445);pointer-events:none;z-index:-1}.desk-tools{position:absolute;inset:16px 24px auto;display:flex;justify-content:space-between;z-index:10;font-size:16px;color:#f5ead2}.desk-tools button{min-height:48px;padding:8px 12px;text-shadow:0 1px 5px #190d07;background:#21150d55;border-radius:2px}.desk-tools button:focus-visible{outline-color:#e5c48b}.invisible{visibility:hidden}.book-stage{min-height:100svh;display:grid;place-items:center;padding:76px 130px 60px 30px;perspective:2200px}.volume{position:relative;width:var(--book-width);aspect-ratio:1.5;isolation:isolate;background:url('book-assets/album.webp') center/100% 100% no-repeat;box-shadow:3px 8px 2px #6f6045,9px 22px 35px #130a0799;border-radius:3px}.spread{position:absolute;inset:6.7% 4.5% 10.7%;display:grid;grid-template-columns:1fr 1fr;gap:0}.leaf{min-width:0;min-height:0;padding:0 7% 0 3%}.leaf.right{padding:0 3% 0 8%}.page-content{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b49e76 transparent;padding:3px 8px 8px 3px}.gutter{position:absolute;left:calc(50% - 18px);top:4%;bottom:8%;width:36px;background:linear-gradient(90deg,transparent,#5b462e12 43%,#f8edd73d 54%,transparent);pointer-events:none}.bookmarks{position:absolute;left:99.6%;top:15%;display:grid;gap:14px;width:130px;z-index:-1}.bookmarks button{min-height:53px;padding:13px 14px 13px 18px;background:var(--cloth);color:#fff0d5;text-align:left;font-size:18px;line-height:1.3;border-radius:0 2px 2px 0;box-shadow:2px 4px 6px #160c073d;transition:transform .2s,background .2s}.bookmarks button:after{content:'';position:absolute;left:10px;right:7px;top:5px;bottom:5px;border-block:1px solid #d3c39c2b;pointer-events:none}.bookmarks button{position:relative}.bookmarks button[aria-current=page]{background:var(--accent);transform:translateX(6px)}.bookmarks button:hover{background:#6a6748}.bookmarks button[aria-current=page]:hover{background:var(--accent)}.bookmarks button:focus-visible{outline-color:#e9cca0}.closed .volume{width:min(375px,calc(67svh/1.58),55vw);aspect-ratio:1/1.58;transform:rotate(-7deg);background:#131a13;box-shadow:4px 6px 0 #af9f81,6px 9px 0 #211c17,13px 22px 27px #100a0899}.closed .bookmarks{top:23%;width:125px}.closed .bookmarks button{font-size:17px}.cover{position:absolute;inset:0;padding:0;border-radius:3px;overflow:hidden}.cover img{width:100%;height:100%;object-fit:fill}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#b4a78b36,transparent 1.5%,#0008 2.7%,#e4debc24 4.3%,transparent 6%);pointer-events:none}.opening-cue{position:absolute;bottom:24px;left:0;right:0;text-align:center;color:#f4e5c5;font-size:19px;font-style:italic;text-shadow:0 2px 4px #110801}.opened .volume{perspective:2200px}.running-title{color:var(--muted);font-size:16px;margin-bottom:24px}.picture-page .page-content,.message-page .page-content,.reflection-page .page-content,.story-page .page-content,.truth-page .page-content,.film-page .page-content{display:flex;flex-direction:column;justify-content:safe center}.picture-page figure{margin:15px 0}.photograph{padding:8px 8px 23px;background:#f4ebd5;box-shadow:2px 6px 10px #3e2c202b;transform:rotate(-3deg)}.photograph img{width:100%;height:auto;object-fit:contain}figcaption{font-size:21px;font-style:italic;text-align:center;margin-top:27px}.story-page h1{margin-bottom:22px}.story-page p:not(.running-title){font-size:19px;line-height:1.65;margin-bottom:16px}.quiet-link{min-height:44px;padding:8px 0;align-self:flex-start;text-align:left;font-size:18px;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#a58a5a}.quiet-link span{display:inline-block;margin-left:12px;text-decoration:none}.quiet-link:hover{color:#784a2d}.message-page h1{margin-bottom:26px}.message-page p:not(.running-title){margin-bottom:30px;font-size:21px;line-height:1.65}.truth-page h2{font-size:28px;margin-bottom:23px}.truths{list-style:none;margin:0;padding:0}.truths li{display:flex;gap:22px;align-items:center;min-height:68px;border-bottom:1px solid #b5a17c4d}.truths li:last-child{border-bottom:0}.truths li>span{font-size:17px;color:var(--muted)}.truths p{font-size:21px;line-height:1.4}.reflection-page h2{font-size:31px;line-height:1.35;margin-bottom:26px}.reflection-page p:not(.running-title){font-size:22px;line-height:1.65}.film-page h1{margin-bottom:30px}.film-page video{width:100%;aspect-ratio:1.25;background:#241b14;object-fit:contain}.caption{font-size:14px;color:var(--muted);font-style:italic;margin-top:12px}.with-turns{bottom:17.5%}.turn-controls{position:absolute;left:8%;right:8%;bottom:9.8%;display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:15px}.turn-controls button{min-height:44px;padding:8px 4px}.turn-controls .all-topics{font-style:italic;text-decoration:underline;text-underline-offset:4px}.turn-controls select{max-width:140px;padding:6px 10px;min-height:44px;background:#eee1c2;border:1px solid #a79068;border-radius:2px}.verse-page .page-content{padding-top:0}.scan-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}.scan-heading h2{font-size:18px}.scan-heading button{font-size:24px;min-width:44px;min-height:44px}.scan{width:100%;mix-blend-mode:multiply}.turning-page{position:absolute;left:50%;top:4%;bottom:8%;width:47%;background:#ede3cc url('book-assets/album.webp') right center/200% 100%;transform-origin:left center;z-index:5;pointer-events:none;backface-visibility:hidden;animation:turn-leaf .62s cubic-bezier(.5,.04,.25,1) both;box-shadow:8px 0 20px #3d2d172b}.turning-page.back{left:3%;transform-origin:right center;animation-name:turn-back;background-position:left}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes open-book{from{transform:rotate(-5deg) scale(.93);opacity:.6}to{transform:none;opacity:1}}@keyframes turn-leaf{0%{transform:rotateY(0);opacity:1}85%{opacity:1}100%{transform:rotateY(-175deg);opacity:0}}@keyframes turn-back{0%{transform:rotateY(0);opacity:1}85%{opacity:1}100%{transform:rotateY(175deg);opacity:0}}html[lang=gu] .story-page p{line-height:1.85}
@media(max-width:1100px) and (min-width:760px){:root{--book-width:min(calc(100vw - 175px),calc((100svh - 140px)*1.5))}.book-stage{padding-right:120px;padding-left:20px}.bookmarks{width:111px}.bookmarks button{font-size:16px}.story-page p:not(.running-title){font-size:17px}.reflection-page h2{font-size:26px}.reflection-page p:not(.running-title){font-size:19px}.truths p{font-size:19px}.truths li{min-height:61px}.truth-page h2{font-size:24px}}
@media(max-height:780px) and (min-width:760px){.story-page h1{font-size:32px;margin-bottom:16px}.story-page p:not(.running-title){font-size:17px;margin-bottom:12px}.running-title{margin-bottom:17px}.truths li{min-height:56px}.truths p{font-size:19px}.reflection-page h2{font-size:27px}.reflection-page p:not(.running-title){font-size:20px}.message-page p:not(.running-title){font-size:19px}.bookmarks{gap:12px}}
@media(max-width:759px){.desk{background-attachment:fixed}.desk-tools{position:relative;inset:auto;padding:12px 14px;font-size:14px}.desk-tools button{min-height:44px}.book-stage{min-height:calc(100svh - 68px);padding:72px 16px 36px;display:block}.volume{width:100%;aspect-ratio:auto;background:#eee3c7;border-radius:3px;box-shadow:0 3px 0 #bca985,0 7px 0 #4f3525,3px 13px 23px #130a0780}.bookmarks{left:0;right:0;top:-54px;width:auto;display:flex;gap:4px;z-index:3}.bookmarks button{flex:1;text-align:center;min-height:44px;font-size:14px;padding:8px 3px;border-radius:3px 3px 0 0;box-shadow:none}.bookmarks button:after{display:none}.bookmarks button[aria-current=page]{transform:translateY(-3px)}.spread{position:relative;inset:auto;display:block;padding:0}.leaf,.leaf.right{padding:26px 22px;background:#eee3c7;box-shadow:inset 9px 0 15px #b6a27518}.leaf.right{border-top:1px solid #b8a1765e}.page-content{height:auto;max-height:none;overflow:visible;padding:0}.gutter,.turning-page{display:none}.closed{display:grid;padding:80px 48px 80px 16px}.closed .volume{width:min(300px,calc(62svh/1.58),68vw);aspect-ratio:1/1.58}.closed .bookmarks{top:-55px;left:-10%;width:126%;gap:3px}.closed .bookmarks button{font-size:12px;min-height:43px}.opening-cue{font-size:17px;bottom:20px}.picture-page .page-content{display:block}.photograph{max-width:340px;margin:12px auto}.photograph img{aspect-ratio:auto}figcaption{font-size:18px;margin-top:22px}.story-page h1,.message-page h1{font-size:34px}.running-title{font-size:15px;margin-bottom:18px}.story-page p:not(.running-title){font-size:19px}.message-page p:not(.running-title),.reflection-page p:not(.running-title){font-size:20px}.reflection-page h2{font-size:27px}.film-page video{aspect-ratio:1.5;max-height:310px}.turn-controls{position:relative;left:auto;right:auto;bottom:auto;padding:10px 16px;border-top:1px solid #b8a1765e;font-size:14px}.truth-page h2{font-size:26px}.truths p{font-size:20px}.truths li{min-height:65px}.verse-page .page-content{overflow:auto;max-height:78svh;overscroll-behavior:contain}.scan-heading h2{font-size:18px}.with-turns{bottom:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.turning-page{display:none}}.opening-lid{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:left center;z-index:7;pointer-events:none;backface-visibility:hidden;animation:open-lid .95s cubic-bezier(.38,.04,.22,1) both}.opening-lid img{width:100%;height:100%}@keyframes open-lid{from{transform:rotateY(0)}to{transform:rotateY(-179deg)}}
@media(max-width:759px){.desk-tools{position:sticky;top:0;background:#2c1e13ed}.opened .bookmarks{position:fixed;top:68px;left:16px;right:16px;width:auto;padding:4px;background:#38291c}.opened .volume{perspective:none}.opening-lid{display:none}.page-content{scroll-margin-top:130px}}
@media(prefers-reduced-motion:reduce){.opening-lid{display:none}}

@media(max-width:759px){.book-stage{perspective:none}}

/* Chapter-first browsing: one invitation and six choices, with the original artwork. */
.book-icon{width:24px;height:24px;flex:0 0 auto;vertical-align:middle}
.reading-toggle{display:flex;gap:9px;align-items:center}
.chapter-index .page-content{display:flex;flex-direction:column;justify-content:safe center;gap:20px}
.chapter-intro h1{font-size:32px;line-height:1.18;margin-bottom:20px}
.index-photograph{position:relative;padding:0;display:block;width:100%;max-width:275px;background:#21190f}
.index-photograph img{width:100%;height:auto}
.index-photograph>span{position:absolute;bottom:0;right:0;display:flex;align-items:center;gap:7px;padding:6px 10px;background:#21190fe8;color:#fff3dc;font-size:13px}
.index-photograph .book-icon{width:16px;height:16px}
.chapter-choices{display:flex;flex-direction:column}
.chapter-choices button{display:flex;align-items:center;gap:16px;text-align:left;padding:10px 8px;min-height:49px;font-size:18px;border-bottom:1px solid #ae977844}
.chapter-choices button:last-child{border-bottom:0}
.chapter-choices button[aria-pressed=true]{color:#673b25;background:#aa83551c}
.chapter-choices button[aria-pressed=true] .book-icon{stroke-width:2}
.chapter-choices button:hover{background:#aa83551c}
.chapter-arrow{margin-left:auto;opacity:0}
.chapter-choices [aria-pressed=true] .chapter-arrow{opacity:1}
.chapter-topics .page-content{display:flex;flex-direction:column;justify-content:safe center}
.chapter-heading{margin-bottom:27px}
.chapter-heading>.book-icon{width:52px;height:52px;color:#7a5b3b;margin-bottom:22px;stroke-width:1.1}
.chapter-heading h2{font-size:29px}
.topic-choices button{width:100%;display:flex;gap:16px;align-items:center;justify-content:space-between;min-height:58px;padding:13px 0;text-align:left;font-size:22px;border-bottom:1px solid #ae97785c;line-height:1.35}
.topic-choices button .book-icon{width:18px;height:18px;color:#836544}
.topic-choices button:hover{color:#673b25;background:#aa835510}
.chapter-cue{font-size:15px;color:var(--muted);margin-top:26px}
.topic-title-page .page-content{display:flex;flex-direction:column;align-items:center;justify-content:safe center;text-align:center}
.topic-emblem{width:118px;height:118px;color:#7a5b3b;stroke-width:.8;margin-bottom:36px}
.topic-title-page h1{font-size:38px}
.topic-family{font-size:16px;color:var(--muted);margin-top:20px;font-style:italic}
.reflection-page h2{font-size:32px;line-height:1.4;margin-bottom:28px}
.reflection-reveal{border-block:1px solid #ae97785c;margin-bottom:30px}
.reflection-reveal summary{font-size:18px;cursor:pointer;min-height:52px;padding:13px 0;list-style-position:inside}
.reflection-reveal p{padding:6px 0 22px;font-size:20px!important}
.reflection-reveal summary:focus-visible{outline:2px solid #8e5a22;outline-offset:4px}
.photograph{position:relative;width:100%;display:block}
.image-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-size:16px;padding:8px;color:#5e3c26;background:#e2d0aa}
.image-action .book-icon{width:18px;height:18px}
.photograph .image-action{margin-top:8px;background:transparent;padding-bottom:0;min-height:36px}
.verse-page .page-content{display:flex;flex-direction:column;overflow:hidden}
.scan-heading{flex:0 0 auto;margin-bottom:16px}
.scan-open{display:flex;flex-direction:column;align-items:center;min-height:0;flex:1;width:100%;padding:0;cursor:zoom-in}
.scan-open .scan{flex:1;min-height:0;object-fit:contain;width:100%}
.scan-open .image-action{margin-top:12px;flex:0 0 auto;width:100%}

/* A reading surface without constrained leaf scrolling. */
.large-reading .opened{padding-top:88px;align-items:start}
.large-reading .opened .volume{width:min(1320px,calc(100vw - 200px));aspect-ratio:auto;background:var(--paper);border:12px solid #643834}
.large-reading .spread{position:relative;inset:auto;padding:40px 25px 50px}
.large-reading .leaf{padding:0 28px}
.large-reading .leaf.right{border-left:1px solid #ad956e70}
.large-reading .page-content{height:auto;overflow:visible;min-height:600px}
.large-reading .turn-controls{position:relative;left:auto;right:auto;bottom:auto;margin:0 35px 20px}
.large-reading .gutter,.large-reading .turning-page{display:none}
.large-reading .story-page p:not(.running-title),.large-reading .message-page p:not(.running-title),.large-reading .truths p{font-size:24px}
.large-reading .reflection-reveal p{font-size:24px!important}
.large-reading .verse-page .page-content{height:auto}
.large-reading .scan-open{flex:initial}
.large-reading .scan-open .scan{height:auto;max-height:75svh}

/* The viewer keeps the entire original image and visible controls at every zoom. */
.image-reader{position:fixed;inset:0;margin:auto;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:#221c15;color:#f5ead4;overflow:hidden}
.image-reader[open]{display:flex;flex-direction:column}
.image-reader::backdrop{background:#17110d}
.reader-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;background:#30271d;flex-shrink:0}
.reader-header h2{font-size:23px}
.reader-header p{font-size:14px;color:#d3c0a3;margin-top:4px}
.reader-header button{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 12px;background:#51422f;font-size:17px}
.reader-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;scrollbar-color:#aa9470 #221c15}
.reader-stage.can-pan{cursor:grab}
.reader-stage.can-pan:active{cursor:grabbing}
.reader-canvas{display:flex;align-items:center;justify-content:center;padding:20px;min-height:100%;min-width:100%;width:max-content;box-sizing:border-box}
.reader-canvas img{max-width:none;height:auto;flex:none;box-shadow:3px 8px 24px #0008;pointer-events:none}
.reader-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-shrink:0;padding:12px 24px;background:#30271d;font-size:16px}
.reader-zoom,.reader-pages{display:flex;align-items:center;gap:6px}
.reader-footer button{min-width:44px;min-height:44px;padding:8px 12px;background:#51422f;white-space:nowrap}
.reader-footer button:hover,.reader-header button:hover{background:#67543c}
.reader-footer output{min-width:55px;text-align:center;font-size:15px}
.reader-pages select{background:#51422f;color:#f5ead4;border:0;min-height:44px;padding:8px;max-width:185px;font-size:16px}
.image-reader button:focus-visible,.reader-stage:focus-visible,.reader-pages select:focus-visible{outline-color:#f0c98c;outline-offset:-3px}
.reader-footer button:disabled{opacity:.4}
html[lang=gu] .chapter-choices button{font-size:16px}
html[lang=gu] .chapter-cue{font-size:14px}

@media(max-height:780px) and (min-width:760px){
 .chapter-index .page-content{gap:14px}.chapter-intro{display:flex;align-items:center;gap:18px}.chapter-intro h1{font-size:27px;margin:0;flex:1}.index-photograph{width:43%;flex:none}.index-photograph>span{font-size:0;padding:7px}.chapter-choices button{min-height:52px;font-size:17px}.chapter-heading{margin-bottom:14px}.chapter-heading>.book-icon{width:40px;height:40px;margin-bottom:12px}.chapter-heading h2{font-size:25px}.topic-choices button{font-size:20px;min-height:52px}.chapter-cue{margin-top:18px;font-size:14px}.reflection-page h2{font-size:28px}.topic-emblem{width:96px;height:96px}.topic-title-page h1{font-size:32px}
}
@media(min-width:760px) and (max-width:1100px){
 .chapter-intro h1{font-size:27px}.chapter-choices button{font-size:16px;gap:12px}.topic-choices button{font-size:19px}.chapter-heading h2{font-size:24px}.chapter-heading>.book-icon{width:40px;height:40px;margin-bottom:14px}.chapter-cue{font-size:14px}.index-photograph{max-width:230px}.topic-title-page h1{font-size:32px}
}
@media(max-width:759px){
 .desk-tools{gap:4px;padding:10px 10px;font-size:13px;align-items:center;min-height:68px}.desk-tools button{padding:8px 6px}.reading-toggle{gap:5px}.reading-toggle .book-icon{width:17px;height:17px}
 .chapter-index .page-content{gap:22px}.chapter-intro{display:flex;align-items:center;gap:20px}.chapter-intro h1{font-size:28px;flex:1;margin:0}.index-photograph{width:40%;max-width:210px;flex:none}.index-photograph>span{font-size:0;padding:6px}.index-photograph .book-icon{width:17px;height:17px}
 .chapter-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.chapter-choices button{flex-direction:column;justify-content:flex-start;gap:10px;text-align:center;font-size:12px;line-height:1.3;padding:10px 3px;border:0;min-height:78px}.chapter-arrow{display:none}.chapter-choices button[aria-pressed=true]{box-shadow:inset 0 -2px #714c37}.chapter-choices button .book-icon{width:23px;height:23px}
 .chapter-topics{scroll-margin-top:126px}.chapter-heading{display:flex;align-items:center;gap:14px;margin-bottom:14px}.chapter-heading>.book-icon{width:30px;height:30px;margin:0}.chapter-heading h2{font-size:25px}.topic-choices{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.topic-choices button{font-size:19px;min-height:66px;padding:12px 0;gap:8px}.topic-choices button .book-icon{width:16px;height:16px}.chapter-cue{font-size:14px;margin-top:22px}.chapter-index,.chapter-topics{padding:24px 20px}
 .topic-title-page .page-content{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;text-align:left;column-gap:20px}.topic-emblem{width:58px;height:58px;margin:0}.topic-title-page h1{font-size:31px;flex:1}.topic-family{flex-basis:100%;font-size:14px;margin-top:16px}.reflection-page h2{font-size:28px}.reflection-reveal summary{font-size:17px}.reflection-reveal p{font-size:20px!important}
 .verse-page .page-content{height:auto;max-height:none;overflow:visible}.scan-open{flex:initial}.scan-open .scan{max-height:60svh}.scan-heading h2{font-size:20px}
 .large-reading .opened{padding:72px 10px 36px}.large-reading .opened .volume{width:100%;border:0}.large-reading .spread{padding:0;display:block}.large-reading .leaf,.large-reading .leaf.right{padding:26px 22px;border-left:0}.large-reading .page-content{min-height:0}.large-reading .topic-choices{grid-template-columns:1fr}.large-reading .topic-choices button{font-size:24px}.large-reading .turn-controls{margin:0}.large-reading .chapter-intro h1{font-size:31px}
 .reader-header{padding:12px 14px;gap:12px}.reader-header h2{font-size:20px}.reader-header button{font-size:14px;gap:6px;padding:8px}.reader-header .book-icon{width:20px;height:20px}.reader-header p{font-size:12px}.reader-footer{padding:10px 12px;flex-wrap:wrap;gap:10px;justify-content:center}.reader-zoom{justify-content:center;width:100%;gap:3px}.reader-footer button{padding:8px;font-size:14px}.reader-footer output{min-width:48px;font-size:14px}.reader-pages{justify-content:center}.reader-pages select{max-width:220px}.reader-canvas{padding:20px}
 html[lang=gu] .chapter-choices button{font-size:11px;line-height:1.6}html[lang=gu] .chapter-heading h2{font-size:23px}html[lang=gu] .topic-choices button{font-size:18px}
}

.large-reading .topic-choices button{font-size:25px}.large-reading .chapter-choices button{font-size:21px}
@media(max-width:759px){.large-reading .chapter-choices button{font-size:12px}}

/* Topic illustrations and the two relevant source films share one reading layout. */
.visual-topic-page .page-content{display:flex;flex-direction:column;justify-content:safe center}
.visual-topic-page .topic-family{font-size:15px;margin:0 0 12px;text-align:left;font-style:italic}
.visual-topic-page h1{font-size:34px;margin:0 0 25px}
.topic-media{width:100%}
.topic-film-frame{position:relative;isolation:isolate;width:100%;aspect-ratio:854/480;background:#211b15;overflow:hidden}
.topic-film-frame video{display:block;width:100%;height:100%;object-fit:contain}
.film-play{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:12px 14px;min-height:56px;background:#21170fe8;color:#fff4dd;font-size:16px;text-align:left}
.film-play:hover{background:#3b2d20f2}.film-play:focus-visible{outline-color:#ffe1ad;outline-offset:-4px}
.film-play .play-mark{display:grid;place-items:center;border:1px solid #ddc9a980;border-radius:50%;width:33px;height:33px;font-size:14px;padding-left:2px}
.film-play small{margin-left:auto;font-size:13px;color:#e4d3b7}
.topic-media figcaption{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;text-align:left;font-style:normal;margin-top:14px;font-size:16px;line-height:1.4}
.topic-media figcaption small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.topic-media figcaption button{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:44px;padding:0;font-size:14px;text-decoration:underline;text-underline-offset:4px;flex-shrink:0}
.topic-media figcaption .book-icon{width:17px;height:17px}
.film-error{position:absolute;inset:0 0 auto;padding:8px;background:#21170fee;color:#fff4dd;font-size:15px}
.return-to-topic{display:block;align-self:flex-start;text-align:left;font-size:16px;min-height:44px;margin-bottom:18px;padding:0;text-decoration:underline;text-underline-offset:4px}
.film-reader{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:auto;border:0;padding:0;overflow:hidden;background:#18140f;color:#f5ead4}
.film-reader[open]{display:flex;flex-direction:column}.film-reader::backdrop{background:#18140f}
.film-reader-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:24px}
.film-reader .topic-film-frame{width:min(100%,calc((100dvh - 150px)*854/480));max-height:100%;flex:none}
.film-reader .film-play{font-size:20px;padding:16px 24px;min-height:72px}.film-reader .film-play small{font-size:16px}
.film-reader button:focus-visible{outline-color:#ffe1ad;outline-offset:-3px}
.large-reading .visual-topic-page h1{font-size:40px}.large-reading .topic-media figcaption{font-size:19px}
@media(max-height:780px) and (min-width:760px){.visual-topic-page h1{font-size:30px;margin-bottom:20px}.visual-topic-page .topic-family{font-size:14px}.topic-media figcaption{font-size:15px}.topic-media figcaption button{font-size:13px}.message-page .return-to-topic{margin-bottom:10px}}
@media(max-width:759px){.visual-topic-page h1{font-size:31px;margin-bottom:20px}.visual-topic-page .topic-family{font-size:14px}.topic-media figcaption{font-size:15px}.topic-media figcaption button{font-size:13px}.topic-media figcaption small{font-size:11px}.film-play{font-size:15px;padding:10px 12px;min-height:52px}.film-play small{font-size:12px}.film-reader-stage{padding:12px}.film-reader .film-play{font-size:16px;padding:12px;min-height:56px}.film-reader .film-play small{font-size:12px}.return-to-topic{font-size:15px}}

/* Keep the lower-right figures in the source scene clear of playback controls. */
.film-play{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:max-content;max-width:92%;justify-content:center;background:#21170ff0;box-shadow:2px 4px 10px #0004}
.film-play small{margin-left:4px}
.film-reader .film-play{padding:14px 20px;min-height:60px}
@media(max-width:759px){.film-reader .film-play{padding:10px 12px;min-height:52px}}

.topic-image-open{display:block;width:100%;padding:0;cursor:zoom-in;background:#d4c39d}
.topic-image-open img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.topic-picture figcaption{align-items:flex-start}
.scene-summary{margin-top:14px;border-top:1px solid #ae97785c;font-size:15px}
.scene-summary summary{cursor:pointer;min-height:44px;padding:10px 0;list-style-position:inside}
.scene-summary p{font-size:16px;line-height:1.55;padding-bottom:8px}
.scene-summary summary:focus-visible{outline:2px solid #8e5a22;outline-offset:4px}


/* Set both leaves to the same printed-page baseline; keep the binding clear. */
.visual-topic-page .page-content,.reflection-page .page-content{justify-content:flex-start;padding-top:24px}
.visual-topic-page .topic-family,.reflection-page .topic-family{font-size:15px;line-height:1.6;margin:0 0 12px;color:var(--muted);font-style:italic;text-align:left}
.visual-topic-page h1,.reflection-page h2{font-size:32px;line-height:1.35;margin:0 0 28px}
.reflection-page .quiet-link{margin-top:4px}
.turn-controls{left:6%;right:6%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:8%}
.turn-left{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.turn-controls .turn-next{justify-self:end}
.turn-controls select{max-width:130px;font-size:14px;background:transparent;border:0;border-bottom:1px solid #a79068;border-radius:0}
@media(max-height:780px) and (min-width:760px){
 .visual-topic-page .page-content,.reflection-page .page-content{padding-top:10px}
 .visual-topic-page h1,.reflection-page h2{font-size:28px;margin-bottom:22px}
 .visual-topic-page .topic-family,.reflection-page .topic-family{font-size:14px}
}
@media(max-width:759px){
 .visual-topic-page .page-content,.reflection-page .page-content{padding-top:0}
 .visual-topic-page h1{font-size:31px;margin-bottom:22px}
 .reflection-page h2{font-size:27px;margin-bottom:24px}
 .visual-topic-page .topic-family,.reflection-page .topic-family{font-size:14px}
 .turn-controls{left:auto;right:auto;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}
 .turn-left{gap:8px}.turn-controls select{max-width:108px;padding:6px 4px}
}
