/* Reader geometry and compact controls use the actual AutoHDR primitives. */
:root{--book-header-height:80px;--book-navigation-height:calc(76px + env(safe-area-inset-bottom,0px))}
html{scroll-padding-bottom:calc(var(--book-navigation-height) + 16px)}
.book-header{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:32px;max-width:1600px;min-height:80px;margin:0 auto;padding:20px 32px}
.book-brand{display:inline-flex;align-items:center;gap:6px;min-width:0;color:var(--ah-white);text-decoration:none;font-size:16px;font-weight:500;line-height:20px;white-space:nowrap}
.book-brand img{display:block;flex:none;width:36px;height:36px;object-fit:contain}
.book-sections{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-left:auto;min-width:0}
.book-sections a{display:block;padding:8px 0;color:rgba(255,255,255,.6);text-decoration:none;font-size:16px;line-height:20px;white-space:nowrap;transition:color .3s}
.book-sections a:hover,.book-sections a[aria-current]{color:var(--ah-white)}
.book-header a:focus-visible,.book-page-navigation a:focus-visible{outline:2px solid var(--ah-blue);outline-offset:5px}
.book-page-navigation{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:24px;width:100%;min-height:var(--book-navigation-height);margin:0;padding:20px max(32px,calc((100vw - 1036px)/2)) calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.92) 30%,#000 70%)}
.book-page-navigation>a{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:44px;min-height:44px;height:44px;max-width:46%;padding:6px 12px;color:var(--ah-white);text-decoration:none;font-size:14px;font-weight:400;line-height:20px}
.book-page-navigation>a:hover{color:var(--ah-white)}
.book-page-navigation>.book-page-next{margin-left:auto;text-align:center;align-items:center}
.book-page-navigation>.book-page-previous{text-align:center;align-items:center}
.book-neighbor-title{color:rgba(255,255,255,.5);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.book-page-empty{flex:0 0 1px}
.book-main{width:100%;max-width:1100px;min-width:0;min-height:calc(100svh - var(--book-header-height));margin:0 auto;padding:28px 32px calc(24px + var(--book-navigation-height))}
.book-main[data-page-type="skill"],.book-main[data-page-type="film"],.book-main[data-page-type="workflow"]{display:flex;flex-direction:column;align-items:stretch}
.book-main>.book-page-navigation{flex:none}
.book-main>h1{overflow-wrap:anywhere}
@media(max-width:720px){:root{--book-header-height:calc(119px + max(0px,env(safe-area-inset-top) - 17px))}.book-header{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-height:0;padding:max(17px,env(safe-area-inset-top)) 18px 10px}.book-sections{width:100%;margin:0;justify-content:space-between;gap:12px}.book-sections a{padding:9px 0;min-height:40px}.book-page-navigation{gap:18px;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.book-main{padding:8px 18px calc(16px + var(--book-navigation-height))}.book-main>h1{font-size:34px;margin-bottom:15px}.book-main>.lead{font-size:16px;margin-bottom:20px}.book-main>.eyebrow{font-size:10px;margin-bottom:10px}}
@media(max-width:350px){.book-header{padding-left:16px;padding-right:16px}.book-sections{gap:8px}}

/* A full-height section entrance, using the existing glass card surface. */
.book-main[data-page-type="sections"]{max-width:800px;height:100svh;min-height:440px;padding:max(24px,env(safe-area-inset-top)) 32px max(24px,env(safe-area-inset-bottom))}
.section-picker{height:100%;display:flex;flex-direction:column;gap:24px}
.section-picker>h1{flex:none;font-size:clamp(34px,5vw,56px);margin:0}
.section-picker-cards{flex:1;min-height:0;display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:14px}
.section-picker-card{display:flex;align-items:center;justify-content:center;min-height:0;text-decoration:none;padding:16px}
.section-picker-card>.ah-heading{font-size:clamp(28px,4vw,40px);margin:0}
.photo-consult-action{margin:20px 0}
.photo-consult-action>.button{white-space:normal;height:auto;min-height:48px;text-align:center}
@media(max-width:720px){.book-main[data-page-type="sections"]{padding:max(22px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))}.section-picker{gap:22px}.section-picker-cards{gap:12px}.photo-consult-action>.button{width:100%;font-size:15px;padding:12px 18px}}
