/* B-6 (WCAG 2.2.2): a home pill strip that home-contact.js has stopped (.is-still) and that
   zz-marquee-still.js has turned into a scroller (.is-scroll). Same gates as the moving strip,
   so phones, reduced motion and html.motion-paused never match. The scrollbar is hidden and the
   edge mask from home-contact.css stays; the track offset now lives in scrollLeft, with only the
   sub pixel remainder (--hm-mq-r) left as a transform.
   Focus ring: scrolled content paints over a scroller's own inset outline, but never over its
   border. So the box gains a transparent 2px side border that sits outside its old edges (width
   plus 4px, margins minus 2px: the padding box, where the pills live, keeps its exact size and
   place) and the mask is pinned to that padding box, so nothing moves at rest. On keyboard focus
   the site ring (base.css colour and width) is drawn inside the box, over that border lane, and
   four 2px mask strips keep it solid where the edge fade would hide it. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	html.motion-ok .hm-marquee.is-still.is-scroll {
		overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
		width: calc(100% + 4px); margin-inline: -2px; border-inline: 2px solid transparent;
		-webkit-mask: linear-gradient(to right, transparent, #000 16.7%, #000 83.3%, transparent) padding-box;
		mask: linear-gradient(to right, transparent, #000 16.7%, #000 83.3%, transparent) padding-box;
	}
	html.motion-ok .hm-marquee.is-still.is-scroll::-webkit-scrollbar { display: none; }
	html.motion-ok .hm-marquee.is-still.is-scroll .hm-marquee__track { transform: translateX(var(--hm-mq-r, 0px)); }
	html.motion-ok .hm-marquee.is-still.is-scroll:focus-visible {
		outline: 2px solid var(--c-blue); outline-offset: -2px;
		-webkit-mask: linear-gradient(to right, transparent, #000 16.7%, #000 83.3%, transparent) padding-box,
			linear-gradient(#000, #000) left top / 100% 2px no-repeat border-box, linear-gradient(#000, #000) left bottom / 100% 2px no-repeat border-box,
			linear-gradient(#000, #000) left top / 2px 100% no-repeat border-box, linear-gradient(#000, #000) right top / 2px 100% no-repeat border-box;
		mask: linear-gradient(to right, transparent, #000 16.7%, #000 83.3%, transparent) padding-box,
			linear-gradient(#000, #000) left top / 100% 2px no-repeat border-box, linear-gradient(#000, #000) left bottom / 100% 2px no-repeat border-box,
			linear-gradient(#000, #000) left top / 2px 100% no-repeat border-box, linear-gradient(#000, #000) right top / 2px 100% no-repeat border-box;
	}
}
