/* =========================================================
   Malone Fall Classic -- shared stylesheet
   Vibe: clubhouse-meets-dive-bar. Fairway green, warm gold,
   cream paper texture. Loud headings, calm body copy.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green-deep: #163a2c;
  --green: #1f4e3d;
  --green-bright: #2f7a5c;
  --gold: #d8a531;
  --gold-bright: #f0c14b;
  --cream: #f6f1e4;
  --cream-dark: #ece3cc;
  --ink: #1b1b16;
  --ink-soft: #4a4a3f;
  --white: #fffdf8;
  --gs: #c1440e;
  --uv: #1f5fa8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 58, 44, 0.18);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, .display {
  font-family: 'Anton', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--green-deep);
  margin: 0 0 0.4em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--green-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand .display {
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin: 0;
}

.brand .brand-sub {
  font-size: 0.78rem;
  color: #cfe2d6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  white-space: nowrap;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--green-deep);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 0.92rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green) 55%, var(--green-bright) 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

/* When a hero has a photo behind it (see .hero-image-url usage in HTML),
   this dark green scrim keeps the white headline text readable on top of
   whatever photo gets dropped in. */
.hero.has-image {
  background-image:
    linear-gradient(160deg, rgba(22,58,44,0.90) 0%, rgba(31,78,61,0.84) 55%, rgba(47,122,92,0.72) 100%),
    var(--hero-photo);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(216,165,49,0.25), transparent 45%);
  pointer-events: none;
}

.hero .kicker {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream);
  max-width: 640px;
  margin: 0 0 28px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-main {
  flex: 1 1 420px;
  min-width: 280px;
}
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: 100%;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .hero-main { min-width: 0; }
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-bright);
  color: var(--green-deep);
}
.btn-gold:hover { background: var(--gold); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ---------- Sections / Cards ---------- */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 6px 0 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
}

/* Fixed-height wrapper for Chart.js canvases so bar/label counts don't get
   squeezed (and auto-skipped) when the container narrows on mobile -- the
   chart keeps this height and only its width shrinks responsively. */
.chart-card {
  height: var(--chart-card-height, 320px);
}
.chart-card canvas {
  max-width: 100%;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-card .stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  color: var(--green);
}

.stat-card .stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- Team badges ---------- */
.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-gs { background: var(--gs); }
.team-uv { background: var(--uv); }

.team-column {
  border-top: 6px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 22px;
}
.team-column.gs { border-top-color: var(--gs); }
.team-column.uv { border-top-color: var(--uv); }

.team-column ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.team-column li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 500;
}
.team-column li:last-child { border-bottom: none; }

/* ---------- Schedule ---------- */
.round-block {
  margin-bottom: 34px;
}

