/* UniCheatSheet — Smart Resource Spotlight: for ~3 s the card glows in its own type colour (--k) and a warm-yellow highlighter sweeps
   across its title. Content-named, never changed in place. Paint only (box-shadow, border colour, an overlay): no layout change, nothing moves. */
.slide.is-spot img { border-color: var(--k, #22e5ff) !important; box-shadow: 0 0 0 2px var(--k, #22e5ff), 0 0 26px 2px color-mix(in srgb, var(--k, #22e5ff) 45%, transparent) !important; transition: box-shadow .5s ease, border-color .5s ease; }
.slide.is-spot .hover-text { color: var(--e-text, #f3f6fa) !important; position: relative !important; }
.slide.is-spot.is-spot-out img { box-shadow: 0 0 0 0 transparent !important; border-color: transparent !important; transition: box-shadow .8s ease, border-color .8s ease; }
/* The highlighter: a copy of the title (generated content, so the page's own text is untouched) in dark ink on the site's yellow, laid exactly
   over the title, drawn left to right, held, then wiped off the same way. Every glyph is always light-on-dark or dark-on-yellow. */
.spot-hl { --hl: var(--e-now, #ffe066); position: absolute; inset: 0; padding: inherit; color: var(--e-on-now, #2b2200); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; pointer-events: none; animation: spot-hl 3s linear both; }
.spot-hl::before { content: attr(data-t); background: var(--hl); border-radius: 3px; box-shadow: -2px 0 0 var(--hl), 2px 0 0 var(--hl), 0 1px 0 var(--hl), -2px 1px 0 var(--hl), 2px 1px 0 var(--hl); -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* bleeds sideways and 1px down, never up: a clamped third line must not show its top edge */
@keyframes spot-hl {   /* starts when the card is on screen and still (spotlight.js): sweep in 0.6 s, hold, wipe off by 3 s */
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  20%, 84% { clip-path: inset(0 0 0 0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { clip-path: inset(0 0 0 100%); }
}
@media (prefers-reduced-motion: reduce) { .slide.is-spot img, .slide.is-spot.is-spot-out img { transition: none !important; } .spot-hl { animation: none; } }
