/* ═══════════════════════════════════════════════════════════════════════════
   Penn Nat Golf Tournament — styles.css
   Design: Classic Green & Cream
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
  /* Base palette — neutral near-black */
  --black:         #080808;
  --dark-bg:       #0c0c0c;
  --dark-1:        #121212;
  --dark-2:        #181818;
  --dark-3:        #1e1e1e;
  --dark-4:        #2a2a2a;
  --dark-green:    #060606;
  --green-accent:  #2d6b44;

  /* Cream accent (primary) */
  --gold:          #e8dcc8;
  --gold-bright:   #f5efe3;
  --gold-dim:      #b8a88a;
  --gold-pale:     #faf7f0;

  /* Slate accent (secondary — labels, highlights) */
  --accent-warm:   #8a9baa;

  /* Course colors */
  --founders:      #2d6a4f;
  --founders-light:#3d8a6a;
  --iron-forge:    #4a6fa5;
  --iron-forge-light:#6a8fc5;

  /* Text */
  --white:         #ffffff;
  --off-white:     #e8e0d4;
  --gray:          #888888;
  --gray-mid:      #666666;
  --gray-dark:     #444444;

  /* Rank badges */
  --rank-gold:     linear-gradient(135deg, #b8860b, #d4a437, #c9a96e);
  --rank-silver:   linear-gradient(135deg, #a0a0a0, #d0d0d0, #b0b0b0);
  --rank-bronze:   linear-gradient(135deg, #a0623a, #cd7f32, #b8733a);

  /* Scores */
  --score-good:    #4ade80;
  --score-bad:     #f87171;
  --score-even:    #d4a437;

  /* Typography */
  --font-display:  'Libre Baskerville', Georgia, serif;
  --font-body:     'Outfit', system-ui, sans-serif;

  /* Layout */
  --max-width:     1200px;
  --radius:        6px;
  --radius-lg:     12px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--off-white);
  background: var(--dark-bg);
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { min-height: 100vh; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 220, 200, 0.12);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-brand-flag {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--off-white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(232, 220, 200, 0.08);
}

/* Year dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  color: var(--gold);
  background: rgba(232, 220, 200, 0.08);
}

.nav-dropdown-arrow {
  font-size: 0.6em;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--dark-2);
  border: 1px solid rgba(232, 220, 200, 0.12);
  border-radius: var(--radius);
  padding: 0.25rem;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 4px;
  color: var(--off-white);
}

.nav-dropdown-menu a:hover {
  background: rgba(232, 220, 200, 0.08);
  color: var(--gold);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--dark-1);
  border-top: 1px solid rgba(232, 220, 200, 0.10);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(180deg, var(--dark-green) 0%, var(--dark-bg) 100%);
  text-align: center;
}

.page-header .section-label {
  color: var(--accent-warm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
  color: var(--gray);
  font-size: 1rem;
}

/* ── Section Utilities ────────────────────────────────────────────────────── */
.section-label {
  color: var(--accent-warm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin: 0.25rem 0 1rem;
}

.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--accent-warm);
  margin: 1rem 0;
  border-radius: 2px;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--dark-4);
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tab-btn:hover {
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(232, 220, 200, 0.06);
}

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

/* ── Round Tabs (year pages) ──────────────────────────────────────────────── */
.round-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.round-tab-btn {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.round-tab-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.round-tab-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}

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

/* ── Data Tables ──────────────────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-4);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--dark-3);
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 2px solid var(--gold-dim);
  white-space: nowrap;
  cursor: default;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-table th.sortable:hover {
  color: var(--gold-bright);
}

.data-table th .sort-arrow {
  margin-left: 0.25rem;
  font-size: 0.65em;
  opacity: 0.4;
}

.data-table th.sort-asc .sort-arrow,
.data-table th.sort-desc .sort-arrow {
  opacity: 1;
}

.data-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(232, 220, 200, 0.04);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:nth-child(even):hover {
  background: rgba(232, 220, 200, 0.06);
}

/* Right-align numeric columns */
.data-table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Rank Badges ──────────────────────────────────────────────────────────── */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black);
}

.rank-1 { background: var(--rank-gold); }
.rank-2 { background: var(--rank-silver); }
.rank-3 { background: var(--rank-bronze); color: var(--white); }

.rank-other {
  background: var(--dark-4);
  color: var(--gray);
  font-weight: 500;
}

/* ── Score Colors ─────────────────────────────────────────────────────────── */
.score-good { color: var(--score-good); font-weight: 600; }
.score-bad  { color: var(--score-bad); }
.score-even { color: var(--score-even); }

/* ── Place Badges ─────────────────────────────────────────────────────────── */
.place-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

