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

:root {
  --ground:      #F8FAF7;
  --text:        #1B3124;
  --accent:      #2E6B4F;
  --accent-2:    #C8A030;
  --hero-ground: #1B3124;
  --hero-text:   #E4DFCE;
  --nav-ground:  #243D2E;
  --border:      #D2D9D0;
  --muted:       #5A7864;
  --notice-bg:   #FDF8EC;
  --f-display:   Georgia, 'Times New Roman', serif;
  --f-body:      system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--hero-ground);
  padding: 44px 40px 36px;
  position: relative;
  overflow: hidden;
}

#court-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.07;
}

.header-inner {
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.league-name-link {
  text-decoration: none;
  display: block;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
  font-family: var(--f-body);
}

.league-title {
  display: block;
  font-family: var(--f-display);
  font-weight: normal;
  font-size: clamp(24px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hero-text);
}

.league-title em {
  font-style: italic;
  color: var(--accent-2);
}

.header-year {
  font-family: var(--f-display);
  font-size: clamp(60px, 11vw, 128px);
  font-weight: bold;
  color: var(--hero-text);
  opacity: 0.11;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  background: var(--nav-ground);
  border-bottom: 2px solid var(--accent-2);
}

.nav-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 11px 13px;
  color: #8AAFA0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-2);
  background: rgba(200, 160, 48, 0.07);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

/* ── MAIN ────────────────────────────────────────── */
.site-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

/* ── HOME PAGE COMPONENTS ───────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.quick-card {
  background: var(--accent);
  color: #D8EAE0;
  padding: 22px 20px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 3px solid transparent;
  transition: transform 0.14s, background 0.14s;
}

.quick-card:hover {
  background: #265A40;
  transform: translateY(-3px);
  border-bottom-color: var(--accent-2);
}

.quick-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.quick-card .card-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-body);
}

.quick-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: normal;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
  color: inherit;
}

.quick-card p {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 52px;
  align-items: start;
}

.about-section h2 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-section p {
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 14px;
  font-size: 14px;
}

.notice-box {
  background: var(--notice-bg);
  border-left: 3px solid var(--accent-2);
  padding: 14px 18px 16px;
  margin: 24px 0;
}

.notice-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
  font-family: var(--f-body);
  display: block;
}

.notice-box p {
  font-size: 13px;
  color: #5A4A18;
  line-height: 1.55;
  margin: 0;
}

.contact-line {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-block {
  border-top: 2px solid var(--text);
  padding-top: 12px;
}

.stat-num {
  font-family: var(--f-display);
  font-size: 46px;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
  line-height: 1.3;
}

.download-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.download-list h4 {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8AA090;
  margin-bottom: 10px;
  font-family: var(--f-body);
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.12s;
}

.download-list a:last-child { border-bottom: none; }
.download-list a:hover { color: var(--text); }

.download-list a::before {
  content: "↓";
  font-size: 12px;
  color: var(--accent-2);
  flex-shrink: 0;
  font-weight: bold;
}

/* ── CONTENT TYPOGRAPHY ─────────────────────────── */
.site-main h1 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: normal;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-align: left !important;
}

.site-main h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: normal;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 24px 0 12px;
  text-align: left !important;
}

.site-main h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
}

.site-main p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-main a {
  color: var(--accent);
  text-decoration: none;
}

.site-main a:hover {
  text-decoration: underline;
  color: var(--text);
}

.site-main strong { color: var(--text); }

/* ── TABLES ─────────────────────────────────────── */
.site-main table {
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
  max-width: 100%;
}

.site-main td,
.site-main th {
  padding: 3px 6px;
}

/* Overflow wrapper for wide tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #4A6858;
  padding: 18px 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ── LEGACY COMPAT (pages not yet converted) ─────── */
#colOne   { display: none !important; }
#menu1    { display: none !important; }

#colTwo, #colThree, #colFour {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 36px 24px 64px !important;
  margin: 0 auto !important;
}

#content, #content2, #content3, #content4 {
  width: 100% !important;
  max-width: 940px !important;
  margin: 0 auto !important;
  background: var(--ground) !important;
  border: none !important;
  padding: 0 !important;
}

#footer {
  max-width: 940px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 700px) {
  .site-header  { padding: 28px 20px; }
  .header-year  { display: none; }
  .quick-links  { grid-template-columns: 1fr; gap: 8px; }
  .content-grid { grid-template-columns: 1fr; }
  .site-nav a   { padding: 9px 10px; font-size: 9.5px; }
  .site-main    { padding: 24px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