.round-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.format-tag {
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.match-row {
  display: grid;
  grid-template-columns: 42px 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.match-row .match-num {
  font-family: 'Anton', sans-serif;
  color: var(--cream-dark);
  font-size: 1.4rem;
  text-align: center;
}

.match-side { text-align: left; }
.match-side.right { text-align: right; }
.match-side .avg { display: block; font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }

.vs {
  font-family: 'Anton', sans-serif;
  color: var(--gold);
  font-size: 0.85rem;
}

.group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.group-row .match-num {
  font-family: 'Anton', sans-serif;
  color: var(--cream-dark);
  font-size: 1.4rem;
  min-width: 32px;
}

.chip {
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Winner / tie highlighting (Results page) ---------- */
.match-side.side-win {
  box-sizing: border-box;
  background: rgba(47, 122, 92, 0.14);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  color: var(--green-deep);
}
.match-side.side-win .avg { color: var(--green-deep); font-weight: 700; }
.match-side.side-win::after {
  content: "WINNER";
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--white);
  background: var(--green-bright);
  padding: 2px 7px;
  border-radius: 999px;
}
.match-side.right.side-win::after { margin-left: 0; margin-right: 8px; }

.match-side.side-tie {
  box-sizing: border-box;
  background: rgba(216, 165, 49, 0.18);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  color: var(--ink);
}
.match-side.side-tie .avg { color: var(--ink); font-weight: 600; }
.match-side.side-tie::after {
  content: "HALVED";
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--gold-bright);
  padding: 2px 7px;
  border-radius: 999px;
}
.match-side.right.side-tie::after { margin-left: 0; margin-right: 8px; }

.group-row.finn-winner {
  background: rgba(216, 165, 49, 0.18);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
}

.finn-winner-badge {
  background: var(--gold) !important;
  color: var(--green-deep) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
}

.match-side.finn-trophy {
  box-sizing: border-box;
  background: rgba(216, 165, 49, 0.18);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 800;
  color: var(--green-deep);
}
.match-side.finn-trophy::after {
  content: "FRIENDLY FINN WINNER";
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 999px;
  width: fit-content;
}
.match-side.right.finn-trophy::after { margin-left: auto; }

@media (max-width: 640px) {
  .match-side.side-win::after,
  .match-side.side-tie::after {
    display: block;
    margin: 4px 0 0;
    width: fit-content;
  }
  .match-side.right.side-win::after,
  .match-side.right.side-tie::after {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .match-row {
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px 14px;
  }
  .match-row .vs { display: none; }
  /* Without explicit placement, hiding .vs leaves only 3 items to auto-flow
     across a 2-column grid, which drops match-side.right into the narrow
     26px first column instead of its own full-width row -- that's the
     "text doesn't wrap right" bug on phones. Pin every child explicitly. */
  .match-row .match-num { grid-column: 1; grid-row: 1; }
  .match-row .match-side:not(.right) { grid-column: 2; grid-row: 1; }
  .match-row .match-side.right {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    padding-top: 8px;
    border-top: 1px dashed var(--cream-dark);
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand .display { font-size: 1.08rem; }
  .brand .brand-sub { font-size: 0.66rem; }

  .match-row, .group-row { padding: 12px 14px; }
  .chip { font-size: 0.8rem; padding: 4px 10px; }
  .group-row .match-num { min-width: 22px; font-size: 1.15rem; }

  .sponsor-badge { min-width: 0; width: 100%; padding: 14px 20px; }

  .results-table th, .results-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
    overflow-wrap: break-word;
  }
}

/* ---------- Gallery ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

.media-tile {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cream-dark), #ddd3ae);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  border: 2px dashed #c9bd8f;
}

.empty-state {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Results ---------- */
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.results-table th, .results-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.results-table th {
  background: var(--green-deep);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr.futility td {
  background: rgba(193, 68, 14, 0.09);
}
.futility-badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  background: var(--gs);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Course carousel (Home page "Where We Play") ---------- */
.course-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, var(--green-bright), var(--green-deep));
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* If a photo URL fails to load, the onerror handler in script.js adds this
   class and removes the broken <img> so visitors see a clean gradient
   panel with a label instead of a broken-image icon. */
.carousel-slide.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--green-bright), var(--green-deep));
}
.carousel-slide.img-fallback::before {
  content: attr(data-fallback-label);
  color: rgba(255,255,255,0.7);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 22px 18px;
  background: linear-gradient(to top, rgba(16,36,28,0.88), transparent);
  color: var(--white);
}
.carousel-caption strong { color: var(--gold-bright); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22,58,44,0.55);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: rgba(22,58,44,0.85); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--gold-bright); }

.photo-credit {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.photo-credit a { color: var(--green); font-weight: 600; }

/* ---------- Sponsor strip (joke section, home page) ---------- */
/* Built entirely from CSS/SVG shapes + type -- deliberately NOT using any
   real brand logo artwork. The icons below are original can/tin shapes in
   each brand's color palette with a monogram, not a copy of their actual
   logos -- implying a real sponsorship with a lifted corporate logo would
   be a different (and less funny, more legally annoying) thing than this
   gag. */
.sponsor-strip {
  background: var(--cream-dark);
  padding: 36px 0;
  text-align: center;
}

.sponsor-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sponsor-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 260px;
  text-align: left;
}

