/* Theme. To restyle, set any --fx-* variable on :root (every feature on the site)
   or on .fx-hp (this feature only). The values here are the defaults. */
.fx-hp {
  --_accent: var(--fx-accent, #d4af37);
  --_text: var(--fx-text, #f5f5f5);
  --_muted: var(--fx-muted, #b8b8b8);
  --_panel: var(--fx-panel, #181818);
  --_line: var(--fx-line, rgba(255,255,255,.15));
  --_demo: var(--fx-demo, #9ad1ff);
  --_font-display: var(--fx-font-display, inherit);
  --_font-body: var(--fx-font-body, inherit);
  --_space: var(--fx-space, 16px);
  --_radius: var(--fx-radius, 6px);
  color: var(--_text);
  font-family: var(--_font-body);
}
.fx-hp-title {
  margin: 0 0 .4em;
  font-family: var(--_font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: var(--fx-heading-weight, 800);
  line-height: 1;
  text-transform: var(--fx-heading-case, uppercase);
}
.fx-hp-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--_line); }
.fx-hp-row {
  display: flex;
  align-items: center;
  gap: var(--_space);
  min-height: 72px;
  padding: calc(var(--_space) * .75) 0;
  color: inherit;
  border-top: 1px solid var(--_line);
  text-decoration: none;
  transition: color .2s ease, padding-left .3s ease;
}
.fx-hp-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--_font-display);
  font-size: clamp(1.5rem, 5.5vw, 2.8rem);
  font-weight: var(--fx-heading-weight, 800);
  line-height: 1;
  text-transform: var(--fx-heading-case, uppercase);
  overflow-wrap: anywhere;
}
.fx-hp-note { flex: none; color: var(--_muted); font-size: .95rem; white-space: nowrap; }
a.fx-hp-row::after { content: "\2192"; flex: none; color: var(--_accent); font-size: 1.3rem; }
.fx-hp-row:focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; }

/* Touch screens: a small photo sits in each row, because there is no pointer to follow */
.fx-hp-thumb {
  flex: none;
  width: 76px;
  height: 57px;
  object-fit: cover;
  background: var(--_panel);
  border-radius: calc(var(--_radius) * .8);
}

/* The floating photo, for mouse users. Pinned to the screen and never in the way of a click. */
.fx-hp-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  overflow: hidden;
  background: var(--_panel);
  border-radius: var(--_radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  will-change: transform;
}
.fx-hp-float.is-on { opacity: 1; }
.fx-hp-float img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (pointer: fine) {
  /* With a mouse the row photo is hidden from view but still read out by screen readers */
  .fx-hp-thumb { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .fx-hp-row { position: relative; }
  .fx-hp-row:hover, .fx-hp-row:focus-visible { color: var(--_accent); padding-left: calc(var(--_space) * .75); }
}
@media (hover: none), (pointer: coarse) {
  .fx-hp-float { display: none; }
  .fx-hp-row:active { color: var(--_accent); }
}

.fx-hp .fx-demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px dashed var(--_demo);
  border-radius: calc(var(--_radius) * .6);
  color: var(--_demo);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .fx-hp-row, .fx-hp-float { transition: none !important; }
}
