/* Read along (/read/<story id>): a picture with one big line of words under it. */
.ra { max-width: 34rem; margin: 0 auto; padding: 0 16px 2rem; text-align: center; }
.ra__page { margin: 1rem 0; }
.ra__still { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 12px; }
.ra__text { margin-top: 1rem; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.4; font-weight: 700; }
.ra__text span { transition: color .15s ease; color: #6b6b6b; }
.ra__text span.is-said { color: #1a1a1a; }
.ra__controls { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.ra__all { text-align: left; font-size: 1.25rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .ra__text span { transition: none; } }
/* inside a walk's overlay (?in=walk): the whole book fits the frame (picture, words and buttons; nothing to scroll),
   no site header */
.is-bare { background: #fff; }
.is-bare main { padding: 0; }
.ra--walk { display: flex; flex-direction: column; box-sizing: border-box; height: 100vh; height: 100dvh; max-width: 40rem;
  padding: 10px 12px 8px; }
.ra--walk .daily__kicker { margin: 0; }
.ra--walk .head { margin: 0 0 .25rem; font-size: clamp(1.25rem, 4.6vw, 1.9rem); line-height: 1.1; }
.ra--walk .ra__page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: .25rem 0 .5rem; }
.ra--walk .ra__still { flex: 1 1 0; min-height: 0; width: 100%; height: auto; max-height: none; }
.ra--walk .ra__text { flex: none; margin-top: .5rem; padding: 0 .6rem; font-size: clamp(1.1rem, 3.8vw, 1.6rem); line-height: 1.3; }
.ra--walk .ra__controls { flex: none; flex-wrap: nowrap; gap: .5rem; }
.ra--walk .ra__controls .btn { min-height: 52px; padding-inline: 1.1em; font-size: 1.1rem; }
.ra--walk .ra__count { flex: none; margin: .3rem 0 0; }
@media (max-width: 420px) { .ra--walk .ra__controls .btn { padding-inline: .8em; white-space: nowrap; } }
/* inside /today's story box (?in=today, templates/_storybox.html): the dialog's bar already says what it is */
.ra--today { padding-top: 6px; }
.ra--today .daily__kicker, .ra--today .head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ra--today .ra__page { margin-top: 0; }
/* tap a word to hear it (wish list #46): every word is a button; the tapped word and each letter sound light up */
.ra__word { cursor: pointer; border-radius: 6px; padding: .1em .14em; margin: 0 -.08em; }
.ra__word:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 2px; }
.ra__text span.ra__word.is-tapped { color: #1a1a1a; background: #fff3b0; }
.ra__sound { color: #9a9a9a; }
.ra__sound.is-on { color: #1a1a1a; }
/* sound dots while a word is sounded out (Claudia's rethink, 28 Nov): a dot under each one-letter sound and a short
   dash under a two-letter one (ck, ff, ll, ss), lighting up with their sound; room is made under the word for them */
/* every word keeps the dots' room while tap a word is on (Claudia, review of PR 344), so a word being sounded out never
   makes its line taller and nudges the text below */
.ra__word { display: inline-block; padding-bottom: .45em; line-height: 1.2; }
.ra__sound { position: relative; display: inline-block; }
.ra__sound::after { content: ""; position: absolute; left: 50%; top: 100%; margin-top: .12em; transform: translateX(-50%);
  width: .32em; height: .32em; border-radius: 50%; background: #c4c4c4; transition: background-color .15s ease; }
.ra__sound--dash::after { width: 70%; height: .16em; border-radius: .08em; margin-top: .2em; }
.ra__sound.is-on::after { background: #1a1a1a; }
@media (prefers-reduced-motion: reduce) { .ra__sound::after { transition: none; } }
.ra__tip { margin-top: .25rem; }
.ra--walk .ra__tip { flex: none; margin: .2rem 0 0; font-size: .85rem; }
/* /read, the shelf of read-alongs (Claudius, 28 Nov): big poster buttons, four across on a landscape iPad */
.ra-shelf { max-width: 64rem; margin: 0 auto; padding: 0 16px 2rem; text-align: center; }
.ra-shelf__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.ra-shelf__book { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: .5rem; border-radius: 14px;
  background: #fff; color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.ra-shelf__book img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; }
.ra-shelf__book:focus-visible { outline: 3px solid #2a6fdb; outline-offset: 3px; }
@media (max-width: 420px) { .ra-shelf__list { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
