/*
 * `/resume` -- the résumé Top 25. RANK-1.
 *
 * Five columns of tiles, the Instagram post's grid (web/templates/posts/
 * resume.html) in the site's tokens: a team-colour rule across the top, a
 * paper disc behind the logo because dark logos vanish on navy, the score
 * largest because it is what the order is by.
 *
 * Colours come from theme.css. This sheet writes no hex value.
 */

/* The rankings page's ground: the tiles' navy scrim only reads on it. */
body {
    font-family: var(--font-sans);
    background: var(--page-gradient);
    color: var(--text);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.lede {
    max-width: 70ch;
    margin: 0 auto 26px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 34px;
}

/* Five across stops fitting a name around tablet width. */
@media (max-width: 900px) {
    .resume-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .resume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 14px;
    border-radius: var(--radius-lg);
    background: rgba(10, 36, 99, 0.32);
    border: 1px solid rgba(62, 146, 204, 0.18);
    border-top: 6px solid var(--team-color, var(--team-fallback));
    min-width: 0;
}

.tile-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-strong);
}

.move {
    font-weight: 700;
    font-size: 0.95rem;
}

.move.up { color: var(--brand-blue); }
.move.down { color: var(--brand-red); }
.move.same { color: var(--text-dim); }

.move.new {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    background: var(--brand-red);
    color: var(--brand-paper);
}

.disc {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--brand-paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.tile-name {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-strong);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-name:hover { color: var(--brand-blue); }

.tile-score {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.tile-score.below { color: var(--brand-red); }

.tile-meta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}
