/* ==========================================================================
   Component · Feature index
   A long, scannable list. Two columns of rows on wide screens so the page is
   a page rather than a scroll, one column where that would crush the text.
   ========================================================================== */

.feature-group + .feature-group {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.feature-group__title {
  font-size: var(--text-card-title);
  line-height: var(--leading-heading);
}

.feature-group__lede {
  margin-top: 0.4rem;
  max-width: 62ch;
  color: var(--color-text-tertiary);
}

.feature-group[hidden] {
  display: none;
}

.feature-list {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 0.5rem 2.5rem;
}

.feature-row {
  padding-block: 1.1rem;
  border-top: 1px solid var(--color-hairline);
  scroll-margin-top: 7rem;
}

.feature-row[hidden] {
  display: none;
}

.feature-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.65rem;
}

.feature-row__name {
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.3;
}

/* Reserved for the handful of things most players cannot do — it stops being
   a signal the moment it is on everything. */
.feature-row__flag {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: var(--color-accent-bright);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

:root[data-theme="light"] .feature-row__flag {
  color: var(--color-accent);
}

.feature-row__platforms {
  font-size: 0.6875rem;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.feature-row__summary {
  margin-top: 0.4rem;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.feature-row__detail {
  margin-top: 0.5rem;
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  line-height: 1.55;
}

/* A row arrived at by its own link gets marked, so a shared deep link lands
   somewhere recognisable in a list of sixty-five. */
.feature-row:target {
  border-inline-start: 2px solid var(--color-accent);
  padding-inline-start: 1rem;
  margin-inline-start: -1rem;
}
