/* Light trail (ts-light-trail): the violet curve of light across the progress screen's photo (the page top's), behind
   the page's text. Mounted with state="live" or state="ended"; it fills the box it sits in (the photo's box from 600 px,
   the photo band above the title under it). data-lt (set by the element) is the look it draws: live, or ended (also
   under reduced motion). On a phone the band is --lt-band tall, and the curve keeps above the title where the title
   overlaps the band (--lt-floor). variant="hero" is a public page hero's wide ribbon (light-trail.js); it is placed the
   same way. */
ts-light-trail { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; contain: strict; }
ts-light-trail canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* On a phone the trail lies over the photo band and fades out before the title */
@media (max-width: 599px) {
  ts-light-trail { bottom: auto; z-index: 0; height: var(--lt-band, 104px); --lt-floor: 38px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lt-floor) - 6px), transparent calc(100% - var(--lt-floor) + 6px));
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lt-floor) - 6px), transparent calc(100% - var(--lt-floor) + 6px)); }
}
