/* ═══════════════════════════════════════════════════════════
   High School Sports Stats — site.css
   Matches the three-tier nav mockup design.
   
   Structure:
   1. Reset & base
   2. CSS custom properties (design tokens)
   3. Global bar
   4. Context bar & chips
   5. Ticker
   6. Tab bar
   7. Landing page (home)
   8. Sport page
   9. Standings
   10. Stat leaders
   11. Shared components (cards, badges, footer)
   12. Utilities
   13. Responsive
═══════════════════════════════════════════════════════════ */

/* ── 1. Reset & base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F4F4F6;
    color: #111827;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* ── 2. Design tokens ─────────────────────────────────────── */
:root {
    --color-dark: #1c2030;
    --color-dark-deeper: #151824;
    --color-accent: #C0392B;
    --color-accent-hover: #A93226;
    --color-surface: #ffffff;
    --color-surface-2: #F9F9FB;
    --color-page-bg: #F4F4F6;
    --color-border: rgba(0,0,0,0.09);
    --color-border-med: rgba(0,0,0,0.14);
    --color-text-primary: #111827;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-text-link: #185FA5;
    --color-seed-bg: #FAEEDA;
    --color-seed-txt: #412402;
    --color-seed-badge-bg: #FAC775;
    --color-live: #16A34A;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    --global-bar-h: 42px;
    --context-bar-h: 48px;
    --ticker-h: 36px;
    --tab-bar-h: 42px;
}

/* ── 3. Global bar ────────────────────────────────────────── */
.global-bar {
    background: var(--color-dark);
    height: var(--global-bar-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.global-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
}

.global-bar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.global-bar__mark {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.global-bar__name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.global-bar__sport-home {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    padding: 2px 0;
}

    .global-bar__sport-home:hover {
        color: #fff;
    }

.global-bar__util {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .global-bar__util a {
        font-size: 12px;
        color: rgba(255,255,255,0.5);
        white-space: nowrap;
        transition: color 0.15s;
    }

        .global-bar__util a:hover {
            color: rgba(255,255,255,0.85);
        }

.global-bar__login {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: 4px 11px;
    font-size: 12px;
    transition: background 0.15s;
}

    .global-bar__login:hover {
        background: rgba(255,255,255,0.16) !important;
    }

.global-bar__divider {
    display: block;
    width: 0.5px;
    height: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ── 4. Context bar & chips ───────────────────────────────── */
.context-bar {
    background: var(--color-surface);
    border-bottom: 0.5px solid var(--color-border);
    height: var(--context-bar-h);
}

.context-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 10px;
}

.context-bar__sport-id {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.context-bar__sport-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.context-bar__sport-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.context-bar__sport-sub {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.context-bar__divider {
    display: block;
    width: 0.5px;
    height: 26px;
    background: var(--color-border);
    flex-shrink: 0;
    margin: 0 2px;
}

.context-bar__spacer {
    flex: 1;
}

.context-bar__action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-text-secondary);
    padding: 5px 9px;
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

    .context-bar__action:hover {
        background: var(--color-surface-2);
        color: var(--color-text-primary);
    }

/* Chips */
.chip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    background: var(--color-surface-2);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, color 0.15s;
}

    .chip:hover {
        border-color: var(--color-border-med);
        color: var(--color-text-primary);
    }

    .chip svg {
        flex-shrink: 0;
    }

/* Chip dropdown */
.chip--dropdown {
    position: relative;
}

.chip__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background: var(--color-surface);
    border: 0.5px solid var(--color-border-med);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 200;
    overflow: hidden;
    padding: 4px 0;
}

.chip--dropdown.is-open .chip__dropdown {
    display: block;
}

.chip__dropdown-item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--color-text-primary);
    transition: background 0.1s;
}

    .chip__dropdown-item:hover {
        background: var(--color-surface-2);
    }

    .chip__dropdown-item.is-active {
        color: var(--color-accent);
        font-weight: 500;
    }

/* ── 5. Ticker ────────────────────────────────────────────── */
.ticker {
    background: var(--color-dark-deeper);
    height: var(--ticker-h);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .ticker::-webkit-scrollbar {
        display: none;
    }

.ticker__label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 4px;
}

