/* HYROX public standings (cross-org leaderboard) + publish-result modal.
   Theme: navy #0a1628 / #0f1a2e / #16223c, gold #c8a03c, white. No icons. */

/* ── Standings panel on the Challenges page ───────────────────────────── */
.hyrox-standings {
    margin-top: 1.75rem;
    background: #0f1a2e;
    border: 1px solid rgba(200, 160, 60, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.5rem;
}

.hyrox-standings-head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    color: #c8a03c;
    letter-spacing: 0.02em;
}

.hyrox-standings-head p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    max-width: 70ch;
}

.hyrox-standings-group {
    margin-top: 1.25rem;
}

.hyrox-standings-group:first-of-type {
    margin-top: 0.25rem;
}

.hyrox-standings-group-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.hyrox-standings-group-title .hyrox-div-tag {
    color: #c8a03c;
}

.hyrox-standings-group-title .hyrox-cat-tag {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hyrox-standings-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hyrox-standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
    font-size: 0.85rem;
    color: #fff;
}

.hyrox-standings-table thead th {
    background: #16223c;
    color: #c8a03c;
    text-align: left;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid rgba(200, 160, 60, 0.3);
}

.hyrox-standings-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.hyrox-standings-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.hyrox-rank {
    color: rgba(255, 255, 255, 0.7);
    width: 2.5rem;
}

.hyrox-standings-table tbody tr:nth-child(1) .hyrox-rank,
.hyrox-standings-table tbody tr:nth-child(1) .hyrox-time {
    color: #c8a03c;
    font-weight: 600;
}

.hyrox-name {
    color: #fff;
}

.hyrox-org {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.hyrox-time {
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hyrox-standings-empty {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.75rem 0;
}

.hyrox-standings-loading {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 0;
}

/* ── Publish-result modal ─────────────────────────────────────────────── */
.hyrox-publish-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hyrox-publish-intro {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hyrox-publish-field label {
    display: block;
    font-size: 0.82rem;
    color: #c8a03c;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.hyrox-publish-field select,
.hyrox-publish-field input {
    width: 100%;
    background: #0a1628;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
}

.hyrox-publish-field select:focus,
.hyrox-publish-field input:focus {
    outline: none;
    border-color: #c8a03c;
}

.hyrox-publish-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.35rem 0 0;
}

.hyrox-publish-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hyrox-publish-actions .btn {
    flex: 1;
}

@media (max-width: 600px) {
    .hyrox-standings { padding: 1rem; }
    .hyrox-standings-table { font-size: 0.8rem; }
}
