.paid-reader, #free-flipbook {
  --book-ink: #24385b;
  --book-line: #d6d9e3;
  background: #f3f3f8;
  color: var(--book-ink);
}
#free-flipbook {border-radius: .6rem; padding: clamp(.5rem, 2vw, 1.2rem); margin-bottom: 1rem}
.revision-summary {max-width: 40rem}
.revision-summary p {line-height: 1.85}
.revision-summary label {display: grid; gap: .4rem; margin-top: 1rem; font-weight: 650}
.revision-summary audio {width: min(100%, 24rem)}
.paid-reader main, .paid-reader .top {max-width: 70rem}
.top {gap: .6rem 1rem; flex-wrap: wrap}
.top a:first-child {margin-right: auto}
.paid-reader .title {margin: 0 0 .85rem}
.paid-reader .title img {height: 4rem}
.paid-reader .title h1 {font-size: clamp(1.7rem, 4vw, 2.3rem)}
.paid-reader #activities {border: 0; padding: 0; background: none}
.book-views, .book-chapter, .reader-page-controls, .reader-pagination {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
}
.book-views {padding-block: .4rem .8rem; border-bottom: 1px solid var(--book-line)}
.book-views button, .reader-pagination button, .page-worksheet {
  color: var(--book-ink); border-color: var(--book-line); font-size: .9rem;
}
.book-views button[aria-pressed=true] {color: white; background: var(--book-ink); border-color: var(--book-ink)}
.book-chapter {margin: .85rem 0 .55rem; justify-content: space-between}
.book-chapter label {display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-weight: 650; min-width: 0}
.book-chapter select, .reader-page-controls select {color: var(--book-ink); border-color: #adb4c4}
.book-chapter span, .reader-page-controls {font-size: .85rem}
.reader-page-controls {justify-content: space-between; margin: .7rem 0 .8rem}
.reader-page-controls .book-chapter {margin: 0}
.reader-page-jump {display: flex; gap: .5rem; align-items: center}
.reader-page-jump select {padding-block: .25rem}
.flipbook:focus-visible {outline: 3px solid #1463a1; outline-offset: 3px}
.spread {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative;
  isolation: isolate; perspective: 1600px; background: #fffdf5;
  border-radius: 6px; box-shadow: 0 16px 40px #24345b24, 0 2px 5px #24345b18;
  width: min(100%, max(34rem, calc((100dvh - 370px) * 1.57))); margin: 0 auto;
}
.spread::after {
  content: ""; position: absolute; inset-block: 0; left: calc(50% - 15px);
  width: 30px; background: linear-gradient(90deg, transparent, #312b3020, transparent);
  pointer-events: none; z-index: 3;
}
.book-leaf {min-width: 0; background: #fffdf5}
.book-leaf img {display: block; width: 100%; height: auto}
.leaf-tools {padding: .5rem .8rem .65rem}
.leaf-audio {display: flex; align-items: center; gap: .5rem; padding: .4rem .7rem; font-size: .8rem; font-weight: 650}
.leaf-audio span {white-space: nowrap}
.leaf-audio audio {width: 100%; min-width: 0; height: 34px}
#activities .leaf-tools details {font-size: .85rem; margin-top: .45rem; padding-top: .4rem}
.leaf-tools details p {white-space: pre-wrap; margin-top: .5rem}
.page-worksheet {margin-top: .45rem; font-size: .8rem; padding: .25rem .45rem}
.paper-overlay {position:absolute;inset:0 0 auto;aspect-ratio:2088/1334;z-index:5;pointer-events:none}
.spread[data-single=true] .paper-overlay {aspect-ratio:1044/1334}
.paper-overlay:empty {display:none}
.curl-layer,.curl-mesh {position:absolute;inset:0}
.curl-layer {background:white;overflow:clip}
.curl-base {position:absolute;top:0;bottom:0;width:50%;background:white center/100% 100% no-repeat}
.curl-base.left {left:0}
.curl-base.right {right:0}
.curl-base.whole {inset:0;width:100%}
.curl-shadow {position:absolute;top:0;bottom:0;background:linear-gradient(90deg,transparent,#281f1a99 54%,transparent);pointer-events:none}
.curl-mesh,.curl-band {transform-style:preserve-3d}
.curl-band {position:absolute;top:0;left:0;height:100%;width:var(--band-width);transform-origin:0 50%}
.curl-band::before,.curl-band::after {content:"";position:absolute;inset:0;background-color:white;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;background-repeat:no-repeat;
  background-size:100% 100%,var(--texture-size) 100%}
.curl-band::before {background-image:linear-gradient(90deg,rgb(42 34 27 / var(--shade-a)),rgb(42 34 27 / var(--shade-b))),var(--face);background-position:center,var(--front-pos) center}
.curl-band::after {transform:rotateY(180deg);background-image:linear-gradient(90deg,rgb(56 45 35 / var(--shade-b)),rgb(56 45 35 / var(--shade-a))),var(--reverse);background-position:center,var(--back-pos) center}
.sheet-edge {display:none;position:absolute;inset-block:0;width:clamp(22px,5%,45px);cursor:grab;touch-action:pan-y;user-select:none}
.sheet-edge:active {cursor:grabbing}
.sheet-edge[data-turn-edge=back] {left:0}
.sheet-edge[data-turn-edge=next] {right:0}
.spread[data-prev=true] > article:first-child [data-turn-edge=back],
.spread[data-single=false][data-next=true] > article:nth-child(2) [data-turn-edge=next],
.spread[data-single=true][data-next=true] > article:first-child [data-turn-edge=next] {display:block}
.reader-pagination {justify-content: center; gap: .4rem; font-size: .9rem}
.reading-position {text-align: center; margin: .85rem 0 .35rem; font-size: .9rem}
.reader-progress-track {display: block; width: min(100%, 24rem); height: .3rem; accent-color: var(--book-ink); margin: auto}
.chapter-work {background: white; border: 1px solid var(--book-line); border-radius: .6rem; padding: clamp(.75rem, 2vw, 1.5rem); margin-top: 1rem}
.practice-work, .practice-work .exercise {min-width: 0; border: 0; padding: 0; margin: 0}
.practice-work .exercise {margin: 1rem 0}
.exercise legend {font-weight: 650; margin-bottom: .25rem}
.sr-only {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap}
@media (max-width: 600px) {
  .spread {grid-template-columns: minmax(0, 1fr); width: min(100%, 28rem)}
  .spread::after {display: none}
  .book-chapter {align-items: flex-start}
  .book-views {gap: .35rem}
  .book-views button, .reader-pagination button {font-size: .8rem; padding: .4rem .55rem}
}

.selectable-paper {position: relative}
.printed-poem-text {position: absolute; inset: 0; width: 100%; height: 100%; fill: transparent; pointer-events: none}
.printed-poem-text text {pointer-events: bounding-box; cursor: text; user-select: text; -webkit-user-select: text; touch-action: none}
.printed-poem-text text::selection {background: transparent; color: transparent}
.page-selection-actions {display: flex; align-items: center; gap: .4rem; padding: .28rem .65rem; min-height: 2.45rem; background: #fffdf5}
.selection-quote {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem}
.page-selection-actions button {flex: none; font-size: .82rem; padding: .22rem .5rem}
.page-selection-actions audio {width: min(62%, 18rem); height: 32px}
.selectable-transcript {padding-inline: .8rem; font-size: .85rem}
.selectable-transcript label {display: grid; margin-top: .4rem}
.selectable-transcript select {width: 100%; min-width: 0}
.selectable-transcript p {white-space: pre-wrap; line-height: 1.65; margin-block: .5rem}
.revision-summary .page-selection-actions {margin-top: .55rem}
#narrator-choice {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .8rem;margin:.5rem 0 1rem}
#narrator-choice label {font-weight:650}
