/* EVORA reading surfaces. Pure CSS; data, chart geometry and controls unchanged. */
body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  pointer-events: none;
  background: var(--ok, currentColor);
  transform: scaleX(0);
  transform-origin: left;
}
h1 {
  animation: evora-document-arrival 420ms cubic-bezier(.16, 1, .3, 1) both;
}
h2 {
  text-decoration-color: var(--ok, currentColor);
  text-underline-offset: .22em;
  transition: text-decoration-color 180ms ease-out;
}
main a, main button, summary {
  transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}
:focus-visible { outline: 2px solid var(--ok, currentColor); outline-offset: 4px; }
@keyframes evora-document-arrival {
  from { opacity: .6; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes evora-document-progress { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  body::before { animation: evora-document-progress linear both; animation-timeline: scroll(); }
}
@media (prefers-reduced-motion: reduce) {
  h1, body::before { animation: none; }
  h1 { opacity: 1; translate: none; }
  main a, main button, summary { transition: none; }
  body::before { display: none; }
}
@media print, (forced-colors: active) { body::before { display: none; } }
