#main-content:has(> .standings) {
    background: #f2f4f7;
    min-height: calc(100vh - 9rem);
}

.standings {
    --color-surface: #fff;
    --color-border: #dfe5ed;
    --color-text-main: #101828;
    --color-text-muted: #526178;
    --color-accent: #175cd3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 4rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: var(--color-text-main);
}

.standings-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.7rem;
    border-bottom: 1px solid var(--color-border);
}

.standings-header h1 {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.standings-season {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.standings-tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 1.35rem 0; }
.standings-tabs a {
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 0.5rem 0.85rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 650;
}
.standings-tabs a:hover { background: #fff; }
.standings-tabs a[aria-current] { border-color: var(--color-accent); background: #eaf2ff; color: #1849a9; }
.standings :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.standings-leagues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}
.standings-leagues a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.2rem 1rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text-main);
    text-decoration: none;
}
.standings-leagues a:hover { border-color: var(--color-accent); }
.standings-leagues strong { font-size: 1.2rem; }
.standings-leagues span { grid-column: 1; color: var(--color-text-muted); font-size: 0.85rem; }
.standings-leagues .standings-league-arrow {
    grid-area: 1 / 2 / 3 / 3;
    color: var(--color-accent);
    font-size: 1.35rem;
}

.standings-panel { border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); }
.standings-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.25rem; }
.standings-panel-head p { margin: 0; color: var(--color-text-muted); font-size: 0.82rem; }
.standings-status {
    color: #764511;
    background: #fff4df;
    border: 1px solid #e8c990;
    border-radius: 4px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}
.standings-notice { margin: 0 1.25rem 1rem; color: #764511; font-size: 0.86rem; }
.standings-scroll { overflow-x: auto; }
.standings-scroll:focus-visible { outline-offset: -2px; }
.standings-swipe { display: none; color: var(--color-text-muted); font-size: 0.73rem; }
.standings-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.standings-table {
    width: 100%;
    min-width: 41rem;
    border-spacing: 0;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}
.standings-table th, .standings-table td { padding: 0.54rem 0.35rem; text-align: center; border-top: 1px solid var(--color-border); }
.standings-table thead th { background: #f4f7fb; color: var(--color-text-muted); font-size: 0.78rem; }
.standings-table abbr { text-decoration: none; }
.standings-table tbody tr { --row-bg: var(--color-surface); background: var(--row-bg); }
.standings-table tbody tr:nth-child(even) { --row-bg: #f8fafc; }
.standings-table tbody tr:focus-within, .standings-table tbody tr:hover { --row-bg: #eef4fc; }
.standings-table .rank { width: 3.3rem; color: var(--color-text-muted); }
.standings-table .club { width: 38%; text-align: left; color: var(--color-text-main); overflow-wrap: anywhere; }
.standings-table .club a { color: inherit; text-underline-offset: 0.2em; }
.standings-table .club a:hover { color: var(--color-accent); }
.standings-table .pts { font-weight: 750; color: #1849a9; }
.standings-table .pts a, .standings-table .rank a, .standings-notes a, .standings-source a { color: var(--color-accent); }
.standings-table .pts a { padding: 0 0.1rem; text-decoration: none; }

.standings-notes { border-top: 1px solid var(--color-border); padding: 0.95rem 1.25rem; font-size: 0.8rem; }
.standings-notes p { margin: 0 0 0.7rem; }
.standings-notes p span { display: block; color: var(--color-text-muted); }
.standings-source {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.65rem;
    margin: 0 1.25rem 1rem;
    font-size: 0.75rem;
}
.standings-source dt { color: var(--color-text-muted); }
.standings-source dd { margin: 0.12rem 0 0; }
.standings-attribution { margin-top: 1rem; }

@media (max-width: 720px) {
    .standings { padding: 2rem 1rem 3rem; }
    .standings-header { align-items: start; flex-direction: column; gap: 0.65rem; }
    .standings-panel-head { padding: 0.95rem 0.8rem; }
    .standings-notice, .standings-swipe { margin: 0 0.8rem 0.7rem; }
    .standings-source { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0.8rem 0.9rem; gap: 0.5rem 0.65rem; }
    .standings-attribution { grid-template-columns: 1fr; margin-top: 0.8rem; }
    .standings-swipe { display: block; }
    .standings-table { min-width: 35rem; font-size: 0.83rem; --rank-width: 2.1rem; --club-width: 10rem; }
    .standings-table .rank, .standings-table .club, .standings-table .pts { position: sticky; }
    .standings-table tbody :is(.rank, .club, .pts) { background: var(--row-bg); }
    .standings-table .rank { width: var(--rank-width); left: 0; }
    .standings-table .club { width: var(--club-width); left: var(--rank-width); }
    .standings-table .pts { width: 3rem; left: calc(var(--rank-width) + var(--club-width)); box-shadow: 1px 0 var(--color-border); }
    .standings-notes { padding: 0.8rem; }
}
