/* --------------------------------------------------
   CONFERENCE HEADER
-------------------------------------------------- */

.conference-header {
    background: var(--surface-primary);
    border-bottom: 1px solid var(--border-primary);
}

.conference-header__inner {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.conference-header h1 {
    margin: 0 0 8px;
    color: var(--heading-color);
    font-size: 2.4rem;
    line-height: 1.05;
}

.conference-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.conference-header__controls {
    display: flex;
    align-items: flex-end;
}

.conference-header__identity {
    display: flex;
    align-items: center;
    gap: 26px;
}

.conference-header__logo {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    object-fit: contain;
}

.conference-header__details {
    min-width: 0;
}


/* --------------------------------------------------
   CONFERENCE NAVIGATION
-------------------------------------------------- */

.conference-nav {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-secondary);
}

.conference-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
}

.conference-nav a:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

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

.conference-nav a.is-active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    background: var(--3ng-crimson);
}


/* --------------------------------------------------
   CONFERENCE PAGE LAYOUT
-------------------------------------------------- */

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

.conference-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.conference-main,
.conference-sidebar {
    min-width: 0;
}

.conference-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.conference-page-heading {
    margin-bottom: 24px;
}


/* --------------------------------------------------
   MAIN CONTENT PANELS
-------------------------------------------------- */

.conference-content-panel {
    min-width: 0;
    padding: 22px;
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-top: 3px solid var(--3ng-crimson);
}

.conference-content-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.conference-content-panel__heading .eyebrow {
    margin-bottom: 5px;
}

.conference-content-panel__heading h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.25;
}

.conference-content-panel__status {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
}


/* --------------------------------------------------
   SIDEBAR
-------------------------------------------------- */

.conference-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conference-sidebar-card {
    min-width: 0;
    padding: 20px;
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-top: 3px solid var(--3ng-crimson);
}

.conference-sidebar-card__heading {
    margin-bottom: 14px;
}

.conference-sidebar-card__heading .eyebrow {
    margin-bottom: 4px;
}

.conference-sidebar-card__heading h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/* --------------------------------------------------
   CONFERENCE SNAPSHOT
-------------------------------------------------- */

.conference-snapshot-list {
    margin: 0;
}

.conference-snapshot-list > div {
    min-height: 39px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-secondary);
}

.conference-snapshot-list > div:last-child {
    border-bottom: 0;
}

.conference-snapshot-list dt {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.conference-snapshot-list dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: right;
}


/* --------------------------------------------------
   TEAM SELECTOR
-------------------------------------------------- */

.conference-team-select-wrap {
    width: 100%;
}

