/* Rules page — team list */
.team-list {
    --team-label-min-width: 5.5rem;
    --team-label-gap: 0.65rem;
}

.team-list__sections {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.team-list__row {
    display: table-row;
}

.team-list__rank,
.team-list__members {
    display: table-cell;
    vertical-align: middle;
    padding: 0.38rem 0;
    border-bottom: 1px solid var(--color-border);
}

.team-list__row:first-child .team-list__rank,
.team-list__row:first-child .team-list__members {
    padding-top: 0;
}

.team-list__row:last-child .team-list__rank,
.team-list__row:last-child .team-list__members {
    padding-bottom: 0;
    border-bottom: none;
}

.team-list__rank {
    width: 1%;
    min-width: var(--team-label-min-width);
    padding-right: var(--team-label-gap);
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--team-rank-color);
    white-space: nowrap;
}

.team-list__members {
    width: auto;
    line-height: 0;
}

.team-list__empty {
    display: inline-block;
    margin: 0.175rem 0.35rem 0.175rem 0;
    padding: 0.18rem 0.5rem 0.18rem 0.18rem;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.5rem;
    vertical-align: middle;
    color: var(--color-text-muted);
}

.rules-page {
    margin-bottom: 0;
}

.rules-page__meta {
    margin: 0 0 0.35rem;
}

.rules-page .card__title {
    margin-top: 0;
}

@media (max-width: 520px) {
    .team-list__sections {
        display: block;
    }

    .team-list__row {
        display: block;
        padding: 0.45rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .team-list__row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .team-list__row:first-child {
        padding-top: 0;
    }

    .team-list__rank,
    .team-list__members {
        display: block;
        width: auto;
        padding: 0;
        border-bottom: none;
    }

    .team-list__rank {
        margin-bottom: 0.35rem;
    }

    .team-list__members {
        line-height: normal;
    }

    .team-list__empty {
        margin-left: 0;
    }
}
