/* ═══════════════════════════════════════════════════════════════════════
   ANCESTRAL WATCH — the read-along on the free readings (11/11/2026)
   As the voice reads, the sentence being read sits in a soft warm wash and
   the word being said carries a slightly stronger mark. Read sentences rest
   at full ink; the sentences still to come sit a shade lighter. Cream, gold
   and ink, like the Listen card. No blend modes, no backdrop filters.
   Only class changes move while the reading plays.
   ═══════════════════════════════════════════════════════════════════════ */
.aw-ra{--ra-wash:rgba(185,141,62,.17);--ra-edge:rgba(185,141,62,.17);--ra-mark:rgba(185,141,62,.38);--ra-mark-ink:#2A2114;
  --ra-line:rgba(145,105,31,.55);--ra-ahead:.74;--ra-focus:#91691F;--ra-hover:rgba(185,141,62,.07)}
/* light text on a dark panel (the excerpt on /read/stone-breath/) */
.aw-ra.aw-ra--dark{--ra-wash:rgba(230,185,105,.2);--ra-edge:rgba(230,185,105,.2);--ra-mark:rgba(230,185,105,.36);--ra-mark-ink:#FFF7E6;
  --ra-line:rgba(230,185,105,.7);--ra-ahead:.72;--ra-focus:#E6B969;--ra-hover:rgba(230,185,105,.08)}

.aw-ra .aw-ra__s{border-radius:.22em;transition:background-color .32s ease,box-shadow .32s ease,opacity .5s ease;
  -webkit-tap-highlight-color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.aw-ra .aw-ra__w{border-radius:.2em;transition:background-color .14s ease,color .14s ease;
  -webkit-box-decoration-break:clone;box-decoration-break:clone}

/* while the reading plays: what is still to come sits a shade lighter, what has been read rests at full ink */
.aw-ra.aw-ra--on .aw-ra__s{opacity:var(--ra-ahead);cursor:pointer}
.aw-ra.aw-ra--on .aw-ra__s.is-read,.aw-ra.aw-ra--on .aw-ra__s.is-current{opacity:1}
.aw-ra.aw-ra--on .aw-ra__s.is-current{background-color:var(--ra-wash);box-shadow:0 0 0 .18em var(--ra-edge)}
.aw-ra.aw-ra--on .aw-ra__s.is-current .aw-ra__w.is-word{background-color:var(--ra-mark);color:var(--ra-mark-ink);
  box-shadow:0 .08em 0 0 var(--ra-line)}
.aw-ra .aw-ra__s--live:hover{background-color:var(--ra-hover);box-shadow:0 0 0 .18em var(--ra-hover)}
.aw-ra.aw-ra--on .aw-ra__s.is-current:hover{background-color:var(--ra-wash);box-shadow:0 0 0 .18em var(--ra-edge)}
.aw-ra .aw-ra__s:focus{outline:0}
.aw-ra .aw-ra__s:focus-visible{outline:2px solid var(--ra-focus);outline-offset:.14em}
@media (hover:none){.aw-ra .aw-ra__s--live:hover{background-color:transparent;box-shadow:none}}

/* the "Read along" switch beside the Listen card */
.aw-ra__ui{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem 1rem;width:100%;max-width:34rem;margin:.75rem 0 0;padding:0 .25rem;
  box-sizing:border-box;font-family:var(--font-body,"Inter",system-ui,-apple-system,"Segoe UI",sans-serif);text-align:left}
.aw-ra__ui--center{margin-left:auto;margin-right:auto}
.aw-ra__toggle{display:inline-flex;align-items:center;gap:.55rem;margin:0;padding:.25rem .1rem;border:0;background:none;cursor:pointer;
  color:#6E5E48;font:inherit;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1.2;
  -webkit-tap-highlight-color:transparent;border-radius:999px}
.aw-ra__toggle:focus-visible{outline:2px solid #91691F;outline-offset:3px}
.aw-ra__sw{position:relative;display:inline-block;width:34px;height:20px;border-radius:999px;background:rgba(59,48,32,.22);
  transition:background-color .2s ease;flex:none}
.aw-ra__dot{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#FFFCF4;
  box-shadow:0 1px 3px rgba(59,48,32,.35);transition:transform .2s ease}
.aw-ra__toggle[aria-checked="true"] .aw-ra__sw{background:#B98D3E}
.aw-ra__toggle[aria-checked="true"] .aw-ra__dot{transform:translateX(14px)}
.aw-ra__toggle[aria-checked="true"]{color:#91691F}
.aw-ra__hint{font-size:.8rem;line-height:1.3;color:#6E5E48;opacity:.85}
.aw-ra__toggle[aria-checked="false"] ~ .aw-ra__hint{display:none}
@media (max-width:520px){.aw-ra__ui{gap:.25rem .8rem}.aw-ra__hint{font-size:.76rem}}

/* the page may be read without motion; the highlight still moves, the page does not glide */
@media (prefers-reduced-motion:reduce){
  .aw-ra .aw-ra__s,.aw-ra .aw-ra__w,.aw-ra__sw,.aw-ra__dot{transition:none}
}
