/* Shared, self-contained book sample viewer. */
.sample-button{font-family:"Open Sans",Arial,sans-serif;font-size:.9rem;font-weight:700;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:2px solid #204151;border-radius:999px;background:#fff;color:#204151;cursor:pointer;align-self:flex-start;margin-top:12px}
.sample-button:hover{background:#D2E3C8}.sample-button:focus-visible,.sample-viewer button:focus-visible{outline:3px solid #E18132;outline-offset:3px}.sample-actions{display:flex;gap:10px;flex-wrap:wrap}
.sample-viewer{color:#204151;background:#FFFBF0;border:0;border-radius:18px;padding:0;width:min(940px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);box-shadow:0 20px 80px #0006;overflow:auto;font-family:"Open Sans",Arial,sans-serif}
.sample-viewer::backdrop{background:rgba(16,34,43,.8)}
.sample-viewer .sample-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #20415125}
.sample-viewer h2{font-family:Montserrat,Arial,sans-serif;font-size:clamp(1rem,3vw,1.3rem);margin:0 0 4px;line-height:1.3}.sample-viewer .sample-note{font-size:.8rem;margin:0;color:#643A33}
.sample-viewer button{font-family:inherit;color:#204151;border:2px solid #204151;background:#fff;border-radius:999px;min-width:44px;min-height:44px;padding:8px 14px;cursor:pointer;font-weight:700;font-size:1rem;flex-shrink:0}
.sample-viewer button:hover:not(:disabled){background:#D2E3C8}.sample-viewer button:disabled{opacity:.35;cursor:default}
.sample-viewer .sample-stage{background:#e8e5dc;display:flex;align-items:center;justify-content:center;padding:14px;min-height:240px;touch-action:pan-y pinch-zoom}
.sample-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 235px);object-fit:contain;box-shadow:0 3px 12px #0002;background:white}
.sample-viewer .sample-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 18px}.sample-viewer .sample-counter{text-align:center;font-size:.85rem;min-width:110px;line-height:1.4}
@media(max-width:520px){.sample-viewer{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.sample-viewer .sample-header{padding:14px 12px;gap:8px}.sample-viewer .sample-stage{padding:8px}.sample-viewer img{max-height:calc(100dvh - 250px)}.sample-viewer .sample-controls{gap:12px;padding:12px}.sample-actions{gap:4px}}
