/* Fit the whole page to the available viewport. Zooming deliberately enables scrolling. */
body:has(.brochure-reader){overflow:hidden}
body:has(.brochure-reader) .site-header.shared-header{position:fixed;inset:0 0 auto;background:#fff;color:#142c35}
body:has(.brochure-reader) .site-header.shared-header .header-inner{min-height:64px}
.brochure-reader{--reader-header:64px;position:fixed;inset:var(--reader-header) 0 auto;height:calc(100vh - var(--reader-header));height:calc(100dvh - var(--reader-header));width:100%;max-width:none;margin:0;padding:10px 24px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-areas:"intro toolbar" "choices toolbar" "stage stage" "controls controls" "transcript transcript";gap:6px 16px;color:#142c35;font-size:16px;background:#f4f6f6;box-sizing:border-box}
.brochure-reader [hidden]{display:none!important}
.brochure-intro>p,.brochure-toolbar h2{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.brochure-intro{grid-area:intro;min-width:0}.brochure-intro h1{font-size:22px;line-height:1.2;margin:0;font-weight:700}
.brochure-reader a,.brochure-reader button,.brochure-reader select{font:inherit}
.brochure-close,.brochure-choices a,.brochure-download,.brochure-controls button,.brochure-controls select{box-sizing:border-box;border:1px solid #9caaa9;min-height:40px;padding:7px 14px;border-radius:4px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#142c35;line-height:1.25}
.brochure-choices{grid-area:choices;display:flex;gap:8px;min-width:0;align-items:stretch}.brochure-choices a{font-size:14px;text-align:center}.brochure-choices [aria-current=page]{background:#15323c;color:#fff;border-color:#15323c}
.brochure-toolbar{grid-area:toolbar;display:flex;gap:8px;align-items:center;justify-content:flex-end}.brochure-download{background:#d6eb66;font-weight:700;border-color:#b4cb42}.brochure-close{white-space:nowrap}
.brochure-controls{grid-area:controls;display:flex;align-items:center;justify-content:center;gap:8px 24px;flex-wrap:wrap;min-width:0}.brochure-pagination,.brochure-zoom{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}.brochure-controls button{cursor:pointer}.brochure-controls button:disabled{opacity:.4;cursor:default}.brochure-controls .brochure-zoom-step{font-size:22px;min-width:40px;padding:3px 10px}.brochure-status{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr}
.brochure-stage{grid-area:stage;--brochure-zoom:1;overflow:auto;min-width:0;min-height:0;display:grid;align-items:center;justify-items:center;background:#e3e8e9;padding:10px;border:1px solid #cbd4d6;direction:ltr;text-align:center;overscroll-behavior:contain;container-type:size}
.brochure-page{display:block;width:calc(var(--brochure-fit-width,min(100cqw,calc(100cqh * .7071))) * var(--brochure-zoom));max-width:none;height:auto;margin:auto;box-shadow:0 2px 12px #142c3526}.brochure-stage.is-zoomed{align-items:start;justify-items:start}
.brochure-stage[aria-busy=true]{background-image:linear-gradient(110deg,#e3e8e9,#f2f5f6,#e3e8e9);background-size:200% 100%;animation:brochure-loading 1.5s linear infinite}@keyframes brochure-loading{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.brochure-stage[aria-busy=true]{animation:none}}
.brochure-transcript{grid-area:transcript;justify-self:center;font-size:14px;line-height:1.5}.brochure-transcript summary{cursor:pointer;min-height:24px;text-align:center}.brochure-transcript[open]{position:absolute;z-index:5;inset:auto 24px 8px;background:white;padding:16px;max-height:60%;overflow:auto;border:1px solid #9caaa9;border-radius:6px;box-shadow:0 8px 36px #142c3526}.brochure-transcript div{white-space:pre-wrap;line-height:1.8;max-width:900px;margin:auto}.brochure-error{background:#fff;padding:16px;max-width:100%}.brochure-reader :focus-visible{outline:3px solid #2583ac;outline-offset:2px}
@media(max-width:700px){
 body:has(.brochure-reader) .site-header.shared-header .header-inner{min-height:56px}
 .brochure-reader{--reader-header:56px;padding:6px 10px max(4px,env(safe-area-inset-bottom));gap:5px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-areas:"choices" "toolbar" "stage" "controls" "transcript"}
 .brochure-intro{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .brochure-choices{gap:6px}.brochure-choices a{flex:1;min-width:0;padding:6px 8px;min-height:40px;overflow-wrap:anywhere}
 .brochure-toolbar{gap:6px}.brochure-download{flex:1;min-height:40px;font-size:14px}.brochure-close{font-size:14px;min-height:40px}
 .brochure-stage{padding:6px}.brochure-controls{gap:5px}.brochure-pagination{width:100%}.brochure-controls button,.brochure-controls select{font-size:14px;min-height:40px;padding:6px 9px}.brochure-pagination button{flex:1}.brochure-status{font-size:14px}
 .brochure-transcript[open]{inset:auto 10px 6px}.brochure-transcript summary{min-height:22px}
}
@media(max-height:500px) and (min-width:701px){
 body:has(.brochure-reader) .site-header.shared-header .header-inner{min-height:48px}
 .brochure-reader{--reader-header:48px;padding:4px 12px;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"choices toolbar" "stage stage" "controls transcript";gap:4px 10px}
 .brochure-intro{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .brochure-choices a,.brochure-controls button,.brochure-controls select,.brochure-download,.brochure-close{min-height:36px;padding:4px 10px;font-size:14px}.brochure-controls{gap:12px}.brochure-stage{padding:4px}.brochure-transcript{align-self:center}
}
