/* ==================================================
   3NG - NATIONAL SCHEDULES
================================================== */

.national-schedule-page {
    padding: 46px 0 56px;
    border-bottom: 1px solid var(--border-secondary);
}


/* --------------------------------------------------
   TOOLBAR
-------------------------------------------------- */

.national-schedule-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;

    margin-bottom: 34px;
}

.national-schedule-heading {
    margin-bottom: 0;
}


/* --------------------------------------------------
   CONTROLS
-------------------------------------------------- */

.national-schedule-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.national-schedule-control {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.national-schedule-control label {
    color: var(--text-secondary);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.national-schedule-control select {
    min-width: 130px;

    padding: 10px 34px 10px 12px;

    background: var(--surface-primary);
    color: var(--text-primary);

    border: 1px solid var(--border-primary);

    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;

    cursor: pointer;
}

#national-week-select {
    min-width: 180px;
}


/* --------------------------------------------------
   PANEL
-------------------------------------------------- */

.national-schedule-panel {
    width: 100%;

    border: 1px solid var(--border-primary);

    background: var(--surface-primary);
}

.national-schedule-panel__title {
    padding: 12px 16px;

    background: var(--surface-elevated);

    border-bottom: 1px solid var(--border-primary);

    color: var(--text-primary);

    font-size: 1.05rem;
    font-weight: 700;

    line-height: 1.3;
}


/* --------------------------------------------------
   TABLE
-------------------------------------------------- */

.national-schedule-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.national-schedule-table {
    width: 100%;
    min-width: 1180px;

    border-collapse: collapse;

    font-variant-numeric: tabular-nums;
}

.national-schedule-table th,
.national-schedule-table td {
    padding: 13px 14px;

    border-right: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);

    text-align: left;

    white-space: nowrap;
}

.national-schedule-table th:last-child,
.national-schedule-table td:last-child {
    border-right: 0;
}

.national-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Alternating rows */

.national-schedule-table tbody tr:nth-child(odd) td {
    background: var(--surface-primary);
}

.national-schedule-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.035);
}

[data-theme="dark"]
.national-schedule-table
tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}


/* Headers */

.national-schedule-table th {
    background: var(--3ng-navy);
    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* Data */

.national-schedule-table td {
    color: var(--text-primary);

    font-size: 0.82rem;
    font-weight: 400;
}


/* Team columns */

.national-schedule-table__team a {
    color: var(--text-primary);

    font-weight: 700;

    text-decoration: none;
}

.national-schedule-table__team a:hover {
    text-decoration: underline;
}

.national-schedule-table__non-fbs {
    color: var(--text-secondary);
    font-weight: 600;
}


/* @ / VS */

.national-schedule-table__separator {
    text-align: center !important;
    font-weight: 800 !important;
}


/* Venue */

.national-schedule-table__venue {
    font-weight: 600 !important;
}


/* Result */

.national-schedule-table__result {
    font-weight: 600 !important;
}


/* Hover */

.national-schedule-table tbody tr:hover td {
    background: var(--surface-elevated);
}


/* Column sizing */

.national-schedule-table th:nth-child(1),
.national-schedule-table td:nth-child(1) {
    width: 105px;
}

.national-schedule-table th:nth-child(2),
.national-schedule-table td:nth-child(2) {
    width: 90px;
}

.national-schedule-table th:nth-child(3),
.national-schedule-table td:nth-child(3),
.national-schedule-table th:nth-child(5),
.national-schedule-table td:nth-child(5) {
    width: 190px;
}

.national-schedule-table th:nth-child(4),
.national-schedule-table td:nth-child(4) {
    width: 70px;
}

.national-schedule-table th:nth-child(6),
.national-schedule-table td:nth-child(6) {
    width: 230px;
}

.national-schedule-table th:nth-child(7),
.national-schedule-table td:nth-child(7) {
    width: 160px;
}

.national-schedule-table th:nth-child(8),
.national-schedule-table td:nth-child(8) {
    width: 135px;
}

.national-schedule-table th:nth-child(9),
.national-schedule-table td:nth-child(9) {
    width: 190px;
}


/* --------------------------------------------------
   EMPTY STATE
-------------------------------------------------- */

.national-schedule-empty-state {
    padding: 28px 20px;

    color: var(--text-secondary);

    font-size: 0.88rem;

    text-align: center;
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 900px) {

    .national-schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .national-schedule-controls {
        justify-content: flex-start;
    }

}


@media (max-width: 700px) {

    .national-schedule-page {
        padding: 32px 0 48px;
    }

    .national-schedule-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .national-schedule-control {
        width: min(100%, 280px);
    }

    .national-schedule-control select {
        width: 100%;
    }

    .national-schedule-table th,
    .national-schedule-table td {
        padding: 12px;
    }

}