:root {
    --primary: #0056b3;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light);
    color: var(--dark);
}

header {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

nav {
    background: #0f172a;
    display: flex;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 5px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

nav a:hover, nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

h2 { 
    border-bottom: 2px solid var(--light); 
    padding-bottom: 12px; 
    margin-top: 0;
    font-size: 1.6rem;
    color: #0f172a;
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
}

th, td { 
    text-align: left; 
    padding: 14px; 
    border-bottom: 1px solid var(--border); 
}

th { 
    background: var(--light); 
    font-weight: 600;
}

input, select, button {
    width: 100%; 
    padding: 12px; 
    margin: 8px 0 16px 0;
    box-sizing: border-box; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px;
    font-size: 0.95rem;
}

button {
    background: var(--primary); 
    color: var(--white); 
    border: none;
    font-weight: 600; 
    cursor: pointer;
}

button:hover { 
    background: #004085; 
}

.team-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-badge {
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.game-log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #cbd5e1;
}

.winner-text { font-weight: 700; color: #0f172a; }
.vs-box { font-size: 0.8rem; color: #64748b; font-weight: 600; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; }
.hero-img { width: 100%; border-radius: 8px; margin-bottom: 20px; object-fit: cover; height: 300px; }

/* Global Horizontal Game Ticker Base */
.ticker-wrap {
    width: 100%;
    overflow-x: auto;
    background-color: #f3f4f6;
    border-bottom: 2px solid #e11d48;
    box-sizing: border-box;
    padding: 16px;
}

.ticker-timeline-container {
    display: flex;
    column-gap: 4px;
    min-width: max-content;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.timeline-date-pillar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #1f2937;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    min-height: 86px;
}

.timeline-date-pillar .day-number {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.timeline-game-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    width: 320px;
    background-color: #ffffff;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
    border-right: 1px solid #e5e7eb;
    color: inherit;
}

.timeline-game-card:hover {
    background-color: #f8fafc;
}

.timeline-playoff-wrapper {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    width: 320px;
}

.timeline-playoff-header {
    background-color: #4b5563;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;
}

.timeline-playoff-wrapper .timeline-game-card {
    width: 100%;
    box-sizing: border-box;
}

/* Shared Game Ticker Layout */
.timeline-game-card.ticker-matchup-card {
    width: 390px;
    min-height: 86px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.ticker-playoff-wrapper {
    width: 390px;
}

.ticker-playoff-wrapper .ticker-matchup-card {
    width: 100%;
    border-right: none;
}

.ticker-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.ticker-team-logo {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.ticker-team-label {
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.ticker-team-name {
    max-width: 120px;
    font-size: 0.72rem;
    line-height: 1.05;
    font-weight: 900;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ticker-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 0 10px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
}

.ticker-status-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.ticker-status-alert {
    color: #b91c1c;
    margin-bottom: 0;
}

.ticker-score-line {
    font-size: 1rem;
    line-height: 1;
    font-weight: 950;
    color: #111827;
    white-space: nowrap;
}

.ticker-division-label {
    max-width: 90px;
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: normal;
}

.timeline-game-card.ticker-matchup-card:hover .ticker-team-name {
    color: #2563eb;
}

@media (max-width: 520px) {
    .timeline-game-card.ticker-matchup-card,
    .ticker-playoff-wrapper {
        width: 330px;
    }

    .ticker-team-name {
        max-width: 92px;
        font-size: 0.66rem;
    }

    .ticker-center {
        min-width: 72px;
        padding: 0 8px;
    }
}

/* League Statistics Page */
.league-stats-page {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 0 25px 30px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.stats-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 15px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: #000000;
    letter-spacing: 0.02em;
}

.stats-share-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0;
}

.stats-main-tabs {
    display: flex;
    gap: 30px;
    align-items: center;
    border-bottom: 1px solid #d7d7d7;
    margin-bottom: 25px;
    overflow-x: auto;
}

.stats-main-tab {
    width: auto;
    margin: 0;
    padding: 18px 0 12px;
    background: transparent;
    color: #111111;
    border: none;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.stats-main-tab:hover,
.stats-main-tab.active {
    background: transparent;
    color: #111111;
    border-bottom-color: #e11d48;
}

.stats-panel { display: none; }
.stats-panel.active { display: block; }

.leader-filter-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(100px, 1fr));
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}

.leader-filter {
    width: 100%;
    margin: 0;
    padding: 18px 10px;
    border: none;
    border-right: 1px solid #d7d7d7;
    border-radius: 0;
    background: #f8fafc;
    color: #111111;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.leader-filter:last-child { border-right: none; }
.leader-filter:hover,
.leader-filter.active {
    background: #ffffff;
    color: #dc2626;
}

.stats-table-shell {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.league-stats-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.league-stats-table thead tr {
    background: #111111;
}

.league-stats-table th {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 15px 14px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 900;
    border-bottom: none;
}

.league-stats-table th:nth-child(2),
.league-stats-table td:nth-child(2) {
    text-align: left;
}

.league-stats-table td {
    padding: 15px 14px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    vertical-align: middle;
}

.league-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-entity-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.stats-entity-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 9999px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.stats-entity-name {
    font-weight: 900;
    color: #111111;
    line-height: 1.15;
}

.stats-entity-sub {
    font-size: 0.72rem;
    color: #666666;
    font-weight: 800;
    margin-top: 2px;
}

.stats-link {
    color: inherit;
    text-decoration: none;
}

.stats-link:hover .stats-entity-name {
    color: #dc2626;
}

.stats-highlight {
    color: #dc2626 !important;
    font-weight: 950;
}

.stats-empty-row td {
    text-align: center !important;
    color: #777777;
    font-style: italic;
    padding: 30px 14px;
}

@media (max-width: 900px) {
    .league-stats-page {
        margin: 25px 12px;
        padding: 0 15px 24px;
    }

    .leader-filter-row {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 560px) {
    .stats-page-header {
        font-size: 1.25rem;
    }

    .stats-main-tabs {
        gap: 22px;
    }

    .leader-filter-row {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

/* Stats Leaders Card Layout */
.stats-filter-select-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 22px 0 25px;
}

.stats-select-box {
    flex: 1;
    max-width: 200px;
    min-width: 200px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stats-select-box span {
    display: block;
    color: #888888;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-select-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    outline: none;
    background: #ffffff;
    color: #111111;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.stats-section-title {
    margin: 18px 0 14px;
    color: #111111;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.stats-section-title.goalie-title {
    margin-top: 28px;
}

.leader-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leader-card {
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    padding: 16px 16px 14px;
    min-height: 230px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.leader-card-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111111;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.leader-card-title span {
    color: #dc2626;
    font-size: 1.05rem;
    line-height: 1;
}

.leader-card-body {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 20px;
    align-items: center;
}

.leader-featured {
    color: #111111;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.leader-initials {
    font-size: 3.7rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.08em;
    color: #000000;
    margin-bottom: 17px;
}

.leader-featured-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
    max-width: 145px;
}

.leader-featured-number {
    color: #333333;
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
    grid-row: span 2;
}

.leader-featured-name {
    color: #111111;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 0.95;
    text-transform: uppercase;
    text-align: left;
}

.leader-featured-team {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: #333333;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.leader-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.leader-rank-row {
    display: grid;
    grid-template-columns: minmax(100px, 160px) minmax(80px, 1fr) 42px;
    gap: 8px;
    align-items: center;
    color: #111111;
    text-decoration: none;
    min-width: 0;
}

.leader-rank-name {
    font-size: 0.66rem;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-rank-bar {
    height: 7px;
    background: #d7d7d7;
    border-radius: 999px;
    overflow: hidden;
}

.leader-rank-bar span {
    display: block;
    height: 100%;
    background: #666666;
    border-radius: 999px;
}

.leader-rank-row:first-child .leader-rank-bar span {
    background: #111111;
}

.leader-rank-value {
    font-size: 0.68rem;
    font-weight: 900;
    text-align: right;
}

.leader-rank-row:hover .leader-rank-name,
.leader-featured:hover .leader-featured-name,
.leader-card-title:hover {
    color: #dc2626;
}

.leader-empty-message {
    color: #777777;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 50px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .leader-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .stats-filter-select-row {
        gap: 12px;
    }

    .stats-select-box {
        max-width: 100%;
        min-width: 100%;
    }

    .leader-card {
        padding: 14px;
    }

    .leader-card-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .leader-initials {
        font-size: 3.1rem;
        margin-bottom: 12px;
    }

    .leader-rank-row {
        grid-template-columns: minmax(90px, 1fr) minmax(70px, 1fr) 38px;
    }
}

/* Stats Players Tab */
.stats-table-filter-row {
    align-items: center;
    margin-top: 20px;
}

.players-stats-table {
    min-width: 980px;
}

.players-stats-table th,
.players-stats-table td {
    white-space: nowrap;
}

.players-stats-table th:nth-child(2),
.players-stats-table td:nth-child(2),
.players-stats-table th:nth-child(3),
.players-stats-table td:nth-child(3) {
    text-align: left;
}

.stats-sort-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
}

.stats-sort-btn::after {
    content: '↕';
    margin-left: 5px;
    color: #8b8b8b;
    font-size: 0.65rem;
}

.stats-player-name {
    color: #111111;
    font-weight: 950;
    text-transform: uppercase;
}

.stats-team-inline-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    color: #111111;
    font-weight: 900;
    text-transform: uppercase;
}

.stats-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px auto 14px;
    width: 100%;
}

.stats-page-btn {
    min-width: 30px;
    height: 30px;
    margin: 0;
    padding: 0 9px;
    background: #ffffff;
    color: #111111;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
}

.stats-page-btn.active,
.stats-page-btn:hover:not(:disabled) {
    background: #6b7280;
    border-color: #6b7280;
    color: #ffffff;
}

.stats-page-btn:disabled {
    background: #f8f8f8;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.stats-legend {
    color: #111111;
    font-size: 0.74rem;
    line-height: 1.8;
    text-transform: none;
    margin-top: 12px;
}

.stats-legend strong {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

/* =========================================================
   SHARED GSBHL SITE BANNER
   Full image, non-clickable, and never cropped.
   ========================================================= */
.site-banner-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f1720;
    border-radius: 14px;
}

.site-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1200px) {
    .site-banner-wrapper {
        height: 190px;
    }
}

@media (max-width: 900px) {
    .site-banner-wrapper {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .site-banner-wrapper {
        height: 120px;
    }
}

/* =========================================================
   Shared GSBHL site chrome: ticker, banner, and navigation
   ========================================================= */
.gsbhl-global-chrome {
    width: 100%;
    background: #0b0f14;
    position: relative;
    z-index: 50;
}

.global-ticker-wrap {
    order: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    background: #111820;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 0;
    scrollbar-width: thin;
}

.global-ticker-wrap .ticker-timeline-container {
    min-height: 74px;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #171d24, #10151b);
    border: 0;
    box-shadow: none;
}

.global-ticker-wrap .timeline-date-pillar {
    background: #10161d;
    color: #f4f7fb;
    border-color: rgba(255,255,255,.1);
}

.global-ticker-wrap .timeline-game-card,
.global-ticker-wrap .ticker-matchup-card {
    background: transparent;
    border-color: rgba(255,255,255,.1);
}

.global-ticker-wrap .timeline-game-card:hover,
.global-ticker-wrap .ticker-matchup-card:hover {
    background: rgba(255,255,255,.055);
}

.global-ticker-wrap .ticker-team-name,
.global-ticker-wrap .card-team-name,
.global-ticker-wrap .ticker-score-line {
    color: #f7f9fc;
}

.global-ticker-wrap .ticker-team-label,
.global-ticker-wrap .ticker-status-label,
.global-ticker-wrap .ticker-division-label,
.global-ticker-wrap .card-division-tag {
    color: #aeb9c7;
}

.site-banner-header {
    width: 100%;
    background: #05080c;
    overflow: hidden;
}

.site-banner-frame {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05080c;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.site-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.shared-main-nav {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow-x: auto;
    background: linear-gradient(180deg, #171b20, #0f1318);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

.shared-main-nav a {
    min-height: 66px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #eef2f7;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .035em;
    border-left: 1px solid rgba(255,255,255,.055);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.shared-main-nav a:last-child { border-right: 1px solid rgba(255,255,255,.055); }
.shared-main-nav a:hover { background: rgba(255,255,255,.065); color: #fff; }
.shared-main-nav a.active {
    color: #fff;
    background: linear-gradient(180deg, #1761b5, #0f4a91);
    box-shadow: inset 0 -3px 0 #58a8ff;
}
.shared-main-nav .admin-nav-link { color: #dce5ef; }
.shared-main-nav .admin-nav-link:hover,
.shared-main-nav .admin-nav-link.active { color: #fff; }

.site-nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #dce5ef;
}
.shared-main-nav a.active .site-nav-icon { color: #fff; }
.shared-main-nav .admin-nav-link .site-nav-icon { color: currentColor; }

/* Stop older page-specific headers/navs from reserving space after shared chrome loads. */
body > .gsbhl-global-chrome + header,
body > .gsbhl-global-chrome + nav,
body > .gsbhl-global-chrome + .ticker-wrap { display: none !important; }

@media (max-width: 900px) {
    .site-banner-frame { height: 240px; }
    .shared-main-nav { justify-content: flex-start; }
    .shared-main-nav a { min-height: 58px; padding: 0 18px; font-size: .78rem; }
    .site-nav-icon { width: 20px; height: 20px; flex-basis: 20px; }
}

@media (max-width: 560px) {
    .site-banner-frame { height: 180px; }
    .global-ticker-wrap .ticker-timeline-container { min-height: 66px; }
    .shared-main-nav a { padding: 0 14px; gap: 7px; }
}

/* ===== Shared GSBHL Footer ===== */
.gsbhl-site-footer {
    width: 100%;
    margin-top: 56px;
    color: #f4f7fb;
    background: linear-gradient(180deg, #151a20 0%, #0b0e12 100%);
    border-top: 4px solid #b51f2a;
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .22);
    box-sizing: border-box;
}

.gsbhl-footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 32px;
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(280px, 1fr) minmax(210px, .75fr);
    gap: 40px;
    align-items: start;
}

.gsbhl-footer-brand h2 {
    margin: 4px 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: .06em;
}

.gsbhl-footer-brand p,
.gsbhl-footer-actions p {
    margin: 0;
    color: #aeb8c4;
    line-height: 1.6;
}

.gsbhl-footer-brand .gsbhl-footer-kicker {
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gsbhl-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 12px 20px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.gsbhl-footer-links a {
    color: #d7dee7;
    text-decoration: none;
    font-weight: 700;
    transition: color .18s ease, transform .18s ease;
}

.gsbhl-footer-links a:hover,
.gsbhl-footer-links a:focus-visible {
    color: #ffffff;
    transform: translateX(3px);
}

.gsbhl-footer-actions {
    padding-left: 26px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.gsbhl-footer-actions p {
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 800;
}

.gsbhl-footer-actions button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 7px;
    color: #ffffff;
    background: #b51f2a;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.gsbhl-footer-actions button:hover,
.gsbhl-footer-actions button:focus-visible {
    background: #d12835;
    transform: translateY(-1px);
}

.gsbhl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
}

.gsbhl-footer-bottom p {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    color: #8995a3;
    font-size: .86rem;
    text-align: center;
}

@media (max-width: 860px) {
    .gsbhl-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .gsbhl-footer-actions {
        grid-column: 1 / -1;
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }
}

@media (max-width: 560px) {
    .gsbhl-footer-inner {
        width: min(100% - 28px, 1180px);
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 32px;
    }

    .gsbhl-footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .gsbhl-footer-actions {
        grid-column: auto;
    }

    .gsbhl-footer-bottom p {
        width: min(100% - 28px, 1180px);
    }
}

/* =========================================================
   Global horizontal overflow containment
   Keeps wide page content inside its own wrapper instead of
   widening the entire website.
   ========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

/* Shared site chrome must never exceed the viewport. */
.gsbhl-global-chrome,
.global-ticker-wrap,
.site-banner-frame,
.shared-main-nav,
.gsbhl-site-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.shared-main-nav {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Allow grid and flex children to shrink normally. */
main,
section,
article,
.container,
.page-container,
.content-container,
.schedule-page,
.standings-page,
.league-stats-page,
.stats-panel,
.stats-content,
.stats-table-shell,
.table-responsive {
    min-width: 0;
    max-width: 100%;
}

/* Wide tables scroll inside their own shell, not the full page. */
.stats-table-shell,
.table-responsive,
.schedule-table-wrapper,
.standings-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Final containment for accidental sub-pixel or fixed-width overflow. */
body {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

/* ===== Simplified footer: no quick links or large GSBHL title ===== */
.gsbhl-footer-brand h2,
.gsbhl-footer-links {
    display: none !important;
}

.gsbhl-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.gsbhl-footer-actions {
    padding-left: 32px;
}

@media (max-width: 860px) {
    .gsbhl-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gsbhl-footer-actions {
        grid-column: auto;
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }
}

/* ===== Footer theme cleanup: remove red accents ===== */
.gsbhl-site-footer {
    border-top: 0;
}

.gsbhl-footer-actions button {
    color: #ffffff;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.24);
}

.gsbhl-footer-actions button:hover,
.gsbhl-footer-actions button:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.42);
}


/* ===== About navigation dropdown ===== */
.site-nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    border-left: 1px solid rgba(255,255,255,.055);
}

.site-nav-dropdown-toggle {
    min-height: 66px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #eef2f7;
    background: transparent;
    border: 0;
    font: inherit;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .035em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-nav-dropdown:hover .site-nav-dropdown-toggle,
.site-nav-dropdown:focus-within .site-nav-dropdown-toggle,
.site-nav-dropdown.is-open .site-nav-dropdown-toggle {
    color: #fff;
    background: rgba(255,255,255,.065);
}

.site-nav-dropdown.active .site-nav-dropdown-toggle {
    color: #fff;
    background: linear-gradient(180deg, #1761b5, #0f4a91);
    box-shadow: inset 0 -3px 0 #58a8ff;
}

.site-nav-chevron {
    width: 11px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.site-nav-dropdown:hover .site-nav-chevron,
.site-nav-dropdown:focus-within .site-nav-chevron,
.site-nav-dropdown.is-open .site-nav-chevron { transform: rotate(180deg); }

.site-nav-dropdown-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 1px);
    left: 0;
    min-width: 210px;
    padding: 7px;
    display: none;
    background: linear-gradient(180deg, #171b20, #0f1318);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 28px rgba(0,0,0,.38);
}

.site-nav-dropdown:hover .site-nav-dropdown-menu,
.site-nav-dropdown:focus-within .site-nav-dropdown-menu,
.site-nav-dropdown.is-open .site-nav-dropdown-menu { display: grid; }

.shared-main-nav .site-nav-dropdown-menu a {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    justify-content: flex-start;
    border: 0;
    border-radius: 5px;
    font-size: .78rem;
}

.shared-main-nav .site-nav-dropdown-menu a:last-child { border-right: 0; }

@media (max-width: 900px) {
    .site-nav-dropdown-toggle { min-height: 58px; padding: 0 18px; font-size: .78rem; }
}

@media (max-width: 560px) {
    .site-nav-dropdown-toggle { padding: 0 14px; gap: 7px; }
    .site-nav-dropdown-menu { min-width: 190px; }
}

/* ===== Placeholder About pages ===== */
.about-page-main {
    width: min(1120px, calc(100% - 32px));
    margin: 38px auto 64px;
}

.about-page-panel {
    padding: clamp(24px, 4vw, 46px);
    color: #eef2f7;
    background: linear-gradient(180deg, #171c22, #101419);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.about-page-panel h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.about-page-panel p { margin: 0; color: #b9c3cf; line-height: 1.7; }
.about-page-status {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    color: #d9eaff;
    background: rgba(23,97,181,.22);
    border: 1px solid rgba(88,168,255,.35);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ===== About dropdown clipping fix =====
   The dropdown must be allowed to extend below the navigation bar. */
.gsbhl-global-chrome,
.shared-main-nav {
    position: relative;
    overflow: visible;
}

.gsbhl-global-chrome {
    z-index: 1000;
}

.shared-main-nav {
    z-index: 1001;
}

.site-nav-dropdown,
.site-nav-dropdown-menu {
    z-index: 1002;
}

/* Prevent the navigation itself from widening the page on smaller screens. */
@media (max-width: 900px) {
    .shared-main-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
