/* ============================================================
   Summerville Evening Rotary — Site Styles
   Civic & confident: navy/gold, structured grids, editorial type
   ============================================================ */

:root {
  /* Brand — Rotary Royal + Sky Blue palette (fresher) */
  --navy-900: #0e2a8a;  /* Deepest blue (used sparingly for footer/CTA) */
  --navy-800: #1742a6;  /* Mid dark blue */
  --navy-700: #0033a0;  /* Rotary Royal Blue (primary actions) */
  --navy-600: #3a73d8;
  --navy-500: #6a98e6;

  --sky-700:  #0078b3;
  --sky-500:  #009ddc;  /* Rotary Sky Blue (fresh accent) */
  --sky-400:  #4eb6e6;
  --sky-100:  #e0f2fb;

  --gold-600: #d79008;
  --gold-500: #f7a81b;  /* Rotary gold */
  --gold-400: #f9bf4f;
  --gold-100: #fceec9;

  /* Neutrals */
  --ink: #0a1424;
  --slate-700: #2a3650;
  --slate-500: #58647f;
  --slate-400: #8893ab;
  --slate-300: #c4ccdb;
  --slate-200: #e1e6ef;
  --slate-100: #f1f4f9;
  --paper: #f4f8fc;
  --cream: #eef4fb;
  --white: #ffffff;

  /* Type */
  --font-serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans: "Open Sans", "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Open Sans", "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --maxw: 1280px;
  --maxw-narrow: 920px;
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(7, 23, 58, 0.05), 0 1px 1px rgba(7, 23, 58, 0.03);
  --shadow: 0 6px 24px rgba(7, 23, 58, 0.08), 0 2px 6px rgba(7, 23, 58, 0.04);
  --shadow-lg: 0 24px 60px rgba(7, 23, 58, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); letter-spacing: -0.025em; line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.018em; font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; color: var(--slate-700); }
.lead { font-size: 1.2rem; color: var(--slate-700); line-height: 1.55; }

/* =========== Layout =========== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }

@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .section-lg { padding: 60px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* =========== Utility =========== */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sky-500);
}
.eyebrow.light { color: var(--gold-400); }
.eyebrow.light::before { background: var(--gold-500); }
.eyebrow.no-rule::before { display: none; }

.rule { height: 1px; background: var(--slate-200); border: 0; margin: 0; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 95, 174, 0.08);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =========== Top utility bar =========== */
.utility {
  background: var(--sky-500);
  color: var(--white);
  font-size: 0.82rem;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 18px;
}
.utility a { color: var(--white); font-weight: 600; }
.utility a:hover { color: var(--gold-400); }
.utility .util-left { display: flex; gap: 22px; align-items: center; }
.utility .util-right { display: flex; gap: 18px; align-items: center; }
.utility .util-donate {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  transition: background 140ms, color 140ms;
}
.utility .util-donate:hover { background: var(--white); color: var(--navy-900) !important; }
.utility .dot { width: 6px; height: 6px; background: var(--white); border-radius: 999px; display: inline-block; opacity: 0.9; }
@media (max-width: 720px) {
  .utility .util-left .meet-here { display: none; }
}

/* =========== Header / Nav =========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 200ms;
}

/* Make the JS-injected wrapper not a containing block so sticky works */
#site-header-slot { display: contents; }
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(7, 23, 58, 0.08);
}
@media (max-width: 1080px) {
  /* Compact the sticky header on mobile so it doesn't eat too much screen */
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-header .brand img { height: 36px !important; }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text .b-1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-text .b-2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--slate-700);
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 120ms, color 120ms;
}
.nav-item > a:hover,
.nav-item.active > a {
  color: var(--sky-500);
  background: transparent;
}
.nav-item .caret {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  margin-left: 2px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 140ms, transform 140ms, visibility 140ms;
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-dropdown a:hover {
  background: var(--slate-100);
  color: var(--navy-700);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--sky-500);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  margin-left: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 120ms;
}
.nav-cta:hover { background: var(--sky-700); }
.nav-cta .arrow { width: 14px; height: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 8px 10px;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 12px 20px 20px; gap: 0; align-items: stretch; }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; padding: 12px 8px; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 20px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
  text-decoration: none;
}
.btn .arrow { width: 16px; height: 9px; transition: transform 140ms; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--sky-500); color: var(--white); border-color: var(--sky-500); }
.btn-primary:hover { background: var(--sky-700); border-color: var(--sky-700); color: var(--white); }

