/* Motion is an enhancement. All editorial content remains visible at rest. */
#datarc-reading-progress {
  display: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .datarc-motion-ready #datarc-reading-progress {
    display: block;
    position: fixed;
    z-index: 31;
    inset: var(--mast-top) 0 auto;
    height: 2px;
    pointer-events: none;
    background: #4e63cb;
    transform: scaleX(var(--datarc-reading, 0));
    transform-origin: left;
  }

  @supports (animation-timeline: scroll(root block)) {
    .datarc-motion-ready #datarc-reading-progress {
      animation: datarc-read linear both;
      animation-timeline: scroll(root block);
    }
  }

  @keyframes datarc-read {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .datarc-motion-ready .btn {
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
  }
}

@media print {
  #datarc-reading-progress { display: none !important; }
}
