/* LEGACY SPORTS — 2027 TEAMS GRID (basketball)
   Clean logo wall: crest (logo or colour + initials) with the name and group under it.
   Hero and empty-state styles come from teams.css; crest styles from event_hub.css. */

.tgrid-title {
  margin: 0 0 28px;
  font-family: "Sofia Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #151a1f;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 36px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tgrid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.tgrid-item .crest {
  margin-bottom: 8px;
  transition: transform .18s ease;
}

.tgrid-item:hover .crest {
  transform: translateY(-3px);
}

.tgrid-name {
  color: #151a1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.tgrid-meta {
  color: #8a8782;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 520px) {
  .tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }
}

/* Light tiles need an outline on the light page. */
.tgrid .crest--white,
.tgrid .crest--logo {
  box-shadow: inset 0 0 0 1px #d6d2cc;
}
