/* LDS typewriter (see /lds-typewriter.js). Each .ldt-line keeps its final size and
   place from the start; a clip hides it until it types, so nothing moves. */
@property --ldt-p { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.ldt-line { display: block; width: max-content; max-width: 100%; position: relative; }
.ldt-armed .ldt-line {
  --ldt-p: 0%;
  clip-path: inset(-.3em calc(100% - var(--ldt-p)) -.4em -.2em);
}
.ldt-armed .ldt-line.ldt-on {
  animation: ldt-type var(--ldt-d, 1s) steps(var(--ldt-n, 20), end) forwards;
}
.ldt-armed .ldt-line.ldt-caret::after {
  content: ''; position: absolute;
  left: calc(var(--ldt-p) - 1px); top: .16em; bottom: .1em; width: 1px;
  background: currentColor; opacity: .55;
  animation: ldt-blink .7s step-end infinite;
}
@keyframes ldt-type { from { --ldt-p: 0%; } to { --ldt-p: 100%; } }
@keyframes ldt-blink { 50% { opacity: 0; } }
.ldt-marker { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ldt-marker-end { top: auto; bottom: 50vh; bottom: 50svh; }
@media (prefers-reduced-motion: reduce) {
  .ldt-armed .ldt-line { clip-path: none; --ldt-p: 100%; animation: none; }
  .ldt-armed .ldt-line::after { display: none; }
}
