/* ============================================
   D1 Softball - The Villages
   Matches approved v2 mockup design
   ============================================ */

:root {
    --navy: #1B2A4A;
    --navy-deep: #141F38;
    --navy-mid: #243556;
    --blue-link: #2A5298;
    --red: #E8524F;
    --red-dark: #C43E3B;
    --white: #FFFFFF;
    --off-white: #F5F6F8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
img { max-width:100%; display:block; }
ul { list-style: none; }
.container { max-width:1160px; margin:0 auto; padding:0 24px; }

/* ---------- Utility Bar ---------- */
.utility-bar {
    background: var(--navy-deep);
    padding: 8px 0;
    font-size: 0.8rem;
}
.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.utility-left {
    display: flex;
    gap: 24px;
}
.utility-left a {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    transition: color .2s;
}
.utility-left a:hover { color: #fff; }

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy-mid);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    transition: background .2s;
}
.btn-login:hover { background: var(--navy); color: #fff !important; }

/* ---------- Header ---------- */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; }
/* Fallback if logo.png missing */
.logo-img[src*="logo.png"]::after {
    content: 'D1';
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }

.dd-arrow { font-size: 0.6rem; margin-left: 2px; opacity: 0.7; }

.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    padding: 6px 0;
    z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 18px;
    font-size: 0.88rem;
    color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--blue-link); }

/* Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.9);
    transition: transform .3s, opacity .3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-msg {
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.flash-success { background: #DEF7EC; color: #03543F; }
.flash-error { background: #FDE8E8; color: #9B1C1C; }
.flash-info { background: #E1EFFE; color: #1E429F; }

/* ==========================================
   HOMEPAGE
   ========================================== */

/* ---------- Hero Editorial ---------- */
.hero-editorial {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 40px 0 44px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Editorial (left) */
.editorial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.editorial-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 3px;
}
.editorial-date {
    font-size: 0.88rem;
    color: var(--gray-500);
}
.editorial-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.editorial-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 16px;
}
.editorial-body p { margin-bottom: 12px; }
.editorial-body p:last-child { margin-bottom: 0; }
.editorial-byline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}
.pinned-post {
    display: flex;
    gap: 10px;
    background: #FFFFF0;
    border: 1px solid #F0E68C;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.pin-icon { font-size: 0.9rem; flex-shrink: 0; }
.pinned-body { color: var(--gray-600); margin-top: 2px; }
.editorial-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}
.editorial-nav-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 4px 0;
}
.editorial-nav-btn:hover { text-decoration: underline; }
.editorial-nav-btn.disabled { color: var(--gray-300); cursor: default; }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    border: none;
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
    border-color: var(--gray-500);
    color: var(--gray-900);
}

/* Coming Up Sidebar (right) */
.coming-up {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.coming-up-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-100);
}
.upcoming-date-header {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 20px 6px;
}
.upcoming-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
    transition: background .15s;
}
.upcoming-row:hover { background: var(--gray-50); }
.upcoming-time {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-500);
    min-width: 62px;
}
.upcoming-matchup {
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
}
.upcoming-field {
    font-size: 0.78rem;
    color: var(--gray-400);
}
.coming-up-more {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    border-top: none;
}
.coming-up-more:hover { color: var(--gray-800); }

/* ---------- Quick Access Cards ---------- */
.quick-access {
    padding: 36px 0 32px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.quick-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    color: var(--gray-800);
}
.quick-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--blue-link);
    color: var(--gray-800);
}
.card-icon {
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
.card-icon svg { stroke: var(--navy); }
.quick-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    color: var(--navy);
}
.quick-card p {
    font-size: 0.84rem;
    color: var(--gray-500);
}

/* ---------- Bottom: Standings + Leaders ---------- */
.home-bottom {
    padding: 0 0 56px;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.home-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}
.standings-table { width:100%; border-collapse: collapse; font-size: 0.9rem; }
.standings-table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
    padding: 6px 10px;
    text-align: left;
}
.standings-table thead th:not(:first-child) { text-align: center; }
.standings-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--gray-100);
}
.standings-table tbody td:not(:first-child) { text-align: center; }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody td a { font-weight: 600; color: var(--blue-link); }
.standings-table tbody td a:hover { color: var(--red); }