.place-1st { background: rgba(212, 164, 55, 0.2); color: #f5d575; }
.place-2nd { background: rgba(160, 160, 160, 0.2); color: #d0d0d0; }
.place-3rd { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }
.place-other { color: var(--gray); font-weight: 400; }

/* ── Course Badges ────────────────────────────────────────────────────────── */
.course-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-founders {
  background: rgba(45, 106, 79, 0.2);
  color: var(--founders-light);
}

.course-forge {
  background: rgba(74, 111, 165, 0.2);
  color: var(--iron-forge-light);
}

/* ── Record Book Leaderboard List ─────────────────────────────────────────── */
.record-list {
  list-style: none;
  counter-reset: record-rank;
}

.record-list li {
  counter-increment: record-rank;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  transition: background 0.15s;
}

.record-list li:hover {
  background: rgba(232, 220, 200, 0.04);
}

.record-list li::before {
  content: counter(record-rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--dark-4);
  color: var(--gray);
}

.record-list li:nth-child(1)::before { background: var(--rank-gold); color: var(--black); }
.record-list li:nth-child(2)::before { background: var(--rank-silver); color: var(--black); }
.record-list li:nth-child(3)::before { background: var(--rank-bronze); color: var(--white); }

.record-list .record-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 40px;
}

.record-list .record-detail {
  color: var(--gray);
  font-size: 0.82rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(232, 220, 200, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Player Cards ─────────────────────────────────────────────────────────── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.player-card:hover {
  border-color: rgba(232, 220, 200, 0.15);
}

.player-card-header {
  background: var(--dark-3);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-4);
}

.player-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.player-card-years {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.player-card-stats {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.player-stat {
  display: flex;
  flex-direction: column;
}

.player-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.15rem;
}

.player-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

.player-card-detail {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--dark-4);
}

.player-card.expanded .player-card-detail {
  display: block;
  padding-top: 1rem;
}

.player-card-toggle {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: none;
  border: none;
  border-top: 1px solid var(--dark-4);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.player-card-toggle:hover {
  background: rgba(232, 220, 200, 0.06);
}

/* ── Closest-to-Pin / Awards Section ──────────────────────────────────────── */
.awards-section {
  margin-top: 2rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.award-card {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-warm);
}

.award-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.award-card-winner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

/* ── Team Lineups ─────────────────────────────────────────────────────────── */
.lineup-table {
  font-size: 0.82rem;
}

.lineup-table th {
  font-size: 0.7rem;
}

.lineup-table td {
  padding: 0.5rem 0.75rem;
}

/* ── Section Spacing ──────────────────────────────────────────────────────── */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--dark-4);
}

/* ── Round Info Header ────────────────────────────────────────────────────── */
.round-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-warm);
}

.round-info-item {
  font-size: 0.85rem;
  color: var(--off-white);
}

.round-info-item strong {
  color: var(--gold);
}

.round-info-divider {
  color: var(--dark-4);
}

/* ── Hero (index.html) ────────────────────────────────────────────────────── */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 3rem;
  background: url('pano.webp') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 12, 12, 0.85) 0%,
    rgba(12, 12, 12, 0.65) 40%,
    rgba(12, 12, 12, 0.75) 70%,
    rgba(12, 12, 12, 0.92) 90%,
    rgba(12, 12, 12, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  color: var(--accent-warm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUp 0.6s 0.25s forwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--off-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.55s forwards;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.btn-outline:hover {
  background: rgba(232, 220, 200, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ── Stats Strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--dark-1);
  border-top: 1px solid var(--dark-4);
  border-bottom: 1px solid var(--dark-4);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ── Feature Cards (index) ────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-top: 3px solid var(--accent-warm);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ── About Section ────────────────────────────────────────────────────────── */
.about-section {
  padding: 4rem 0;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-inner .gold-rule {
  margin: 1rem auto;
}

.about-body p {
  text-align: left;
}

.about-body p {
  color: var(--off-white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


/* ── Footnotes ────────────────────────────────────────────────────────────── */
.footnote {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--dark-3);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--gray);
  border-left: 2px solid var(--gold-dim);
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  background: var(--dark-3);
  border: 1px solid var(--dark-4);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-filter-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.gallery-filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-placeholder-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.gallery-placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray);
}

/* ── Sunday Stableford note ───────────────────────────────────────────────── */
.stableford-note {
  color: var(--gray);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .player-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .awards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--dark-2);
    border-bottom: 1px solid var(--dark-4);
    flex-direction: column;
    padding: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.25rem;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .tab-bar {
    gap: 0;
  }

  .tab-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
  }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }

  .page-header { padding: 6rem 0 2rem; }

  /* Scroll hint shadow on right edge of table wrappers */
  .data-table-wrap {
    position: relative;
  }
  .data-table-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, rgba(12, 12, 12, 0.8));
    pointer-events: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }

  /* Round info bar: stack on small screens */
  .round-info {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .round-info-divider {
    display: none;
  }

  /* Record list items: allow text wrapping */
  .record-list li {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .record-list li > span {
    white-space: normal;
    word-break: break-word;
  }

}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .player-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .round-tabs { gap: 0.35rem; }
  .round-tab-btn { font-size: 0.72rem; padding: 0.4rem 0.7rem; }

  .container { padding: 0 1rem; }
  .section { padding: 2rem 0; }
  .about-section { padding: 2.5rem 0; }
  .section-title { font-size: 1.35rem; }

  /* Tighter table cells */
  .data-table th, .data-table td { padding: 0.4rem 0.5rem; }
  .data-table { font-size: 0.75rem; }

  /* Smaller rank badges */
  .rank-badge { width: 24px; height: 24px; font-size: 0.65rem; }

  /* Lineup table even tighter */
  .lineup-table td { padding: 0.35rem 0.5rem; font-size: 0.72rem; }
  .lineup-table th { font-size: 0.6rem; }

  /* Award cards tighter */
  .award-card { padding: 0.75rem 1rem; }
  .award-card-winner { font-size: 1rem; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  #site-header, #site-footer, .nav-toggle, .tab-bar, .round-tabs, .btn { display: none; }
  body { background: #fff; color: #000; }
  .data-table th { color: #333; border-bottom-color: #333; }
  .data-table td { border-bottom-color: #ccc; }
  .page-header { background: none; padding: 1rem 0; }
}
