/**
 * Hello Home — "Get Ready to Rock!" artist grid.
 *
 * Centred intro, a row of genre pills, then circular portraits. Six across on
 * desktop, down to two on mobile per the agreed stacking table.
 */

.hello-artists {
  text-align: center;
}

.hello-artists__head {
  max-width: 760px;
  margin: 0 auto 28px;
}

.hello-artists__body {
  margin-bottom: 10px;
}

.hello-artists__standfirst {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

/* ---- genre pills -------------------------------------------------------- */

.hello-artists__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}

.hello-artists__pill {
  -webkit-appearance: none;
  appearance: none;
  padding: 9px 22px;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hello-artists__pill:hover {
  border-color: var(--hello-accent);
}
.hello-artists__pill:focus-visible {
  outline: 2px solid var(--hello-accent);
  outline-offset: 2px;
}
.hello-artists__pill.is-active {
  background: var(--hello-accent);
  border-color: var(--hello-accent);
  color: #fff;
}

/* See-all reads as a link rather than a pill, as in the comp. */
.hello-artists__pill--all {
  border-color: transparent;
  color: var(--hello-accent);
  font-weight: 700;
}
.hello-artists__pill--all:hover {
  border-color: transparent;
  text-decoration: underline;
}
.hello-artists__pill--all.is-active {
  background: transparent;
  border-color: transparent;
  color: var(--hello-accent);
  text-decoration: underline;
}

/* ---- grid --------------------------------------------------------------- */

/**
 * Four across at most, then three, then two.
 *
 * Every step divides 12, so a full set lays out as a complete rectangle at
 * every width -- 4x3, 3x4, 2x6 -- with no short final row. That is why the
 * per-genre cap is 12 and not 15: 15 leaves a row of three hanging under a
 * four-column grid, and one under a two-column one.
 *
 * Five across (the comp's count) is dropped for the same reason: 12 over
 * five columns is 2.4 rows.
 */
.hello-artists__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hello-artists__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hello-artists__card.is-hidden {
  display: none;
}

/* Ratio on the wrapper, not the image: a portrait that 404s would otherwise
   have no intrinsic size and blow the circle out. */
.hello-artists__portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #e4e4e4;
}
@supports not (aspect-ratio: 1 / 1) {
  .hello-artists__portrait { height: 0; padding-bottom: 100%; }
}

.hello-artists__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hello-artists__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.hello-artists__band {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.3;
  color: #666;
}

.hello-artists__empty {
  margin: 0;
  color: #666;
}

/* ---- the full roster, as text ------------------------------------------- */

/**
 * "See all" is a list of names, not a wider grid.
 *
 * It is a different roster from the genre tabs and a much longer one, and
 * most of the difference is people with no instructor record and no
 * photograph. As portraits they were empty circles under a name; as text
 * they are simply the list they were always meant to be.
 *
 * Three columns rather than rows so a hundred-odd names stay scannable, and
 * they flow alphabetically down each column. Centred, which needs a wider
 * column gap than a ragged-left list would: without it the three columns
 * read as one block of text rather than three lists.
 */
.hello-artists__names {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 40px;
}
.hello-artists__names.is-hidden,
.hello-artists__grid.is-hidden {
  display: none;
}

.hello-artists__name-item {
  break-inside: avoid;
  padding: 8px 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
}

.hello-widget--on-dark .hello-artists__name-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---- on a dark band ----------------------------------------------------- */

.hello-widget--on-dark .hello-artists__pill {
  border-color: rgba(255, 255, 255, 0.3);
}
.hello-widget--on-dark .hello-artists__band {
  color: rgba(255, 255, 255, 0.7);
}
.hello-widget--on-dark .hello-artists__portrait {
  background: #2a2a2a;
}

/* ---- narrower ----------------------------------------------------------- */

@media (max-width: 1099px) {
  .hello-artists__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hello-artists__names {
    columns: 2;
  }
}

@media (max-width: 767px) {
  .hello-artists__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  /**
   * Pills wrap rather than scrolling sideways. A horizontal scroller hides
   * however many genres are off-screen, with nothing to say they are there;
   * wrapped, all ten are visible at once. Padding and type tighten a step so
   * the block stays two or three rows rather than five.
   */
  .hello-artists__filters {
    gap: 8px;
  }
  .hello-artists__pill {
    padding: 7px 16px;
    font-size: 14px;
  }
  .hello-artists__names {
    columns: 1;
  }
}
