/* The public pages of the teams: the ranking and the page of one team. It builds on card-tournament.css (ct-*). */

.tm-since { margin-top: 0.5rem !important; color: var(--ct-muted) !important; font-size: 0.92rem !important; }

.tm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tm-list li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; gap: 0.9rem; align-items: center; padding: 0.75rem 1rem; border-radius: 14px; background: #120d1b; border: 1px solid rgba(255, 255, 255, 0.07); }
.tm-list__n { font-weight: 800; color: var(--ct-muted); text-align: center; font-variant-numeric: tabular-nums; }
.tm-list li:nth-child(1) .tm-list__n { color: #fbbf24; }
.tm-list li:nth-child(2) .tm-list__n { color: #cbd5e1; }
.tm-list li:nth-child(3) .tm-list__n { color: #d6925a; }
.tm-list__main { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.tm-list__main b { overflow-wrap: anywhere; }
.tm-list__main small { color: var(--ct-muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.tm-list__main:hover b { text-decoration: underline; }
.tm-list__num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tm-list__num b { font-size: 1.25rem; font-weight: 800; color: var(--ct-gold); font-variant-numeric: tabular-nums; }
.tm-list__num small { color: var(--ct-muted); font-size: 0.7rem; font-weight: 700; }

.tm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.9rem; }
.tm-stat { gap: 0.2rem; padding: 1.1rem 1.2rem; }
.tm-stat small { color: var(--ct-muted); font-weight: 700; font-size: 0.78rem; }
.tm-stat b { font-size: 2.2rem; line-height: 1.1; font-weight: 800; color: var(--ct-gold); font-variant-numeric: tabular-nums; }
.tm-stat span { color: var(--ct-muted); font-size: 0.8rem; }
.tm-about { gap: 1rem; }

@media (max-width: 640px) {
    .tm-list li { grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: 0.6rem; }
    .tm-list__num--hide { display: none; }
}
