/* Scoped sample reader: thumbnails and rendered sample pages only. */
.book-samples{margin-top:28px;padding-top:25px;border-top:1px solid #e2ebe4}
.book-samples__heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.book-samples__heading .overline{font-size:9px;letter-spacing:1.7px}
.book-samples__heading h3{font-family:'Playfair Display',Georgia,serif;font-size:26px;font-weight:500;color:#234537;margin:6px 0 0;letter-spacing:-.6px}
.book-samples__count{font-size:10px;color:#487b5b;border:1px solid #dceadd;border-radius:20px;padding:7px 10px;white-space:nowrap}
.book-samples__intro,.book-samples__note{font-size:12px;line-height:1.6;color:#64786b;margin:12px 0 18px}
.book-samples__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
.book-samples__page{min-width:0;background:none;border:0;padding:0;text-align:left;font:inherit;cursor:pointer;color:#315b40}
.book-samples__paper{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:2/3;background:#f1f4ef;border:1px solid #e2e9e1;border-radius:6px;padding:7px;overflow:hidden;transition:background .18s,box-shadow .18s}
.book-samples__paper img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 2px 9px #193c2415}
.book-samples__open{position:absolute;right:12px;bottom:12px;border:1px solid #dceadd;background:#fff;color:#16694f;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;box-shadow:0 2px 8px #193c2415}
.book-samples__caption{display:flex;justify-content:space-between;gap:4px;font-size:9px;letter-spacing:1px;margin-top:9px}
.book-samples__caption>span{font-size:10px;letter-spacing:0;color:#668575}
.book-samples__page:hover .book-samples__paper{background:#e7f0e7;box-shadow:0 4px 14px #193c2415}
.book-samples__page:focus-visible{outline:2px solid #16694f;outline-offset:5px;border-radius:5px}
.book-samples__note{font-size:10px;margin:18px 0 0}
.sample-reader{padding:0;border:1px solid #dceadd;border-radius:16px;width:min(960px,calc(100% - 40px));height:min(940px,calc(100dvh - 40px));max-width:none;max-height:none;background:#f2f5f1;color:#234537;box-shadow:0 25px 100px #0005;overflow:hidden}
.sample-reader::backdrop{background:rgba(13,33,25,.78);backdrop-filter:blur(5px)}
.sample-reader:not([open]){display:none}
.sample-reader__panel{display:flex;flex-direction:column;height:100%;min-height:0}
.sample-reader__header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 24px;background:#fff;border-bottom:1px solid #dceadd;flex-shrink:0}
.sample-reader__header>div{min-width:0}.sample-reader__header span{font-size:9px;letter-spacing:1.8px;color:#487b5b}
.sample-reader__header h2{font-family:'Playfair Display',Georgia,serif;font-size:22px;margin:3px 0 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sample-reader button{font:inherit;cursor:pointer}.sample-reader button:focus-visible{outline:2px solid #16694f;outline-offset:3px}
.sample-reader__close{width:42px;height:42px;border:1px solid #dceadd;border-radius:50%;background:#f7faf7;color:#234537;flex-shrink:0}
.sample-reader__stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:20px}
.sample-reader__stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 5px 22px #193c2426;background:#fff}
.sample-reader__stage img[hidden],.sample-reader__stage p[hidden]{display:none}.sample-reader__stage p{font-size:14px;color:#487b5b;text-align:center}
.sample-reader__footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 24px;border-top:1px solid #dceadd;background:#fff;flex-shrink:0}
.sample-reader__footer button{border:1px solid #dceadd;background:#f7faf7;color:#234537;border-radius:9px;min-width:100px;min-height:44px;padding:10px 14px;font-size:12px}.sample-reader__footer button:disabled{opacity:.4;cursor:default}.sample-reader__footer>span{font-size:12px;text-align:center;color:#487b5b}
@media(max-width:760px){.book-samples__grid{gap:16px 12px}.book-samples__heading h3{font-size:24px}.sample-reader{width:calc(100% - 16px);height:calc(100dvh - 16px);border-radius:12px}.sample-reader__header{padding:14px}.sample-reader__header h2{font-size:19px}.sample-reader__stage{padding:10px}.sample-reader__footer{padding:12px}.sample-reader__footer button{min-width:66px}.sample-reader__footer button span{display:none}}
@media(max-width:480px){.book-samples__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-samples__heading{align-items:flex-start}.book-samples__count{font-size:9px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.book-samples__paper{transition:none}}
