/* Leave room for a small eased movement without hiding the rail's last control. */
@media (min-width: 981px) {
  #noticeReferencePage :is(.filter-stack, .notice-reference-sidebar)[data-notice-rail-follow] {
    max-height: calc(100dvh - 136px) !important;
    transform: translate3d(0, var(--notice-rail-offset, 0px), 0) !important;
  }

  #noticeReferencePage .notice-rail-moving {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce), print {
  #noticeReferencePage :is(.filter-stack, .notice-reference-sidebar)[data-notice-rail-follow] {
    transform: none !important;
    will-change: auto;
  }
}
