/* Page-turn reader for the free chapters (768px and wider). Phones keep the scrolling chapter. */
.bvc-flip-measure { position: absolute; left: -99999px; top: 0; visibility: hidden; pointer-events: none; }
.bvc-flip { margin: 8px auto 0; }
body.bvc-flip-on .bvc-chapter-wrap > .bvc-book { display: none; }
.bvc-flip-book { margin: 0 auto; filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5)); }
.bvc-fpage { position: relative; background: #FFFDF8; overflow: hidden; }
.bvc-fpage-left { background: linear-gradient(to left, rgba(60, 45, 25, 0.22), rgba(60, 45, 25, 0.06) 3%, rgba(0, 0, 0, 0) 12%), #FFFDF8; }
.bvc-fpage-right { background: linear-gradient(to right, rgba(60, 45, 25, 0.22), rgba(60, 45, 25, 0.06) 3%, rgba(0, 0, 0, 0) 12%), #FFFDF8; }
/* Page edges on the outside of the book; thickness follows reading progress. */
.bvc-flip-book { position: relative; --edge-l: 3px; --edge-r: 12px; }
.bvc-flip-book::before, .bvc-flip-book::after { content: ''; position: absolute; top: 5px; bottom: 5px; z-index: 0; pointer-events: none; transition: width 0.4s ease; }
.bvc-flip-book::before { right: 100%; width: var(--edge-l); border-radius: 4px 0 0 4px; background: repeating-linear-gradient(to right, #CFC6B4 0 1px, #F6F1E6 1px 3px); }
.bvc-flip-book::after { left: 100%; width: var(--edge-r); border-radius: 0 4px 4px 0; background: repeating-linear-gradient(to left, #CFC6B4 0 1px, #F6F1E6 1px 3px); }
.bvc-fpage .bvc-fpage-inner {
	max-width: none; margin: 0; border-radius: 0; box-shadow: none; background: transparent;
	box-sizing: border-box; height: 100%; overflow: hidden;
	padding: 40px 38px 46px; font-size: 15px; line-height: 1.62;
}
.bvc-fpage .bvc-fpage-inner > :first-child, .bvc-fpage .bvc-cont > :first-child { margin-top: 0; }
.bvc-fpage .bvc-fpage-inner .chapter-title-card { padding-top: 24px; }
.bvc-fpage .bvc-fpage-inner .calloutbox { margin: 18px 0 14px; }
.bvc-fpage .bvc-fpage-inner .calloutbox.bvc-cont { margin-top: 0; }
.bvc-fpage .bvc-fpage-inner .image { margin: 16px 0; }
.bvc-fpage .bvc-fpage-inner .image img { display: block; margin: 0 auto; }
.bvc-fpage .bvc-fpage-inner .bvc-book-cta { margin-top: 24px; }
.bvc-fpage .bvc-fpage-inner.bvc-fpage-compact { padding: 30px 26px 40px; font-size: 14.5px; line-height: 1.58; }
.bvc-fpage .bvc-fpage-inner.bvc-fpage-end { display: flex; flex-direction: column; justify-content: center; }
.bvc-fpage .bvc-fpage-inner.bvc-fpage-end .bvc-book-cta { margin: 0; }
.bvc-fpage-num { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: 'Marcellus', Georgia, serif; font-size: 12px; color: #8A847A; }
.bvc-flip-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px auto 0; color: var(--text-muted); font-size: 0.85rem; }
.bvc-flip-controls button { font: inherit; cursor: pointer; border: 1px solid var(--border-hover); background: var(--surface); color: var(--text); border-radius: 999px; height: 44px; min-width: 44px; padding: 0 16px; }
.bvc-flip-controls button:hover:not(:disabled) { background: var(--surface-hover); }
.bvc-flip-controls button:disabled { opacity: 0.35; cursor: default; }
.bvc-flip-controls .bvc-flip-count { min-width: 140px; text-align: center; }
.bvc-flip-controls .bvc-flip-mode { border-color: transparent; background: none; color: var(--text-muted); text-decoration: underline; padding: 0 8px; }
.bvc-flip-switch { display: block; margin: 0 auto 16px; font: inherit; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border-hover); background: var(--surface); color: var(--text); border-radius: 999px; height: 44px; padding: 0 18px; }
@media (max-width: 767px) { .bvc-flip, .bvc-flip-switch { display: none !important; } }
/* One page at a time (portrait tablets): spine shade on the left of every page, no outer edges. */
.bvc-flip-portrait .bvc-flip-book::before, .bvc-flip-portrait .bvc-flip-book::after { display: none; }
.bvc-flip-portrait .bvc-fpage-left, .bvc-flip-portrait .bvc-fpage-right { background: linear-gradient(to right, rgba(60, 45, 25, 0.16), rgba(0, 0, 0, 0) 6%), #FFFDF8; }