.ticker__game {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .ticker__game:hover {
        background: rgba(255,255,255,0.1);
    }

.ticker__game--live {
    border-color: rgba(74,222,128,0.3);
}

.ticker__teams {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
}

.ticker__score {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.ticker__status {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

    .ticker__status.is-live {
        color: #4ade80;
    }

.ticker__time {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}

.ticker__more {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── 6. Tab bar ───────────────────────────────────────────── */
.tab-bar {
    background: var(--color-surface);
    border-bottom: 0.5px solid var(--color-border);
    display: flex;
    padding: 0 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

    .tab-bar::-webkit-scrollbar {
        display: none;
    }

.tab-bar__tab {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 11px 14px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s;
    margin-bottom: -0.5px;
}

    .tab-bar__tab:hover {
        color: var(--color-text-primary);
    }

    .tab-bar__tab.is-active {
        color: var(--color-accent);
        border-bottom-color: var(--color-accent);
        font-weight: 500;
    }

/* ── 7. Landing page (home) ───────────────────────────────── */
.page-hero {
    background: var(--color-surface);
    border-bottom: 0.5px solid var(--color-border);
}

.page-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-hero__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.page-hero__sub {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.season-badge {
    font-size: 11px;
    background: #E6F1FB;
    color: #0C447C;
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.scoreboard-link-bar {
    background: var(--color-surface);
    border-bottom: 0.5px solid var(--color-border);
    padding: 8px 1.25rem;
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
}

.scoreboard-link-bar__btn {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--color-text-link);
    padding: 5px 12px;
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background 0.15s;
}

    .scoreboard-link-bar__btn:hover {
        background: var(--color-surface-2);
    }

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-live);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.sports-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

.sport-group {
    margin-top: 0;
}

.sport-group__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 14px 0 8px;
}

.sport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.sport-card {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .sport-card:hover {
        border-color: var(--color-border-med);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

.sport-card__icon {
    font-size: 26px;
}

.sport-card__name {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
}

/* ── 8. Sport page body ───────────────────────────────────── */
.sport-page-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── 9. Standings ─────────────────────────────────────────── */
.standings-block {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.standings-block__header {
    background: var(--color-dark);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.standings-block__header-eyebrow {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.standings-block__header-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.standings-block__bracket-link {
    font-size: 12px;
    color: #85B7EB;
    white-space: nowrap;
    flex-shrink: 0;
}

    .standings-block__bracket-link:hover {
        color: #B5D4F4;
    }

.standings-block__table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

    .standings-table thead th {
        font-size: 10px;
        font-weight: 500;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 7px 10px;
        border-bottom: 0.5px solid var(--color-border);
        text-align: left;
        white-space: nowrap;
    }

        .standings-table thead th.r {
            text-align: right;
        }

    .standings-table tbody td {
        padding: 7px 10px;
        border-bottom: 0.5px solid var(--color-border);
        color: var(--color-text-primary);
        white-space: nowrap;
    }

    .standings-table tbody tr:last-child td {
        border-bottom: none;
    }

    .standings-table tbody td.r {
        text-align: right;
    }

    .standings-table tbody td.muted {
        color: var(--color-text-secondary);
    }

    .standings-table tbody td.positive {
        color: #16A34A;
    }

    .standings-table tbody td.negative {
        color: var(--color-accent);
    }

    .standings-table tbody a {
        color: var(--color-text-link);
        font-size: 13px;
    }

        .standings-table tbody a:hover {
            text-decoration: underline;
        }

.standings-table__row--seed td {
    background: var(--color-seed-bg);
}

.standings-table__rank {
    width: 36px;
}

.seed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--color-seed-badge-bg);
    color: var(--color-seed-txt);
    font-size: 11px;
    font-weight: 500;
}

.rank-plain {
    font-size: 12px;
    color: var(--color-text-muted);
}

.league-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-secondary);
    background: var(--color-surface-2);
    border-radius: 4px;
    padding: 2px 6px;
    border: 0.5px solid var(--color-border);
}

/* ── 10. Stat leaders ─────────────────────────────────────── */
.stat-leaders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-leader-card {
    padding: 11px 14px;
    border-right: 0.5px solid var(--color-border);
}

    .stat-leader-card:last-child {
        border-right: none;
    }

    .stat-leader-card:nth-child(4n) {
        border-right: none;
    }

    .stat-leader-card:nth-child(n+5) {
        border-top: 0.5px solid var(--color-border);
    }

.stat-leader-card__label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
}

.stat-leader-card__value {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.stat-leader-card__player {
    display: block;
    font-size: 12px;
    color: var(--color-text-link);
    margin-top: 3px;
}

    .stat-leader-card__player:hover {
        text-decoration: underline;
    }

.stat-leader-card__team {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ── 11. Shared components ────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 0.5px solid var(--color-border);
}

.card__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.card__header-link {
    font-size: 12px;
    color: var(--color-text-link);
}

    .card__header-link:hover {
        text-decoration: underline;
    }

.placeholder-panel {
    background: var(--color-surface);
    border: 0.5px dashed var(--color-border-med);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

.site-footer {
    background: var(--color-surface);
    border-top: 0.5px solid var(--color-border);
    padding: 12px 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 100%;
}

    .site-footer span {
        font-size: 12px;
        color: var(--color-text-muted);
        margin-right: auto;
    }

    .site-footer a {
        font-size: 12px;
        color: var(--color-text-secondary);
        transition: color 0.15s;
    }

        .site-footer a:hover {
            color: var(--color-text-primary);
        }

/* ── 12. Utilities ────────────────────────────────────────── */
.r {
    text-align: right;
}

/* ── 13. Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .global-bar__name {
        display: none;
    }

    .context-bar__sport-title,
    .context-bar__sport-sub {
        font-size: 12px;
    }

    .stat-leaders {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-leader-card:nth-child(2n) {
        border-right: none;
    }

    .stat-leader-card:nth-child(n+3) {
        border-top: 0.5px solid var(--color-border);
    }

    .sport-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .standings-table {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .chip {
        font-size: 11px;
        padding: 3px 9px;
    }

    .sport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   NEW THREE-TIER NAV
   ═══════════════════════════════════════════════════════════ */

/* ── Global bar ──────────────────────────────────────────── */
.hsss-global-bar {
    background: #1c2030;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.hsss-global-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
}

.hsss-global-bar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.hsss-global-bar__logo-img {
    height: 28px;
    background: white;
    border-radius: 6px;
    padding: 1px;
}

.hsss-global-bar__logo-text {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.hsss-global-bar__sport-home {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    white-space: nowrap;
}

    .hsss-global-bar__sport-home:hover {
        color: #fff;
    }

.hsss-global-bar__util {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .hsss-global-bar__util a {
        font-size: 12px;
        color: rgba(255,255,255,0.55);
        text-decoration: none;
    }

        .hsss-global-bar__util a:hover {
            color: rgba(255,255,255,0.9);
        }

.hsss-global-bar__login {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
}

    .hsss-global-bar__login:hover {
        background: rgba(255,255,255,0.16) !important;
    }

/* Ensure the login dropdown caret inherits white color */
.hsss-global-bar__util .dropdown-toggle::after {
    border-top-color: rgba(255,255,255,0.7);
}

/* Login dropdown menu — force readable dark text on white bg */
.hsss-global-bar__util .dropdown-menu {
    color: #111827 !important;
}

    .hsss-global-bar__util .dropdown-menu .dropdown-item {
        color: #111827 !important;
    }

        .hsss-global-bar__util .dropdown-menu .dropdown-item:hover,
        .hsss-global-bar__util .dropdown-menu .dropdown-item:focus {
            color: #111827 !important;
            background-color: #f3f4f6;
        }

.hsss-global-bar__divider {
    display: block;
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.hsss-global-bar__toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: auto;
}

/* ── Context bar ─────────────────────────────────────────── */
.hsss-context-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.09);
    height: 48px;
    position: sticky;
    top: 44px;
    z-index: 1020;
}

.hsss-context-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 10px;
}

.hsss-context-bar__sport-id {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.hsss-context-bar__sport-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    line-height: 1.2;
}

.hsss-context-bar__sport-sub {
    font-size: 11px;
    color: #6b7280;
}

.hsss-context-bar__divider {
    width: 1px;
    height: 26px;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin: 0 2px;
}

.hsss-context-bar__spacer {
    flex: 1;
}

.hsss-context-bar__action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    padding: 5px 9px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

    .hsss-context-bar__action:hover {
        background: #f9f9fb;
        color: #111827;
    }

/* ── Context chips ───────────────────────────────────────── */
.hsss-chip-dropdown {
    position: relative;
}

.hsss-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    padding: 4px 12px;
    background: #f9f9fb;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

    .hsss-chip:hover,
    .hsss-chip:focus {
        border-color: rgba(0,0,0,0.2);
        color: #111827;
        background: #f9f9fb;
    }

    .hsss-chip::after {
        display: none;
    }

/* Link-style chip — visually distinct from dropdown chips */
.hsss-chip--link {
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-link, #185FA5);
    border-color: rgba(24,95,165,0.25);
    background: rgba(24,95,165,0.06);
}

    .hsss-chip--link:hover {
        color: #fff;
        background: #185FA5;
        border-color: #185FA5;
    }

    /* Add a small right-arrow after link chips to signal navigation */
    .hsss-chip--link::after {
        content: "→";
        font-size: 11px;
        opacity: 0.6;
        margin-left: 2px;
        display: inline !important;
        border: none !important;
        vertical-align: middle;
    }

/* ── Page body ───────────────────────────────────────────── */
.hsss-page-body {
    min-height: calc(100vh - 44px - 48px - 60px);
}

/* ── Footer ──────────────────────────────────────────────── */
.hsss-footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.09);
    padding: 12px 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 12px;
    color: #9ca3af;
}

    .hsss-footer span {
        margin-right: auto;
    }

    .hsss-footer a {
        color: #6b7280;
        text-decoration: none;
    }

        .hsss-footer a:hover {
            color: #111827;
        }

/* ── Mobile nav drawer ───────────────────────────────────── */
.hsss-mobile-nav {
    display: none;
    flex-direction: column;
    background: #1a2035;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 44px;
    z-index: 1025;
}

    .hsss-mobile-nav a {
        padding: 12px 20px;
        color: rgba(255,255,255,0.85);
        font-size: 14px;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        display: block;
    }

        .hsss-mobile-nav a:hover {
            background: rgba(255,255,255,0.08);
            color: #fff;
        }

.hsss-mobile-nav__divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 4px 0;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hsss-global-bar__logo-text {
        display: none;
    }

    .hsss-global-bar__toggler {
        display: block;
    }

    .hsss-global-bar__util {
        display: none;
    }

    .hsss-context-bar {
        height: auto;
        min-height: 48px;
    }

    .hsss-context-bar__inner {
        flex-wrap: wrap;
        padding: 6px 1rem;
        gap: 6px;
    }

    .hsss-chip {
        font-size: 11px;
        padding: 3px 9px;
    }

    .hsss-mobile-nav.hsss-mobile-nav--open {
        display: flex;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Playoff Bracket — match card styles (legacy restored from Site.css)
   ══════════════════════════════════════════════════════════════════════ */

.mainDiv {
    width: 272px;
    height: 92px;
    background-color: white;
    border-radius: 10px;
    position: relative;
    border: solid 1px black;
    margin-bottom: 4px;
    overflow: hidden;
}

    .mainDiv.mainDiv-doubles {
        height: auto;
        min-height: 92px;
    }

.doublesTeamDiv {
    margin-top: -27px;
    margin-left: 50px;
    z-index: 2;
    padding: 0px;
    line-height: .5;
}

    .doublesTeamDiv span {
        display: block;
        margin: 0;
        padding: 0;
    }

.locationText {
    font-size: 12px;
    padding: 5px;
    color: white;
}

.boxscore-link {
    font-size: 12px;
    color: white;
    margin-right: 5px;
    margin-top: -6px;
}

    .boxscore-link:hover,
    .boxscore-link:focus,
    .boxscore-link:active,
    .boxscore-link:visited {
        color: white;
    }

/* ── Playoff Match Card — row-based layout (pm-*) ─────────────────── */
.pm-team-row {
    display: flex;
    align-items: center;
    height: 36px;
    border-left: 3px solid transparent;
    padding: 0 6px 0 0;
    gap: 4px;
    background-color: white;
}

.pm-winner {
    border-left-color: #1e6b1e;
}

.pm-loser {
    opacity: 0.52;
}

.pm-seed {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background-color: #1a2e6e;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    line-height: 26px;
    margin: 0 3px;
    flex-shrink: 0;
}

.pm-seed-win {
    background-color: #1e6b1e;
}

.pm-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 36px;
}

    .pm-name.pm-name-doubles {
        white-space: normal;
        line-height: 1.3;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

        .pm-name.pm-name-doubles span,
        .pm-name.pm-name-doubles a {
            font-size: 12px !important;
            line-height: 1.3 !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
        }

    .pm-name a, .pm-name text {
        font-size: 12px !important;
        padding: 0 2px !important;
        line-height: 36px;
    }

    .pm-name .doublesTeamDiv {
        margin-top: 0;
        margin-left: 0;
        line-height: 1.3;
    }

.pm-score {
    min-width: 42px;
    height: 30px;
    background-color: #111;
    border-radius: 4px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    padding: 0 4px;
    flex-shrink: 0;
}

.pm-score-win {
    background-color: #1e6b1e;
}

.pm-footer {
    height: 20px;
    background-color: dimgray;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
}

    .pm-footer .boxscore-link {
        font-size: 12px;
        color: white;
    }

    .pm-footer .pm-location-text {
        font-size: 10px;
        color: white;
    }

/* ── Context bar: season chip short/full label ───────────── */
.hsss-chip__season-short {
    display: none;
}

.hsss-chip__season-full {
    display: inline;
}

/* ── Context bar: Full Stats action ─────────────────────── */
.hsss-context-bar__action--stats {
    color: var(--color-text-link, #185FA5);
    border: 1px solid rgba(24,95,165,0.25);
    background: rgba(24,95,165,0.06);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .hsss-context-bar__action--stats:hover {
        background: #185FA5;
        border-color: #185FA5;
        color: #fff;
    }

@media (max-width: 768px) {
    /* Season chip: show short year only */
    .hsss-chip__season-short {
        display: inline;
    }

    .hsss-chip__season-full {
        display: none;
    }

    /* Full Stats: icon only */
    .hsss-context-bar__action-label {
        display: none;
    }

    /* Full Stats button stays visible but compact */
    .hsss-context-bar__action--stats {
        padding: 4px 9px;
    }
}
