/* Only links registered from existing hover-underlined groups use this rule.
   Never restore the legacy, absolutely positioned paragraph-link underline. */
body #page a.hover-underline-link,
body #page a.hover-underline-link:is(:hover,:focus-visible),
body #page #primary .video-library-card:hover h3 .video-title-text {
 text-decoration:none!important;
}
body #page a.hover-underline-link::after { content:none!important; }
body #page a :is(.hover-underline-host,.hover-underline-text) {
 font:inherit!important; letter-spacing:inherit!important;
 font-kerning:inherit!important; text-transform:inherit; color:inherit!important;
}
/* Inline backgrounds are clipped to each text fragment, including wraps.
   Unlike an absolute pseudo-element they cannot paint across a parent card.
   An unpainted host keeps the label inline inside larger flex hit areas.
   Neither wrapper changes the hit target. */
body #page :is(.hover-underline-text,.video-title-text) {
 text-underline-offset:3px;
 background-image:linear-gradient(#d2c8ae,#d2c8ae);
 background-repeat:no-repeat;
 background-position:left calc(100% - var(--underline-bottom,0px));
 background-size:0% var(--underline-thickness,0px);
 -webkit-box-decoration-break:clone; box-decoration-break:clone;
 transition:background-size .3s ease;
}
body #page a.hover-underline-link:is(:hover,:focus-visible) .hover-underline-text,
body #page .video-library-card:hover .video-title-text {
 background-size:100% var(--underline-thickness,0px);
}
@media(prefers-reduced-motion:reduce) {
 body #page :is(.hover-underline-text,.video-title-text) { transition-duration:.01ms!important; }
}