.leader-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}
.leader-row:last-child { border-bottom: none; }
.leader-cat {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--gray-400);
    width: 70px;
    flex-shrink: 0;
}
.leader-name { flex: 1; font-weight: 600; color: var(--gray-800); }
.leader-val { font-weight: 700; color: var(--red); min-width: 50px; text-align: right; }

.more-link {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-link);
}
.more-link:hover { color: var(--red); }

.muted { color: var(--gray-400); font-style: italic; font-size: 0.9rem; }

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumb {
    background: #f0f1f3;
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid #e2e4e8;
    position: sticky;
    top: 68px;
    z-index: 99;
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep {
    color: var(--gray-400);
    margin: 0 8px;
    font-size: 0.7em;
}
.breadcrumb .current {
    color: var(--gray-500);
    font-weight: 400;
}
.breadcrumb-back {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    margin-right: 14px;
    padding-right: 14px;
    border-right: 1px solid #ccc;
}
.breadcrumb-back:hover { text-decoration: underline; }

/* ==========================================
   STUB / GENERIC PAGES
   ========================================== */
.page-header {
    background: var(--navy);
    color: #fff;
    padding: 32px 0;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.page-body { padding: 36px 0 56px; }
.content-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.75);
    padding-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}
.footer-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.footer-about p { font-size: 0.88rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.84rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
    font-size: 0.78rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .coming-up { order: -1; }
    .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 12px 20px 20px;
        border-bottom: 3px solid var(--red);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 8px; width: 100%; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        background: var(--navy-mid);
    }
    .dropdown-menu a { color: rgba(255,255,255,0.7); }
    .dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.05); }

    .utility-left { gap: 14px; }
    .utility-left a { font-size: 0.72rem; }

    .editorial-headline { font-size: 1.5rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 480px) {
    .utility-left { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   SCHEDULE PAGE
   ========================================== */
.schedule-day {
    margin-bottom: 28px;
}
.schedule-date-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    padding: 10px 16px;
    background: var(--gray-100);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 4px;
}
.schedule-row {
    display: grid;
    grid-template-columns: 80px 80px 1fr 80px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}
.schedule-row.completed { color: var(--gray-500); }
.sched-time { font-weight: 600; color: var(--gray-600); font-size: 0.85rem; }
.sched-field { font-size: 0.82rem; color: var(--gray-400); }
.sched-matchup { font-weight: 600; }
.sched-at { color: var(--gray-400); margin: 0 6px; font-weight: 400; }
.sched-score { text-align: right; font-weight: 700; font-size: 0.88rem; }
.status-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 3px;
}
.status-badge.postponed { background: #FEF3C7; color: #92400E; }
.status-badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* ==========================================
   STANDINGS PAGE
   ========================================== */
.standings-table.full { font-size: 0.95rem; }
.standings-table.full th,
.standings-table.full td { padding: 10px 14px; }
.standings-table .rank {
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    width: 36px;
}

/* ==========================================
   STATISTICS PAGE
   ========================================== */
.table-scroll { overflow-x: auto; }
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}
.stats-table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
    padding: 8px 10px;
    text-align: center;
    position: sticky;
    top: 0;
    background: var(--white);
}
.stats-table thead th:first-child { text-align: left; }
.stats-table tbody td,
.stats-table tfoot td {
    padding: 7px 10px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}
.stats-table tbody td:first-child,
.stats-table tfoot td:first-child { text-align: left; }
.stats-table .player-name { font-weight: 600; color: var(--gray-800); }
.sticky-col {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 1;
}

/* ==========================================
   TEAMS PAGE
   ========================================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    color: var(--gray-800);
}
.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--blue-link);
    color: var(--gray-800);
}
.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--navy);
    margin-bottom: 6px;
}
.team-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
}
.team-record {
    font-weight: 700;
    color: var(--navy);
}

/* ==========================================
   TEAM DETAIL
   ========================================== */