.conference-team-select {
    width: 100%;
    min-height: 42px;
    padding: 0 38px 0 12px;
    background: var(--surface-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    font: inherit;
    font-size: 0.8rem;
}


/* --------------------------------------------------
   EMPTY STATES
-------------------------------------------------- */

.conference-empty-state {
    margin: 0;
    padding: 22px;
    background: var(--surface-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    border: 1px solid var(--border-secondary);
}

.conference-empty-state--sidebar {
    padding: 14px;
    font-size: 0.76rem;
}


/* --------------------------------------------------
   BACK TO TOP
-------------------------------------------------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;

    width: 58px;
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1px;

    background: var(--surface-primary);
    color: var(--text-primary);

    border: 1px solid var(--border-primary);
    border-top: 3px solid var(--3ng-crimson);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease,
        background-color 0.18s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--surface-secondary);
}

.back-to-top span {
    font-size: 1.05rem;
    line-height: 1;
}

.back-to-top strong {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}


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

@media (max-width: 1000px) {

    .conference-page-layout {
        grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
    }

}

@media (max-width: 760px) {

    .conference-header__inner {
        min-height: auto;
        padding: 28px 0 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .conference-header__controls {
        width: 100%;
    }

    .conference-header__controls .filter-control,
    .conference-header__controls .filter-control select {
        width: 100%;
    }

    .conference-nav {
        overflow-x: auto;
    }

    .conference-nav a {
        flex-shrink: 0;
        padding-inline: 14px;
    }

    .conference-header__identity {
        align-items: center;
        gap: 18px;
    }

    .conference-header__logo {
        width: 76px;
        height: 76px;
    }

    .conference-header h1 {
        font-size: 1.8rem;
    }

    .conference-page-layout {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

}

@media (max-width: 540px) {

    .conference-section {
        padding-top: 34px;
    }

    .conference-content-panel,
    .conference-sidebar-card {
        padding: 16px;
    }

    .conference-content-panel__heading {
        flex-direction: column;
        gap: 8px;
    }

}


/* --------------------------------------------------
   TRADITIONAL STATS PREVIEW
-------------------------------------------------- */

.conference-stats-preview-scroll {
    width: 100%;
    overflow-x: auto;
}

.conference-stats-preview-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.conference-stats-preview-table th,
.conference-stats-preview-table td {
    border: 1px solid var(--border-primary);
}

.conference-stats-preview-table thead tr:first-child th {
    padding: 12px 10px;
    background: var(--surface-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.conference-stats-preview-table thead tr:nth-child(2) th {
    padding: 9px 10px;
    background: var(--surface-primary);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: left;
}

.conference-stats-preview-table thead tr:nth-child(2) th:nth-child(even) {
    width: 7%;
    text-align: right;
}

.conference-stats-preview-table tbody td {
    padding: 11px 10px;
    color: var(--text-primary);
    font-size: 0.75rem;
    vertical-align: middle;
}

.conference-stats-preview-table tbody td:nth-child(even) {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: right;
}

.conference-stats-preview-table tbody a {
    color: var(--text-primary);
    font-weight: 800;
}

.conference-stats-preview-table tbody a:hover {
    color: var(--3ng-crimson);
}



/* --------------------------------------------------
   CONFERENCE STANDINGS PREVIEW
-------------------------------------------------- */

.conference-standings-preview-scroll {
    width: 100%;
    overflow-x: auto;
}

.conference-standings-preview-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.conference-standings-preview-table th,
.conference-standings-preview-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
}

.conference-standings-preview-table th {
    background: var(--surface-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: left;
}

.conference-standings-preview-table th:not(:first-child),
.conference-standings-preview-table td:not(:first-child) {
    text-align: center;
}

.conference-standings-preview-table td {
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
}

.conference-standings-preview-table td:first-child {
    font-weight: 800;
}

.conference-standings-preview-table a {
    color: var(--text-primary);
    font-weight: 800;
}

.conference-standings-preview-table a:hover {
    color: var(--3ng-crimson);
}

.conference-standings-preview-table {
    min-width: 900px;
}

.conference-standings-preview-table th:first-child {
    width: 28%;
}

.conference-standings-preview-table th:nth-child(2),
.conference-standings-preview-table th:nth-child(3) {
    width: 8%;
}

.conference-standings-preview-table th:nth-child(4),
.conference-standings-preview-table th:nth-child(5),
.conference-standings-preview-table th:nth-child(6),
.conference-standings-preview-table th:nth-child(7) {
    width: 12%;
}

.conference-standings-preview-table th:nth-child(8) {
    width: 8%;
}



/* --------------------------------------------------
   CONFERENCE TIER RECORDS
-------------------------------------------------- */

.conference-tier-records-scroll {
    width: 100%;
    overflow-x: auto;
}

.conference-tier-records-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.conference-tier-records-table th,
.conference-tier-records-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
}

.conference-tier-records-table th {
    background: var(--surface-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

.conference-tier-records-table td {
    color: var(--text-primary);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.conference-tier-records-table th:first-child,
.conference-tier-records-table td:first-child {
    width: 28%;
    text-align: left;
}

.conference-tier-records-table a {
    color: var(--text-primary);
    font-weight: 800;
}

.conference-tier-records-table a:hover {
    color: var(--3ng-crimson);
}



/* --------------------------------------------------
   CONFERENCE TABLE TITLE ROWS
   Same treatment as team-page table headings.
-------------------------------------------------- */

.conference-table-title {
    padding: 15px 18px;

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

    color: var(--text-primary);

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

    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   FEATURED MATCHUPS
========================================================= */

.conference-featured-section {
    margin: 0;
}

.conference-featured-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.conference-featured-heading h3 {
    margin: 4px 0 0;
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1.1;
}

.conference-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.conference-featured-card {
    overflow: hidden;
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-top: 2px solid var(--accent-primary);
}

.conference-featured-card__time {
    padding: 13px 18px;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conference-featured-card__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 126px;
    padding: 22px 20px 16px;
}

.conference-featured-team {
    min-width: 0;
}

.conference-featured-team--right {
    text-align: right;
}

.conference-featured-team__rank {
    min-height: 18px;
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
}

.conference-featured-team__name {
    display: block;
    color: var(--text-primary);
    font-size: clamp(1.2rem, 1.6vw, 1.65rem);
    font-weight: 800;
    line-height: 1.05;
    text-decoration: none;
}

.conference-featured-team__name:hover {
    text-decoration: underline;
}

.conference-featured-team__record {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.conference-featured-card__versus {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conference-featured-card__venue {
    min-height: 48px;
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-align: center;
}

.conference-featured-card__analytics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border-primary);
}

.conference-featured-metric {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.conference-featured-metric:nth-child(2n) {
    border-right: 0;
}

.conference-featured-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.conference-featured-metric span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.conference-featured-metric strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .conference-featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .conference-featured-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .conference-featured-card__matchup {
        gap: 10px;
        padding-inline: 14px;
    }

    .conference-featured-card__analytics {
        grid-template-columns: 1fr;
    }

    .conference-featured-metric,
    .conference-featured-metric:nth-child(2n),
    .conference-featured-metric:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--border-primary);
    }

    .conference-featured-metric:last-child {
        border-bottom: 0;
    }
}
