/* ==========================================================================
   OddsOffSport.org — shared stylesheet
   White-primary editorial style, navy + green brand palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --bg:           #ffffff;
  --bg-alt:       #f6f1e7;
  --bg-soft:      #f4f7f9;
  --bg-card:      #ffffff;
  --bg-deep:      #0e2a44;
  --bg-deep-2:    #0a1f33;
  --ink:          #0e2a44;
  --ink-soft:     #2e4259;
  --ink-muted:    #6b7a8a;
  --rule:         #e3e6ea;
  --rule-strong:  #0e2a44;
  --green:        #5a9b3a;
  --green-deep:   #3d6b27;
  --green-soft:   #e8f3e0;
  --red:          #b3261e;

  --serif:  'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --max:  72rem;
  --reading: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 600; }
h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }

p { margin: 0 0 1.05em; }
.lede { font-size: 1.1rem; line-height: 1.55; color: var(--ink-soft); font-weight: 400; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2rem); }
.reading   { max-width: var(--reading); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.reading-wide { max-width: 52rem; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
section    { padding: 3rem 0; }
@media (min-width: 768px) { section { padding: 4rem 0; } }

.bg-cream { background: var(--bg-alt); }
.bg-soft  { background: var(--bg-soft); }
.bg-deep  { background: var(--bg-deep); color: #f0ebe0; }
.bg-deep h2, .bg-deep h3, .bg-deep h4 { color: #fff; }
.bg-deep a { color: #aedb95; }
.bg-deep a:hover { color: #fff; }
.bg-deep .lede { color: #d6dfe8; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}
@media (min-width: 600px) { .brand-logo { height: 60px; } }
@media (min-width: 880px) { .brand-logo { height: 68px; } }
.brand:hover { opacity: 0.85; }

nav.primary { display: none; }
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.15s, color 0.15s;
}
nav.primary a:hover { border-color: var(--green); }
nav.primary a.active { border-color: var(--green); color: var(--green-deep); }
@media (min-width: 980px) { nav.primary { display: block; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--ink); color: var(--bg); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero (white) and page header */
.hero {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.hero .hero-logo-large {
  max-width: 460px;
  width: 100%;
  margin: 0 0 2rem;
}
@media (min-width: 768px) { .hero .hero-logo-large { max-width: 520px; } }
.hero .eyebrow,
.page-header .eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 22ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero .lede { max-width: 38rem; margin-bottom: 1.5rem; }

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.page-header h1 { max-width: 24ch; margin-bottom: 0.6rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.page-header .lede { max-width: 42rem; }

/* Stadium-banner hero variant — real MCG photo with overlaid headline */
.hero-banner {
  position: relative;
  background-color: var(--bg-deep);
  background-image: url('assets/hero-banner.jpg');
  background-size: cover;
  background-position: 30% center;
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: clamp(380px, 46vw, 560px);
  border-bottom: 4px solid var(--green);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 42, 68, 0.82) 0%,
    rgba(14, 42, 68, 0.62) 28%,
    rgba(14, 42, 68, 0.18) 55%,
    rgba(14, 42, 68, 0.00) 75%
  );
  pointer-events: none;
}
.hero-banner .container { position: relative; z-index: 1; width: 100%; }
.hero-banner h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
  border-left: 5px solid var(--green);
  padding-left: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-banner h1 em { font-style: normal; color: var(--green); display: block; }
