/**
 * Seasons archive (/seasons/) — open editorial list.
 * Scoped to .btfc-seasons-index only.
 *
 * Row rules stay light grey. The shared open-table navy rule is for the
 * column headings only; season names are row headers and must not inherit it.
 */

.btfc-seasons-index {
    padding-top: 0.15rem;
    padding-bottom: var(--space-8);
    background: transparent;
    color: var(--btfc-text);
}

.btfc-si-seasons {
    margin: 0 0 2.5rem;
    padding-top: 0.35rem;
}

.btfc-seasons-index .btfc-section-heading {
    margin-bottom: 1.35rem;
}

.btfc-seasons-index .btfc-wdl-w {
    color: var(--btfc-wdl-win);
    font-weight: 700;
}

.btfc-seasons-index .btfc-wdl-d {
    color: var(--btfc-wdl-draw);
    font-weight: 700;
}

.btfc-seasons-index .btfc-wdl-l {
    color: var(--btfc-wdl-loss);
    font-weight: 700;
}

.btfc-si-winpct {
    font-weight: 700;
    color: var(--btfc-text);
}

.btfc-si-current {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--btfc-gold);
    font-family: var(--font-kicker);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.btfc-si-table-wrap {
    overflow: visible;
    box-shadow: none;
}

.btfc-si-table {
    width: 100%;
}

.btfc-seasons-index .btfc-open-table th,
.btfc-seasons-index .btfc-open-table td {
    padding: 1.05rem 0.7rem;
    vertical-align: middle;
    border-bottom: var(--btfc-rule);
    background: transparent;
}

.btfc-seasons-index .btfc-open-table thead th {
    padding-top: 0.15rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--color-primary);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.btfc-seasons-index .btfc-open-table tbody th {
    font-family: var(--font-primary);
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    border-bottom: var(--btfc-rule);
    color: var(--btfc-heading);
}

.btfc-seasons-index .btfc-open-table tbody tr:last-child th,
.btfc-seasons-index .btfc-open-table tbody tr:last-child td {
    border-bottom: 0;
}

.btfc-seasons-index .btfc-si-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--btfc-text);
}

.btfc-seasons-index .btfc-si-num.btfc-wdl-w,
.btfc-seasons-index .btfc-wdl-w {
    color: var(--btfc-wdl-win);
}

.btfc-seasons-index .btfc-si-num.btfc-wdl-d,
.btfc-seasons-index .btfc-wdl-d {
    color: var(--btfc-wdl-draw);
}

.btfc-seasons-index .btfc-si-num.btfc-wdl-l,
.btfc-seasons-index .btfc-wdl-l {
    color: var(--btfc-wdl-loss);
}

.btfc-si-col-season,
.btfc-si-table thead th.btfc-si-col-season {
    text-align: left;
    width: 22%;
}

.btfc-si-col-explore,
.btfc-si-table thead th.btfc-si-col-explore {
    text-align: left;
    width: 7.5rem;
}

.btfc-si-season-id {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.btfc-si-season-name {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--btfc-link);
    text-decoration: none;
}

.btfc-si-item-name {
    color: var(--btfc-link);
}

.btfc-si-season-name:hover,
.btfc-si-season-name:focus-visible {
    color: var(--btfc-link-hover);
}

.btfc-si-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.btfc-si-actions a,
.btfc-si-item-actions a {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--btfc-link);
    text-decoration: none;
    border-bottom: 1px solid var(--btfc-gold);
    padding-bottom: 0.02rem;
}

.btfc-si-actions a:hover,
.btfc-si-actions a:focus-visible,
.btfc-si-item-actions a:hover,
.btfc-si-item-actions a:focus-visible {
    color: var(--btfc-link-hover);
    border-bottom-color: var(--color-secondary-dark);
}

.btfc-si-actions a:focus-visible,
.btfc-si-item-actions a:focus-visible,
.btfc-si-season-name:focus-visible,
.btfc-si-item-season:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.btfc-seasons-index .btfc-open-table tbody tr.is-current > :first-child {
    box-shadow: inset 3px 0 0 var(--btfc-gold);
    padding-left: 0.85rem;
}

.btfc-seasons-index .btfc-open-table tbody tr.is-current,
.btfc-seasons-index .btfc-open-table tbody tr.is-current:hover {
    background: transparent;
}

@media (min-width: 769px) {
    .btfc-seasons-index .btfc-open-table tbody th,
    .btfc-seasons-index .btfc-open-table tbody td {
        padding-top: 0.38rem;
        padding-bottom: 0.38rem;
    }

    .btfc-si-season-id {
        flex-wrap: nowrap;
    }

    .btfc-si-actions {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: nowrap;
        gap: 1.35rem;
    }

    .btfc-si-actions a {
        white-space: nowrap;
        line-height: 1.2;
    }

    .btfc-si-col-explore,
    .btfc-si-table thead th.btfc-si-col-explore {
        width: 26%;
        white-space: nowrap;
    }
}

