/* Current-season home and shared navigation. */
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 500; padding: .8rem 1rem; background: var(--bg-secondary); color: var(--text-primary); }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-nav { padding: .65rem 1.5rem; }
.site-nav .nav-container { gap: 1.25rem; flex-direction: row; position: relative; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text-primary); flex-shrink: 0; }
.site-brand img { flex-shrink: 0; }
.site-brand-context { display: flex; align-items: baseline; gap: .65rem; }
.site-brand-context strong { font-size: 1.1rem; letter-spacing: .02em; }
.site-brand-context > span { color: var(--text-secondary); font-size: .85rem; white-space: nowrap; }
.primary-navigation { display: flex; align-items: center; gap: 1rem; order: 2; margin-left: auto; }
.site-nav .nav-links { margin: 0; padding: 0; gap: .15rem; flex-wrap: nowrap; width: auto; }
.site-nav .nav-links a { display: flex; align-items: center; min-height: 44px; padding: .5rem .65rem; font-size: .83rem; text-transform: none; letter-spacing: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav .nav-links a[aria-current="page"] { color: var(--accent-green); border-bottom-color: var(--accent-green); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: .75rem; order: 3; }
.site-nav .theme-toggle-wrapper { position: static; min-height: 44px; }
.mobile-menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .65rem; font: inherit; font-size: .85rem; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-secondary); color: var(--text-primary); cursor: pointer; }
.archive-menu { position: relative; }
.archive-menu summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .5rem; font-size: .83rem; color: var(--text-secondary); cursor: pointer; list-style: none; }
.archive-menu summary::-webkit-details-marker { display: none; }
.archive-menu summary:hover { color: var(--accent-green); }
.archive-menu-links { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 235px; padding: .4rem; background: var(--bg-secondary); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); border-radius: 8px; }
.archive-menu-links a { display: flex; align-items: center; min-height: 44px; padding: .5rem .75rem; color: var(--text-primary); text-decoration: none; font-size: .88rem; border-radius: 4px; }
.archive-menu-links a:hover { background: var(--bg-tertiary); color: var(--accent-green); }
.site-nav a:focus-visible, .site-nav button:focus-visible, .site-nav summary:focus-visible, .home-page a:focus-visible, .home-page summary:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 3px; }
.container:has(> .home-page) { margin-top: .65rem; padding-top: 0; }
.home-page { max-width: 1320px; margin: 0 auto; }
.home-page .recent-games-section { margin-bottom: 1rem; }
.section-title-group { display: flex; align-items: center; flex-wrap: wrap; column-gap: .65rem; row-gap: .15rem; min-width: 0; }
.section-date { font-size: .8rem; color: var(--text-secondary); font-weight: 400; white-space: nowrap; }
.home-update-info { font-size: .8rem; color: var(--text-secondary); cursor: help; }
.home-update-info:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 3px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.home-section-heading h2 { margin: 0; font-size: 1.05rem; }
.home-section-heading > a { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; color: var(--accent-green); text-decoration: none; white-space: nowrap; font-size: .83rem; }
.home-page .games-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1rem; }
.home-page .game-card { padding: .85rem 1rem; }
.home-page .game-card-matchup { display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); gap: .5rem; }
.home-page .game-card-side { min-width: 0; padding: .65rem .3rem; }
.home-page .game-card-side .team-name { font-size: .9rem; line-height: 1.35; white-space: normal; overflow-wrap: break-word; }
.home-page .game-card-side .team-score { font-size: 1.7rem; }
.home-page .game-card-center .box-score-link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: .8rem; white-space: nowrap; padding: .25rem .15rem; width: 100%; }
.home-page .game-card-scorers { font-size: .75rem; line-height: 1.6; }
.home-result-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.final-badge { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-green); }
.home-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "fixtures standings" "leaders leaders"; gap: 1.25rem; margin: 1rem 0 1.5rem; }
.home-overview-archive { grid-template-areas: "standings standings" "leaders leaders"; }
.home-fixtures { grid-area: fixtures; }
.home-leaders { grid-area: leaders; min-width: 0; }
.home-standings { grid-area: standings; }
.home-fixtures, .home-standings { min-width: 0; align-self: start; }
.fixture-list { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-secondary); }
.fixture-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .85rem; min-height: 44px; }
.fixture-tipoff { display: flex; align-items: baseline; gap: .5rem; flex-shrink: 0; }
.fixture-date { color: var(--text-secondary); }
.fixture-row + .fixture-row { border-top: 1px solid var(--border-color); }
.fixture-teams { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; font-size: .9rem; font-weight: 600; }
.fixture-at { color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
.fixture-row time, .fixture-time-tbc { white-space: nowrap; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.home-empty { color: var(--text-secondary); font-size: .78rem; line-height: 1.6; margin: .7rem 0; }
.home-standings-card { padding: .5rem .75rem; margin: 0; }
.home-page table.compact-standings { width: 100%; min-width: 0; margin: 0; font-size: .85rem; }
.home-page .compact-standings th, .home-page .compact-standings td { padding: .3rem .5rem; height: 36px; position: static; white-space: nowrap; }
.home-page .compact-standings th { cursor: default; font-size: .65rem; height: 30px; }
.home-page .compact-standings th::after { display: none; }
.home-page .compact-standings th:nth-child(2), .home-page .compact-standings td:nth-child(2) { text-align: left; width: 100%; }
.home-page .compact-standings th:first-child, .home-page .compact-standings td:first-child { text-align: center; color: var(--text-muted); font-weight: 500; }
.compact-standings td a { display: inline-flex; align-items: center; min-height: 30px; }
.home-leaders-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-leaders-grid > .card { min-width: 0; margin: 0; padding: 1rem; }
.home-leaders-grid h3 { font-size: .95rem; margin-top: 0; }
.home-leaders-grid table { min-width: 0; width: 100%; table-layout: fixed; }
.home-leaders-grid th:first-child { width: 75%; }
.home-leaders-grid th:last-child { width: 25%; }
.home-leaders-grid td { font-size: .8rem; }
.home-leaders-grid td:first-child { white-space: normal; }
.more-leaders { margin-top: 1rem; }
.more-leaders > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; color: var(--accent-green); border-top: 1px solid var(--border-color); padding: .5rem 0; cursor: pointer; list-style: none; font-size: .85rem; }
.more-leaders > summary::-webkit-details-marker { display: none; }
.more-leaders[open] > summary span { transform: rotate(45deg); }
@media (min-width: 701px) {
    .next-night-date { display: none; }
    .more-leaders > summary { display: none; }
}
@media (max-width: 1100px) {
    .site-nav { padding: .5rem 1rem; }
    .site-nav .nav-container { gap: .75rem; flex-wrap: wrap; }
    .nav-actions { margin-left: auto; order: 2; }
    .mobile-menu-toggle { display: flex; }
    .primary-navigation { display: none; order: 3; flex-basis: 100%; margin: 0; align-items: stretch; max-height: calc(100dvh - 90px); overflow-y: auto; }
    .site-nav.menu-open .primary-navigation { display: flex; flex-direction: column; gap: .5rem; padding-bottom: .5rem; }
    .site-nav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem; }
    .site-nav .nav-links a { font-size: .95rem; min-height: 46px; padding: .5rem .75rem; }
    .archive-menu { border-top: 1px solid var(--border-color); }
    .archive-menu summary { padding: .5rem .75rem; font-size: .95rem; }
    .archive-menu-links { position: static; min-width: 0; border: 0; box-shadow: none; }
    .home-leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .site-nav { padding: .4rem .75rem; }
    .site-brand { gap: .5rem; }
    .site-brand img { width: 26px; height: 26px; }
    .site-brand-context { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; }
    .site-brand-context strong { font-size: 1rem; }
    .site-brand-context > span { font-size: .75rem; }
    .nav-actions { gap: .5rem; }
    .home-overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fixtures" "leaders" "standings"; gap: 1.1rem; margin-top: 1rem; }
    .home-overview-archive { grid-template-areas: "leaders" "standings"; }
    .home-leaders-grid { grid-template-columns: minmax(0, 1fr); }
    .home-page .game-card { padding: .65rem .75rem; }
    .home-page .game-card-matchup { gap: .25rem; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); }
    .home-page .game-card-side .team-name { font-size: .85rem; }
    .home-page .game-card-side .team-score { font-size: 1.5rem; }
    .home-section-heading > a { min-height: 44px; font-size: .78rem; }
    .section-title-group { column-gap: .4rem; }
    .section-date, .home-update-info { font-size: .75rem; }
    .fixture-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .6rem .75rem; gap: .5rem; }
    .fixture-teams { flex-direction: row; gap: .25rem; font-size: .85rem; }
    .fixture-row time { font-size: .75rem; }
    .fixture-row.fixture-later, .fixture-date { display: none; }
    .home-page .compact-standings th, .home-page .compact-standings td { padding: .25rem .3rem; font-size: .78rem; height: 44px; }
    .compact-standings td a { min-height: 38px; }
    .home-page .compact-standings th { font-size: .65rem; }
    .home-leaders-grid td { font-size: .85rem; }
}
