/* Public league teams directory (templates/teams/league_teams.html) -
   page-specific classes layered on static/css/base.css's shared .hl-*
   components (.hl-card-grid/.hl-card-link/.hl-avatar-placeholder/
   .hl-filter-tabs), same pattern as players.css/team_detail.css. Reuses
   players.css's .lp-count-chip for the header count chip rather than
   redefining it - both stylesheets always load together (see
   base/league_public_base.html's extra_head block). */

.lt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.lt-head-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lt-subtitle {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Team card - a plainer, grid-friendly cousin of team_detail.css's
   .td-masthead identity treatment (avatar tinted off the team's own
   primary_color, falling back to the site's --primary orange). ────── */
.lt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--space-5) var(--space-4);
}

.lt-card-avatar-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lt-accent, var(--primary)) 40%, transparent);
}

.lt-card-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  font-size: 20px;
}

.lt-card-name {
  margin: 0;
  font-size: 15px;
}

.lt-card-record {
  margin: var(--space-1) 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lt-card-record-label {
  margin-left: 4px;
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
