/*!
 * act.label-roll — companion styles. MIT License, Copyright (c) 2026 The Machine; notice in fx.js.
 * Duration and curve come from the page's timing tokens (--dur-swap, --ease-land); the fallbacks
 * are only for a page that has none. The mask clips at the line box, so give the label a line
 * height that holds its descenders (1.15 or more for mixed case).
 */

.lr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lr-mask {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
}
.lr-a,
.lr-b {
  display: block;
  white-space: nowrap;
}
.lr-b {
  position: absolute;
  inset: 100% 0 auto 0;
}
.lr-c {
  display: inline-block;
  transition-delay: calc(var(--lr-i, 0) * var(--lr-stagger, 0ms));
}
.lr-on .lr-a,
.lr-on .lr-b,
.lr-on .lr-c {
  transition-property: transform;
  transition-duration: var(--lr-dur, var(--dur-swap, 140ms));
  transition-timing-function: var(--lr-ease, var(--ease-land, cubic-bezier(0.25, 1, 0.5, 1)));
}

@media (hover: hover) and (pointer: fine) {
  .lr-on:hover .lr-mask:not([style]) .lr-a,
  .lr-on:hover .lr-mask:not([style]) .lr-b,
  .lr-on:hover .lr-c {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lr-on .lr-a,
  .lr-on .lr-b,
  .lr-on .lr-c {
    transition: none;
    transform: none !important;
  }
}

@media print {
  .lr-b { display: none; }
}