.btn-gold { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); }

.btn-outline { background: transparent; color: var(--sky-500); border-color: var(--sky-500); }
.btn-outline:hover { background: var(--sky-500); color: var(--white); border-color: var(--sky-500); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-700); border-color: var(--white); }

.btn-ghost { background: transparent; color: var(--sky-500); padding: 13px 0; border: 0; }
.btn-ghost:hover { color: var(--sky-700); }

.btn-lg { padding: 15px 30px; font-size: 0.9rem; }

/* =========== Page hero (inner pages) =========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--sky-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 120px 0 88px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 90% 10%, rgba(247, 168, 27, 0.16), transparent 60%),
    radial-gradient(800px 600px at 10% 100%, rgba(0, 157, 220, 0.35), transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 540px;
  height: 540px;
  background-image: url('https://summervilleeveningrotary.org/wp-content/uploads/2020/07/Summerville-Evening-Wheel160x160.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .breadcrumb {
  color: var(--slate-300);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-hero .breadcrumb a { color: var(--gold-400); }
.page-hero .breadcrumb a:hover { color: var(--gold-500); }
.page-hero .breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero .lead {
  color: var(--slate-200);
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.2rem;
}

/* =========== Cards & sections =========== */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}
.card:hover { border-color: var(--slate-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }

.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--slate-100);
  aspect-ratio: 4 / 3;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-cap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  font-size: 0.95rem;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 23, 58, 0.7) 100%);
}

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

/* =========== Two-up content split =========== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split.tight { gap: 40px; }
.split.media-right { grid-template-columns: 1.05fr 0.95fr; }
.split.media-left { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .split, .split.media-right, .split.media-left { grid-template-columns: 1fr; gap: 40px; } }

/* =========== Footer =========== */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-200);
  padding: 80px 0 32px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-500) 0%, var(--gold-500) 50%, var(--sky-500) 100%);
}
.site-footer h4 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.site-footer a { color: var(--slate-200); }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-brand {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px;
}
.footer-brand .brand-mark { width: 52px; height: 52px; }
.footer-brand .brand-text .b-1 { color: var(--white); font-size: 1.2rem; }
.footer-brand .brand-text .b-2 { color: var(--gold-400); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--slate-400);
}
.footer-bottom .links { display: flex; gap: 16px; align-items: center; }
.footer-bottom .footer-sep { color: var(--slate-400); opacity: 0.5; }

.newsletter {
  display: flex; gap: 8px; margin-top: 8px;
}
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.newsletter input:focus { outline: 2px solid var(--gold-500); outline-offset: -1px; }
.newsletter input::placeholder { color: var(--slate-400); }
.newsletter button {
  padding: 12px 16px;
  background: var(--gold-500);
  color: var(--navy-900);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.newsletter button:hover { background: var(--gold-400); }

/* =========== Form elements =========== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--slate-700); }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: -1px;
  border-color: var(--navy-600);
}

/* =========== Misc helpers =========== */
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: var(--slate-200); }
.bg-slate { background: var(--slate-100); }

.text-center { text-align: center; }
.center-narrow { max-width: 760px; margin: 0 auto; }

.divider-gold {
  width: 56px; height: 4px; background: var(--gold-500); border: 0; margin: 0 0 22px;
}
.text-center .divider-gold { margin-left: auto; margin-right: auto; }

