/* Motion module "list-bar": one gliding bar per list, in the margin left of the content edge (same geometry as the static bar in group-heading.css). */
.motion-list-bar .list-bar {
  display: none;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .motion-list-bar .list-bar-host {
    position: relative;
  }

  .motion-list-bar .list-bar {
    display: block;
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: calc(-1 * (var(--list-row-bar-gap) + var(--list-row-bar-width)));
    inline-size: var(--list-row-bar-width);
    margin-block-start: var(--list-row-bar-inset);
    block-size: calc(var(--bar-height, 0px) - 2 * var(--list-row-bar-inset));
    border-radius: var(--radius-pill);
    background-color: var(--list-row-bar-color);
    opacity: 0;
    pointer-events: none;
    /* Glides by transform; the bar adopts the height of each row (absolute and 3 px wide: paints only, no layout effect). */
    transition: transform 240ms cubic-bezier(0.3, 0.75, 0.25, 1), block-size 240ms cubic-bezier(0.3, 0.75, 0.25, 1), opacity 160ms ease-out;
  }

  /* The shared bar replaces the static per-row bar while the module runs. */
  .motion-list-bar .list-row::before {
    display: none;
  }
}