.sponsor-icon {
  flex-shrink: 0;
  display: block;
}

.sponsor-badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sponsor-badge-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sponsor-badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Natural Light: navy/gold, beer-can feel */
.sponsor-badge.natty {
  background: linear-gradient(160deg, #0b2f6b 0%, #123f8f 100%);
  border: 3px solid var(--gold);
}
.sponsor-badge.natty .sponsor-badge-name { color: var(--gold-bright); }
.sponsor-badge.natty .sponsor-badge-tag { color: #cfe0ff; }

/* Zyn: white tin with blue ring feel */
.sponsor-badge.zyn {
  background: var(--white);
  border: 3px solid #0057b8;
}
.sponsor-badge.zyn .sponsor-badge-name { color: #0057b8; }
.sponsor-badge.zyn .sponsor-badge-tag { color: var(--ink-soft); }

.sponsor-disclaimer {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

.draft-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(216,165,49,0.12);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 32px;
}
.draft-notice .draft-badge {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 2px;
}
.draft-notice p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

/* ---------- Gallery lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,15,0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox-caption {
  color: var(--cream);
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  max-width: 700px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.7rem; }
  .lightbox-close { top: 10px; right: 16px; font-size: 1.8rem; }
}

/* ---------- Countdown badge (Home page hero) ---------- */
.countdown-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius);
  padding: 12px 30px;
  margin: 22px 0;
}
.hero-badges .countdown-badge {
  margin: 0;
}
.countdown-num {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-bright);
}
.countdown-label {
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ---------- History timeline (Legends page) ---------- */
.timeline {
  position: relative;
  margin: 0 0 40px;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cream-dark);
}
.timeline-item {
  position: relative;
  padding-bottom: 26px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--gold);
}
.timeline-year {
  font-family: 'Anton', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green-deep);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.timeline-content p {
  margin: 0;
  color: var(--ink-soft);
}
.timeline-content details {
  margin-top: 10px;
}
.timeline-content details summary {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 0;
}
.timeline-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.timeline-photos a {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.timeline-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .timeline-photos a { width: 84px; height: 84px; }
}

/* ---------- Where We Stay & Eat ---------- */
.stay-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stay-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.stay-card-body {
  padding: 14px 18px 18px;
}
.stay-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--green-deep);
  font-family: 'Anton', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stay-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---------- Collapsible matchup breakdowns (Results page) ---------- */
.results-table + details,
details {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 4px 18px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  color: var(--green-deep);
  list-style: revert;
}
details[open] summary { margin-bottom: 4px; }
details .round-block:last-of-type { margin-bottom: 12px; }

/* ---------- Year accordion + jump nav (Results page) ---------- */
/* Thirteen years of results is too much to show all at once, so each year
   is its own collapsible <details>, styled distinctly from the nested
   "show full matchups" details inside it. */
.year-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.year-jump-chip {
  background: var(--green-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.year-jump-chip:hover {
  background: var(--green);
  text-decoration: none;
}

.year-block {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 6px 22px 22px;
  margin-bottom: 18px;
}
.year-block summary {
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-deep);
  padding: 18px 0;
}
.year-block[open] summary { margin-bottom: 6px; border-bottom: 1px solid var(--cream-dark); }
.year-block .section-head { margin-bottom: 18px; }
.year-block .section-head h3 { display: none; }

/* ---------- Rogues Gallery (bios page) ---------- */
.bio-card {
  text-align: center;
}
.bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
}
.bio-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.bio-facts li {
  padding: 5px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.bio-facts li:last-child { border-bottom: none; }
.bio-quote {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 12px 0 0;
  text-align: left;
}
.bio-card.memorial {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(216,165,49,0.10), var(--white) 45%);
}
.bio-card.memorial::before {
  content: "In Memoriam";
  display: block;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #cfe2d6;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.88rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer a { color: var(--gold-bright); }
