/* Local 50-page reader: full-resolution plates, paired desktop pages, single phones. */
.flipbook__note{color:#4b565e;max-width:67ch;margin-bottom:1rem}
.flipbook__note a{text-underline-offset:.2rem}
.flipbook__controls{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .85rem;padding:.7rem .8rem;border:1px solid #536268;border-radius:.35rem .35rem 0 0;color:#fff;background:#202c33}
.flipbook__navigation,.flipbook__zoom,.flipbook__jump,.flipbook__jump label{display:flex;align-items:center;gap:.32rem}
.flipbook__count{min-width:4.35rem;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.flipbook__controls button,.flipbook__jump input{font:inherit;font-weight:650;color:#fcf8ee;line-height:1.14;min-height:44px;background:#2d3d45;border:1px solid #91a0a5;border-radius:.23rem;padding:.4rem .62rem}
.flipbook__controls button{cursor:pointer}
.flipbook__controls button:hover:not(:disabled){background:#4a565b;color:#fff}
.flipbook__controls button:disabled{opacity:.53;cursor:default}
.flipbook__controls :is(button,input):focus-visible,.flipbook__stage:focus-visible{outline-color:#dcb879}
.flipbook__zoom button{min-width:2.65rem}
.flipbook__jump{margin:0;margin-left:auto}
.flipbook__jump input{width:4.1rem;background:#fbf9f4;color:#253138}
.flipbook__stage{width:100%;padding:clamp(.32rem,2vw,1rem);background:#dce2df;border:1px solid #abb7b4;border-top:0;border-radius:0 0 .35rem .35rem;overflow:auto;overscroll-behavior-inline:contain}
.flipbook__stage[data-scale="100"]{touch-action:pan-y pinch-zoom}
.flipbook__pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100% * var(--book-zoom,1));min-width:0;position:relative;align-items:start}
.flipbook__pages.is-single .flipbook__leaf{grid-column:1/-1;max-width:55%;justify-self:center}
.flipbook__leaf{min-width:0;display:block;width:100%;height:auto;aspect-ratio:1225/1718;object-fit:contain;background:#f4f0e9;box-shadow:0 .3rem .6rem #16262936}
.flipbook__pages:not(.is-single) .flipbook__leaf:first-child{border-right:1px solid #6e767274}
.flipbook__pages.turn-forward .flipbook__leaf{animation:book-open-next .32s cubic-bezier(.23,.7,.32,1) both;transform-origin:left center}
.flipbook__pages.turn-backward .flipbook__leaf{animation:book-open-previous .32s cubic-bezier(.23,.7,.32,1) both;transform-origin:right center}
@keyframes book-open-next{from{transform:perspective(1200px) rotateY(-13deg);filter:brightness(.86)}to{transform:none;filter:none}}
@keyframes book-open-previous{from{transform:perspective(1200px) rotateY(13deg);filter:brightness(.86)}to{transform:none;filter:none}}
.flipbook__fallback img{max-width:min(100%,33rem)}
@media(max-width:700px){.flipbook__pages{grid-template-columns:1fr}.flipbook__pages.is-single .flipbook__leaf{max-width:100%}.flipbook__jump{margin-left:0}}
@media(max-width:520px){.flipbook__controls{padding:.48rem;gap:.4rem .58rem}.flipbook__controls button,.flipbook__jump input{padding-inline:.45rem}.flipbook__jump label{font-size:.94rem}}
@media(prefers-reduced-motion:reduce){.flipbook__pages .flipbook__leaf{animation:none!important}}
.flipbook #book-title{font-size:clamp(1.8rem,4vw,3.55rem);line-height:1.08;margin-bottom:.65rem}
.reading-main:has(.flipbook) .reading-breadcrumb{margin-bottom:1.55rem}
