/* CrossFit-style public leaderboard page */

.lb-page {
    --lb-lime: #fbc02d;
    --lb-hero: #111;
    --lb-line: rgba(255, 255, 255, 0.85);
    background: #fff;
    color: #111;
}

.lb-hero {
    background-color: var(--lb-hero);
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 10px
        );
    color: #fff;
    padding: 48px 0 36px;
}

.lb-hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.lb-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.lb-title {
    margin: 0 0 28px;
    font-family: "Noto Sans", var(--vr-font-primary), system-ui, sans-serif;
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    color: #fff;
}

.lb-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--lb-line);
}

.lb-filter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 10px 14px 12px;
    border-right: 1px solid var(--lb-line);
    cursor: pointer;
}

.lb-filter:last-child {
    border-right: 0;
}

.lb-filter-label {
    color: var(--lb-lime);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.lb-filter-select {
    width: 100%;
    appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0 center;
    border: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 18px 0 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-filter-select option {
    color: #111;
    background: #fff;
}

.lb-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 390px);
    margin-top: -1px;
    padding: 12px 14px;
    border: 1px solid var(--lb-line);
    color: #fff;
}

.lb-search-label {
    display: flex;
    color: #fff;
}

.lb-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
}

.lb-search input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.lb-powered {
    margin: 0;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-powered strong {
    font-weight: 800;
}

.lb-table-wrap {
    overflow-x: auto;
    background: #fff;
}

.lb-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
}

.lb-table th,
.lb-table td {
    padding: 14px 16px;
    border-right: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.lb-table th:last-child,
.lb-table td:last-child {
    border-right: 0;
}

.lb-table thead th {
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-table tbody td {
    background: #fff;
    color: #111;
    border-bottom: 1px solid #ececec;
}

.lb-rank {
    width: 72px;
    font-weight: 700;
    text-align: center;
}

.lb-table th:first-child,
.lb-table td.lb-rank {
    text-align: center;
}

.lb-name a {
    color: #111;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.lb-name a:hover,
.lb-name a:focus-visible {
    text-decoration: underline;
}

.lb-nation {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lb-nation img {
    width: 16px;
    height: 12px;
    object-fit: cover;
}

.lb-club {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.lb-points,
.lb-titles {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.lb-empty {
    text-align: center;
    padding: 40px 16px;
    color: #666;
    white-space: normal;
}

.lb-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.body-leaderboard-page main {
    padding-top: 0;
}

.body-leaderboard-page .mobile-header-spacer {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .lb-hero {
        padding: 28px 0 24px;
    }

    .lb-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lb-filter:nth-child(2n) {
        border-right: 0;
    }

    .lb-filter:nth-child(n + 3) {
        border-top: 1px solid var(--lb-line);
    }

    .lb-search {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lb-hero-inner {
        width: calc(100% - 24px);
    }

    .lb-title {
        margin-bottom: 20px;
    }
}
