/* Book page click/touch navigation: extends existing visual design. */
.book-stage { isolation: isolate; }
.book-spread.is-active .book-page { cursor: pointer; }
.book-spread.is-active .book-page a,
.book-spread.is-active .book-page button,
.book-spread.is-active .book-page pre,
.book-spread.is-active .book-page code { cursor: auto; }
.book-spread.is-active .book-page:hover { box-shadow: inset 0 0 38px rgba(91,57,105,.075); }
.book-spread.is-active .book-page:focus-visible { outline: 3px solid #c4a4e2; outline-offset: -4px; }
.book-pages.is-flipping { overflow: visible; }
.book-turn-sheet {
  position:absolute; top:0; bottom:0; width:50%; z-index:30;
  transform-style:preserve-3d; pointer-events:none;
  transition:transform 800ms cubic-bezier(.24,.7,.18,1);
  will-change:transform;
}
.book-turn-sheet.forward { left:50%; transform-origin:left center; }
.book-turn-sheet.reverse { left:0; transform-origin:right center; }
.book-turn-sheet.forward.is-turning { transform:rotateY(-180deg); }
.book-turn-sheet.reverse.is-turning { transform:rotateY(180deg); }
.book-turn-face {
  position:absolute; inset:0; backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style:preserve-3d; overflow:hidden;
}
.book-turn-face.back { transform:rotateY(180deg); }
.book-turn-face .book-page {
  box-sizing:border-box; width:100%; height:100%; min-height:100%;
  border-radius:0; overflow:hidden; cursor:default;
  box-shadow:inset 0 0 26px rgba(60,38,63,.10);
}
.book-turn-sheet.forward .book-turn-face.front .book-page { border-radius:0 13px 13px 0; }
.book-turn-sheet.reverse .book-turn-face.front .book-page { border-radius:13px 0 0 13px; }
.book-turn-sheet .book-turn-face::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg,rgba(33,23,46,.15),transparent 42%,rgba(33,23,46,.1));
}
.book-turn-sheet.reverse .book-turn-face::after { background:linear-gradient(270deg,rgba(33,23,46,.15),transparent 42%,rgba(33,23,46,.1)); }
@media(max-width:700px) {
  .book-turn-sheet { width:100%; }
  .book-turn-sheet.forward,.book-turn-sheet.reverse { left:0; }
  .book-turn-face .book-page { display:flex!important; flex-direction:column; min-height:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .book-turn-sheet { transition:none!important; }
}
