/* Licensed to account 52c7da1aea3f, 2026-10-19. Moving parts. */
/* Hover list, the mechanics.
   Moving parts. The script adds the floating picture itself, nothing to write here.
   Readable source: components/hover-list/hover-list.css */

/* File layout: required mechanics, then the optional look.
   The rules before the line "look, left out of the Webflow Embed" are what
   the script needs to work at all: the list as positioning context, the
   source pictures out of the layout, the floating box out of the flow. What
   only reads as a look sits in :where(), which carries no specificity, so a
   single class from the page wins over it without !important. */

/* List: positioning context for the floating picture.
   The script sets it too, in case this file is not loaded. */
[data-hover-list] {
  position: relative;
}

/* Source pictures, hidden: one per row, read by the script and never shown.
   Markup rather than decoration, so a Webflow user swaps them in the
   Navigator. The script forces loading="eager" on them, because an image
   hidden this way is never fetched otherwise. */
[data-hover-list] [data-hover-list-image],
[data-hover-list] [data-hover-list-item] > img {
  display: none;
}

/* Floating box: out of the flow, never taking the pointer.
   Sized and placed by the script, over the rows. The lean and the stretch
   are transforms the script writes; nothing here animates. */
.hover-list-float {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.hover-list-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Flash colour of a turning square: the accent, on the beige and ink look.
   Read by the script, which falls back to the page's own --accent when this
   is taken out. */
:where([data-hover-list]) {
  --hover-list-accent: #ff4a00;
}

/* Rows: the transform of a title comes from the script, so the row keeps
   its layout and only the title moves. */
:where([data-hover-list-title]) {
  display: inline-block;
}

/* Keyboard: the ring on the row that has the focus, never on a click. */
:where([data-hover-list-item]:focus-visible) {
  outline: 1px solid #15100c;
  outline-offset: -1px;
}

:where([data-hover-list-item]:focus:not(:focus-visible)) {
  outline: none;
}

/* Live row: its number in the ink.
   A state the script writes, so it travels with the mechanics and the
   Webflow Embed rather than with the look: a Webflow class carries no state.
   The attribute outweighs the plain class of the number, and :where() keeps
   the row mark weightless, so a rule of the page on the number still wins.
   The number is found by its attribute, never by its class: Webflow renames
   a class pasted twice on one site (AB-116). */
:where([data-hover-list-item])[data-hover-list-state="live"] [data-hover-list-index] {
  color: #15100c;
}

/* ---------- look, left out of the Webflow Embed ---------- */

/* Clinix Studio: the look of the preview (the hover-list-* classes, set in
   Instrument Sans and Geist Mono on #ddcfba) is left out of this copy on
   purpose. The rows are styled on the site's own design tokens in
   src/components/Services.astro. The mechanics above are the file as
   shipped. */
