.highscore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.highscore-card {
    --highscore-accent: var(--discipline-accent, #5f5c57);
    overflow: hidden;
    border: 1px solid #d0cec8;
    border-top: 4px solid var(--highscore-accent);
    border-radius: 0.38rem;
    background: #fff;
}

.highscore-card-header {
    padding: 0.85rem 1rem 0.7rem;
    border-bottom: 1px solid #dedbd4;
    background: #faf9f5;
}

.highscore-card-header h3 {
    margin: 0;
    color: #292724;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 600;
}

.highscore-table {
    min-width: 31rem;
    margin: 0;
    font-size: 0.88rem;
}

.highscore-table > :not(caption) > * > * {
    padding: 0.48rem 0.42rem;
    border-color: #e0ddd7;
}

.highscore-table thead th {
    color: #65615a;
    background: #f6f5f1;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.highscore-rank-column {
    width: 2.2rem;
    text-align: center;
}

.highscore-number-column,
.highscore-number {
    width: 3.7rem;
    text-align: right;
}

.highscore-view-column {
    width: 6.4rem;
}

.highscore-rank {
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #56524b;
    font-variant-numeric: tabular-nums;
}

.highscore-rank-first {
    color: #302811;
    background: #e8c45f;
    font-weight: 750;
}

.highscore-athlete-cell {
    width: 100%;
    min-width: 8rem;
}

.highscore-athlete-cell .athlete-name {
    display: block;
    max-width: 11rem;
    color: #292724;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.highscore-athlete-cell time {
    display: block;
    margin-top: 0.08rem;
    color: #77726a;
    font-size: 0.72rem;
    white-space: nowrap;
}

.highscore-number {
    color: #4c4943;
    font-variant-numeric: tabular-nums;
}

.highscore-points {
    color: #272521;
    font-weight: 750;
}

.highscore-view-link {
    border: 1px solid #8b877f;
    color: #35322e;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.highscore-view-link:hover,
.highscore-view-link:focus {
    border-color: #34322e;
    color: #fff;
    background: #45423d;
}

#recall_highscore_inline .highscore-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 991.98px) {
    .highscore-grid {
        grid-template-columns: 1fr;
    }
}
