.resource-hero-cover.book-preview{overflow:visible;background:transparent;box-shadow:none;border-radius:0;min-width:0;width:100%}
.book-preview-stage{position:relative;background:#fff;border:1px solid #ddd8cf;border-radius:12px;box-shadow:0 12px 30px #183e4017;aspect-ratio:17/22}
.book-preview-open{display:block;width:100%;height:100%;border-radius:12px;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:zoom-in}
.book-preview .book-preview-open img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center}
.book-preview-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid #d3dfdc;border-radius:50%;background:#fffcf7;color:#174449;line-height:1;box-shadow:0 3px 10px #183e4020;cursor:pointer;z-index:1}
.book-preview-arrow[hidden]{display:none}.book-preview-arrow svg{display:block;width:28px;height:28px}
.book-preview-arrow.previous{left:-14px}.book-preview-arrow.next{right:-14px}.book-preview-arrow:disabled{opacity:.35;cursor:default}
.book-preview-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:45px;font-size:14px;color:#183e40}.book-preview-caption span{white-space:nowrap;color:#596e70;font-size:12px}
.book-preview-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.book-preview-thumb{padding:4px 3px;border:2px solid transparent;border-radius:7px;text-decoration:none;color:#596e70;background:#f1ede5;text-align:center;min-width:0;transition:border-color .15s,background .15s}
.book-preview-thumb[aria-current=true]{border-color:#b8412a;background:#fff5ec;color:#963822}.book-preview-thumb:hover{border-color:#73989a}
.book-preview .book-preview-thumb img{display:block;width:100%;height:auto;aspect-ratio:17/22;object-fit:contain;max-height:none;background:white;border-radius:2px}
.book-preview :is(a,button):focus-visible{outline:3px solid #b8412a;outline-offset:4px}
.book-preview-dialog{padding:0;border:0;border-radius:16px;background:#f3eee5;color:#183e40;width:min(1080px,calc(100vw - 32px));max-width:none;max-height:92vh;max-height:92dvh;overflow:hidden;box-shadow:0 20px 70px #0005}
.book-preview-dialog::backdrop{background:#123133cc}
.book-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fffaf3;border-bottom:1px solid #ddd8cf}
.book-preview-toolbar strong{font-size:15px;line-height:1.4}.book-preview-toolbar>div{display:flex;gap:6px;flex-shrink:0}
.book-preview-toolbar button{height:40px;min-width:40px;padding:0 10px;border:1px solid #cbd9d5;background:white;color:#174449;border-radius:8px;font:inherit;cursor:pointer}.book-preview-toolbar button:disabled{opacity:.35}.book-preview-toolbar button[aria-pressed=true]{background:#dceee9}
.book-preview-reader{max-height:calc(92vh - 85px);max-height:calc(92dvh - 85px);overflow:auto;padding:20px;overscroll-behavior:contain}
.book-preview .book-preview-reader img{display:block;width:min(100%,740px);height:auto;max-width:none;max-height:none;object-fit:contain;margin:auto;box-shadow:0 3px 18px #0002;background:white}
.book-preview .book-preview-reader.is-zoomed img{width:1480px;margin:0;max-width:none}
@media(max-width:620px){.book-preview-arrow.previous{left:6px}.book-preview-arrow.next{right:6px}.book-preview-thumbs{gap:5px}.book-preview-toolbar{flex-wrap:wrap;padding:10px 12px;gap:8px}.book-preview-toolbar strong{width:100%}.book-preview-dialog{width:calc(100vw - 16px);border-radius:12px}.book-preview-reader{padding:10px;max-height:calc(92dvh - 108px)}.book-preview .book-preview-reader.is-zoomed img{width:200%;margin:0}}
@media(prefers-reduced-motion:reduce){.book-preview-thumb{transition:none}}
