.masthead img,.credits img{object-fit:contain}.hero .wrap{padding-bottom:22px}.hero h1{margin:12px 0 0}.hero h1 span{color:var(--gold)}.master-head{display:grid;grid-template-columns:1fr minmax(0,1fr);gap:22px;align-items:end}.master-credit{padding-bottom:5px}.master-credit p{font-size:.84rem;max-width:56ch;margin:5px 0}.sticky{padding-top:max(6px,env(safe-area-inset-top));background:var(--paper)}body{padding-bottom:env(safe-area-inset-bottom)}.deck{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}.caption-box{max-block-size:min(43vh,30rem);width:100%;padding:8px 13px}.caption-box p{max-width:88ch;line-height:1.38}.player-top{display:flex;gap:10px;align-items:center;margin-bottom:4px}.player-top strong{flex:1;font-size:.92rem;line-height:1.2}.player-top .btn{min-height:44px}.controls .timeline{flex:1;min-width:40px}.tools{margin-top:4px}.player-state{display:flex;align-items:center;gap:8px;min-height:1.25em;color:var(--muted);font-size:.76rem}.chapter-header{margin:18px 0 22px;border-bottom:1px solid var(--rule);padding-bottom:13px}.chapter-header h2{font:normal clamp(2rem,4.4vw,4rem)/1.04 var(--serif);margin:3px 0 8px;letter-spacing:-.045em}.chapter-header p{margin:2px 0;font-size:.84rem;color:var(--muted)}.map summary{font:normal 1.65rem/1.1 var(--serif);cursor:pointer;min-height:44px}.map details{min-height:0;display:flex;flex-direction:column}.map details[open]{display:flex}.map-scroll{max-height:max(90px,calc(100dvh - var(--player-height,150px) - 87px))}.map-row{cursor:pointer}.chapter-group{scroll-margin-top:calc(var(--player-height,155px) + 8px)}.visual{margin:12px 0 4px;padding:12px;background:var(--mint);border:1px solid var(--rule);border-radius:10px}.visual h5{font:normal 1.36rem/1.18 var(--serif);margin:6px 0}.visual p{margin:5px 0;font-size:.88rem}.visual .steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0;padding:0;counter-reset:flow}.steps li{counter-increment:flow;padding:5px 8px;border:1px solid var(--rule);background:var(--white);border-radius:5px;font-size:.8rem}.steps li::before{content:counter(flow) ' · ';color:var(--teal);font-weight:750}.visual-bar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.visual-bar a{display:inline-flex;align-items:center;min-height:44px;font-size:.84rem}.listen #follow,.listen #current{display:none}.listen .deck{max-width:810px}.listen .controls .btn{min-height:54px}.listen .hero h1{font-size:clamp(2.7rem,6vw,4rem)}dialog{width:min(650px,calc(100% - 26px));padding:0 16px 16px;max-height:82dvh;border:1px solid var(--rule);border-radius:14px;background:var(--white);color:var(--ink)}dialog::backdrop{background:#132b3a9c}.picker-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:var(--white);padding:12px 0;border-bottom:1px solid var(--rule);z-index:1}.picker-head h2{font:normal 1.8rem var(--serif);margin:2px 0}.picker-part{margin:16px 0 4px;color:var(--teal)}.choice{width:100%;text-align:left;margin-top:4px;min-height:48px}.choice[aria-current]{border-left:4px solid var(--teal);background:var(--mint)}.unavailable{margin:4px 0;padding:8px;border-bottom:1px solid var(--rule);font-size:.84rem;color:var(--muted)}.unavailable small{display:block}.choice .mono{float:right}.listen #read-view{display:none}
@media(max-width:760px){.master-head{display:block}.master-credit p{font-size:.77rem}.hero h1{font-size:3.1rem}.masthead img{width:76px;height:42px}.player-top strong{font-size:.79rem}.player-top{gap:6px}.player-top #time{font-size:.7rem}.controls{flex-wrap:wrap}.controls .timeline{flex:1 1 100%;height:20px}.controls .btn{min-height:44px}.caption-box{max-block-size:min(44vh,18rem);padding:6px 9px}.caption-box p{font-size:1rem;line-height:1.35}.book{gap:12px}.map summary{font-size:1.55rem}.map-scroll{max-height:none}.chapter-header{margin-top:12px}.chapter-header p{font-size:.76rem}}
@media(max-width:350px){.wrap{width:calc(100% - 18px)}.caption-box p{font-size:.96rem}.player-top #time{font-size:.65rem}.tools{gap:0 3px}.chip{font-size:.68rem}}
#show-map{display:none}@media(max-width:760px){body:not(.listen) #show-map{display:inline-block}}
.book-figure{margin:18px 0 14px;padding:12px;border:1px solid var(--rule);border-radius:10px;background:var(--white);min-width:0}.figure-image{display:block;width:100%;min-height:44px;padding:0;border:0;background:transparent;color:var(--teal);text-align:left}.figure-image img{display:block;width:min(74%,510px);height:auto;object-fit:contain;background:#fff;margin:0 auto}.enlarged .figure-image img{width:min(100%,793px)}.figure-zoom{display:block;padding:7px 0 4px;text-decoration:underline;text-underline-offset:3px;font-size:.82rem;font-weight:700}.figure-credit{margin-top:3px;font-size:.78rem;color:var(--muted)}.figure-credit strong,.figure-credit span{display:block}.figure-credit strong{color:var(--ink)}@media(max-width:760px){.book-figure{padding:7px}.figure-image img{width:84%}.enlarged .figure-image img{width:100%}}
.figure-image img{max-width:100%;max-height:320px;object-fit:contain}.enlarged .figure-image img{max-height:none;width:100%;height:auto}.figure-context{margin-bottom:8px;color:var(--teal)}.figure-original{display:inline-flex;align-items:center;min-height:44px;font-size:.82rem}
.book-figure .figure-image img{width:auto;height:auto;max-width:100%;max-height:none}
.book-figure.enlarged .figure-image img{width:auto;height:auto;max-width:100%;max-height:none}
/* Preserve original dimensions; blend figure content into Chapter Notes. */
.book-figure{margin:18px 0 14px;padding:0;border:0;border-radius:0;background:transparent;min-width:0}
.book-figure,.book-figure .figure-image,.book-figure .figure-zoom,.book-figure .figure-credit,.book-figure .figure-original{text-align:left}
.book-figure .figure-original{justify-content:flex-start}
.book-figure .figure-image img{width:auto;height:auto;max-width:100%;max-height:none;margin:0;object-fit:contain}
.book-figure.enlarged .figure-image img{width:auto;height:auto;max-width:100%;max-height:none;margin:0}
.resource-section{margin:22px 0 28px}.resources-panel{border:1px solid var(--rule);border-radius:10px;background:var(--white);padding:0 14px}.resources-panel>summary{display:flex;align-items:center;min-height:52px;cursor:pointer;font:normal 1.35rem/1.2 var(--serif);color:var(--ink)}.resources-panel[open]>summary{border-bottom:1px solid var(--rule)}.resource-intro{max-width:78ch;margin:12px 0 16px;color:var(--muted);font-size:.88rem}.resource-item{padding:14px 0 16px;border-bottom:1px solid var(--rule)}.resource-item:last-child{border-bottom:0}.resource-item h4{margin:0 0 6px;font:normal 1.3rem/1.2 var(--serif)}.resource-item p{max-width:78ch;margin:6px 0;font-size:.88rem}.resource-item .resource-when{color:var(--teal);font-weight:650}.resource-table-wrap{overflow-x:auto;margin:10px 0}.resource-table{border-collapse:collapse;width:100%;min-width:320px;font-size:.84rem}.resource-table th,.resource-table td{border:1px solid var(--rule);padding:7px 9px;text-align:left;vertical-align:top}.resource-table th{background:var(--mint);font-weight:700}.resource-list-group{margin:10px 0}.resource-list-group h5{margin:8px 0 4px;font-size:.9rem}.resource-list{margin:4px 0;padding-left:1.2rem}.resource-list li{margin:3px 0;font-size:.86rem}
