/* ==================================================
   3NG - CONFERENCE RATINGS
================================================== */

.conference-ratings-page {
    padding: 46px 0 56px;
    border-bottom: 1px solid var(--border-secondary);

    transition: opacity 0.12s ease;
}

.conference-ratings-page.is-loading {
    opacity: 0.68;
    pointer-events: none;
}

.conference-ratings-heading {
    margin-bottom: 28px;
}


/* --------------------------------------------------
   RATINGS NAVIGATION
-------------------------------------------------- */

.conference-ratings-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    gap: 0 28px;

    margin-bottom: 34px;

    border-bottom: 1px solid var(--border-primary);

    overflow: visible;
}

.conference-ratings-nav a {
    position: relative;

    min-height: 54px;

    display: flex;
    align-items: center;

    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    white-space: nowrap;
}

.conference-ratings-nav a:hover,
.conference-ratings-nav a.is-active {
    color: var(--text-primary);
}

.conference-ratings-nav a.is-active::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 3px;

    background: var(--3ng-crimson);
}


/* --------------------------------------------------
   RATINGS PANEL
-------------------------------------------------- */

.conference-ratings-panel {
    width: 100%;
}

.conference-ratings-table-wrap {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.conference-ratings-panel__title {
    width: 100%;
    padding: 12px 16px;

    background: var(--surface-elevated);
    border: 1px solid var(--border-primary);
    border-bottom: 0;
    box-sizing: border-box;
}

.conference-ratings-panel__title h3 {
    margin: 0;

    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

/* --------------------------------------------------
   RATINGS TABLE
-------------------------------------------------- */

.conference-ratings-table-scroll {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
}

.conference-ratings-table {
    width: auto;
    min-width: 0;
    margin: 0;

    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.conference-ratings-table th,
.conference-ratings-table td {
    padding: 14px 18px;

    border-right: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);

    text-align: right;

    white-space: nowrap;
}

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

.conference-ratings-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Alternating table rows */
.conference-ratings-table tbody tr:nth-child(odd) td {
    background: var(--surface-primary);
}

.conference-ratings-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.035);
}

/* Dark theme alternating rows */
[data-theme="dark"] .conference-ratings-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}


/* --------------------------------------------------
   TABLE HEADERS
-------------------------------------------------- */

.conference-ratings-table th {
    background: var(--3ng-navy);
    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
    user-select: none;
}

.conference-ratings-table th:hover,
.conference-ratings-table th.is-sorted {
    color: #ffffff;
}


/* --------------------------------------------------
   TABLE DATA
-------------------------------------------------- */

.conference-ratings-table td {
    color: var(--text-primary);

    font-size: 0.82rem;
    font-weight: 400;
}


/* Team column */

.conference-ratings-table th:nth-child(2),
.conference-ratings-table td:nth-child(2) {
    text-align: left;
}

.conference-ratings-table td:nth-child(2) {
    font-weight: 700;
}

.conference-ratings-table td:nth-child(2) a {
    color: var(--text-primary);

    font-weight: 700;

    text-decoration: none;
}

.conference-ratings-table td:nth-child(2) a:hover {
    text-decoration: underline;
}


/* Row hover */

.conference-ratings-table tbody tr:hover td {
    background: var(--surface-elevated);
}


/* --------------------------------------------------
   SORT INDICATOR
-------------------------------------------------- */

.conference-ratings-sort-indicator {
    display: inline-block;
    margin-left: 4px;

    color: var(--text-secondary);

    font-size: 0.78rem;
    line-height: 1;

    vertical-align: baseline;
}


/* --------------------------------------------------
   EMPTY STATE
-------------------------------------------------- */

.conference-ratings-panel .conference-empty-state {
    margin: 24px;
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 900px) {

    .conference-ratings-nav {
        gap: 0 22px;
    }

}


@media (max-width: 700px) {

    .conference-ratings-page {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .conference-ratings-nav {
        gap: 0 18px;
    }

    .conference-ratings-nav a {
        min-height: 48px;

        font-size: 0.72rem;
    }

    .conference-ratings-table th,
    .conference-ratings-table td {
        padding: 13px 12px;
    }

}