.team-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}
.team-roster-panel { overflow: hidden; }
.team-roster-panel .table-scroll { overflow-x: hidden; }
.team-results-panel { overflow: visible; }

.results-scroll {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.results-scroll::-webkit-scrollbar { display: none; }
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    white-space: nowrap;
}
.results-table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
    padding: 6px 6px;
    text-align: left;
    position: sticky;
    top: 0;
    background: var(--white);
}
.results-table tbody td {
    padding: 7px 6px;
    border-bottom: 1px solid var(--gray-100);
}
.results-table tbody tr:hover { background: rgba(42,82,152,0.06); }

.result-W { color: #059669; font-weight: 700; }
.result-L { color: #DC2626; font-weight: 700; }
.result-T { color: #D97706; font-weight: 700; }

@media (max-width: 900px) {
    .team-layout { grid-template-columns: 1fr; }
    .results-scroll { max-height: 400px; }
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.gallery-caption {
    padding: 10px 14px;
}
.gallery-caption p { font-size: 0.88rem; color: var(--gray-700); }
.gallery-credit { font-size: 0.78rem; color: var(--gray-400); }

/* ==========================================
   CONTENT / PROSE PAGES
   ========================================== */
.prose h2.section-title { margin-top: 28px; }
.prose h2.section-title:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }

.honoree {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.honoree:last-child { border-bottom: none; }
.honoree h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
}
.honoree-years { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 4px; }

/* ==========================================
   FORMS
   ========================================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue-link);
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}

/* ==========================================
   DIVISION TITLES
   ========================================== */
.division-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}
.home-division-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin: 12px 0 6px;
}
.home-division-label:first-of-type { margin-top: 0; }

/* Standings colors */
.positive { color: #059669; }
.negative { color: #DC2626; }

/* ==========================================
   STANDINGS LAYOUT (standings + leaders)
   ========================================== */
.standings-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}

.leaders-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--navy);
    text-align: center;
    margin-bottom: 10px;
}

.leaders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.leaders-table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
    padding: 5px 8px;
    text-align: left;
}
.leaders-table thead th:nth-child(n+3) { text-align: center; }
.leaders-table tbody td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--gray-100);
}
.leaders-table tbody td:nth-child(n+3) { text-align: center; }
.leaders-table tbody tr:hover { background: rgba(42,82,152,0.06); }
.leaders-table .player-link { font-weight: 600; color: var(--blue-link); }
.leaders-table .player-link:hover { color: var(--red); }

.hr-val { font-weight: 700; color: var(--red); }

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

/* ==========================================
   SEASON SELECTOR
   ========================================== */
.season-selector {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.season-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.season-form label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}
.season-form select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
}
.season-form select:focus {
    outline: none;
    border-color: var(--blue-link);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-bar {
    margin-bottom: 20px;
}
.search-bar form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-input {
    max-width: 320px;
}
.search-result-count {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* ==========================================
   LINESCORE TABLE (Box Scores)
   ========================================== */
.linescore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.linescore-table th, .linescore-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-200);
}
.linescore-table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-200);
}
.ls-team {
    text-align: left;
    font-weight: 600;
    min-width: 140px;
}
.ls-team a { color: var(--navy); }
.ls-team a:hover { color: var(--red); }
.ls-inn { text-align: center; min-width: 32px; }
.ls-total {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    min-width: 40px;
    border-left: 2px solid var(--gray-200);
}

/* Boxscore stats table tweaks */
.boxscore-stats .player-name a { color: var(--gray-800); }
.boxscore-stats .player-name a:hover { color: var(--red); }

/* ==========================================
   CAREER TOTALS ROW
   ========================================== */
.career-totals td {
    border-top: 2px solid var(--gray-300);
    font-weight: 600;
    background: var(--gray-50);
}

/* ==========================================
   SCORE LINKS (Schedule)
   ========================================== */
.score-link {
    font-weight: 700;
    color: var(--blue-link);
}
.score-link:hover { color: var(--red); }

/* ==========================================
   PLAYER LINKS
   ========================================== */
