/* ── Dominican ATHLETICS RECORD BOOK — Women's Lacrosse ── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #333; background: #f5f5f5; }
a { color: #1a1a1a; text-decoration: none; }

/* ── HEADER ── */
.site-header { background: #1a1a1a; color: #fff; padding: 14px 20px; }
.site-header-inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; }
.logo { height: 52px; width: auto; flex-shrink: 0; }
.school { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #FFD200; }
.sport-title { font-size: 22px; font-weight: 700; line-height: 1.1; }
.sub { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ── NAV ── */
.nav-tabs { background: #1a1a1a; border-bottom: 3px solid #FFD200; overflow-x: auto; white-space: nowrap; }
.nav-tabs-inner { display: inline-flex; max-width: 1200px; width: 100%; }
.nav-tab { display: inline-block; padding: 10px 14px; font-size: 12px; font-weight: 600; color: #ccc; border-bottom: 3px solid transparent; margin-bottom: -3px; text-transform: uppercase; letter-spacing: .5px; transition: color .15s; }
.nav-tab:hover { color: #fff; }
.nav-tab.active { color: #FFD200; border-bottom-color: #FFD200; }
.nav-tab-return { margin-left: auto; color: #888; font-size: 11px; }
.nav-tab-return:hover { color: #FFD200; }

/* ── PAGE LAYOUT ── */
.page-title-bar { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 20px 0; }
.page-title-bar .page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-title-bar h1 { font-size: 26px; font-weight: 700; }
.page-title-bar p { color: #666; font-size: 13px; margin-top: 4px; }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* ── ERA BADGES ── */
.era-badge { display: inline-flex; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; margin-left: 5px; vertical-align: middle; line-height: 16px; }
.era-club  { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.era-ncaa  { background: #fff8e1; color: #b8860b; border: 1px solid #FFD200; }

/* ── ERA NOTICE ── */
.era-notice { background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px; padding: 10px 14px; font-size: 12px; color: #6d4c0a; margin-bottom: 16px; }
.era-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.era-block { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px; }
.era-block-club  { border-left: 4px solid #90caf9; }
.era-block-ncaa  { border-left: 4px solid #FFD200; }
.era-label { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.era-block p { font-size: 12px; color: #555; line-height: 1.5; }
@media(max-width: 680px) { .era-explainer { grid-template-columns: 1fr; } }

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px; text-align: center; }
.stat-card-num { font-size: 28px; font-weight: 700; color: #1a1a1a; }
.stat-card-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ── INDEX GRID ── */
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.index-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 18px; display: block; transition: box-shadow .15s, border-color .15s; }
.index-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); border-color: #FFD200; }
.index-card .tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #888; display: block; margin-bottom: 6px; }
.index-card h3 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.index-card p { font-size: 12px; color: #666; line-height: 1.5; }

/* ── SECTION HEADERS ── */
.section-header { background: #1a1a1a; border-left: 4px solid #FFD200; padding: 10px 14px; margin: 24px 0 0 0; display: flex; align-items: baseline; gap: 10px; }
.section-header h2 { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .8px; }
.section-note { font-size: 11px; color: #aaa; }
.cat-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #888; margin: 28px 0 0 0; padding-bottom: 4px; border-bottom: 1px solid #e0e0e0; }

/* ── RECORD TABLES ── */
.record-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.record-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e0e0e0; font-size: 13px; }
.record-table thead { background: #2d2d2d; }
.record-table th { padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.record-table td { padding: 7px 12px; border-bottom: 1px solid #f0f0f0; color: #333; }
.record-table tbody tr:nth-child(even) td { background: #f9f9f9; }
.record-table tbody tr:hover td { background: #fff8e1; }
.record-table tfoot td { padding: 6px 12px; font-size: 11px; color: #888; background: #fafafa; border-top: 1px solid #e0e0e0; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #FFD200; color: #1a1a1a; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.dim { color: #888 !important; font-size: 12px; }

/* ── TIE DROPDOWN ── */
.tie-dropdown summary { cursor: pointer; list-style: none; }
.tie-dropdown summary::-webkit-details-marker { display: none; }
.tie-list { margin: 4px 0 0 12px; padding: 0; list-style: none; font-size: 12px; color: #555; }
.tie-list li { padding: 1px 0; }

/* ── PLAYER PROFILES ── */
.profiles-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; max-width: 1200px; margin: 20px auto; padding: 0 20px; align-items: start; }
.player-nav { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; position: sticky; top: 10px; max-height: 90vh; overflow-y: auto; }
.player-search { width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; margin-bottom: 10px; font-family: inherit; }
.player-nav-letter { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #888; padding: 6px 4px 2px; margin-top: 4px; }
.player-nav-link { display: block; font-size: 12px; padding: 3px 4px; border-radius: 3px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-nav-link:hover { background: #fff8e1; }
.active-player { background: #FFD200 !important; color: #1a1a1a; font-weight: 600; }
.player-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.player-card-header { background: #1a1a1a; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.player-card-header h2 { font-size: 17px; font-weight: 700; color: #fff; }
.player-card-body { padding: 14px 16px; }
.player-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.player-stat-box { background: #f9f9f9; border: 1px solid #efefef; border-radius: 4px; padding: 10px 8px; text-align: center; }
.psb-val { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.psb-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.marks-label { grid-column: 1 / -1; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #888; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; }
.mark-legend { grid-column: 1 / -1; display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.marks-grid  { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #888; }
.legend-dot  { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.mark-chip   { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #ddd; border-radius: 3px; padding: 4px 10px; font-size: 12px; }
.mark-chip .mc-rank { background: #FFD200; color: #1A1A1A; font-weight: 700; font-size: 10px; padding: 1px 5px; border-radius: 2px; }
.mark-chip .mc-cat  { color: #1A1A1A; font-weight: 600; }
.mark-chip .mc-val  { color: #555; }
.mark-chip .mc-type { font-size: 10px; color: #aaa; }
.career-chip { border-color: #FFD200; background: #fffbea; }
.season-chip { border-color: #82e0aa; background: #f1faf4; }
.game-chip   { border-color: #85c1e9; background: #f0f7ff; }

/* ── SEASON TABLE (profiles) ── */
.player-season-table { width:100%; border-collapse:collapse; margin:0 0 18px 0; font-size:12px; }
.player-season-table th { background:#2d2d2d; color:#fff; padding:5px 8px; text-align:center; font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:.5px; white-space:nowrap; }
.player-season-table th:first-child { text-align:left; }
.player-season-table td { padding:5px 8px; text-align:center; border-bottom:1px solid #f0f0f0; color:#444; white-space:nowrap; }
.player-season-table td:first-child { text-align:left; font-weight:600; color:#1a1a1a; }
.player-season-table tbody tr:last-child td { border-bottom:none; background:#f5f5f5; font-weight:700; color:#1a1a1a; border-top:2px solid #ddd; }
.player-season-wrap { margin:0 0 18px 0; overflow-x:auto; }
.player-season-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#888; margin:0 0 6px 0; }

/* ── FOOTER ── */
.site-footer { background: #1a1a1a; color: #888; padding: 16px 20px; text-align: center; font-size: 12px; margin-top: 40px; }
.site-footer p + p { margin-top: 4px; }
@media(max-width:600px) { .profiles-layout { grid-template-columns: 1fr; }
.player-nav { position: static; max-height: 200px; }
}
