/* /core/assets/highlight.css — the linked item's highlight fades (1.20.0).
 *
 * A forum post or a comment opened by its link (#post-12, #comment-7, or after posting) is tinted while the page lands on
 * it, held 3 s, then fades over 1 s (owner, 2026-11-03). One animation for every such highlight, so they look alike: each
 * highlight selector writes animation:var(--core-target-fade), and the theme names its colour as --cms-target-bg on that
 * selector (a :target background of its own would outlive the fade). The keyframes have no end: an animation ends on the
 * element's own background, whatever the theme gives it. It starts when an element starts matching :target, so a link to
 * another item highlights that one; forums.js restarts it when the link is to the post already targeted.
 * Pushed with forums.css (Forums' Front), with comments.css (Template::commentsBlock() and the Comments module's pages) and by
 * Template::rules() for the community rules page (/rules#rule-3).
 */
/* --core-*, not --cms-*: core's own timing, not a token the theme contract asks a theme to define. A reader writes this
   value as its fallback, so a page without this sheet still fades (only reduced motion then goes unheard). */
:root{--core-target-fade:cms-target-fade 4s linear}
/* No fade under reduced motion, but the highlight still goes after the same hold: steps(1,start) jumps at the start of
   the 75%-100% stretch, at 3 s. */
@media (prefers-reduced-motion:reduce){:root{--core-target-fade:cms-target-fade 4s steps(1,start)}}
@keyframes cms-target-fade{0%,75%{background-color:var(--cms-target-bg, var(--cms-sunk, rgba(128,128,128,.06)))}}
