/* The sets and groups lists: cards that carry a second and third colour as small, clearly-jobbed highlights, the same in
   light and dark. Colours reach the page only through tokens (--accent, --mark-*, --tint, --surface, --ink, --muted).
   - the scheduled date gets a small mustard dot (text stays muted: mustard is never text on a light surface);
   - the owner of a set is a quiet tag: a neutral tint for Personal, a coral tint for a group's name;
   - a group's role is a teal-tinted tag;
   - pointed at or focused, a card takes a faint teal tint and its title the accent colour.
   Ink text sits on every tint (contrast 10:1 or better in both appearances). Loaded after ui_sweep.css. */
.setlist-card,
.group-card {
  transition: background-color 120ms ease, border-color 120ms ease;
}

.setlist-card:hover,
.group-card:hover,
.setlist-card:focus-visible,
.group-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--surface));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: none;
}

.setlist-card:hover .setlist-card__identity strong,
.group-card:hover .group-card__identity strong,
.setlist-card:focus-visible .setlist-card__identity strong,
.group-card:focus-visible .group-card__identity strong {
  color: var(--accent);
}

/* Group and people tags (who owns a set, a role in a group): a mustard outline with a pastel mustard fill, the same tag
   everywhere. Collection tags are the neutral outline. */
.setlist-card__owner,
.group-card__role {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--tag-line);
  border-radius: var(--radius-pill);
  color: var(--tag-ink);
  background: var(--tag-fill);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

/* A scheduled date: a hollow neutral dot (the "Up next" marker), not a colour. */
.setlist-card__date--scheduled::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  vertical-align: 0.05em;
}

/* Compact cards: the identity at the left, owner and date (or role and count) at the right, the set's tags as a quiet
   last row. The older rule gave every card 9rem; the content needs about 6.5. */
.setlist-card,
.group-card {
  min-height: 6.5rem;
  flex-wrap: wrap;
  align-content: flex-start;
}

.setlist-card__identity,
.group-card__identity {
  flex: 1 1 12rem;
  min-width: 0;
}

.setlist-card__tags {
  flex: 1 0 100%;
}

/* On a phone the cards stack in a column (phone_first_fixes.css). The flex-basis values above are for the row layout; in a
   column they become heights (12rem for the identity, 100% for the tags), which made every card about 290px tall. Here
   the children take their content height and the card does not wrap. */
@media (max-width: 40rem) {
  .setlist-card,
  .group-card {
    flex-wrap: nowrap;
    min-height: 0;
  }

  .setlist-card__identity,
  .group-card__identity,
  .setlist-card__tags {
    flex: 0 0 auto;
  }

  /* The owner or role tag starts at the left, under the title, like the date (the row layout right-aligns it). */
  .setlist-card__meta,
  .group-card__meta {
    justify-items: start;
    text-align: left;
  }
}

/* The sets list's tag chips stay in reach under the sticky bar while the cards scroll (the page title scrolls away). */
@media screen {
  .setlists-page .setlist-tags {
    position: sticky;
    z-index: 1;
    top: var(--member-sticky-offset, 0px);
    margin: 0;
    padding: 0.5rem 0;
    background: var(--bg);
  }
}