.btfc-si-table tbody tr.is-older {
    display: none;
}

.btfc-seasons-index.is-expanded .btfc-si-table tbody tr.is-older {
    display: table-row;
}

.btfc-si-list {
    display: none;
}

.btfc-si-more-wrap {
    margin: 1.5rem 0 0;
    text-align: center;
}

.btfc-si-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.4rem;
    padding: 0.35rem 0.15rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--btfc-gold);
    color: var(--btfc-heading);
    font-family: var(--font-kicker);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.btfc-si-more:hover,
.btfc-si-more:focus-visible {
    color: var(--btfc-heading);
    border-bottom-color: var(--color-secondary-dark);
}

.btfc-si-more:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.btfc-si-more-chevron {
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid var(--btfc-gold);
    border-bottom: 2px solid var(--btfc-gold);
    transform: rotate(45deg);
    margin-top: -0.2rem;
}

.btfc-si-empty {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--btfc-muted);
}

.btfc-si-explore {
    margin: 0;
    padding-top: 0.15rem;
}

.btfc-si-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: var(--btfc-rule);
}

.btfc-si-explore-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    min-height: 0;
    padding: 1.15rem 1rem 1.15rem 0;
    border: 0;
    border-bottom: var(--btfc-rule);
    background: transparent;
    color: var(--btfc-heading);
    text-decoration: none;
    text-align: left;
    box-shadow: none;
}

.btfc-si-explore-item:hover,
.btfc-si-explore-item:focus-visible {
    border-color: var(--btfc-hairline);
}

.btfc-si-explore-item:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.btfc-si-explore-item.is-current .btfc-si-explore-title {
    box-shadow: inset 3px 0 0 var(--btfc-gold);
    padding-left: 0.65rem;
}

.btfc-si-explore-icon {
    display: inline-flex;
    color: var(--btfc-gold);
}

.btfc-si-explore-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.btfc-si-explore-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--btfc-heading);
}

@media (max-width: 768px) {
    .btfc-seasons-index {
        padding-bottom: var(--space-6);
    }

    .btfc-si-table-wrap {
        display: none;
    }

    .btfc-si-list {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
        border-top: var(--btfc-rule);
    }

    .btfc-si-item {
        padding: 0.95rem 0 1rem;
        border-bottom: var(--btfc-rule);
        background: transparent;
        box-shadow: none;
    }

    .btfc-si-item.is-current {
        margin: 0;
        padding-left: 0.75rem;
        background: transparent;
        box-shadow: inset 3px 0 0 var(--btfc-gold);
    }

    .btfc-si-item.is-older {
        display: none;
    }

    .btfc-seasons-index.is-expanded .btfc-si-item.is-older {
        display: block;
    }

    .btfc-si-item-season {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        min-width: 0;
        color: var(--btfc-heading);
        text-decoration: none;
    }

    .btfc-si-item-name {
        font-family: var(--font-heading);
        font-size: 1.65rem;
        font-weight: 400;
        letter-spacing: 0.04em;
        line-height: 1;
    }

    .btfc-si-item-season .btfc-si-current {
        margin-left: auto;
        flex-shrink: 0;
    }

    .btfc-si-chevron {
        flex-shrink: 0;
        width: 0.42rem;
        height: 0.42rem;
        margin-left: auto;
        border-right: 2px solid var(--btfc-gold);
        border-top: 2px solid var(--btfc-gold);
        transform: rotate(45deg);
    }

    .btfc-si-item-season:has(.btfc-si-current) .btfc-si-chevron {
        margin-left: 0;
    }

    .btfc-si-item-stats,
    .btfc-si-item-rate {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.35rem 0.85rem;
        margin: 0.55rem 0 0;
        font-family: var(--font-primary);
        font-size: 0.9rem;
        font-weight: 650;
        color: var(--btfc-text);
    }

    .btfc-si-item-rate {
        margin-top: 0.3rem;
        font-weight: 500;
    }

    .btfc-si-rate-label {
        font-family: var(--font-kicker);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-gray-600);
    }

    .btfc-si-item-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem 1.15rem;
        margin-top: 0.7rem;
    }

    .btfc-si-explore-grid {
        grid-template-columns: 1fr 1fr;
    }

    .btfc-si-explore-item {
        padding: 0.95rem 0.75rem 0.95rem 0;
    }

    .btfc-si-explore-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .btfc-si-item-name {
        font-size: 1.5rem;
    }

    .btfc-si-item-stats,
    .btfc-si-item-rate {
        font-size: 0.86rem;
        gap: 0.3rem 0.7rem;
    }

    .btfc-si-explore-grid {
        grid-template-columns: 1fr;
    }
}