/* =========== Mobile / responsive polish (≤768px) =========== */
@media (max-width: 768px) {
  /* Tighter section padding */
  .section { padding: 36px 0; }
  .section-lg { padding: 48px 0; }

  /* Page heros */
  .page-hero { padding: 80px 0 56px; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
  .page-hero .lead { font-size: 1.05rem; }
  .page-hero::after {
    /* Smaller gear watermark so it doesn't crowd narrow screens */
    width: 320px; height: 320px;
    top: -60px; right: -100px;
    opacity: 0.06;
  }

  /* Wrap padding */
  .wrap, .wrap-narrow { padding: 0 18px; }

  /* Buttons — bigger touch targets */
  .btn { padding: 12px 22px; font-size: 0.82rem; min-height: 44px; }
  .btn-lg { padding: 14px 26px; min-height: 48px; }

  /* Eyebrow size */
  .eyebrow { font-size: 0.7rem; }

  /* Lead body text */
  .lead { font-size: 1.05rem; }

  /* Container splits stack */
  .split { gap: 28px !important; }
  .split.media-right, .split.media-left { grid-template-columns: 1fr !important; }

  /* Footer */
  .site-footer { padding: 56px 0 24px; }
  .footer-grid { gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; font-size: 0.78rem; text-align: left; }
  .footer-bottom .links { flex-wrap: wrap; gap: 10px 16px; }
  .footer-bottom .footer-sep { display: none; }

  /* Utility bar */
  .utility { font-size: 0.78rem; }
  .utility .wrap { gap: 12px; }
  .utility .util-left { gap: 12px; }
  .utility .util-donate { padding: 4px 10px; font-size: 0.68rem; }
}

/* =========== Very narrow phones (≤480px) =========== */
@media (max-width: 480px) {
  /* Hide utility bar text labels — keep only Donate + Facebook */
  .utility .util-left a { display: none; }
  .utility .util-left span:first-child { font-size: 0.74rem; }
  .utility .util-right a:not(.util-donate):not([aria-label="Facebook"]) { display: none; }

  /* Hero D specific */
  .hero-d { min-height: 0; }
  .hero-d .hero-content { min-height: 0; padding: 60px 0 40px; }
  .hero-d h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-d .deck { font-size: 1rem; }
  .hero-d .ri-strip { position: static; backdrop-filter: none; }
  .hero-d .ri-strip .wrap { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .hero-d .ri-stats { gap: 18px; }
  .hero-d .ri-stat .num { font-size: 1.2rem; }

  /* Impact cards: stat bar smaller */
  .impact-card .stat-bar { font-size: 1.05rem; padding: 12px 18px; }

  /* Calendar grid: minimal day chips */
  .cal-day { min-height: 70px; padding: 4px 6px; font-size: 0.78rem; }
  .cal-day .d { font-size: 0.85rem; }
  .cal-event { font-size: 0.65rem; padding: 2px 6px; }
  .cal-dow { padding: 8px 4px; font-size: 0.66rem; letter-spacing: 0.08em; }

  /* Calendar toolbar */
  .cal-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cal-toolbar .month { text-align: center; }

  /* Event rows */
  .event-row { gap: 14px; padding: 18px 0; }
  .event-date { padding: 8px 10px; }
  .event-date .day { font-size: 1.5rem; }

  /* Map height shorter */
  .map-frame { height: 320px; }

  /* Sponsor tier grid: full width */
  .sponsor-tiers { grid-template-columns: 1fr; }

  /* News & misc */
  .news-card .img-frame { aspect-ratio: 16 / 10; }

  /* Members grid: single column on very narrow */
  .member-grid { grid-template-columns: 1fr; }

  /* President portrait — smaller */
  .president-card .portrait { max-width: 240px; margin: 0 auto; }
  .president-card .portrait::after { display: none; }
  .president-card { gap: 24px; }
}

/* =========== Touch-friendly form controls =========== */
@media (hover: none) {
  /* Prevent iOS auto-zoom by ensuring inputs are at least 16px */
  .field input, .field textarea, .field select,
  input[type="email"], input[type="text"], input[type="tel"], input[type="number"],
  textarea, select {
    font-size: 16px;
  }
}


/* =========== Stat counters =========== */
.count-up { font-variant-numeric: tabular-nums; }

/* =========== Join 3 steps (homepage) =========== */
.join3 {
  background: var(--paper);
  padding: 56px 0 64px;
}
.join3 .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .join3 .head { grid-template-columns: 1fr; gap: 18px; } }
.join3 .head p { color: var(--slate-500); margin: 0; max-width: 52ch; }
.join3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .join3-steps { grid-template-columns: 1fr; } }
.j3-step {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 28px 30px;
  border: 1px solid var(--slate-200);
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  text-decoration: none;
  color: var(--ink);
}
.j3-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.j3-step .num {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--sky-500);
}
.j3-step h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.j3-step p { margin: 0; color: var(--slate-500); font-size: 0.92rem; line-height: 1.5; flex: 1; }
.j3-step .go {
  margin-top: 8px;
  color: var(--sky-500);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: gap 200ms, color 200ms;
}
.j3-step:hover .go { color: var(--sky-700); gap: 12px; }

