/* <nv-hf-tile> — HaulFinder: the 8-second silent loop of the HaulFinder film, the parts it shows as a quiet timeline in
   HaulFinder's own order, and “Watch the film”. Markup and behaviour: hf-tile.js (header).
   Colours are token names only (nv.css, both themes). Size: the frame is 16 : 9 of the element's width from the first paint
   (the poster <img> carries width/height too); the strip under it has a fixed height per width step (container query on the
   element itself): < 520 px two rows of chips + the link under them, 520–719 px two rows + the link beside, ≥ 720 px one row.
   Nothing here moves but opacity and transform. */
nv-hf-tile { display: block; min-width: 0; container-type: inline-size; color: var(--nv-ink); font-family: var(--nv-font, system-ui, sans-serif); line-height: 1.3; }

nv-hf-tile .nvh-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--nv-r-sm, 14px); overflow: hidden; isolation: isolate; background: var(--nv-box); box-shadow: 0 28px 70px -34px color-mix(in srgb, var(--nv-hf) 60%, transparent); }
nv-hf-tile .nvh-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--nv-line-2); pointer-events: none; }
nv-hf-tile .nvh-frame > img, nv-hf-tile .nvh-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
/* the loop fades in over the poster once it really plays; until then (and if it never does) the poster is the picture */
nv-hf-tile .nvh-frame > video { z-index: 1; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); opacity: 0; transition: opacity 0.6s var(--nv-ease, ease); }
nv-hf-tile.is-live .nvh-frame > video { opacity: 1; }

/* the strip: the film's parts as a quiet timeline (words and dots, nothing that looks like a button), then the link */
nv-hf-tile .nvh-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
nv-hf-tile .nvh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; min-width: 0; }
nv-hf-tile .nvh-chips li { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--nv-dim); white-space: nowrap; transition: color var(--nv-dur, 0.3s) var(--nv-ease, ease); }
nv-hf-tile .nvh-chips li + li { margin-left: 10px; }
nv-hf-tile .nvh-chips li + li::before { content: ""; width: 14px; height: 1px; margin-right: 3px; background: var(--nv-line-2); }
nv-hf-tile .nvh-chips li > span { position: relative; display: inline-flex; align-items: center; gap: 7px; }
nv-hf-tile .nvh-chips li > span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--nv-line-2); transition: background-color var(--nv-dur, 0.3s) var(--nv-ease, ease), box-shadow var(--nv-dur, 0.3s) var(--nv-ease, ease); }
/* the part on screen: the word in ink, its dot in the HaulFinder blue, a fine line under the word that fills as the part plays */
nv-hf-tile .nvh-chips li > span::after { content: ""; position: absolute; left: 14px; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: var(--nv-hf); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity var(--nv-dur, 0.3s) var(--nv-ease, ease); }
nv-hf-tile .nvh-chips li.is-on { color: var(--nv-ink); }
nv-hf-tile .nvh-chips li.is-on > span::before { background: var(--nv-hf); box-shadow: 0 0 10px var(--nv-hf); }
nv-hf-tile .nvh-chips li.is-on > span::after { opacity: 1; }

nv-hf-tile .nvh-film { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px 0 8px; border-radius: 99px; color: var(--nv-ink); text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; background: var(--nv-tile); box-shadow: inset 0 0 0 1.5px var(--nv-line-2); transition: transform var(--nv-dur, 0.3s) var(--nv-ease, ease); }
nv-hf-tile .nvh-film:hover { transform: translateY(-1px); }
nv-hf-tile .nvh-film:focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 3px; }
nv-hf-tile .nvh-film small { color: var(--nv-muted); font-size: 13px; font-weight: 550; }
nv-hf-tile .nvh-play { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nv-grad); }
nv-hf-tile .nvh-play::after { content: ""; margin-left: 3px; border-left: 9px solid var(--nv-on-grad); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* a narrow tile: no connectors (a wrapped line never starts with one), the parts a little closer */
@container (max-width: 460px) {
  nv-hf-tile .nvh-chips { gap: 6px 12px; }
  nv-hf-tile .nvh-chips li { font-size: 12.5px; gap: 6px; }
  nv-hf-tile .nvh-chips li + li { margin-left: 0; }
  nv-hf-tile .nvh-chips li + li::before { display: none; }
  nv-hf-tile .nvh-chips li > span { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  nv-hf-tile .nvh-frame > video { display: none; }
  nv-hf-tile .nvh-chips li, nv-hf-tile .nvh-chips li > span::before, nv-hf-tile .nvh-chips li > span::after, nv-hf-tile .nvh-film { transition: none; }
  nv-hf-tile .nvh-film:hover { transform: none; }
}