.stats-table .player-name a { color: var(--gray-800); }
.stats-table .player-name a:hover { color: var(--red); }

/* ==========================================
   SORT HINT / ORIGINAL ORDER
   ========================================== */
.sort-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.restore-order {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}
.restore-order:hover {
    color: var(--red);
}

/* ==========================================
   SORTABLE TABLE HEADERS
   ========================================== */
.stats-table th.sortable,
.standings-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background .15s;
}
.stats-table th.sortable:hover { background: var(--navy-mid); }
.stats-table thead th {
    background: var(--navy);
    color: #fff;
}
.stats-table th.sortable::after {
    content: " \2195";
    opacity: 0.4;
    font-size: 0.75em;
}
.stats-table th.sort-asc::after {
    content: " \2191";
    opacity: 1;
}
.stats-table th.sort-desc::after {
    content: " \2193";
    opacity: 1;
}

/* ==========================================
   ZEBRA STRIPING
   ========================================== */
.stats-table tbody tr.row-even,
.roster-table tbody tr.row-even,
.team-sched-table tbody tr.row-even { background: rgba(0,0,0,0.02); }
.stats-table tbody tr.row-odd,
.roster-table tbody tr.row-odd,
.team-sched-table tbody tr.row-odd { background: var(--white); }
.stats-table tbody tr:hover,
.roster-table tbody tr:hover,
.team-sched-table tbody tr:hover { background: rgba(42,82,152,0.08) !important; }

/* ==========================================
   PA FILTER BUTTONS
   ========================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}
.pa-filter-btn {
    padding: 5px 14px;
    border: 1.5px solid var(--gray-300);
    background: transparent;
    color: var(--gray-600);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all .2s;
}
.pa-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.pa-filter-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ==========================================
   OBP HIGHLIGHT
   ========================================== */
.obp-col { font-weight: 700; color: #059669; }

/* ==========================================
   CONVBA HIGHLIGHT
   ========================================== */
.convba-col { font-weight: 700; color: #7C3AED; }

/* ==========================================
   DRAFT ROUND STRIPING (metrics page)
   ========================================== */
.draft-even { background: rgba(42,82,152,0.06) !important; }
.draft-odd { background: var(--white) !important; }

/* ==========================================
   ALL-STAR TEAM LABELS
   ========================================== */
.allstar-team-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 0;
    margin: 20px 0 10px;
    border-radius: 6px;
}
.allstar-team-label.first-team { color: #B8860B; background: rgba(184,134,11,0.08); }
.allstar-team-label.second-team { color: #708090; background: rgba(112,128,144,0.08); }
.allstar-team-label.third-team { color: #CD7F32; background: rgba(205,127,50,0.08); }

.rank-col { width: 36px; text-align: center; color: var(--gray-400); font-weight: 600; }

/* ==========================================
   SUB ROWS (team detail batting)
   ========================================== */
.sub-row { background: var(--gray-50) !important; font-style: italic; color: var(--gray-500); }
.sub-row td { border-top: 1px solid var(--gray-200); }

/* ==========================================
   ROSTER PLAYER LINKS
   ========================================== */
.roster-table .player-link { color: var(--blue-link); font-weight: 600; }
.roster-table .player-link:hover { color: var(--red); }

/* ==========================================
   CAREER STAT CARDS (Player Detail)
   ========================================== */
.stat-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
}
.stat-card {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 14px;
    text-align: center;
    min-width: 72px;
    flex: 0 0 auto;
}
.stat-val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-top: 3px;
}

@media (max-width: 480px) {
    .stat-card { min-width: 56px; padding: 8px 8px; }
    .stat-val { font-size: 0.95rem; }
}

/* ==========================================
   RESPONSIVE (inner pages)
   ========================================== */
@media (max-width: 768px) {
    .schedule-row { grid-template-columns: 70px 70px 1fr 60px; font-size: 0.82rem; }
    .teams-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .schedule-row { grid-template-columns: 1fr; gap: 2px; }
    .sched-score { text-align: left; }
    .gallery-grid { grid-template-columns: 1fr; }
}