.hero-banner .lede { color: #e6efe2; max-width: 36rem; padding-left: 1.1rem; }
.hero-banner .domain {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: inline-block;
  padding-left: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Mobile: flip the gradient to top→bottom so headline reads against a darker
   lower band, and keeps the right-side crowd detail visible above it */
@media (max-width: 640px) {
  .hero-banner {
    background-position: 35% center;
    align-items: flex-end;
    padding-top: 8rem;
  }
  .hero-banner::before {
    background: linear-gradient(
      180deg,
      rgba(14, 42, 68, 0.25) 0%,
      rgba(14, 42, 68, 0.65) 50%,
      rgba(14, 42, 68, 0.92) 100%
    );
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); color: #fff; text-decoration: none; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { box-shadow: 3px 3px 0 var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { box-shadow: 3px 3px 0 #fff; color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Cards */
.pillars { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--bg);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
}
.pillar h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.pillar p { color: var(--ink-soft); flex: 1; font-size: 0.95rem; }
.pillar .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.bg-cream .pillar, .bg-soft .pillar { background: var(--bg); }

.panel {
  background: var(--bg);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}
@media (min-width: 768px) { .panel { padding: 1.75rem; } }
.panel-deep {
  background: var(--bg-deep);
  color: #f0ebe0;
  padding: 1.75rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}
.panel-deep h2, .panel-deep h3 { color: #fff; }
.panel-deep a { color: #aedb95; }
.panel-deep ol.numbered li { color: #f0ebe0; }
.panel-deep ol.numbered li::before { color: #fff; }
.panel-green {
  background: var(--green-soft);
  border: 1px solid #cbe2bd;
  padding: 1.5rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--green);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 1.75rem 0;
  max-width: 38rem;
}
.pullquote cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stats-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 600px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.stat .num {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: -0.02em;
}
.stat .label { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.4; }
.stat .src { display: block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--ink-muted); }

.allies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.ally {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.ally:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.ally h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.ally p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

.vision-display, .icons-row { text-align: center; margin: 2rem 0; }
.vision-display img, .icons-row img { max-width: 100%; margin: 0 auto; }

.icons-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.icons-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.icons-grid img {
  width: 100%;
  height: auto;
  max-width: 180px;
  display: block;
}
@media (min-width: 560px) { .icons-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 880px) { .icons-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

.badge-wrap { text-align: center; margin: 1.5rem 0; }
.badge-wrap img { max-width: 200px; margin: 0 auto; }

/* Forms */
.field { margin-bottom: 1.25rem; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .help { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(90,155,58,0.18);
}
.field textarea { resize: vertical; min-height: 6rem; }

.likert { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-start; }
.likert label {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0;
  user-select: none;
  transition: all 0.12s;
}
@media (min-width: 480px) {
  .likert { gap: 8px; }
  .likert label { width: 44px; height: 44px; font-size: 1rem; }
}
.likert input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.likert label.is-selected { background: var(--green); border-color: var(--green); color: #fff; }
.likert-scale {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--ink-muted);
  margin-top: 0.4rem; max-width: 360px;
}

.q-card {
  background: var(--bg);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--r-md);
  margin-bottom: 0.85rem;
}
.q-card .q-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}
.q-card .q-text {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  line-height: 1.4;
  color: var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
  transition: all 0.12s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Bars */
.bar-group { margin-bottom: 1.5rem; }
.bar-group h4 { margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.bar-row { display: flex; flex-direction: row; align-items: center; margin-bottom: 0.45rem; gap: 0.75rem; font-size: 0.85rem; }
.bar-label { flex: 0 0 35%; text-align: right; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.2; }
@media (max-width: 520px) { .bar-label { flex-basis: 30%; font-size: 0.76rem; } }
.bar-track { flex: 1; height: 22px; background: var(--rule); border-radius: var(--r-sm); overflow: hidden; position: relative; }
.bar-fill {
  height: 100%; background: var(--green); border-radius: var(--r-sm);
  transition: width 0.6s ease-out;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.5rem;
  color: #fff; font-weight: 600; font-size: 0.74rem; min-width: 2rem;
}
.bar-fill.muted { background: var(--ink-soft); }

.summary-card {
  background: var(--bg-deep);
  color: #fff;
  padding: 1.75rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  text-align: center;
}
.summary-card .big {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.summary-card .label { color: #d6dfe8; font-size: 0.92rem; }

.timeline { margin: 2rem 0; border-left: 2px solid var(--ink); padding-left: 1.25rem; }
.tl-event { margin-bottom: 1.5rem; position: relative; }
.tl-event::before {
  content: ''; position: absolute; left: -1.65rem; top: 0.3rem;
  width: 12px; height: 12px;
  background: var(--green); border-radius: 50%; border: 2px solid var(--bg);
}
.tl-event .date {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 0.2rem;
}
.tl-event h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.tl-event p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: #d6dfe8;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.site-footer a { color: #f0ebe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #1d3650;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #8a99ad;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-help {
  background: #8a1a14;
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}
.footer-help a { color: #fff; text-decoration: underline; }
.footer-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

/* Utilities */
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.divider-strong { border: 0; border-top: 2px solid var(--ink); margin: 2rem 0; }
.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.tag-green { background: var(--green); }

ol.numbered { padding-left: 0; counter-reset: c; list-style: none; }
ol.numbered li {
  counter-increment: c;
  padding-left: 2.25rem;
  position: relative;
  margin-bottom: 0.65rem;
}
ol.numbered li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-deep);
}

.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-md);
  z-index: 200;
  transition: transform 0.3s;
  max-width: 90%;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.4s ease-out both; }
.fade-in.d2 { animation-delay: 0.08s; }
.fade-in.d3 { animation-delay: 0.16s; }
.fade-in.d4 { animation-delay: 0.24s; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Print — for the PDF flyer source */
@media print {
  body { background: white; }
  .site-header, .site-footer, nav { display: none !important; }
}

/* Club rating list */
.club-rating-grid { display: grid; grid-template-columns: 1fr; gap: 0.4rem; margin: 1rem 0 1.5rem; }
.club-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: white;
  border-radius: 6px;
  border-left: 3px solid var(--soft-grey, #e3e8ec);
}
.club-row.tier-5 { border-left-color: #a13634; }
.club-row.tier-4 { border-left-color: #b86438; }
.club-row.tier-3 { border-left-color: #c19531; }
.club-row.tier-2 { border-left-color: #8a9e67; }
.club-row.tier-1 { border-left-color: #3d6b27; }

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.tier-badge.t5 { background: #a13634; }
.tier-badge.t4 { background: #b86438; }
.tier-badge.t3 { background: #c19531; }
.tier-badge.t2 { background: #8a9e67; }
.tier-badge.t1 { background: #3d6b27; }

.club-name { font-weight: 600; color: var(--navy); display: block; }
.club-note { color: var(--ink-soft, #2e4259); font-size: 0.88rem; display: block; margin-top: 0.15rem; }

.tier-key {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
  margin: 1rem 0 1.5rem; padding: 1rem; background: white; border-radius: 6px;
}
.tier-key .key-row { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.75rem; align-items: start; }
.tier-key .key-row strong { color: var(--navy); }
@media (min-width: 720px) {
  .tier-key { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
}

/* Club callout on home page */
.club-callout {
  margin: 2.5rem auto 0;
  max-width: 640px;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  text-align: center;
}
.club-callout h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.15rem;
}
.club-callout p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft, #2e4259);
  font-size: 0.97rem;
  line-height: 1.55;
}
.club-callout .btn { margin-top: 0.25rem; }
@media (min-width: 720px) {
  .club-callout { padding: 2rem 2.5rem; }
  .club-callout h3 { font-size: 1.25rem; }
}

/* Email template blocks on your-club page */
.email-template {
  background: white;
  border: 1px solid #e3e8ec;
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  border-radius: 6px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.email-template p { margin: 0 0 0.85rem; }
.email-template p:last-child { margin-bottom: 0; }
.email-template ol, .email-template ul {
  margin: 0 0 0.85rem 1.25rem;
  padding-left: 0.5rem;
}
.email-template ol li, .email-template ul li { margin-bottom: 0.5rem; }
.email-template strong { color: var(--navy); }
@media (min-width: 720px) {
  .email-template { padding: 1.5rem 2rem; }
}

/* Demographic tiles on results page — replaces bar-row visualization */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(14, 42, 68, 0.08);
}
.tile-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.25;
  font-weight: 500;
}
.tile-count {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-top: 0.15rem;
}
.tile-pct {
  font-size: 0.78rem;
  color: var(--green-deep);
  font-weight: 500;
}
.tile.tile-leader {
  border-left: 3px solid var(--green);
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.65rem; }
  .tile { padding: 0.85rem 0.95rem; }
  .tile-count { font-size: 1.35rem; }
}
