/* Programme pages remain the visual focus; the control dock sits below the book. */
.booklet-section{padding:44px 0 64px;background:var(--tint)}
.booklet-wrap{max-width:1140px}
.booklet-heading{margin-bottom:24px}
.booklet-heading .eyebrow{color:var(--green);font-size:12px;margin-bottom:8px}
.booklet-heading h1{font-size:clamp(30px,4vw,44px);line-height:1.2;margin:0}
.booklet-reader{background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #102d3c08}
.booklet-reader[hidden],.booklet-reader [hidden]{display:none!important}
.booklet-viewport{position:relative;height:min(72vh,calc(100vh - 320px));height:min(72dvh,calc(100dvh - 320px));max-height:900px;min-height:320px;background:radial-gradient(ellipse at 50% 40%,#f5f8f2 0%,#e6ede7 65%,#d8e4dc 100%);border-radius:12px 12px 0 0;overflow:auto;overscroll-behavior:contain;isolation:isolate}
.booklet-stage{width:100%;height:100%;position:relative;overflow:hidden}
.booklet-book{position:absolute!important;left:50%;top:50%;transform:translate(calc(-50% + var(--booklet-offset,0px)),-50%)!important;transition:transform 650ms ease;filter:drop-shadow(0 12px 16px #102d3c24);touch-action:pan-y}
.booklet-book .stf__wrapper{height:100%!important;padding-bottom:0!important}
.booklet-leaf{background:#fff;overflow:hidden;box-sizing:border-box}
.booklet-leaf img{display:block;width:100%;height:100%;object-fit:fill;max-width:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.booklet-leaf.--left::after,.booklet-leaf.--right::after{content:'';position:absolute;inset:0;pointer-events:none}
.booklet-leaf.--left::after{background:linear-gradient(90deg,transparent 92%,#102d3c14 100%)}
.booklet-leaf.--right::after{background:linear-gradient(90deg,#102d3c14 0%,transparent 8%)}
.booklet-viewport.is-inspecting{border-radius:12px 12px 0 0;touch-action:pan-x pan-y}
.booklet-canvas{display:flex;justify-content:center;align-items:center}
.booklet-canvas img{display:block;flex:none;max-width:none;object-fit:contain;background:white;box-shadow:0 3px 18px #102d3c18}
.booklet-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:24px;text-align:center;background:#dfe8e3}
.booklet-message p{font-size:16px;margin:0}
.booklet-toolbar{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:10px 16px;z-index:2;border-top:1px solid var(--line);border-radius:0 0 12px 12px;background:var(--paper)}
.booklet-paging,.booklet-zoom{display:flex;align-items:center;gap:4px;min-width:0}
.booklet-reader button,.booklet-zoom-menu>summary{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:transparent;border:0;border-radius:6px;min-height:44px;min-width:44px;padding:8px;cursor:pointer;line-height:1.3}
.booklet-reader button:hover:not(:disabled),.booklet-zoom-menu>summary:hover,.booklet-zoom-menu[open]>summary{color:var(--blue);background:var(--tint)}
.booklet-reader button:disabled{opacity:.35;cursor:default}
.booklet-reader button:focus-visible,.booklet-zoom-menu>summary:focus-visible,.booklet-viewport:focus-visible{outline:3px solid #ee9e25;outline-offset:2px}
.booklet-toolbar svg{display:block;flex:none}
.booklet-select{position:relative;display:block;min-width:96px;height:44px;border-radius:6px;cursor:pointer}
.booklet-select:hover{background:var(--tint)}
.booklet-select:focus-within{outline:3px solid #ee9e25;outline-offset:2px}
.booklet-page-readout{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 8px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.booklet-page-readout svg{width:14px;height:14px;color:var(--muted)}
.booklet-select select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit;font-size:14px;color:var(--ink);background:var(--paper);border:0}
.booklet-tool-divider{width:1px;height:20px;background:var(--line);margin-inline:4px;flex:none}
.booklet-zoom-menu{position:relative;flex:none}
.booklet-zoom-menu>summary{list-style:none}
.booklet-zoom-menu>summary::-webkit-details-marker{display:none}
.booklet-zoom-panel{position:absolute;bottom:calc(100% + 12px);right:0;min-width:188px;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #102d3c18;z-index:3}
.booklet-zoom-heading{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.booklet-zoom{justify-content:space-between}
.booklet-zoom output{font-size:13px;color:var(--ink);width:52px;text-align:center;font-variant-numeric:tabular-nums}
.booklet-zoom-panel #booklet-fit{width:100%;border-top:1px solid var(--line);border-radius:0;margin-top:6px;font-size:13px;color:var(--blue)}
.booklet-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.booklet-noscript figure{margin:24px 0}.booklet-noscript img{width:100%;height:auto}.booklet-noscript figcaption{text-align:center}
.booklet-reader:fullscreen{width:100%;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;box-shadow:none;padding:0;background:var(--paper)}
.booklet-reader:fullscreen .booklet-toolbar{border-radius:0;flex-shrink:0}
.booklet-reader:fullscreen .booklet-viewport{flex:1;min-height:0;max-height:none;height:auto;border-radius:0}
@media(max-width:720px){.booklet-section{padding:28px 0 40px}.booklet-heading{margin-bottom:18px}.booklet-wrap{width:calc(100% - 24px)}.booklet-viewport{height:65vh;height:65svh;min-height:240px}.booklet-select select{font-size:16px}.booklet-toolbar{padding:8px;min-height:60px;gap:4px}.booklet-paging{gap:0}.booklet-select{min-width:84px}.booklet-tool-divider{margin-inline:2px}.booklet-zoom-panel{right:-12px}}
@media(prefers-reduced-motion:reduce){.booklet-book{filter:none;transition:none}.booklet-leaf::after{display:none}}
@media print{.booklet-reader,.booklet-noscript{display:none!important}.booklet-heading::after{content:'6th.mjsse.org/booklet';display:block;margin-top:12px}}

.booklet-zoom-pages{display:flex;gap:4px;margin-bottom:8px}
.booklet-zoom-pages[hidden]{display:none}
.booklet-zoom-pages button{flex:1;white-space:nowrap;font-size:13px;border:1px solid var(--line)}
.booklet-zoom-pages button[aria-pressed="true"]{color:var(--blue);background:var(--tint);border-color:var(--blue)}


/* Keep hidden WebKit layers inside the mobile document; zoom pans inside its viewport. */
@media(max-width:720px){html,body{overflow-x:clip}}
