.leagues-page {
    --league-accent: #638775;
    --league-ink: #203a2f;
    --league-line: #ccd8d0;
    background: #f6f6f6;
    color: var(--league-ink);
}
.leagues-page .container { max-width: min(94%, 1480px); }
.leagues-page .icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.leagues-page .preview-nav .nav-link.active { border-color: var(--league-accent); }
.leagues-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(24px, 3vw, 42px) 0;
    color: #fff;
    background-color: #081320;
}
.leagues-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    height: 100%;
    aspect-ratio: 2.9;
    max-width: 100%;
    background: url('../images/askf-2026/leagues-hero.png') right center / auto 100% no-repeat;
    mask-image: linear-gradient(to right, transparent, #000 30%);
}
.leagues-hero nav { display: inline-block; padding: 5px 9px; font-size: 12px; }
.leagues-page:not(.fixture-page, .news-page) .leagues-hero {
    display: grid;
    align-items: center;
    min-height: 19.6vw;
    background: #081320 url('../images/askf-2026/leagues-hero-full.jpg') right center / cover no-repeat;
}
.leagues-page:not(.fixture-page, .news-page) .leagues-hero::before { content: none; }
.leagues-hero nav a { color: inherit; }
.leagues-hero h1, .leagues-group h2, .league-preview-card h3, .league-preview-mark {
    font-family: BannerAnton, Impact, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}
.leagues-categories a { font: 600 15px/1.5 Arial, sans-serif; text-transform: none; }
.leagues-hero h1, .leagues-group h2 { font-style: italic; }
.leagues-hero h1 {
    display: flex;
    align-items: center;
    gap: .22em;
    margin: 8px 0 29px;
    font-size: clamp(44px, 6vw, 86px);
}
.leagues-hero h1::before, .leagues-group h2::before {
    content: "";
    display: inline-block;
    width: .14em;
    height: .92em;
    margin-right: .25em;
    background: var(--league-accent);
    transform: skewX(-16deg);
    vertical-align: -.04em;
}
.leagues-hero p { max-width: 36rem; margin: 0; }
.leagues-hero h1::before { flex: none; margin: 0 0 0 .13em; background: #b0ff00; }
.leagues-content { padding-block: 20px 40px; }
.leagues-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.leagues-categories a {
    display: flex;
    flex: 1 1 auto;
    min-height: 46px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--league-line);
    border-radius: 10px;
    background: #eaf1ec;
    color: var(--league-ink);
    text-decoration: none;
}
.leagues-categories a.leagues-all { background: var(--league-accent); color: #101b15; }
.leagues-categories a:hover { border-color: var(--league-accent); }
.leagues-group { margin-top: clamp(22px, 3vw, 38px); scroll-margin-top: 16px; }
.leagues-group header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.leagues-group header::after { content: ""; flex: 1; border-top: 1px solid var(--league-line); }
.leagues-group h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin: 0; }
.leagues-group header p { order: 1; margin: 0; font-size: .875rem; }
.league-preview-card {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(76px, 30%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--league-line);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #edf4ef);
}
.league-preview-mark {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 7px;
    padding: 12px 6px;
    text-align: center;
    color: #fff;
    background: linear-gradient(116deg, #102a21be 68%, #638775bd 69%, #234234dd 90%),
        url('../images/askf-2026/stadium-clean.webp') center / cover;
}
.league-preview-mark .icon { color: #b8d8c0; font-size: 1.8rem; }
.league-preview-info { padding: clamp(10px, 1.8vw, 22px); }
.league-preview-info h3 { margin: 0 0 6px; font-size: clamp(1rem, 1.9vw, 1.5rem); overflow-wrap: anywhere; }
.league-preview-season {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    background: #dbe9de;
    font-size: .75rem;
    font-weight: 700;
}
.league-preview-meta, .league-preview-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .83rem; }
.league-preview-meta { margin-block: 9px; }
.league-preview-links { border-top: 1px solid var(--league-line); }
.league-preview-links a { color: #304f40; font-weight: 700; padding-block: 8px 4px; }
@media (max-width: 575.98px) {
    .leagues-page:not(.fixture-page, .news-page) .leagues-hero {
        background-image: linear-gradient(90deg, #081320e6, #08132055),
            url('../images/askf-2026/leagues-hero-full.jpg');
    }
    .leagues-hero::before {
        width: 100%;
        background-image: linear-gradient(90deg, #081320f5, #08132065),
            url('../images/askf-2026/leagues-hero.png');
        background-size: cover, auto 100%;
    }
    .leagues-group header::after { display: none; }
    .leagues-group header p { width: 100%; }
    .leagues-categories a { flex-basis: 44%; }
}

/* League cards share the approved standings palette. */
.leagues-page:not(.fixture-page, .news-page) {
    --league-accent: #526f88;
    --league-ink: #252b32;
    --league-line: #dde4e8;
}
.leagues-page:not(.fixture-page, .news-page) .leagues-hero h1::before { background: #8aa9bc; }
.league-preview-card { background: #ffffff; }
.league-preview-mark {
    background: linear-gradient(116deg, #263e50be 68%, #8aa9bcbd 69%, #3e5d78dd 90%),
        url('../images/askf-2026/stadium-clean.webp') center / cover;
}
.league-preview-mark .icon { color: #dce7f0; }
.league-preview-season { background: #dce7f0; color: #3e5d78; }
.league-preview-meta,
.leagues-group header p { color: #657583; }
.league-preview-links a { color: #3e5d78; }
.league-preview-links a:hover { color: #425e77; }
