/* Little books: shelf + read-along reader. Scoped to .book-* classes. */
.book-shelf { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.book-card { display: block; text-decoration: none; color: inherit; overflow: hidden; padding: 0; }
.book-cover { aspect-ratio: 7 / 4; background: #e9e3d2; display: grid; place-items: center; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.book-cover-title { font-size: 1.5rem; padding: 1rem; text-align: center; }
.book-meta { display: grid; gap: .2rem; padding: .75rem 1rem 1rem; }
.book-title-he { font-size: 1.25rem; font-weight: 700; }
.book-title-en { font-weight: 600; }
.book-badges { font-size: .85rem; color: var(--muted); }

.book-stage { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.book-page-frame { display: grid; place-items: center; width: 100%; max-inline-size: 44rem; border-radius: var(--radius); overflow: hidden; background: #e9e3d2; }
.book-page-frame > * { grid-area: 1 / 1; }
.book-art-placeholder { color: #42513e; }
.book-page-frame img:not(.book-art-ready) { opacity: 0; }
.book-stage .book-line { scroll-margin-block-start: 1rem; }
.book-page-img { height: auto; display: block; margin-inline: auto; width: 100%; max-inline-size: 44rem; aspect-ratio: 7 / 4; max-block-size: min(52vh, 30rem); object-fit: contain; object-position: center top; border-radius: var(--radius); border: 1px solid var(--border); background: #e9e3d2; }
/* A picture cut to its drawing (src/books/focus.js) is narrower than the column: centred, with its height capped so the line stays in view. */
.book-page-img[data-focus] { object-fit: cover; width: auto; max-inline-size: 100%; block-size: min(44vh, 26rem); }
.book-page-pending { display: grid; place-items: center; align-content: center; gap: .5rem; }
.book-line { font-size: 2rem; line-height: 1.5; font-weight: 700; }
.book-translit { font-size: 1.1rem; margin: 0; }
.book-en { margin: 0; }
.book-listen-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.book-listen { min-block-size: var(--tap); }
.book-slower { min-block-size: var(--tap); }
.book-slower[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.book-nav { display: flex; gap: 1rem; align-items: center; justify-content: space-between; width: 100%; max-inline-size: 44rem; }
.book-dots { display: flex; gap: .4rem; justify-content: center; padding-block: .5rem; flex-wrap: wrap; }
.book-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; padding: 0; cursor: pointer; }
.book-dot.on { background: var(--accent); }

/* Books whose artwork is not made yet: a gold banner straight across the front of the cover and of the reader's picture space */
.book-cover-soon, .book-page-pending { position: relative; overflow: hidden; }
.book-cover-soon .book-cover-title { opacity: .55; }
.book-soon-banner { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-8deg) scaleX(1.15);
  background: #c9a227; color: #0f2a1d; text-align: center; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: .85rem; white-space: nowrap; padding: .45rem .5rem; box-shadow: 0 2px 6px rgba(0,0,0,.18); border-block: 2px solid #0f2a1d; }
.book-page-pending .book-soon-banner { font-size: 1.4rem; padding: .8rem 1rem; }
