/* Words that move into place, and the teaching highlight (Kalima). Whole words only; Arabic letters stay joined.
   Without .is-entering (reduced motion, no observer) nothing is hidden. */
.is-entering .w { display: inline-block; opacity: 0; translate: 0 0.35em; }
.is-entering.is-in .w {
  animation: word-in var(--duration-slow) var(--ease-enter) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes word-in { from { opacity: 0; translate: 0 0.35em; } to { opacity: 1; translate: 0 0; } }

/* The part of a prompt being taught: an underline drawn once, room left for Arabic dots below. */
mark.part {
  background: linear-gradient(var(--color-mark), var(--color-mark)) no-repeat 0 100% / 100% 0.32em;
  color: inherit; font-weight: 600; padding-block-end: 0.1em;
  animation: mark-draw var(--duration-slow) var(--ease-enter) both;
}
@keyframes mark-draw { from { background-size: 0 0.32em; } to { background-size: 100% 0.32em; } }
[dir="rtl"] mark.part, mark.part:dir(rtl) { background-position: 100% 100%; }

@media (prefers-reduced-motion: reduce) {
  .is-entering .w, .is-entering.is-in .w { opacity: 1; translate: none; animation: none; }
  mark.part { animation: none; }
}
