/* Tournaments: the tournament page and its lists. Colours come from the design
   tokens only; layout uses logical properties so it flips in Arabic. */

.tour-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tour-title h1 { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.tour-description { margin-block: 0.4rem; overflow-wrap: anywhere; white-space: pre-line; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tour-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; margin-block-start: 1rem; }
@media (min-width: 52rem) { .tour-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.tour-layout h2, #podium h2 { margin-block: 0 0.6rem; font-size: 1.15rem; }
.board-rank { inline-size: 1.6rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-clock { margin-block: 0.4rem; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#tournament[data-state="finished"] .tour-clock,
#tournament[data-state="cancelled"] .tour-clock { color: var(--muted, inherit); font-size: 1.1rem; }

.standings-list, .podium-list { list-style: none; margin: 0; padding: 0; display: grid; }
.standing-row, .podium-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.4rem;
  border-block-end: 1px solid var(--border);
}
.standing-row:last-child, .podium-row:last-child { border-block-end: 0; }
.standing-row.mine { background: var(--accent-soft); border-radius: var(--radius); padding-inline: 0.4rem; }
.tour-who { flex: 1; min-inline-size: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-weight: 600; overflow-wrap: anywhere; }
.tour-who a { color: inherit; text-decoration: none; }
.tour-who a:hover { text-decoration: underline; }
.tour-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tour-score { min-inline-size: 2rem; text-align: end; font-variant-numeric: tabular-nums; }
.tour-score.fire, .tag.fire { color: var(--accent-ink); }
.tag.live { text-decoration: none; }

.podium-row { font-size: 1.15rem; padding-block: 0.6rem; }
.podium-row.place-1 .board-rank { color: var(--accent-ink); }

/* A place in a finished tournament (the profile's list). */
.tour-place {
  display: grid;
  place-items: center;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}
#profile-tournaments .record { margin-block-end: 0.6rem; }
