:root {
  --bg: #f3f6f1;
  --surface: #ffffff;
  --tint: #e8efe5;
  --text: #1d2a1f;
  --muted: #5d6e60;
  --primary: #2f7d4f;
  --primary-dark: #23613c;
  --accent: #d9a441;
  --border: #d7e1d4;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 400;
}

h1 { font-size: 48px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus { left: 16px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow-container {
  max-width: 820px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--primary-dark);
  background: var(--tint);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* Hero & Almanac */
.hero-band {
  padding: 48px 0 48px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  box-shadow: var(--shadow-sm);
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--primary);
}

.stat-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.almanac-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.almanac-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.filter-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.almanac-search-wrap {
  display: flex;
  gap: 12px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.almanac-search, .almanac-sort {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
}

.almanac-search {
  width: 100%;
  max-width: 260px;
}

.almanac-status {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.almanac-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.almanac-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.almanac-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 12px;
  border-bottom: 2px solid var(--border);
}

.almanac-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.almanac-row:last-child td {
  border-bottom: none;
}

.sport-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sport-name, .sport-name-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.sport-name-link {
  color: var(--primary-dark);
  text-decoration: none;
}

.sport-name-link:hover {
  text-decoration: underline;
}

.sport-tag {
  font-size: 12px;
  color: var(--muted);
}

/* Signature visual detail: Ball-Count Chip */
.ball-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ball-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.ball-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ball-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(29, 42, 31, 0.22);
}

.ball-dot--white { background: #ffffff; }
.ball-dot--red { background: #c94136; }
.ball-dot--gold { background: #d9a441; }
.ball-dot--green { background: #2f7d4f; }
.ball-dot--dark { background: #1d2a1f; }
.ball-dot--blue { background: #2d6a9f; }

.ball-breakdown {
  font-size: 12px;
  color: var(--muted);
}

.mode-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mode-pill--simultaneous {
  background: #fdf3dc;
  color: #7c5812;
}

.mode-pill--turn {
  background: var(--tint);
  color: var(--primary-dark);
}

.almanac-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  margin: 0;
}



/* Sections & Editorial Split */
.section-band {
  padding: 64px 0;
}

.section-tight {
  padding: 24px 0 0;
}

.section-tinted {
  background: var(--tint);
}

.section-head {
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  max-width: 64ch;
  margin-bottom: 0;
}

.diagram-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.diagram-figure figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.editorial-split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 48px;
  align-items: start;
}

.prose-col {
  max-width: 70ch;
}

.prose-col h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose-col h2:first-child {
  margin-top: 0;
}

.prose-col h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose-col ul, .prose-col ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose-col li {
  margin-bottom: 8px;
}

.prose-col table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose-col th, .prose-col td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose-col th {
  background: var(--tint);
  font-weight: 700;
}

.facts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}

.facts-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.facts-list {
  margin: 0;
}

.fact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-item dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
}

.fact-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* Numbered Spotlights */
.spotlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.spotlight-num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
}

.spotlight-body h3 {
  margin-bottom: 8px;
}

.spotlight-body h3 a {
  text-decoration: none;
  color: var(--text);
}

.spotlight-body h3 a:hover {
  color: var(--primary);
}

.spotlight-body p {
  color: var(--muted);
  max-width: 66ch;
  margin-bottom: 12px;
}

.spotlight-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* 2x2 Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.matrix-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}

.matrix-examples {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: '−';
}

.faq-a {
  margin-top: 12px;
  color: var(--muted);
}

.faq-a p:last-child { margin-bottom: 0; }

/* Inner Pages */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.summary-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.summary-val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
}

.summary-lbl {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.related-card:hover {
  border-color: var(--primary);
}

.related-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.related-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

.legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

/* Buttons, Engagement & Comments */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-outline[data-gf-liked] {
  background: var(--tint);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-text {
  background: none;
  border: none;
  padding: 4px 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.count-pill {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--tint);
  font-size: 12px;
}

.engage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.engage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.engage-meta, .share-msg {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

.form-msg {
  font-size: 14px;
  color: var(--primary-dark);
  margin: 12px 0 0;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.comments-list[data-gf-empty] .comments-empty {
  display: block;
}

.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-card[data-gf-owner] {
  border-left: 4px solid var(--primary);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-head time {
  color: var(--muted);
  font-size: 12px;
}

.owner-badge {
  display: none;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
}

.comment-card[data-gf-owner] .owner-badge {
  display: inline-block;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 42ch;
}

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero-band { padding: 32px 0; }
  .section-band { padding: 48px 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }

  .hero-top,
  .hero-stats,
  .editorial-split,
  .matrix-grid,
  .summary-strip,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .almanac-shell { padding: 16px; }
  .almanac-search-wrap { flex-direction: column; width: 100%; }
  .almanac-search, .almanac-sort { max-width: none; width: 100%; }

  .almanac-table thead { display: none; }
  .almanac-table, .almanac-table tbody, .almanac-table tr, .almanac-table td {
    display: block;
    width: 100%;
  }
  .almanac-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .almanac-table td {
    padding: 4px 0;
    border: none;
  }

  .spotlight-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-primary, .btn-outline {
    width: 100%;
  }
}