/* Favourite teams, one full-width block per team, stacked: last 5 games, next 7 days, table, projection. */

.teams article {
  padding-block: var(--space-s);
  border-bottom: var(--border-width) solid var(--color-border);
}

.teams h3 {
  margin-block: 0 var(--space-xs);
}

.teams dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-xs) var(--space-m);
  margin: 0;
}

.teams dl div {
  display: contents;
}

.teams dt {
  color: var(--color-text-muted);
}

.teams dd {
  margin: 0;
}

/* The "Last 5 games" and "Next 7 days" groups stand out by one cue: a tinted background. */
.teams .team-group {
  margin-block: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.teams .team-group h4 {
  margin: 0 0 var(--space-xs);
  color: var(--color-accent);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
}

.teams ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.teams .stat-line {
  color: var(--color-text-muted);
}

/* A fatigue tag on an upcoming game, e.g. "· 2nd of back-to-back". */
.teams .tag {
  color: var(--color-live);
  font-size: var(--font-size-small);
}

/* Results, scorers and goalies: compact tables, numbers right-aligned so they scan like a box score. */
.teams table {
  width: auto;
  margin-block: 0 var(--space-s);
}

.teams caption {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.teams td,
.teams tbody th {
  padding: 0 var(--space-m) 0 0;
  text-align: start;
  font-weight: var(--font-weight-normal);
}

.teams thead th {
  padding: 0 var(--space-m) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
  text-align: end;
}

.teams .stat-table td,
.teams .results .score {
  text-align: end;
}

.teams .results .marker {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* The table position after the team name: content, so regular weight and muted. */
.teams h3 .standing {
  margin-inline-start: var(--space-s);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-normal);
}
