{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"logo-marquee-clean","type":"registry:block","title":"Logo Marquee (Clean)","description":"The endless “Trusted by” strip – a seamless loop that eases to a stop on hover, scrubs with inertia and lifts the hovered logo to colour","dependencies":[],"files":[{"path":"blocks/logo-marquee-clean/logo-marquee-clean.tsx","type":"registry:block","content":"\"use client\";\n\nimport { useEffect, useRef, useState, type CSSProperties, type ReactNode } from \"react\";\n\n/*\n * Logo Marquee (clean) – the endless \"Trusted by\" strip for landing pages, in a single self-contained file.\n * A calm white section: smaller marks in a quiet gray, generous even spacing instead of any lines, and long, soft\n * edge fades. Every row repeats its logos as often as the width needs and slides by a measured set width, so the\n * wrap has no gap and no jump. Speed is in px per second, the same on a phone and on a wide screen. One\n * requestAnimationFrame loop owns a velocity per row: hovering or focusing the strip eases it down to a stop,\n * leaving speeds it back up, and dragging or swiping scrubs it with inertia before it settles back into its own\n * pace. Only the logo under the pointer lifts to its brand colour. It only runs while on screen, and\n * prefers-reduced-motion shows a static, wrapping row instead. The styles are injected below.\n */\n\nexport type MarqueeLogo = {\n  /** Brand name – the accessible name, and the visible label when `labels` is on */\n  name: string;\n  /** The mark, ideally an <svg> with fill=\"currentColor\" so it follows the muted colour */\n  svg?: ReactNode;\n  /** An image instead of `svg` (shown grayscale until hovered when `grayscale` is on) */\n  src?: string;\n  /** Brand colour the mark lifts to on hover, e.g. \"#635BFF\" – leave out for black marks like Vercel or GitHub */\n  color?: string;\n  /** Optical size correction, e.g. 0.9 for a heavy round mark – 1 by default */\n  scale?: number;\n  /** Turns the logo into a link */\n  href?: string;\n};\n\nexport type LogoMarqueeProps = {\n  logos: MarqueeLogo[];\n  /** Pixels per second, independent of the strip's width */\n  speed?: number;\n  /** Which way the first row runs; a second row runs the other way */\n  direction?: \"left\" | \"right\";\n  /** 1, or 2 for a second row in the opposite direction (the logos are split between the rows) */\n  rows?: 1 | 2;\n  /** Space between logos in px (smaller on narrow containers) */\n  gap?: number;\n  /** Ease to a stop while the pointer is over the strip or it has keyboard focus */\n  pauseOnHover?: boolean;\n  /** Muted, colourless logos that lift to full colour on hover */\n  grayscale?: boolean;\n  /** Show the brand name under each mark or beside it, like a wordmark */\n  labels?: \"none\" | \"below\" | \"beside\";\n  /** Accessible name of the strip */\n  label?: string;\n  className?: string;\n};\n\ntype Row = {\n  logos: MarqueeLogo[];\n  /** Run direction: 1 = content moves left, -1 = right */\n  dir: 1 | -1;\n};\n\n/** Motion state of one row, kept outside React so the loop never re-renders */\ntype RowState = {\n  x: number;\n  v: number;\n  /** Width of one set, including its trailing gap – the wrap distance */\n  w: number;\n  drag: null | { id: number; lastX: number; lastT: number; moved: number; captured: boolean };\n  /** Pending nudge (px) to bring a focused logo into view */\n  seek: number;\n};\n\n/** First letter of a name as a whole grapheme, so \"🦊 Fox\" gives 🦊 and \"Ølafur\" gives Ø */\nfunction initial(name: string) {\n  const text = name.trim();\n  if (!text) return \"?\";\n  const first =\n    typeof Intl !== \"undefined\" && \"Segmenter\" in Intl\n      ? new Intl.Segmenter(undefined, { granularity: \"grapheme\" }).segment(text)[Symbol.iterator]().next().value?.segment\n      : Array.from(text)[0];\n  return (first ?? \"?\").toLocaleUpperCase();\n}\n\n/**\n * The mark: the svg, else the image, else – when there is no visible name next to it – a letter tile, so a logo\n * without artwork (or with an image that fails to load) never leaves an empty gap in the strip.\n */\nfunction Mark({ logo, named }: { logo: MarqueeLogo; named: boolean }) {\n  const [failed, setFailed] = useState(false);\n  const mark = logo.svg ?? (logo.src && !failed ? <img src={logo.src} alt=\"\" draggable={false} onError={() => setFailed(true)} /> : null);\n  if (!mark && named) return null;\n  return (\n    <span className=\"ui-lmc__mark\" aria-hidden=\"true\">\n      {mark ?? <span className=\"ui-lmc__tile\">{initial(logo.name)}</span>}\n    </span>\n  );\n}\n\nconst mod = (n: number, m: number) => (m > 0 ? ((n % m) + m) % m : 0);\nconst clamp = (n: number, a: number, b: number) => Math.min(b, Math.max(a, n));\n\nexport function LogoMarquee({\n  logos,\n  speed = 40,\n  direction = \"left\",\n  rows = 1,\n  gap = 56,\n  pauseOnHover = true,\n  grayscale = true,\n  labels = \"none\",\n  label = \"Logos of companies using the product\",\n  className,\n}: LogoMarqueeProps) {\n  const root = useRef<HTMLDivElement>(null);\n  const tracks = useRef<(HTMLDivElement | null)[]>([]);\n  const sets = useRef<(HTMLUListElement | null)[]>([]);\n  const views = useRef<(HTMLDivElement | null)[]>([]);\n  const state = useRef<RowState[]>([]);\n  const hover = useRef(false);\n  const focus = useRef(false);\n  const [copies, setCopies] = useState<number[]>([]);\n  const [reduced, setReduced] = useState(false);\n\n  // Two rows split the logos alternately, so each row shows different brands\n  const split: Row[] =\n    rows === 2 && logos.length > 1\n      ? [\n          { logos: logos.filter((_, i) => i % 2 === 0), dir: direction === \"left\" ? 1 : -1 },\n          { logos: logos.filter((_, i) => i % 2 === 1), dir: direction === \"left\" ? -1 : 1 },\n        ]\n      : [{ logos, dir: direction === \"left\" ? 1 : -1 }];\n\n  // Latest props for the loop without restarting it\n  const live = useRef({ speed, pauseOnHover, split });\n  live.current = { speed, pauseOnHover, split };\n\n  useEffect(() => {\n    const mq = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n    const sync = () => setReduced(mq.matches);\n    sync();\n    mq.addEventListener(\"change\", sync);\n    return () => mq.removeEventListener(\"change\", sync);\n  }, []);\n\n  // Measure every row: one set's width and how many copies cover the viewport plus one wrap\n  useEffect(() => {\n    if (reduced) return;\n    const measure = () => {\n      const next = split.map((_, i) => {\n        const set = sets.current[i];\n        const view = views.current[i];\n        if (!set || !view) return 2;\n        const w = set.getBoundingClientRect().width;\n        const s = (state.current[i] ??= { x: i * w * 0.5, v: 0, w, drag: null, seek: 0 });\n        // Keep the same spot within the set when the width changes (container query, font load)\n        if (s.w > 0 && w > 0 && s.w !== w) s.x = (s.x / s.w) * w;\n        s.w = w;\n        return w > 0 ? Math.ceil(view.clientWidth / w) + 1 : 2;\n      });\n      setCopies((prev) => (prev.length === next.length && prev.every((c, i) => c === next[i]) ? prev : next));\n    };\n    measure();\n    const ro = new ResizeObserver(measure);\n    for (const el of [...sets.current, ...views.current]) if (el) ro.observe(el);\n    return () => ro.disconnect();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [reduced, split.length, logos, gap, labels]);\n\n  // The loop: one velocity per row that eases toward its target, so stops and starts are never abrupt\n  useEffect(() => {\n    const el = root.current;\n    if (reduced || !el) return;\n    let raf = 0;\n    let last = 0;\n    let visible = false;\n\n    const frame = (now: number) => {\n      const dt = last ? Math.min(0.05, (now - last) / 1000) : 0;\n      last = now;\n      const { speed, pauseOnHover, split } = live.current;\n      const stopped = pauseOnHover && (hover.current || focus.current);\n      split.forEach((row, i) => {\n        const s = state.current[i];\n        const track = tracks.current[i];\n        if (!s || !track || s.w <= 0) return;\n        if (!s.drag) {\n          const target = stopped ? 0 : speed * row.dir;\n          // A fling coasts out; slowing down for hover is a little quicker than winding back up\n          const fling = Math.abs(s.v - target) > Math.max(120, speed * 2);\n          const tau = fling ? 0.55 : stopped ? 0.32 : 0.7;\n          s.v += (target - s.v) * (1 - Math.exp(-dt / tau));\n          s.x += s.v * dt;\n          if (s.seek) {\n            const step = s.seek * (1 - Math.exp(-dt / 0.12));\n            s.x += step;\n            s.seek = Math.abs(s.seek - step) < 0.5 ? 0 : s.seek - step;\n          }\n        }\n        s.x = mod(s.x, s.w);\n        track.style.transform = `translate3d(${-s.x}px, 0, 0)`;\n      });\n      raf = visible ? requestAnimationFrame(frame) : 0;\n    };\n\n    // Runs only while on screen\n    const io = new IntersectionObserver(([e]) => {\n      visible = e.isIntersecting;\n      if (visible && !raf) {\n        last = 0;\n        raf = requestAnimationFrame(frame);\n      }\n    });\n    io.observe(el);\n    return () => {\n      io.disconnect();\n      cancelAnimationFrame(raf);\n    };\n  }, [reduced]);\n\n  /* ---------- Drag / swipe ---------- */\n\n  const onPointerDown = (i: number) => (e: React.PointerEvent<HTMLDivElement>) => {\n    const s = state.current[i];\n    if (!s || (e.pointerType === \"mouse\" && e.button !== 0)) return;\n    s.drag = { id: e.pointerId, lastX: e.clientX, lastT: e.timeStamp, moved: 0, captured: false };\n    s.v = 0;\n  };\n\n  const onPointerMove = (i: number) => (e: React.PointerEvent<HTMLDivElement>) => {\n    const s = state.current[i];\n    const d = s?.drag;\n    if (!s || !d || d.id !== e.pointerId) return;\n    const dx = e.clientX - d.lastX;\n    const dt = Math.max(1, e.timeStamp - d.lastT) / 1000;\n    d.moved += Math.abs(dx);\n    // Capture only once it is clearly a drag, so plain clicks on links still work\n    if (!d.captured && d.moved > 4) {\n      d.captured = true;\n      e.currentTarget.setPointerCapture(e.pointerId);\n      e.currentTarget.setAttribute(\"data-dragging\", \"\");\n    }\n    s.x -= dx;\n    // Smoothed release velocity in px/s\n    s.v = s.v * 0.6 + (-dx / dt) * 0.4;\n    d.lastX = e.clientX;\n    d.lastT = e.timeStamp;\n  };\n\n  const onPointerUp = (i: number) => (e: React.PointerEvent<HTMLDivElement>) => {\n    const s = state.current[i];\n    const d = s?.drag;\n    if (!s || !d || d.id !== e.pointerId) return;\n    // A pause before letting go means no fling\n    if (e.timeStamp - d.lastT > 80) s.v = 0;\n    s.v = clamp(s.v, -2400, 2400);\n    s.drag = null;\n    e.currentTarget.removeAttribute(\"data-dragging\");\n    if (d.captured) {\n      // Swallow the click that ends a drag, so a link under the pointer doesn't open\n      const view = e.currentTarget;\n      const stop = (ev: MouseEvent) => {\n        ev.preventDefault();\n        ev.stopPropagation();\n      };\n      view.addEventListener(\"click\", stop, { capture: true, once: true });\n      setTimeout(() => view.removeEventListener(\"click\", stop, { capture: true }), 0);\n    }\n  };\n\n  /* ---------- Keyboard: a focused logo is nudged into view ---------- */\n\n  const onFocusItem = (i: number) => (e: React.FocusEvent<HTMLElement>) => {\n    const s = state.current[i];\n    const view = views.current[i];\n    if (reduced || !s || !view) return;\n    const v = view.getBoundingClientRect();\n    const r = e.currentTarget.getBoundingClientRect();\n    const pad = Math.min(96, v.width * 0.15);\n    if (r.left < v.left + pad) s.seek = r.left - (v.left + pad);\n    else if (r.right > v.right - pad) s.seek = r.right - (v.right - pad);\n  };\n\n  const item = (logo: MarqueeLogo, i: number, interactive: boolean, index: number) => {\n    const body = (\n      <>\n        <Mark logo={logo} named={labels !== \"none\"} />\n        {labels !== \"none\" ? (\n          <span className=\"ui-lmc__name\" title={logo.name}>\n            {logo.name}\n          </span>\n        ) : (\n          <span className=\"ui-lmc__sr\">{logo.name}</span>\n        )}\n      </>\n    );\n    return (\n      <li\n        // Index in the key too – two logos may share a name\n        key={`${index}-${logo.name}`}\n        className=\"ui-lmc__item\"\n        style={{ \"--ui-lmc-brand\": logo.color, \"--ui-lmc-scale\": logo.scale } as CSSProperties}\n      >\n        {logo.href ? (\n          <a\n            className=\"ui-lmc__link\"\n            href={logo.href}\n            draggable={false}\n            tabIndex={interactive ? undefined : -1}\n            onFocus={interactive ? onFocusItem(i) : undefined}\n          >\n            {body}\n          </a>\n        ) : (\n          <span className=\"ui-lmc__link\">{body}</span>\n        )}\n      </li>\n    );\n  };\n\n  /* ---------- Keyboard: arrows step between linked logos, or scrub a strip without links ---------- */\n\n  const hasLinks = logos.some((l) => l.href);\n  const onKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\n    if (e.key !== \"ArrowLeft\" && e.key !== \"ArrowRight\") return;\n    const back = e.key === \"ArrowLeft\";\n    if (e.target instanceof HTMLAnchorElement) {\n      const list = Array.from(e.target.closest(\"ul\")?.querySelectorAll<HTMLAnchorElement>(\"a[href]\") ?? []);\n      const next = list[list.indexOf(e.target) + (back ? -1 : 1)];\n      if (next) {\n        e.preventDefault();\n        next.focus();\n      }\n      return;\n    }\n    if (reduced || e.target !== e.currentTarget) return;\n    e.preventDefault();\n    for (const s of state.current) if (s) s.seek += back ? -160 : 160;\n  };\n\n  // Nothing to show – no empty, labelled region\n  if (logos.length === 0) return null;\n\n  const vars = { \"--ui-lmc-gap\": `${gap}px` } as CSSProperties;\n  const cls = [\"ui-lmc\", className].filter(Boolean).join(\" \");\n\n  return (\n    <>\n      <style href=\"ui-logo-marquee-clean\" precedence=\"default\">\n        {css}\n      </style>\n      <div\n        ref={root}\n        className={cls}\n        style={vars}\n        role=\"region\"\n        aria-label={label}\n        // Without links the strip itself is one tab stop: focus pauses it and the arrows scrub it\n        tabIndex={!hasLinks && !reduced ? 0 : undefined}\n        onKeyDown={onKeyDown}\n        data-labels={labels}\n        data-grayscale={grayscale || undefined}\n        data-static={reduced || undefined}\n        onPointerEnter={(e) => {\n          if (e.pointerType !== \"touch\") hover.current = true;\n        }}\n        onPointerLeave={() => (hover.current = false)}\n        // Keyboard focus stops the strip; a mouse click that focuses a link does not\n        onFocus={(e) => (focus.current = e.target.matches(\":focus-visible\"))}\n        onBlur={(e) => {\n          if (!e.currentTarget.contains(e.relatedTarget as Node | null)) focus.current = false;\n        }}\n      >\n        {reduced ? (\n          // Reduced motion: one calm, wrapping row – nothing moves\n          <ul className=\"ui-lmc__wrap\">{logos.map((l, k) => item(l, 0, true, k))}</ul>\n        ) : (\n          split.map((row, i) => (\n            <div\n              key={i}\n              ref={(n) => {\n                views.current[i] = n;\n              }}\n              className=\"ui-lmc__row\"\n              onPointerDown={onPointerDown(i)}\n              onPointerMove={onPointerMove(i)}\n              onPointerUp={onPointerUp(i)}\n              onPointerCancel={onPointerUp(i)}\n            >\n              <div\n                ref={(n) => {\n                  tracks.current[i] = n;\n                }}\n                className=\"ui-lmc__track\"\n              >\n                {Array.from({ length: Math.max(2, copies[i] ?? 2) }, (_, c) => (\n                  <ul\n                    key={c}\n                    ref={\n                      c === 0\n                        ? (n) => {\n                            sets.current[i] = n;\n                          }\n                        : undefined\n                    }\n                    className=\"ui-lmc__set\"\n                    // Only the first set is read out and reachable by Tab; the copies are decoration\n                    aria-hidden={c > 0 || undefined}\n                    inert={c > 0 || undefined}\n                  >\n                    {row.logos.map((l, k) => item(l, i, c === 0, k))}\n                  </ul>\n                ))}\n              </div>\n            </div>\n          ))\n        )}\n      </div>\n    </>\n  );\n}\n\n/* ---------- Styles ---------- */\n\nconst css = /* css */ `\n.ui-lmc {\n  --ui-lmc-focus: var(--aui-focus, rgba(0, 96, 226, 0.7));\n  --ui-lmc-h: 24px;\n  --ui-lmc-g: var(--ui-lmc-gap, 56px);\n  --ui-lmc-row-gap: 24px;\n  --ui-lmc-fade: min(20%, 168px);\n  --ui-lmc-muted: rgba(0, 0, 0, 0.36);\n  --ui-lmc-ink: rgba(0, 0, 0, 0.88);\n  --ui-lmc-label: var(--aui-muted, rgba(0, 0, 0, 0.45));\n  --ui-lmc-dim: 0.6;\n  --ui-lmc-accent: var(--aui-info, #0070d6);\n  --ui-lmc-tile: #fff;\n  --ui-lmc-tile-ink: rgba(0, 0, 0, 0.61);\n  --ui-lmc-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 1px -1px rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n  --ui-lmc-ease: var(--aui-ease, cubic-bezier(0.22, 1, 0.36, 1));\n  container-type: inline-size;\n  display: grid;\n  gap: var(--ui-lmc-row-gap);\n  width: 100%;\n  min-width: 0;\n  font-family: var(--aui-font, \"Inter\", \"InterVariable\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif);\n  font-size: 13px;\n  line-height: 20px;\n  -webkit-font-smoothing: antialiased;\n}\n.ui-lmc *, .ui-lmc *::before, .ui-lmc *::after { box-sizing: border-box; }\n/* Narrow containers (phones): smaller logos, tighter gaps */\n@container (max-width: 520px) {\n  .ui-lmc__row, .ui-lmc__wrap { --ui-lmc-h: 20px; --ui-lmc-g: calc(var(--ui-lmc-gap, 56px) * 0.62); }\n  .ui-lmc { --ui-lmc-row-gap: 20px; }\n}\n\n.ui-lmc__row {\n  overflow: hidden;\n  /* Vertical page scroll stays native; horizontal swipes scrub the strip */\n  touch-action: pan-y;\n  cursor: grab;\n  user-select: none;\n  -webkit-user-select: none;\n  /* A long, eased fade – the marks dissolve into the white instead of hitting an edge */\n  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) calc(var(--ui-lmc-fade) * 0.4), #000 var(--ui-lmc-fade), #000 calc(100% - var(--ui-lmc-fade)), rgba(0, 0, 0, 0.35) calc(100% - var(--ui-lmc-fade) * 0.4), transparent 100%);\n  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) calc(var(--ui-lmc-fade) * 0.4), #000 var(--ui-lmc-fade), #000 calc(100% - var(--ui-lmc-fade)), rgba(0, 0, 0, 0.35) calc(100% - var(--ui-lmc-fade) * 0.4), transparent 100%);\n  /* Room for focus rings so they aren't clipped */\n  padding-block: 8px;\n}\n.ui-lmc__row[data-dragging] { cursor: grabbing; }\n.ui-lmc__track {\n  display: flex;\n  width: max-content;\n  will-change: transform;\n}\n.ui-lmc__set,\n.ui-lmc__wrap {\n  display: flex;\n  align-items: center;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.ui-lmc__set { flex: none; }\n/* Every logo carries its gap on the right, so one set's width is exactly the wrap distance */\n.ui-lmc__item { flex: none; margin-inline-end: var(--ui-lmc-g); }\n\n.ui-lmc__link {\n  display: flex;\n  align-items: center;\n  gap: calc(var(--ui-lmc-h) * 0.36);\n  border-radius: 6px;\n  color: var(--ui-lmc-muted);\n  text-decoration: none;\n  transition: color 240ms var(--ui-lmc-ease), opacity 240ms var(--ui-lmc-ease);\n  -webkit-user-drag: none;\n}\n.ui-lmc[data-labels=\"below\"] .ui-lmc__link { flex-direction: column; gap: 8px; }\n.ui-lmc:focus-visible { outline: 2px solid var(--ui-lmc-focus); outline-offset: -2px; }\n.ui-lmc__link:focus-visible { outline: 2px solid var(--ui-lmc-focus); outline-offset: 2px; }\n\n/* Consistent optical height: every mark fills the same box, nudged by its own scale */\n.ui-lmc__mark {\n  display: grid;\n  place-items: center;\n  height: var(--ui-lmc-h);\n  transition: color 240ms var(--ui-lmc-ease);\n}\n.ui-lmc__mark > svg,\n.ui-lmc__mark > img {\n  display: block;\n  height: calc(var(--ui-lmc-h) * var(--ui-lmc-scale, 1));\n  width: auto;\n  max-width: calc(var(--ui-lmc-h) * 5);\n  pointer-events: none;\n}\n.ui-lmc__name {\n  /* A long company name ends in an ellipsis; the full name is in the title */\n  max-width: calc(var(--ui-lmc-h) * 9);\n  overflow: hidden;\n  font-size: calc(var(--ui-lmc-h) * 0.66);\n  font-weight: 500;\n  letter-spacing: -0.01em;\n  line-height: 1.2;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n/* A logo without artwork: a small white tile with a hairline shadow and its first letter */\n.ui-lmc__tile {\n  display: grid;\n  place-items: center;\n  width: var(--ui-lmc-h);\n  height: var(--ui-lmc-h);\n  border-radius: 6px;\n  background: var(--ui-lmc-tile);\n  box-shadow: var(--ui-lmc-shadow);\n  color: var(--ui-lmc-tile-ink);\n  font-size: calc(var(--ui-lmc-h) * 0.5);\n  font-weight: 500;\n  line-height: 1;\n}\n.ui-lmc[data-labels=\"below\"] .ui-lmc__name {\n  font-size: 12px;\n  font-weight: 400;\n  line-height: 16px;\n  letter-spacing: 0;\n  color: var(--ui-lmc-label);\n}\n.ui-lmc__sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0 0 0 0);\n  white-space: nowrap;\n}\n\n/* Grayscale: quiet gray marks, images without colour – the hovered logo lifts to its brand colour */\n.ui-lmc[data-grayscale] .ui-lmc__mark > img { filter: grayscale(1); opacity: 0.5; transition: filter 240ms var(--ui-lmc-ease), opacity 240ms var(--ui-lmc-ease); }\n.ui-lmc:not([data-grayscale]) .ui-lmc__mark { color: var(--ui-lmc-brand, var(--ui-lmc-ink)); }\n.ui-lmc:not([data-grayscale]) .ui-lmc__link { color: var(--ui-lmc-ink); }\n@media (hover: hover) {\n  .ui-lmc__link:hover,\n  .ui-lmc__link:focus-visible { color: var(--ui-lmc-ink); }\n  .ui-lmc[data-grayscale] .ui-lmc__link:hover .ui-lmc__mark,\n  .ui-lmc[data-grayscale] .ui-lmc__link:focus-visible .ui-lmc__mark { color: var(--ui-lmc-brand, var(--ui-lmc-ink)); }\n  .ui-lmc[data-grayscale] .ui-lmc__link:hover img { filter: none; opacity: 1; }\n  /* Full colour: the others step back while one is hovered */\n  .ui-lmc:not([data-grayscale]) .ui-lmc__set:has(.ui-lmc__link:hover) .ui-lmc__link:not(:hover) { opacity: var(--ui-lmc-dim); }\n  /* No colour flicker under the pointer while scrubbing */\n  .ui-lmc[data-grayscale] .ui-lmc__row[data-dragging] .ui-lmc__link { color: var(--ui-lmc-muted); }\n  .ui-lmc[data-grayscale] .ui-lmc__row[data-dragging] .ui-lmc__mark { color: inherit; }\n}\n\n/* Reduced motion: a static, centred, wrapping row */\n.ui-lmc__wrap {\n  flex-wrap: wrap;\n  justify-content: center;\n  row-gap: calc(var(--ui-lmc-g) * 0.5);\n  padding: 8px 16px;\n}\n.ui-lmc__wrap .ui-lmc__item { margin-inline: calc(var(--ui-lmc-g) * 0.5); }\n\n@media (pointer: coarse) {\n  /* Bigger touch targets for linked logos */\n  a.ui-lmc__link { min-height: 44px; padding-inline: 4px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .ui-lmc__link, .ui-lmc__mark, .ui-lmc__mark > img { transition: none; }\n}\n\n/* Dark mode: follows a .dark class or data-theme=\"dark\" on any ancestor, e.g. <html> */\n:where(.dark, [data-theme=\"dark\"]) .ui-lmc {\n  --ui-lmc-focus: var(--aui-focus, rgba(77, 141, 255, 0.8));\n  --ui-lmc-muted: rgba(255, 255, 255, 0.4);\n  --ui-lmc-ink: rgba(255, 255, 255, 0.88);\n  --ui-lmc-label: var(--aui-muted, rgba(255, 255, 255, 0.45));\n  --ui-lmc-accent: var(--aui-info, #4fb0fe);\n  --ui-lmc-tile: #1c1c1e;\n  --ui-lmc-tile-ink: rgba(255, 255, 255, 0.61);\n  --ui-lmc-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.4);\n}\n`;\n"}]}