/* ═══════════════════════════════════════════════════════════
   Nova Artists List — front + editor styles
   ═══════════════════════════════════════════════════════════ */

.nvf-artists-list {
  --_gap: clamp(32px, 5vw, 64px);
  --_name-sz: var(--nvf-al-fs, clamp(17px, 2vw, 28px));
  --_name-ff: var(--nvf-al-ff, var(--nvf-font-headings, inherit));
  --_name-fw: var(--nvf-al-fw, 400);
  --_ink:     var(--nvf-al-ink, var(--nvf-color-text, #111827));
  --_hover:   var(--nvf-al-hover, var(--_ink));
  --_muted:   var(--nvf-color-slate, #9ca3af);
  --_border:  var(--nvf-al-border, rgba(0, 0, 0, .07));
  --_radius:  var(--nvf-al-radius, 12px);
  --_ratio:   var(--nvf-al-ratio, 3/4);
  max-width: var(--nvf-layout-wide-width, var(--nvf-layout-max-width, 1440px));
  margin: 0 auto;
  padding: clamp(12px, 2.2vw, 28px) max(var(--nvf-layout-padding-x, 40px), 4vw)
    clamp(48px, 7vw, 100px);
}
/* Section / prose container already provide horizontal padding */
.nvf-section__inner .nvf-artists-list {
  padding-left: 0;
  padding-right: 0;
}
:is(.entry-content, .nvf-prose) > .nvf-artists-list {
  padding-inline: 0;
}

/* ── Heading ── */
.nvf-artists-list__heading {
  font-family: var(--nvf-font-headings, inherit);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--_muted);
  margin: 0 0 clamp(32px, 4vw, 56px);
  padding: 0;
}

/* ── Split layout ── */
.nvf-artists-list__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--_gap);
  align-items: start;
}

/* ── Names grid ── */
.nvf-artists-list__names {
  display: grid;
  grid-template-columns: repeat(var(--nvf-al-cols, 2), 1fr);
  gap: 0 clamp(20px, 2.5vw, 40px);
}

.nvf-artists-list__col {
  display: flex;
  flex-direction: column;
}

/* ── Each name link ── */
.nvf-artists-list__link {
  display: block;
  padding: .6em 0;
  font-family: var(--_name-ff);
  font-size: var(--_name-sz);
  font-weight: var(--_name-fw);
  line-height: 1.25;
  color: var(--_ink);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: opacity .3s ease, color .3s ease;
  border-bottom: 1px solid var(--_border);
}

.nvf-artists-list__link:last-child {
  border-bottom: none;
}

/* Dim siblings on hover */
.nvf-artists-list__names:hover .nvf-artists-list__link {
  opacity: .25;
}

.nvf-artists-list__names:hover .nvf-artists-list__link:hover {
  opacity: 1;
  color: var(--_hover);
}

.nvf-artists-list__link:focus-visible {
  opacity: 1;
  outline: 2px solid var(--_ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Sticky preview panel ── */
.nvf-artists-list__preview {
  position: sticky;
  top: calc(var(--nvf-header-height, 80px) + var(--nvf-adminbar-h, 0px) + 24px);
  overflow: hidden;
  border-radius: var(--_radius);
  aspect-ratio: var(--_ratio);
  background: var(--nvf-color-soft, #f3f4f6);
}

.nvf-artists-list__preview img,
.nvf-artists-list__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.nvf-artists-list__preview img.is-active,
.nvf-artists-list__img.is-active {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nvf-artists-list__inner {
    grid-template-columns: 1fr;
  }
  .nvf-artists-list__preview {
    position: relative;
    top: auto;
    order: -1;
    aspect-ratio: 16/10;
    max-height: 400px;
  }
}

@media (max-width: 540px) {
  .nvf-artists-list__names {
    grid-template-columns: 1fr !important;
  }
  .nvf-artists-list__preview {
    aspect-ratio: 4/3;
    max-height: 260px;
  }
  .nvf-artists-list__link {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nvf-artists-list__link,
  .nvf-artists-list__preview img,
  .nvf-artists-list__img {
    transition: none !important;
  }
}
