/* Single navigation surface policy. Typography is inherited from each approved chapter. */
.seamless-book{--book-nav-ink:#624626;--book-nav-light:#eee1cd;--book-nav-top:64px;--book-nav-bottom:80px;position:relative}
body:has(.seamless-book)>header{display:none}
.book-nav{position:absolute;left:0;right:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(4%,env(safe-area-inset-left)) 12px max(4%,env(safe-area-inset-right));background:transparent;border:0;pointer-events:none;color:var(--book-nav-ink);box-sizing:border-box}
.book-nav-top{top:0;padding-top:max(12px,env(safe-area-inset-top))}
.book-nav-bottom{bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.book-nav :is(a,button){pointer-events:auto;color:inherit;font:inherit;background:transparent;border:0;box-shadow:none;border-radius:0;cursor:pointer;padding:8px;min-height:44px;text-decoration:none}
.book-nav :is(a,button):focus-visible{outline:1px solid currentColor;outline-offset:3px}
.book-nav button:disabled{opacity:.3;cursor:default}
.book-nav-action{position:relative;isolation:isolate}
.book-nav-action::before{content:"";position:absolute;inset:-8px;z-index:-1;background:radial-gradient(ellipse,color-mix(in srgb,var(--book-nav-light) 94%,transparent) 0%,color-mix(in srgb,var(--book-nav-light) 82%,transparent) 42%,transparent 75%);pointer-events:none}
.book-nav-middle{display:flex;flex-direction:column;align-items:center;pointer-events:auto}
.book-nav-dots{display:flex;justify-content:center;gap:2px}
.book-nav-dots button{width:22px;min-width:0;min-height:32px;padding:0;display:grid;place-items:center}
.book-nav-dots button::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4}
.book-nav-dots button[aria-current=true]::before{opacity:1}
.book-nav-counter{font-size:inherit;line-height:1.2}
.seamless-book.book-nav-paged:not(.book-nav-legacy) #la-stage{display:block;min-height:100dvh;height:auto}
.seamless-book.book-nav-paged:not(.book-nav-legacy) .slides{min-height:100dvh}
.seamless-book.book-nav-paged:not(.book-nav-legacy) .copy{padding-top:calc(var(--book-nav-top) + 12px);padding-bottom:calc(var(--book-nav-bottom) + 12px)}
.seamless-book.book-nav-paged:not(.book-nav-legacy) .scene.right .copy{padding-top:calc(var(--book-nav-top) + 12px);padding-bottom:calc(var(--book-nav-bottom) + 12px)}
.seamless-book.book-nav-paged:not(.book-nav-legacy) .scene{min-height:100dvh}
.seamless-book.book-nav-paged:not(.book-nav-legacy) .book-nav :is(a,button){font:inherit}
.living-artbook.seamless-book .book-nav{font-size:inherit}
@media(min-width:1051px) and (min-height:581px){
 .seamless-book.book-nav-paged:not(.book-nav-legacy) #la-stage{height:100dvh}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .slides{height:100dvh;min-height:0}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .scene{min-height:0}
 .living-artbook.book-nav-legacy .book-nav{visibility:hidden;pointer-events:none}
 .living-artbook.book-nav-legacy .book-nav-painted{visibility:visible}
}
@media(max-width:1050px),(max-height:580px){
 .seamless-book{--book-nav-top:64px;--book-nav-bottom:88px}
 .book-nav{padding-left:max(4%,env(safe-area-inset-left));padding-right:max(4%,env(safe-area-inset-right));gap:8px}
 .book-nav-bottom{position:fixed}
 .book-nav-dots button{width:18px}
 .book-nav :is(a,button){padding:4px}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .scene{min-height:100dvh}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .art{height:clamp(280px,48dvh,440px)}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .art img{object-fit:contain;object-position:center top}
 .seamless-book.book-nav-paged:not(.book-nav-legacy) .copy,.seamless-book.book-nav-paged:not(.book-nav-legacy) .scene.right .copy{padding-top:8px;padding-bottom:calc(var(--book-nav-bottom) + 24px)}
 .living-artbook.seamless-book .copy{padding-bottom:calc(var(--book-nav-bottom) + 24px)}
 .living-artbook.seamless-book .book-nav-dots{display:none}
 .living-artbook.seamless-book .book-nav-counter{letter-spacing:.15em}
 .living-artbook.seamless-book .book-nav-painted{display:none}
}
.seamless-book:not(.book-nav-paged){--book-nav-ink:#dfbf89;--book-nav-light:#101515}
.reader.seamless-book .book-nav-top{font-size:.86rem}
.reader.seamless-book .book-nav-bottom{position:relative;justify-content:center}
.reader.seamless-book .reader-back,.reader.seamless-book .reader-return{position:relative;inset:auto;margin:0;padding:8px;font-size:inherit}
@media(prefers-reduced-motion:reduce){.book-nav *{scroll-behavior:auto}}

.g-artbook .book-nav-top{font-size:clamp(12px,1.05vw,18px)}
.g-artbook .book-nav-counter{font-size:11px}
.g-artbook .book-nav-bottom>.book-nav-action{font-size:24px}
.living-artbook .book-nav-top{font-size:14px}
.living-artbook .book-nav-bottom{font-size:14px}
.living-artbook .book-nav-bottom>.book-nav-action{font-size:23px}
@media(max-width:1050px),(max-height:580px){.g-artbook .book-nav-top{font-size:12px}}

.book-nav-middle{position:relative;isolation:isolate}
.book-nav-middle::before{content:"";position:absolute;inset:-8px;z-index:-1;background:radial-gradient(ellipse,color-mix(in srgb,var(--book-nav-light) 94%,transparent) 0%,color-mix(in srgb,var(--book-nav-light) 82%,transparent) 42%,transparent 75%);pointer-events:none}
@media(max-width:1050px),(max-height:580px){.living-artbook.seamless-book .mobileart{height:calc(clamp(180px,32svh,330px) + 64px);padding-top:64px}}

.book-nav-context{pointer-events:none;color:inherit}
@media(max-width:1050px),(max-height:580px){.book-nav-context{display:none}}

/* Final shared standard. Keep this stylesheet after chapter styles. */
body .book-nav-standard.seamless-book.book-nav-paged #la-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;min-height:0;position:relative}
body .book-nav-standard.seamless-book.book-nav-paged #la-slides{grid-row:2;height:auto;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;container-type:size;touch-action:pan-y pinch-zoom}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav{position:relative;inset:auto;width:100%;margin:0;visibility:visible;pointer-events:auto;background:transparent;transform:none;transition:none;animation:none;box-sizing:border-box}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-top{grid-row:1;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top))}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-bottom{grid-row:3;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-bottom>.book-nav-action{display:block;position:static;width:44px;height:44px;min-height:44px;padding:0;opacity:1;visibility:visible;transform:none;transition:none;animation:none}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-bottom>.book-nav-action:disabled{opacity:.3;cursor:default}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-middle{grid-column:2;justify-self:center;min-width:0}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-dots{display:flex;flex-wrap:wrap;gap:2px;justify-content:center}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-dots button{width:20px;min-width:0;min-height:24px;padding:0}
body .book-nav-standard.seamless-book.book-nav-paged .book-nav-action::before,body .book-nav-standard.seamless-book.book-nav-paged .book-nav-middle::before{display:none}
body .book-nav-standard.seamless-book.book-nav-paged .scene{height:auto;min-height:100%;grid-template-rows:auto}
body .book-nav-standard.seamless-book.art-normalized.book-nav-paged .scene .copy{padding-top:24px;padding-bottom:24px}
@media(min-width:1051px) and (min-height:581px){
 body .book-nav-standard.seamless-book.art-normalized.book-nav-paged .scene .art{height:100cqh;min-height:0;position:sticky;top:0}
}
@media(max-width:760px){
 body .book-nav-standard.seamless-book.book-nav-paged .book-nav-bottom{grid-template-columns:minmax(0,1fr)}
 body .book-nav-standard.seamless-book.book-nav-paged .book-nav-bottom>.book-nav-action{display:none}
 body .book-nav-standard.seamless-book.book-nav-paged .book-nav-middle{grid-column:1}
 body .book-nav-standard.seamless-book.book-nav-paged .book-nav-dots{display:flex}
 body .book-nav-standard.seamless-book.book-nav-paged .book-nav-dots button{width:20px;min-height:24px}
}


/* One overlay layout: no panel rows, viewport deductions or shared backplates. */
body .book-nav-standard.immersive-book.seamless-book.book-nav-paged #la-stage{display:block;height:100dvh;min-height:0}
body .book-nav-standard.immersive-book.seamless-book.book-nav-paged #la-slides{position:relative;inset:auto;width:100%;height:100dvh;max-height:none;min-height:0;overflow:auto}
body .book-nav-standard.immersive-book.seamless-book.book-nav-paged .book-nav{position:absolute;left:0;right:0;width:100%;height:auto;margin:0;background:transparent!important;pointer-events:none;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));z-index:20}
body .book-nav-standard.immersive-book.seamless-book.book-nav-paged .book-nav-top{top:0;bottom:auto;padding-top:max(8px,env(safe-area-inset-top))}
body .book-nav-standard.immersive-book.seamless-book.book-nav-paged .book-nav-bottom{bottom:0;top:auto;padding-bottom:max(8px,env(safe-area-inset-bottom))}
body .immersive-book .book-nav-context{display:none}
body .immersive-book .book-nav .book-nav-action{pointer-events:auto;background:rgba(36,37,38,.65)!important;color:#f6e6cb!important;border:1px solid #bea07588;border-radius:6px;min-width:44px;min-height:44px;padding:6px;text-shadow:0 1px 2px #000;transition:background-color 300ms cubic-bezier(.22,1,.36,1)}
body .immersive-book .book-nav .book-nav-action:hover{background:rgba(55,48,40,.85)!important}
body .immersive-book .book-nav-action::before,body .immersive-book .book-nav-middle::before{display:none}
body .immersive-book .book-nav-middle{position:absolute;left:26%;bottom:12px;transform:translateX(-50%);background:none;border:0;color:#795b36;text-shadow:0 1px 2px #fff;pointer-events:auto}
body .book-nav-standard.immersive-book.seamless-book.art-normalized.book-nav-paged .scene .copy{padding-top:24px;padding-bottom:24px}
@media(min-width:1051px) and (min-height:581px){
 body .book-nav-standard.immersive-book.seamless-book.book-nav-paged .scene{height:100cqh;min-height:0;grid-template-columns:minmax(0,52fr) minmax(0,48fr)}
 body .book-nav-standard.immersive-book.seamless-book.art-normalized.book-nav-paged .scene .art{height:100cqh;width:100%;max-width:100%;min-height:0}
 body .book-nav-standard.immersive-book.seamless-book.art-normalized.book-nav-paged .scene .copy{max-height:100cqh;overflow:auto;justify-content:flex-start;padding-left:64px;padding-right:64px}
}
@media(max-width:1050px),(max-height:580px){
 body .book-nav-standard.immersive-book.seamless-book.art-normalized.book-nav-paged .scene .copy{max-height:none;overflow:visible;padding:24px 60px 32px}
 body .immersive-book .book-nav-top .book-nav-action{width:44px;font-size:12px;line-height:16px}
 body .immersive-book .book-nav-middle{left:auto;right:max(8px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));transform:none;width:44px;text-align:center;font-size:11px}
 body .immersive-book .book-nav-dots{display:none!important}
}
body .immersive-book .book-nav-bottom>#la-prev{grid-column:1}
body .immersive-book .book-nav-bottom>#la-next{grid-column:3}
@media(min-width:1051px) and (min-height:581px){
 body .essence-artbook.immersive-book.art-normalized.book-nav-paged .scene .art{display:block;padding:0;gap:0}
 body .essence-artbook.immersive-book.art-normalized.book-nav-paged .scene .art img{position:absolute;inset:0;width:100%;height:100%}
 body .essence-artbook.immersive-book .art-caption{position:absolute;bottom:8px;left:12px;right:12px;margin:auto;width:fit-content;max-width:90%;background:rgba(245,239,226,.72);padding:4px 8px}
}
