:root {
  --dgl-blue-950: #102f24;
  --dgl-blue-900: #008854;
  --dgl-blue-800: #007246;
  --dgl-blue-700: #003399;
  --dgl-blue-100: #e5f5ee;
  --dgl-blue-50: #f3fbf7;
  --green-950: #062c22;
  --green-900: #0a3b2e;
  --green-800: #0f513f;
  --green-700: #14634d;
  --green-100: #e6f4ef;
  --sand-50: #fbfaf5;
  --sand-100: #f4f0e6;
  --line: #d8e0d9;
  --text: #172033;
  --muted: #657186;
  --accent: #003399;
  --danger: #b83442;
  --good: #13945b;
  --warn: #d08b16;
  --card: #ffffff;
  --shadow: 0 16px 42px rgba(6, 30, 74, 0.16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(215,166,47,.20), transparent 28%),
    linear-gradient(180deg, var(--dgl-blue-950) 0, var(--dgl-blue-900) 310px, #eef3f8 310px, #f7f9fc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: var(--dgl-blue-800); text-decoration: none; font-weight: 750; }
a:hover { color: var(--dgl-blue-950); text-decoration: underline; }
.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(215,166,47,.28), transparent 24%),
    linear-gradient(135deg, var(--dgl-blue-950), var(--dgl-blue-800));
  color: white;
  padding: 42px 22px 70px;
  border-bottom: 5px solid var(--accent);
}
.wrap { max-width: 1240px; margin: 0 auto; }
.top-nav { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.gcbo-logo {
  width: clamp(76px, 13vw, 116px);
  height: auto;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.brand-copy { min-width: 0; }
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  font-weight: 900;
  text-decoration: none;
}
.home-link:hover { color: white; background: rgba(255,255,255,.22); text-decoration: none; }
.eyebrow { color: #cfdcf3; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 850; margin-bottom: 8px; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
h2 { margin: 0 0 14px; font-size: 1.25rem; color: var(--dgl-blue-950); }
.hero p { margin: 12px 0 0; color: #e7eefc; max-width: 790px; }
main { padding: 0 22px 44px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -48px 0 22px; }
.stat-card, .card, .filter-step {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(214,222,236,.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.stat-card { padding: 18px; }
.stat-label { color: var(--muted); font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { margin-top: 4px; font-size: 1.75rem; font-weight: 900; color: var(--dgl-blue-950); line-height: 1.1; }
.stat-note { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.card { padding: 20px; margin-top: 18px; }
.section-title { color: var(--dgl-blue-950); font-size: 1.35rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; margin: 34px 4px 10px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.source { color: var(--muted); font-size: .93rem; }
.filter-grid { display: grid; grid-template-columns: .9fr 1.7fr .8fr; gap: 14px; margin-top: -44px; margin-bottom: 32px; }
.filter-grid + .grid { margin-top: 0; }
.filter-step { padding: 18px; min-height: 152px; }
.step-head { display: flex; align-items: center; gap: 10px; color: var(--dgl-blue-950); font-weight: 900; margin-bottom: 12px; }
.step-no { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--dgl-blue-900); color: white; font-weight: 950; }
.select-fake, .filter-chip, .year-select, .primary-action {
  border: 1px solid #cbd7e8;
  border-radius: 999px;
  padding: 9px 13px;
  background: white;
  font-weight: 800;
  color: var(--dgl-blue-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.year-select { width: 100%; max-width: 190px; appearance: auto; }
.filter-chip.active, .primary-action { background: var(--dgl-blue-900); color: white; border-color: var(--dgl-blue-900); }
.primary-action { width: 100%; justify-content: center; margin-top: 18px; min-height: 44px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .pill-disabled, .mini-badge, .score-link, .score-empty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--dgl-blue-100);
  color: var(--dgl-blue-900);
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
}
.pill-disabled, .score-empty-badge { background: #f0f2f5; color: #8a938f; font-weight: 700; }
.mini-badge { padding: 4px 8px; font-size: .76rem; background: #eef3fb; }
.mini-badge.good { background: #e1f6ec; color: var(--good); border-color: #bdebd5; }
.mini-badge.warn { background: #fff1df; color: #9a5d04; border-color: #f2d1a5; }
.mini-badge.danger { background: #ffe5e9; color: var(--danger); border-color: #f2bdc5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; background: var(--dgl-blue-900); color: white; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; z-index: 1; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--dgl-blue-50); }
tbody tr:hover { background: #eef5ff; }
tbody tr.burg-row { background: #fff7df; box-shadow: inset 5px 0 0 var(--accent); }
tbody tr.burg-row:hover { background: #fff1c8; }
tbody tr.active-row { outline: 2px solid var(--good); outline-offset: -2px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.club { font-weight: 900; color: var(--dgl-blue-950); }
.club-link { color: var(--dgl-blue-950); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rank-badge { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--dgl-blue-900); color: white; font-weight: 950; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.rank-badge.podium { background: var(--good); }
.rank-badge.low { background: var(--danger); }
.score-link { min-width: 46px; padding: 6px 11px; background: var(--dgl-blue-900); color: white; border-color: var(--dgl-blue-900); }
.score-link:hover { color: white; background: var(--dgl-blue-700); text-decoration: none; }
.score-empty { color: #a1aaa6; }
.back { display: inline-flex; margin-bottom: 16px; align-items: center; gap: 8px; }
.hint { color: var(--muted); margin: 0; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 14px; background: #fbfcfb; color: var(--muted); }
.team-list { display: grid; gap: 12px; }
.team-card { display: grid; grid-template-columns: 56px 1.5fr 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--dgl-blue-900); color: white; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 22px rgba(6,30,74,.12); }
.team-card:nth-child(even) { background: #eef3fb; color: var(--dgl-blue-950); }
.team-card:nth-child(even) .team-title, .team-card:nth-child(even) .metric strong { color: var(--dgl-blue-950); }
.team-card:nth-child(even) .team-sub, .team-card:nth-child(even) .metric span { color: #5b6880; }
.team-card .rank-badge { background: white; color: var(--dgl-blue-900); }
.team-card:nth-child(even) .rank-badge { background: var(--dgl-blue-900); color: white; }
.team-main { min-width: 0; }
.team-title { color: white; font-size: 1.05rem; font-weight: 950; }
.team-sub { color: #d6e1f4; font-size: .91rem; margin-top: 2px; }
.team-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.team-metrics { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.metric { text-align: right; min-width: 70px; }
.metric span { display: block; color: #cbd7eb; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; color: white; font-size: 1.08rem; font-weight: 950; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.team-card .score-link { background: white; color: var(--dgl-blue-900); border-color: rgba(255,255,255,.85); }
.team-card:nth-child(even) .score-link { background: var(--dgl-blue-900); color: white; border-color: var(--dgl-blue-900); }
.team-card .score-link:hover { background: var(--accent); color: var(--dgl-blue-950); border-color: var(--accent); }
.team-card[hidden] { display: none; }
.player-name { font-weight: 900; color: var(--dgl-blue-950); }
.scorecard { min-width: 1120px; }
.scorecard th, .scorecard td { text-align: center; padding: 8px 9px; }
.scorecard th:first-child, .scorecard td:first-child {
  text-align: left;
  min-width: 205px;
  max-width: 205px;
  position: sticky;
  left: 0;
  z-index: 4;
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: 10px 0 14px -12px rgba(16,47,36,.55);
}
.scorecard th:first-child { background: var(--dgl-blue-900); }
.scorecard tbody td:first-child { background: #ffffff; }
.scorecard tbody tr:nth-child(even) td:first-child { background: var(--dgl-blue-50); }
.scorecard tbody tr.burg-row td:first-child { background: #fff7df; }
.scorecard .par-row th:first-child { background: #dfe8f5; color: var(--dgl-blue-950); z-index: 5; }
.scorecard .summary { background: #fff5d8; font-weight: 900; color: #5f4100; }
.scorecard .par-row th { background: #dfe8f5; color: var(--dgl-blue-950); font-size: .78rem; }
.scorecard .used { color: var(--dgl-blue-950); font-weight: 800; }
.scorecard .strike { color: var(--muted); opacity: .78; }
.scorecard .birdie { background: #dff7ed; color: #087647; font-weight: 950; }
.scorecard .par { background: #f7fafc; }
.scorecard .bogey { background: #fff3d8; color: #8a5300; font-weight: 850; }
.scorecard .double { background: #ffe2e7; color: #a82032; font-weight: 900; }
.scorecard .no-points { background: #eef1f3; color: #6b7280; font-weight: 900; }
.scorecard .stableford-1 { background: #fff3d8; color: #8a5300; font-weight: 850; }
.scorecard .stableford-2 { background: #f7fafc; color: var(--dgl-blue-950); font-weight: 850; }
.scorecard .stableford-3 { background: #dff7ed; color: #087647; font-weight: 950; }
.scorecard .stableford-4 { background: #c8f1df; color: #046238; font-weight: 950; }
.cell-points { display: block; margin-top: 2px; font-size: .72rem; line-height: 1; opacity: .92; font-weight: 900; }
.scorecard-wrap { scrollbar-gutter: stable; padding-bottom: 6px; }
.scorecard-wrap::after { content: 'horizontal scrollen →'; display: block; margin: 8px 0 0 4px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #fff4d8; color: #73530d; font-size: .8rem; font-weight: 850; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); }
footer { color: var(--muted); font-size: .9rem; margin-top: 24px; }
@media (max-width: 980px) {
  .filter-grid { grid-template-columns: 1fr; margin-top: -34px; }
  .team-card { grid-template-columns: 46px 1fr; }
  .team-metrics, .team-actions { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -32px; }
  th, td { padding: 10px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .brand-lockup { align-items: flex-start; gap: 12px; }
  .gcbo-logo { width: 74px; border-radius: 20px; padding: 8px; }
  main { padding-left: 14px; padding-right: 14px; }
  .team-card { grid-template-columns: 1fr; }
  .team-metrics, .team-actions { grid-column: auto; justify-content: flex-start; }
  .metric { text-align: left; }
  .scorecard th:first-child, .scorecard td:first-child { min-width: 168px; max-width: 168px; }
  .scorecard { min-width: 1050px; }
}
