/*  League intent pages - /leagues/{slug}/log, /fixtures, /results, /top-scorers - and the
    page-links bar they share with the overview (_LeagueSectionNav.cshtml), 2026-11-12. */

.league-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.league-section-link {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #cfe3d0;
    background: #fff;
    color: #007105;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.league-section-link:hover,
.league-section-link:focus {
    background: #e6f4e7;
    color: #007105;
    text-decoration: none;
}

.league-section-link.active {
    background: #007105;
    border-color: #007105;
    color: #fff;
}

/* ---- the intent page itself ---- */

.league-section-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.league-section-card {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

/* leagues.css caps every match list at half the screen with its own scrollbar - right for
   the overview's side-by-side boxes, wrong for a page that IS the list. */
.league-section-page .card-body {
    overflow: visible;
}

.league-section-page .match-list-container.league-section-list {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Club intent pages (/teams/{slug}/fixtures, /results, /squad) - the colours come from
   teams.css through --team-primary-color / --team-secondary-color set on the wrapper. */
.team-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Season so far - one paragraph of our own numbers, under the page-links bar. */
.league-season-summary {
    background: #fff;
    border-left: 4px solid #007105;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #22302a;
}

.league-section-more {
    margin: 8px 0 24px;
    color: #5c6b64;
}

@media (max-width: 576px) {
    .league-section-nav {
        gap: 6px;
    }

    .league-section-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .league-section-page .league-title span {
        font-size: 1rem;
    }
}