/* =========== News preview cards (homepage) =========== */
.news-preview { background: var(--white); padding: 64px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 800px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-card .img-frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-100); }
.news-card .img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.news-card:hover .img-frame img { transform: scale(1.04); }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--sky-500);
}
.news-card h3 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.news-card p { margin: 0; color: var(--slate-500); font-size: 0.92rem; line-height: 1.5; flex: 1; }

/* =========== Where your dollar goes (Fundraisers) =========== */
.allocation-vis {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .allocation-vis { grid-template-columns: 1fr; gap: 32px; } }
.alloc-donut {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.alloc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.alloc-donut .ring { fill: none; stroke-width: 24; }
.alloc-donut .ring.bg { stroke: var(--slate-100); }
.alloc-donut .ring.s1 { stroke: var(--navy-700); stroke-linecap: butt; }
.alloc-donut .ring.s2 { stroke: var(--sky-500); stroke-linecap: butt; }
.alloc-donut .ring.s3 { stroke: var(--gold-500); stroke-linecap: butt; }
.alloc-donut .center {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  text-align: center;
}
.alloc-donut .center .pct { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--navy-700); }
.alloc-donut .center .lab { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); font-weight: 800; margin-top: 8px; max-width: 16ch; }

.alloc-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.alloc-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--slate-200); }
.alloc-legend li:last-child { border-bottom: 0; }
.alloc-legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-top: 6px; }
.alloc-legend .s1 { background: var(--navy-700); }
.alloc-legend .s2 { background: var(--sky-500); }
.alloc-legend .s3 { background: var(--gold-500); }
.alloc-legend h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.alloc-legend p { margin: 0; font-size: 0.88rem; color: var(--slate-500); line-height: 1.5; }
.alloc-legend .pct { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }

/* =========== Nearby clubs (Visit) =========== */
.nearby-clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 800px) { .nearby-clubs { grid-template-columns: 1fr; } }
.nearby-club {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 160ms, transform 160ms;
}
.nearby-club:hover { border-color: var(--sky-500); transform: translateY(-2px); }
.nearby-club .when { font-size: 0.74rem; letter-spacing: 0.14em; font-weight: 800; color: var(--sky-500); text-transform: uppercase; }
.nearby-club h4 { margin: 6px 0 4px; font-size: 1.1rem; font-weight: 800; }
.nearby-club .where { font-size: 0.88rem; color: var(--slate-500); }

/* =========== Print styles (Documents + general) =========== */
@media print {
  .utility, .site-header, .site-footer, .nav-toggle { display: none !important; }
  .page-hero { background: none !important; color: var(--ink) !important; padding: 24px 0 !important; }
  .page-hero h1, .page-hero p, .page-hero a { color: var(--ink) !important; }
  .page-hero::before, .page-hero::after { display: none !important; }
  .doc-row { padding: 8px 0 !important; border-bottom: 1px solid #ccc !important; }
  .doc-icon { background: none !important; color: var(--ink) !important; border: 1px solid #888; }
  .doc-icon::after { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
  a { color: var(--ink) !important; text-decoration: none !important; }
  .btn, .info-card { background: none !important; border: 1px solid #888 !important; color: #000 !important; }
}


/* =========== Anim on scroll (subtle) =========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in { opacity: 1; transform: none; }
