/*
 * Team badges (components/team-badge.html.twig, docs/adr/0039): initials
 * on the team's colour, in a shield. Each colour sets its own text colour
 * so the initials stay readable.
 */
.team-badge {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  border: 0.125rem solid var(--black);
  border-radius: 0.375rem 0.375rem 50% 50% / 0.375rem 0.375rem 40% 40%;
  background-color: var(--team-colour, var(--tertiary));
  color: var(--team-ink, var(--black));
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.team-badge--small {
  width: 2.25rem;
  height: 2.5rem;
  font-size: 0.8rem;
}

.team-badge--large {
  width: 3.25rem;
  height: 3.6rem;
  border-width: 0.1875rem;
  box-shadow: var(--box-shadow);
  font-size: 1.15rem;
}

/* A swatch, e.g. beside each colour on the Admin tab. */
.team-badge--swatch {
  width: 1.25rem;
  height: 1.4rem;
}

.team-colour--red { --team-colour: oklch(55% 0.21 27); --team-ink: var(--white); }
.team-colour--claret { --team-colour: oklch(38% 0.13 15); --team-ink: var(--white); }
.team-colour--orange { --team-colour: oklch(72% 0.17 52); --team-ink: var(--black); }
.team-colour--yellow { --team-colour: var(--yellow); --team-ink: var(--black); }
.team-colour--green { --team-colour: oklch(52% 0.14 148); --team-ink: var(--white); }
.team-colour--sky { --team-colour: oklch(80% 0.09 230); --team-ink: var(--black); }
.team-colour--blue { --team-colour: oklch(48% 0.19 262); --team-ink: var(--white); }
.team-colour--navy { --team-colour: oklch(29% 0.08 262); --team-ink: var(--white); }
.team-colour--purple { --team-colour: oklch(44% 0.17 300); --team-ink: var(--white); }
.team-colour--black { --team-colour: oklch(20% 0 0); --team-ink: var(--white); }
.team-colour--white { --team-colour: var(--white); --team-ink: var(--black); }

/* The colour choices on the Admin tab. */
.colour-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.5rem 1rem;
}
