/* =============================================
   Zahira G9 — Main Stylesheet
   Brand: Green #016936 · Red #891A1C · Silver #D5D9DB
   Fonts: Libre Baskerville (serif) · Open Sans (sans)
   ============================================= */

:root {
  --green:       #016936;
  --green-dark:  #014d27;
  --green-light: #e8f5ee;
  --red:         #891A1C;
  --red-dark:    #6E1517;
  --silver:      #D5D9DB;
  --silver-dark: #9aa3a8;
  --white:       #ffffff;
  --off-white:   #f7f9f8;
  --dark:        #1a1a1a;
  --gray:        #555555;
  --light-gray:  #f0f2f1;
  --font-serif:  'Libre Baskerville','Bookman Old Style','Georgia',serif;
  --font-sans:   'Open Sans','Arial',sans-serif;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  all 0.3s ease;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body  { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.7; overflow-x: hidden; max-width: 100vw; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }

/* ── Typography ─────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem,5vw,3.8rem); }
h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); }
h3 { font-size: clamp(1.2rem,2vw,1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--gray); }

.section-label {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 0.6rem; display: block;
}
.section-title        { margin-bottom: 1rem; }
.section-title span   { color: var(--green); }
.section-desc         { font-size: 1.05rem; max-width: 620px; color: var(--gray); }

/* ── Layout ──────────────────────────────── */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.section     { padding: 90px 0; overflow-x: hidden; }
.section--gray  { background: var(--off-white); }
.section--dark  { background: var(--dark); }
.section--green { background: var(--green); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
/* About section: stretch both columns to the same height */
#about .container.grid-2 { align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.divider { width: 60px; height: 4px; border-radius: 2px; background: linear-gradient(to right,var(--green),var(--red)); margin: 12px 0 20px; }
.divider.center { margin: 12px auto 20px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.03em; transition: var(--transition);
}
.btn-primary  { background: var(--green); color: var(--white); box-shadow: 0 4px 15px rgba(1,105,54,0.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(1,105,54,0.45); }
.btn-outline  { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--green); }
/* A-03: readable contrast when btn-outline floats over a photo hero */
.hero-actions .btn-outline {
  background: rgba(0,0,0,0.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-actions .btn-outline:hover { background: var(--white); color: var(--green); }
.btn-red      { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
/* CT-01: disabled state — visually subdued, no pointer events */
.btn--disabled { opacity: 0.42; cursor: not-allowed; pointer-events: none; }

/* ── Announcement Bar ────────────────────── */
/* A-02 FIX: Ensure WCAG AA contrast (≥4.5:1).
   White on --red-dark (#6E1517) = ~6.3:1 ✓
   Link uses warm yellow #ffe98a for clear differentiation on the dark bg. */
.announcement-bar {
  background: var(--red-dark); color: #ffffff;
  padding: 10px 24px; text-align: center; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.announcement-bar a { color: #ffe98a; text-decoration: underline; font-weight: 700; }
.announcement-bar a:hover { color: #ffffff; }

/* ── Navigation ──────────────────────────── */
.site-nav {
  position: fixed; top: var(--g9nt-bar-height, 0); left: 0; right: 0; z-index: 1000;
  transition: top 0.18s ease;
  /* Rich layered gradient — deep forest to mid-green, with a subtle dark vignette */
  background: linear-gradient(135deg, rgba(0,22,11,0.98) 0%, rgba(1,62,33,0.97) 50%, rgba(0,28,14,0.98) 100%);
  backdrop-filter: blur(14px);
  /* Accent underline: green → red → green */
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--green), var(--red) 50%, var(--green)) 1;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: var(--transition); padding: 0;
  overflow: visible; /* allow logo circle to jut below nav bar */
}
body.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; overflow: visible; }

/* ── Logo ─────────────────────────────── */
.nav-logo { display: flex; align-items: center; gap: 22px; flex-shrink: 0; text-decoration: none; }
/* White circle that juts below the nav bar — like a wheel under a chassis */
.nav-logo-img-wrap {
  background: #fff;
  border-radius: 50%;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  /* Push down so the lower portion juts below the nav bar */
  margin-top: 30px;
  position: relative; z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 3px rgba(168,240,192,0.3);
  border: 3px solid rgba(1,105,54,0.35);
}
/* WordPress wraps custom logo in an <a> — strip its styles */
.nav-logo-img-wrap .custom-logo-link { display: flex; align-items: center; background: none !important; padding: 0; line-height: 0; }
/* Logo image fills the white circle */
.nav-logo-img-wrap img,
.nav-logo-img-wrap .custom-logo-link img { height: 90px !important; width: 90px !important; object-fit: contain; display: block; }
/* Text next to logo — larger and bolder */
.nav-logo-text { padding-bottom: 2px; transform: translateY(-8px); }  /* v23.8.7 - clear the logo's own baked-in text */
.nav-logo-text strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.nav-logo-text span   { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; white-space: nowrap; margin-top: 2px; font-weight: 500; }

/* ── Nav Links — consistent pill hover, NO underline ── */
.nav-links { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.nav-item  { position: relative; display: flex; align-items: center; }
.nav-link  {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.82); font-size: 0.82rem; font-weight: 500;
  padding: 7px 13px; height: auto;
  border-radius: 8px;                     /* rounded pill — no sharp corners */
  border: 1px solid transparent;
  transition: all 0.2s ease; white-space: nowrap; background: none;
  line-height: 1;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.14);
}
.nav-link.active {
  color: var(--white);
  background: rgba(1,105,54,0.4);
  border-color: rgba(168,240,192,0.25);
}
.nav-chevron { font-size: 0.6rem; opacity: 0.55; margin-left: 3px; transition: transform 0.22s ease; }
.nav-item.has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Contact Us — red pill button */
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  border-radius: 8px !important; border-color: transparent !important;
  padding: 7px 16px !important; font-weight: 600;
  box-shadow: 0 2px 10px rgba(137,26,28,0.4);
  margin-left: 6px;
}
.nav-cta:hover { background: var(--red-dark) !important; box-shadow: 0 4px 16px rgba(137,26,28,0.5) !important; }

/* ── Dropdown Menus ──────────────────────── */
.nav-dropdown {
  display: block; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  /* Frosted glass dropdown */
  background: rgba(0,25,13,0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;                    /* fully rounded dropdown panel */
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(168,240,192,0.08);
  z-index: 500; padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: 9px 14px;
  color: rgba(255,255,255,0.82); font-size: 0.82rem; font-weight: 400;
  border-radius: 7px;
  transition: all 0.15s ease; white-space: nowrap;
}
.dropdown-link:hover { background: rgba(255,255,255,0.1); color: #fff; padding-left: 18px; }
/* Section label inside a dropdown — "Special Projects" style divider */
.dropdown-group-header {
  padding: 10px 14px 4px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #a8f0c0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 4px; cursor: default; pointer-events: none;
  white-space: nowrap;
}
.nav-dropdown .dropdown-group-header:first-child { border-top: none; margin-top: 0; }

/* Mobile hamburger */
.nav-toggle {
  display: none; padding: 8px 10px; border-radius: 8px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  flex-shrink: 0; align-self: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.18); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
/* Animate to X when open */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────── */
/* ── Hero Section (H-01 Option C — full-bleed cinematic, single-column centred) ── */
.hero-section {
  min-height: 92vh;
  background:
    linear-gradient(160deg, rgba(0,18,9,0.82) 0%, rgba(1,55,30,0.62) 50%, rgba(0,18,9,0.80) 100%),
    url('../images/hero-bg.jpg') center 30% / cover no-repeat;
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-section::before { display: none; }
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 75%, rgba(137,26,28,0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168,240,192,0.07) 0%, transparent 50%);
}

/* ── H-01 Option C: centred single-column layout ── */
.hero-content {
  position: relative; z-index: 2;
  padding: 120px 24px 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1180px; margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: var(--white); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 28px;
}
.hero-badge i { color: #ffd700; }
.hero-title {
  font-family: var(--font-serif); color: var(--white);
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  line-height: 1.1; margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title em { font-style: italic; color: #a8f0c0; display: block; }
.hero-desc {
  color: rgba(255,255,255,0.82); font-size: 1.15rem; line-height: 1.85;
  margin-bottom: 40px; max-width: 680px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Hero card & scroll removed in Option C — kept as hidden to avoid parse errors */
.hero-left, .hero-card, .hero-scroll { display: none; }
.btn-sm { padding: 9px 20px !important; font-size: 0.82rem !important; }

@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(6px)} }

/* ── About ───────────────────────────────── */
/* Single image path (when admin uploads a custom photo) */
.about-image   {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: -40px; align-self: flex-start;
}
.about-img     { width: 100%; height: 520px; object-fit: cover; object-position: center top; }

/* ── Photo collage ──────────────────────────────────────────
   Layout (desktop):
     Row 1 (2fr): One full-width main photo — ideal for wide group shots
     Row 2 (1fr): Three landscape cells
     Row 3 (1fr): Three landscape cells
   Total: 7 images. All cells use object-fit:cover so nothing distorts.
─────────────────────────────────────────────────────────── */
.about-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 2fr 1fr 1fr;
  gap: 6px;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 0; align-self: stretch;
}
/* Main — spans all 3 columns, stays wide and landscape */
.collage-main {
  grid-column: 1 / 4;
  grid-row: 1;
  overflow: hidden; position: relative; background: var(--green-light);
}
/* Each side cell */
.collage-cell { overflow: hidden; position: relative; background: var(--green-light); }
.collage-cell img,
.collage-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;  /* centre-crop: no stretching, full coverage */
  display: block;
  transition: transform 0.4s ease;
}
.collage-cell:hover img,
.collage-main:hover img { transform: scale(1.04); }

/* Badge sits over the bottom-left of the collage */
.about-image-badge, .about-collage .about-image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--green); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-serif); z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.about-image-badge strong { display: block; font-size: 1.4rem; }
.about-image-badge span   { font-size: 0.76rem; opacity: 0.9; }
.about-quote { border-left: 4px solid var(--green); padding-left: 20px; margin: 24px 0; font-family: var(--font-serif); font-style: italic; color: var(--green-dark); font-size: 1.05rem; line-height: 1.7; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.about-pillar  { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--green-light); border-radius: var(--radius); }
.about-pillar i   { color: var(--green); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.about-pillar h4  { color: var(--green-dark); font-size: 0.9rem; margin-bottom: 2px; }
.about-pillar p   { font-size: 0.82rem; color: var(--gray); }

/* ── Stats Strip ─────────────────────────── */
/* C-01: Light background breaks the all-dark stacking of navbar+hero+announcement+stats */
/* Option C: tri-colour left border (green top-third / red mid / silver bottom) */
.stats-strip { background: #d6ebe0; padding: 56px 0; border-top: 1px solid rgba(1,105,54,0.18); border-bottom: 1px solid rgba(1,105,54,0.18); position: relative; }
.stats-strip::before { content:''; position:absolute; top:0; left:0; bottom:0; width:5px; background:linear-gradient(to bottom, var(--green) 0%, var(--green) 33.33%, var(--red) 33.33%, var(--red) 66.66%, var(--silver) 66.66%, var(--silver) 100%); }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item   { text-align: center; padding: 20px; border-right: 1px solid rgba(1,105,54,0.15); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-serif); font-size: 3rem; color: var(--green); line-height: 1; }
.stat-plus   { font-size: 1.8rem; }
.stat-label  { font-size: 0.82rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ── Events ──────────────────────────────── */
.events-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.event-card    { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.06); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-card-image { position: relative; overflow: hidden; }
.event-card-image img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.event-card:hover .event-card-image img { transform: scale(1.05); }
.event-badge      { position: absolute; top: 14px; left: 14px; background: var(--green); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 50px; text-transform: uppercase; }
.event-badge.sport  { background: var(--red); }
.event-badge.social { background: #b8860b; }
.event-card-body    { padding: 22px; }
.event-meta         { display: flex; gap: 16px; margin-bottom: 10px; }
.event-meta span    { font-size: 0.78rem; color: var(--silver-dark); display: flex; align-items: center; gap: 5px; }
.event-meta i       { color: var(--green); }
.event-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.event-card-body p  { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }
.event-card-footer  { padding: 14px 22px; border-top: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.event-link         { font-size: 0.82rem; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 5px; }
.event-link:hover   { color: var(--green-dark); }

/* ── Gallery ─────────────────────────────── */
.gallery-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
/* M-03: min-height 44px for WCAG 2.5.8 touch target size */
.gallery-tab  { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 2px solid var(--silver); color: var(--gray); background: var(--white); transition: var(--transition); cursor: pointer; }
.gallery-tab.active, .gallery-tab:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img  { width: 100%; height: 100%; min-height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay   { position: absolute; inset: 0; background: linear-gradient(to top,rgba(1,55,27,0.75) 0%,transparent 60%); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 16px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 600; }

/* ── Committee ───────────────────────────── */
.committee-intro { max-width: 600px; margin: 0 auto 48px; }
/* CM-01: justify-content:start prevents last partial row from stretching */
.committee-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; justify-content: start; }
.member-card     { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); }
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member-photo    { position: relative; overflow: hidden; height: 200px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.member-card:hover .member-photo img { transform: scale(1.05); }
.member-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--green-light),var(--silver)); display: flex; align-items: center; justify-content: center; }
.member-photo-placeholder i { font-size: 3rem; color: var(--green); opacity: 0.5; }
.member-info   { padding: 18px 16px; }
.member-info h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--dark); }
.member-role   { font-size: 0.78rem; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.chairman-card { display: flex; gap: 32px; align-items: center; background: linear-gradient(135deg,var(--green-dark),var(--green)); border-radius: var(--radius-lg); padding: 36px; margin-bottom: 36px; color: var(--white); }
.chairman-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.chairman-placeholder { width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; border: 4px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.chairman-placeholder i { font-size: 3.5rem; color: rgba(255,255,255,0.5); }
.chairman-info .role-badge { background: rgba(255,255,255,0.15); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 50px; display: inline-block; margin-bottom: 10px; text-transform: uppercase; }
.chairman-info h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.chairman-info p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ── Projects ────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.project-card  { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-md); transition: var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-bg-img, .project-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-bg-img,
.project-card:hover > img { transform: scale(1.06); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(1,30,15,0.88) 0%,rgba(0,0,0,0.15) 60%,transparent 100%); }
.project-body  { position: relative; z-index: 2; padding: 24px; }
.project-tag   { display: inline-block; background: var(--red); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; margin-bottom: 10px; }
.project-body h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.project-body p  { color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.5; }
.project-link  { display: inline-flex; align-items: center; gap: 6px; color: #a8f0c0; font-size: 0.82rem; font-weight: 600; margin-top: 14px; }
.project-link i { transition: transform 0.2s; }
.project-card:hover .project-link i { transform: translateX(4px); }

/* ── News ────────────────────────────────── */
.news-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card     { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card img   { width: 100%; height: 200px; object-fit: cover; }
.news-card-body  { padding: 22px; }
.news-date       { font-size: 0.75rem; color: var(--silver-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.news-card-body h3 a { color: var(--dark); transition: color 0.2s; }
.news-card-body h3 a:hover { color: var(--green); }
.news-card-body p  { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }
.news-more         { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; font-size: 0.85rem; margin-top: 14px; }

/* ── Contact ─────────────────────────────── */
.contact-grid  { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-item  { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon  { width: 44px; height: 44px; background: var(--green-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.85rem; color: var(--dark); margin-bottom: 2px; }
.contact-item p  { font-size: 0.85rem; color: var(--gray); }
.social-links    { display: flex; gap: 10px; margin-top: 28px; }
/* M-03: 44×44px minimum touch target */
.social-btn      { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: var(--transition); background: var(--light-gray); color: var(--gray); }
.social-btn:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.contact-form    { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.06); }
.form-row        { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group      { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 12px 16px; border: 2px solid var(--silver); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.9rem; color: var(--dark); background: var(--white); transition: var(--transition); outline: none; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(1,105,54,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit     { width: 100%; padding: 14px; font-size: 0.95rem; font-weight: 700; }
#g9FormMessage.success { background: #e8f5ee; color: var(--green-dark); border: 1px solid var(--green); }
#g9FormMessage.error   { background: #fdf0f0; color: var(--red-dark); border: 1px solid var(--red); }

/* ── Footer ──────────────────────────────── */
.site-footer   { background: #0d2e1a; color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img, .footer-brand .custom-logo { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p  { font-size: 0.87rem; line-height: 1.7; opacity: 0.75; margin-bottom: 20px; }
.footer-col h4   { color: var(--white); font-size: 0.9rem; font-family: var(--font-serif); margin-bottom: 18px; }
.footer-col li   { margin-bottom: 10px; }
.footer-col a    { font-size: 0.85rem; opacity: 0.7; transition: var(--transition); }
.footer-col a:hover { opacity: 1; color: #a8f0c0; }
.footer-green-stripe { height: 4px; background: linear-gradient(to right,var(--green),var(--red),var(--silver)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.8rem; opacity: 0.55; }

/* ── Scroll-to-top ───────────────────────── */
#scrollTop { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 900; }
#scrollTop.visible { opacity: 1; pointer-events: all; }
#scrollTop:hover   { background: var(--green-dark); transform: translateY(-3px); }

/* ── Archive Page Shared ─────────────────── */
.archive-section { padding-top: 110px; padding-bottom: 80px; }
body.admin-bar .archive-section { padding-top: 142px; }
.archive-header { margin-bottom: 40px; }

/* ── Gallery Archive (Album Grid) ─────────── */
.album-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.album-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.album-card-link { display: block; position: relative; overflow: hidden; }
.album-card-img {
  width: 100%; height: 260px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-card-img { transform: scale(1.06); }
.album-card-placeholder {
  width: 100%; height: 260px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--green); opacity: 0.35;
}
.album-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(1,30,15,0.92) 0%, transparent 100%);
  color: var(--white);
}
.album-card-overlay h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.album-card-overlay p  { color: rgba(255,255,255,0.78); font-size: 0.82rem; margin-bottom: 10px; line-height: 1.5; }
.album-card-cta {
  font-size: 0.78rem; font-weight: 600; color: #a8f0c0;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── Events Archive ──────────────────────── */
.events-archive-block { margin-bottom: 0; }
.event-placeholder-img {
  height: 200px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--green); opacity: 0.35;
}
.event-upcoming-ribbon {
  position: absolute; top: 14px; right: 14px;
  background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 50px; text-transform: uppercase;
}
.btn-sm { padding: 8px 14px !important; font-size: 0.8rem !important; }

/* ── WordPress core overrides ────────────── */
.wp-block-image img { border-radius: var(--radius); }
.wp-caption-text    { font-size: 0.82rem; color: var(--silver-dark); text-align: center; margin-top: 6px; }
.aligncenter        { margin: 0 auto; }

/* ── Vibrancy: richer card hover & section accents ── */
.event-card:hover  { box-shadow: 0 12px 36px rgba(1,105,54,0.18); }
.news-card:hover   { box-shadow: 0 12px 36px rgba(1,105,54,0.15); }
.member-card:hover { box-shadow: 0 8px 24px rgba(1,105,54,0.14); }
.project-card:hover .project-overlay { opacity: 0.55; }
/* Accent line above alternate sections */
.section--gray { border-top: 3px solid transparent; border-image: linear-gradient(to right,var(--green),var(--red)) 1; }
/* Stat numbers slightly more vibrant */
.stat-number { font-family: var(--font-serif); font-size: 3.2rem; color: #a8f0c0; line-height: 1; }
/* Stronger section divider gradient */
.divider { width: 60px; height: 4px; border-radius: 2px; background: linear-gradient(to right,var(--green) 40%,var(--red) 100%); margin: 12px 0 20px; box-shadow: 0 2px 6px rgba(1,105,54,0.3); }
/* Better button primary shadow */
.btn-primary { box-shadow: 0 4px 18px rgba(1,105,54,0.4); }

/* ── Responsive ──────────────────────────── */
@media (max-width:1200px) {
  .nav-logo-text strong { font-size: 0.85rem; }
  .nav-link { padding: 0 10px; font-size: 0.78rem; }
}
@media (max-width:1024px) {
  .grid-4,.committee-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-logo-text span { display: none; } /* hide subtitle on mid screens to save space */
}
@media (max-width:900px) {
  /* hide logo subtitle, keep name */
  .nav-logo-text strong { font-size: 0.82rem; }
}

/* ── Mobile nav breakpoint ── */
@media (max-width:768px) {
  /* ── General spacing ── */
  .section     { padding: 52px 0; }
  .container   { padding: 0 18px; }

  /* ── Nav ── */
  .nav-logo-text { display: block; }
  .nav-logo-text strong { font-size: 0.85rem; white-space: nowrap; }
  .nav-logo-text span   { display: block; font-size: 0.68rem; margin-top: 1px; }
  .nav-logo-img-wrap { width: 70px; height: 70px; margin-top: 14px; }
  .nav-logo-img-wrap img,
  .nav-logo-img-wrap .custom-logo-link img { height: 54px !important; width: 54px !important; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-self: center; margin-top: 0; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(0,18,10,0.98); backdrop-filter: blur(14px);
    padding: 6px 0 24px; z-index: 999; max-height: 82vh; overflow-y: auto;
    border-top: 1px solid rgba(168,240,192,0.1);
  }
  .nav-links.open .nav-item { width: 100%; }
  .nav-links.open .nav-link {
    width: 100%; height: auto; padding: 14px 20px;
    border-radius: 0; border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem; background: none;
    display: flex; justify-content: space-between; align-items: center;
  }
  .nav-links.open .nav-link:hover,
  .nav-links.open .nav-link.active { background: rgba(255,255,255,0.07); border-color: transparent; }
  .nav-links.open .nav-cta { margin: 12px 20px 4px; height: 44px !important; border-radius: 8px !important; width: calc(100% - 40px); justify-content: center; }
  /* ── Mobile accordion: vertical slide-down, not sideways ── */
  /* 1. Make the parent item a column so the dropdown flows BELOW the link */
  .nav-links.open .nav-item.has-dropdown {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open .nav-item.has-dropdown > .nav-link {
    width: 100%;
    justify-content: space-between;
  }
  /* 2. Dropdown: collapsed by default, no absolute positioning */
  .nav-links.open .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    width: 100%;
  }
  /* 3. Expanded state — slide down smoothly */
  .nav-links.open .nav-item.mobile-open > .nav-dropdown {
    max-height: 400px;
  }
  /* 4. Sub-items: indented with green left accent bar */
  .nav-links.open .dropdown-link {
    padding: 11px 20px 11px 36px;
    font-size: 0.9rem; border-radius: 0;
    border-left: 3px solid rgba(168,240,192,0.35);
    margin-left: 20px;
    display: block;
    color: rgba(255,255,255,0.75);
  }
  .nav-links.open .dropdown-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
  /* Group headers on mobile — same indented style but not tappable */
  .nav-links.open .dropdown-group-header {
    padding: 10px 20px 4px 36px;
    border-left: 3px solid rgba(168,240,192,0.6);
    margin-left: 20px; margin-top: 4px;
    border-top: none;
    font-size: 0.62rem; letter-spacing: 0.14em;
  }
  /* 5. Chevron rotates when open */
  .nav-links.open .nav-item.mobile-open > .nav-link .nav-chevron { transform: rotate(180deg); opacity: 1; }
  body.admin-bar .nav-links.open { top: 100px; }

  /* ── Hero (Option C centred — mobile tweaks) ── */
  .hero-content  { padding: 100px 18px 60px; }
  .hero-title    { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hero-desc     { font-size: 0.97rem; }
  .hero-actions  { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 0.85rem; }
  .hero-badge    { font-size: 0.7rem; }

  /* ── Grids → single column ── */
  .grid-2        { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .news-grid, .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-2-events { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .committee-grid{ grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .album-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── About ── */
  .about-para-2  { display: none; }        /* hide second paragraph on mobile */
  .about-pillars { grid-template-columns: 1fr; }
  .about-img     { height: 260px; }
  .about-image-badge { padding: 10px 14px; }
  .about-image-badge strong { font-size: 1.1rem; }
  /* Mobile collage: main full-width + 2 side cells, 180px total */
  .about-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 80px;
    min-height: unset;
    height: auto;
    margin-top: 0;
  }
  .collage-main {
    grid-column: 1 / 3;  /* full width on mobile too */
    grid-row: 1;
  }
  /* Show only 2 side photos on mobile, hide the rest */
  .collage-cell:nth-child(n+4) { display: none; }
  .about-collage .about-image-badge { display: none; }
  .about-image { margin-top: 0; }

  /* ── Chairman / committee ── */
  .chairman-card { flex-direction: column; text-align: center; gap: 18px; }
  .chairman-card img { margin: 0 auto; }
  .committee-intro p { font-size: 0.9rem; }

  /* ── Gallery ── */
  .gallery-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item.tall,.gallery-item.wide { grid-column: span 1; grid-row: span 1; }

  /* ── Cards ── */
  .event-card-image img { height: 180px; }
  .news-card img, .news-card > div:first-child { max-height: 180px; }

  /* ── Sections ── */
  .section-title { font-size: clamp(1.5rem,6vw,2.2rem); }
  .flex-between  { flex-direction: column; align-items: flex-start; gap: 14px; }
  .events-header { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* ── Footer ── */
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width:480px) {
  /* Tighten further on very small phones */
  .section { padding: 40px 0; }
  .container { padding: 0 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-number { font-size: 2.4rem; }
  .stat-label  { font-size: 0.72rem; }
  .committee-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member-photo { width: 72px; height: 72px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-title   { font-size: clamp(2rem,8vw,2.8rem); }
  .hero-content { padding: 90px 16px 50px; }
  .btn          { padding: 11px 18px; font-size: 0.82rem; }
  .chairman-card { padding: 20px; }
  .section-title span { display: inline; }
  .news-card-body { padding: 16px; }
  .event-card-body { padding: 16px; }
  h2 { font-size: clamp(1.4rem,5.5vw,2rem); }
}

/* ═══════════════════════════════════════
   HIGHLIGHTS STRIP
════════════════════════════════════════ */
.highlights-section {
  padding: 56px 0 48px;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.highlights-header {
  text-align: center;
  margin-bottom: 32px;
}

.highlights-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.highlight-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  text-decoration: none;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.highlight-card:hover .highlight-img {
  transform: scale(1.06);
}

.highlight-img--placeholder {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
}

.highlight-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 7px;
  align-self: flex-start;
}

.highlight-overlay h3 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  font-family: var(--font-serif);
}

/* Two-column grid for events preview */
.grid-2-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ── Highlights responsive ── */
@media (max-width: 900px) {
  .highlights-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .highlights-strip .highlight-card:nth-child(4),
  .highlights-strip .highlight-card:nth-child(5) {
    display: none;
  }
}
@media (max-width: 600px) {
  .highlights-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .highlights-strip .highlight-card:nth-child(3),
  .highlights-strip .highlight-card:nth-child(4),
  .highlights-strip .highlight-card:nth-child(5) {
    display: none;
  }
  .grid-2-events {
    grid-template-columns: 1fr;
  }
  .highlight-overlay h3 { font-size: 0.82rem; }
}

/* ═══════════════════════════════════════
   A-06 — FOCUS-VISIBLE OUTLINES (WCAG 2.1 AA)
   Keyboard users get a clear 3px green ring on every
   interactive element. Mouse users are unaffected because
   :focus-visible only fires on keyboard/programmatic focus.
════════════════════════════════════════ */

/* 1. Strip UA default outlines everywhere — we supply our own */
*:focus { outline: none; }

/* 2. Restore a consistent, branded outline for keyboard focus */
*:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 3. Nav links — tighter radius to follow pill shape */
.nav-link:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* 4. Buttons — follow button radius */
.btn:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(1,105,54,0.25);
}

/* 5. Form inputs already have green border on :focus;
      add the ring on top for keyboard users */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(1,105,54,0.18);
}

/* 6. Announcement bar links */
.announcement-bar a:focus-visible {
  outline-color: #ffffff;
  outline-offset: 2px;
}

/* 7. Gallery & highlight cards */
.gallery-item:focus-visible,
.highlight-card:focus-visible {
  outline-offset: 2px;
}                       /* v20.1 — added missing closing brace; the unclosed rule was eating every declaration after this point */

/* ── Projects dropdown extensions (theme v13) ───────────────────────────────
 *
 * .dropdown-group-link   — clickable series title (acts like a group header
 *                          but navigates to the series hub page).
 * .dropdown-link--indent — edition links indented under their series.
 * .dropdown-link--all    — "All Projects" hub link, slightly bold.
 * .nav-chevron-sm        — tiny right-arrow on series links.
 * .g9-projects-dropdown  — wider panel to accommodate indented edition names.
 *
 * To add a new series in future: WP Admin → Projects → Add New (Is Series ✓).
 * It appears here automatically — no CSS change needed.
 * ─────────────────────────────────────────────────────────────────────────── */

.g9-projects-dropdown { min-width: 230px; }

/* Clickable series heading */
.dropdown-group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8f0c0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 4px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.dropdown-group-link:first-child { border-top: none; margin-top: 0; }
.dropdown-group-link:hover {
  background: rgba(168,240,192,0.1);
  color: #c8ffdc;
  text-decoration: none;
}

/* Small right chevron beside series name */
.nav-chevron-sm {
  font-size: 0.55rem;
  opacity: 0.55;
  margin-left: 4px;
}

/* Indented edition links */
.dropdown-link--indent {
  padding-left: 26px;
  font-size: 0.80rem;
  opacity: 0.88;
}
.dropdown-link--indent::before {
  content: '↳';
  margin-right: 5px;
  opacity: 0.45;
  font-size: 0.7rem;
}
.dropdown-link--indent:hover { padding-left: 30px; opacity: 1; }

/* "All Projects" link */
.dropdown-link--all {
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

/* ── Mobile: projects dropdown in accordion mode ──────────────────────────── */
@media (max-width: 900px) {
  .nav-links.open .dropdown-group-link {
    padding: 11px 20px 5px;
    font-size: 0.70rem;
    border-radius: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open .dropdown-link--indent {
    padding-left: 36px;
    font-size: 0.82rem;
  }
}

/* ───────────────────────────────────────────────────────────
   Home intro sections — Pattern A (stat-led) + Pattern B (featured) (theme v18)
─────────────────────────────────────────────────────────── */

.home-intro {
  padding-top:60px;
  padding-bottom:60px;
}
@media (min-width:880px) {
  .home-intro { padding-top:80px; padding-bottom:80px; }
}

.home-intro__row {
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  align-items:center;
}
@media (min-width:880px) {
  .home-intro--statled .home-intro__row { grid-template-columns:6fr 4fr; gap:48px; }
  .home-intro--feature .home-intro__row { grid-template-columns:55fr 45fr; gap:48px; }
}

.home-intro__copy {
  display:flex;
  flex-direction:column;
  gap:16px;
}

.home-intro__eyebrow {
  display:inline-block;
  align-self:flex-start;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--green, #016936);
  padding:4px 12px;
  background:rgba(1,105,54,0.08);
  border-radius:14px;
}

.home-intro__head {
  font-size:clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight:800;
  margin:0;
  line-height:1.25;
  letter-spacing:-0.01em;
  color:#1a1a1a;
}
.home-intro__head strong {
  color:var(--green, #016936);
  font-weight:900;
}

.home-intro__body {
  font-size:1.05rem;
  color:#3a3a3a;
  margin:0;
  line-height:1.6;
}
.home-intro__body--list {
  font-size:0.95rem;
  color:#555;
  font-weight:500;
  letter-spacing:0.01em;
}

.home-intro__cta {
  align-self:flex-start;
  margin-top:6px;
}

.home-intro__cta-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}
.home-intro__cta-row .btn--ghost {
  background:transparent;
  border:1.5px solid var(--green, #016936);
  color:var(--green, #016936);
  padding:10px 18px;
  border-radius:24px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:all 0.2s ease;
}
.home-intro__cta-row .btn--ghost:hover {
  background:var(--green, #016936);
  color:#fff;
}

/* Stat tiles cluster (Pattern A right column) */
.home-intro__stats {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
@media (min-width:480px) { .home-intro__stats { grid-template-columns:repeat(3, 1fr); } }
@media (min-width:880px) { .home-intro__stats { grid-template-columns:1fr 1fr; gap:18px; } }

.home-stat-tile {
  background:#fff;
  border:1.5px solid #e8e8e8;
  border-radius:14px;
  padding:18px 14px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:104px;
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position:relative;
  overflow:hidden;
}
.home-stat-tile::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, var(--green,#016936), #b8860b);
  opacity:0;
  transition:opacity 0.25s ease;
}
.home-stat-tile:hover {
  transform:translateY(-3px);
  border-color:var(--green, #016936);
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}
.home-stat-tile:hover::before { opacity:1; }
.section--gray .home-stat-tile { background:#fff; }

.home-stat-tile__num {
  display:block;
  font-size:clamp(1.8rem, 4vw, 2.4rem);
  font-weight:900;
  color:var(--green, #016936);
  line-height:1;
  margin-bottom:6px;
  letter-spacing:-0.02em;
}
.home-stat-tile--year .home-stat-tile__num {
  font-size:clamp(1.05rem, 2.4vw, 1.4rem);
}
.home-stat-tile__lbl {
  display:block;
  font-size:0.78rem;
  color:#666;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-weight:700;
}

/* Pattern B — featured item card (right column on GREMAW) */
.home-intro__row--feature { align-items:stretch; }

.home-feature-card {
  display:block;             /* v20.1: needed when used as <a class="home-feature-card"> */
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#0a1a0f;
  box-shadow:0 8px 30px rgba(0,0,0,0.16);
  min-height:300px;
  text-decoration:none;
  color:#fff;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
/* v20.1 — when the wrapper itself is a link, lift slightly more on hover */
.home-feature-card.home-feature-card--link:hover .home-feature-card__img {
  transform:scale(1.04);
}
.home-feature-card:hover {
  transform:translateY(-4px);
  box-shadow:0 16px 44px rgba(0,0,0,0.22);
}
.home-feature-card__link {
  display:block;
  height:100%;
  position:relative;
  text-decoration:none;
  color:#fff;
}
.home-feature-card__img {
  width:100%; height:100%;
  position:absolute; inset:0;
  object-fit:cover;
  transition:transform 0.5s ease;
}
.home-feature-card__img--ph {
  background:linear-gradient(135deg, #1a3a28, #04331c);
}
.home-feature-card:hover .home-feature-card__img { transform:scale(1.04); }
.home-feature-card__overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.78) 100%);
}
.home-feature-card__body {
  position:absolute;
  left:0; right:0; bottom:0;
  padding:22px 24px;
  z-index:1;
}
.home-feature-card__kicker {
  display:inline-block;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.28);
  padding:3px 10px;
  border-radius:12px;
  backdrop-filter:blur(4px);
  margin-bottom:8px;
}
.home-feature-card__title {
  font-size:clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight:800;
  margin:0 0 8px;
  line-height:1.25;
  text-shadow:0 1px 8px rgba(0,0,0,0.5);
}
.home-feature-card__cta {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.9rem;
  font-weight:700;
  color:#fff;
  opacity:0.92;
}
.home-feature-card__link:hover .home-feature-card__cta { opacity:1; }

/* Mobile: feature card stacks below copy */
@media (max-width:879px) {
  .home-feature-card { min-height:260px; }
  .home-intro__cta-row { flex-direction:column; align-items:flex-start; }
  .home-intro__cta-row .btn { width:100%; justify-content:center; }
}

/* ───────────────────────────────────────────────────────────
   v19 — Diversified homepage intro sections
   - .home-v19--projects : Method 1 (counters + photo collage)
   - .home-v19--sports   : Method 2 (magazine photo + sport chips)
   - .home-v19--gremaw   : Method 5 (featured + sibling thumbnails)
─────────────────────────────────────────────────────────── */

.home-v19 {
  padding-top:60px;
  padding-bottom:60px;
}
@media (min-width:880px) {
  .home-v19 { padding-top:88px; padding-bottom:88px; }
}

.home-v19__row {
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  align-items:center;
}
@media (min-width:880px) {
  .home-v19--projects .home-v19__row { grid-template-columns:6fr 5fr; gap:54px; }
  .home-v19__row--feature { grid-template-columns:55fr 45fr; gap:48px; align-items:stretch; }
}

.home-v19__copy {
  display:flex;
  flex-direction:column;
  gap:16px;
}

.home-v19__eyebrow {
  display:inline-block;
  align-self:flex-start;
  font-size:0.76rem;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--green, #016936);
  padding:5px 14px;
  background:rgba(1,105,54,0.10);
  border-radius:14px;
}
.home-v19__eyebrow--light {
  color:#fff;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.28);
  backdrop-filter:blur(4px);
}

.home-v19__head {
  font-size:clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight:800;
  margin:0;
  line-height:1.22;
  letter-spacing:-0.015em;
  color:#1a1a1a;
}
.home-v19__head strong {
  color:var(--green, #016936);
  font-weight:900;
}

.home-v19__body {
  font-size:1.05rem;
  color:#3a3a3a;
  margin:0;
  line-height:1.6;
}

.home-v19__cta { align-self:flex-start; margin-top:8px; }

.home-v19__cta-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}
.home-v19__cta-row .btn--ghost {
  background:transparent;
  border:1.5px solid var(--green, #016936);
  color:var(--green, #016936);
  padding:10px 18px;
  border-radius:24px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:all 0.2s ease;
}
.home-v19__cta-row .btn--ghost:hover {
  background:var(--green, #016936);
  color:#fff;
}

/* === PROJECTS — Method 1 (collage + counters) === */

.home-v19__visual {
  display:flex;
  flex-direction:column;
  gap:22px;
}

.home-collage {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:10px;
  aspect-ratio:1.25 / 1;
  max-width:520px;
  width:100%;
  align-self:center;
}
.home-collage__tile {
  position:relative;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,0.10);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.home-collage__tile img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.5s ease;
}
.home-collage__tile:hover {
  transform:translateY(-3px) rotate(-0.3deg);
  box-shadow:0 12px 32px rgba(0,0,0,0.18);
}
.home-collage__tile:hover img { transform:scale(1.06); }

/* Slight rotations to make the collage feel curated, not gridded */
.home-collage__tile--1 { transform:rotate(-1.2deg); }
.home-collage__tile--2 { transform:rotate(0.8deg); }
.home-collage__tile--3 { transform:rotate(0.6deg); }
.home-collage__tile--4 { transform:rotate(-0.7deg); }

.home-collage--empty {
  background:linear-gradient(135deg, #f0f4f0, #e1ebe1);
  border:2px dashed #b6c8b6;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  text-align:center;
  aspect-ratio:1.25 / 1;
}
.home-collage__hint {
  color:#5a705a;
  font-size:0.92rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.home-collage__hint i { font-size:2.2rem; opacity:0.7; }
.home-collage__hint em { color:var(--green,#016936); font-style:normal; font-weight:700; }

/* Counter row */
.home-counters {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
@media (max-width:480px) {
  .home-counters { grid-template-columns:repeat(2, 1fr); }
  .home-counters .home-counter:nth-child(3) { grid-column:1 / -1; }
}

.home-counter {
  background:#fff;
  border:1.5px solid #e8e8e8;
  border-radius:14px;
  padding:16px 12px;
  text-align:center;
  position:relative;
  overflow:hidden;
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-counter::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, var(--green,#016936), #b8860b);
  opacity:0;
  transition:opacity 0.25s ease;
}
.home-counter:hover {
  transform:translateY(-3px);
  border-color:var(--green, #016936);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}
.home-counter:hover::before { opacity:1; }

.home-counter__num {
  display:block;
  font-size:clamp(1.7rem, 3.8vw, 2.2rem);
  font-weight:900;
  color:var(--green, #016936);
  line-height:1;
  margin-bottom:6px;
  letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}
.home-counter--text .home-counter__num { font-size:clamp(1rem, 2.4vw, 1.3rem); }
.home-counter__lbl {
  display:block;
  font-size:0.74rem;
  color:#666;
  text-transform:uppercase;
  letter-spacing:0.07em;
  font-weight:700;
}

/* === SPORTS — Method 2 (magazine + chips) === */

.home-mag {
  position:relative;
  border-radius:18px;
  overflow:hidden;
  min-height:380px;
  box-shadow:0 12px 40px rgba(0,0,0,0.18);
}
@media (min-width:880px) {
  .home-mag { min-height:460px; }
}
.home-mag__photo {
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transition:transform 1.5s ease;
}
.home-mag:hover .home-mag__photo { transform:scale(1.04); }
.home-mag__photo--ph {
  background:linear-gradient(135deg, #1a3a28, #04331c);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,0.7);
  text-align:center;
  padding:20px;
  font-size:0.95rem;
}
.home-mag__photo--ph em { color:#fff; font-style:normal; font-weight:700; }
.home-mag__overlay {
  position:absolute; inset:0;
  background:linear-gradient(95deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.05) 100%);
}
.home-mag__card {
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:36px 28px;
  max-width:560px;
  color:#fff;
  height:100%;
  justify-content:center;
}
@media (min-width:880px) { .home-mag__card { padding:60px 56px; } }

.home-mag__head {
  font-size:clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight:800;
  margin:0;
  line-height:1.18;
  letter-spacing:-0.015em;
  color:#fff;
}
.home-mag__head strong {
  display:inline;
  color:#fff;
  font-weight:900;
}
.home-mag__body {
  font-size:1.02rem;
  color:rgba(255,255,255,0.92);
  margin:0;
  line-height:1.55;
  text-shadow:0 1px 6px rgba(0,0,0,0.4);
}

/* Sport chips strip (under the magazine hero) */
.home-sport-chips {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
  justify-content:center;
}
.home-sport-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:24px;
  background:#fff;
  border:1.5px solid #e0e6e0;
  text-decoration:none;
  color:#2a2a2a;
  font-weight:700;
  font-size:0.88rem;
  letter-spacing:0.02em;
  transition:all 0.2s ease;
}
.home-sport-chip i {
  color:var(--green, #016936);
  font-size:0.95rem;
}
.home-sport-chip:hover {
  border-color:var(--green, #016936);
  background:var(--green, #016936);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(1,105,54,0.20);
}
.home-sport-chip:hover i { color:#fff; }

/* === GREMAW — Method 5 (featured + siblings) === */

.home-v19--gremaw .home-feature-card {
  display:block;
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#0a1a0f;
  min-height:340px;
  box-shadow:0 8px 30px rgba(0,0,0,0.16);
  text-decoration:none;
  color:#fff;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.home-v19--gremaw .home-feature-card:hover {
  transform:translateY(-4px);
  box-shadow:0 18px 48px rgba(0,0,0,0.24);
}

.home-siblings {
  margin-top:48px;
  padding-top:32px;
  border-top:1px solid rgba(0,0,0,0.08);
}
.home-siblings__lbl {
  display:block;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#5a5a5a;
  margin-bottom:18px;
}
.home-siblings__row {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
@media (min-width:680px) { .home-siblings__row { grid-template-columns:repeat(4, 1fr); } }

.home-sibling {
  display:flex;
  flex-direction:column;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e8e8e8;
  text-decoration:none;
  color:inherit;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-sibling:hover {
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(0,0,0,0.10);
  border-color:var(--green, #016936);
}
.home-sibling__img {
  position:relative;
  aspect-ratio:1 / 1;
  background:#0a1a0f;
  overflow:hidden;
}
.home-sibling__img img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.4s ease;
  display:block;
}
.home-sibling:hover .home-sibling__img img { transform:scale(1.06); }
.home-sibling__ph {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#1a3a28,#04331c);
  color:rgba(255,255,255,0.4);
  font-size:1.5rem;
}
.home-sibling__meta {
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.home-sibling__num {
  font-size:0.92rem;
  font-weight:800;
  color:#1a1a1a;
  letter-spacing:0.01em;
}
.home-sibling__year {
  font-size:0.74rem;
  color:#666;
  letter-spacing:0.02em;
}

/* === Subtle scroll-reveal motion (used across v19 sections) === */

[data-reveal] {
  opacity:0;
  transform:translateY(14px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-revealed {
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity:1; transform:none; transition:none; }
  .home-mag__photo, .home-collage__tile img, .home-sibling__img img,
  .home-feature-card__img { transition:none; }
}

/* === Mobile niceties === */
@media (max-width:879px) {
  .home-v19__cta-row { flex-direction:column; align-items:stretch; }
  .home-v19__cta-row .btn { width:100%; justify-content:center; }
  .home-collage { max-width:100%; }
}

/* ───────────────────────────────────────────────────────────
   v20 — Homepage intros redesigned to mirror the About section
   - .home-section          : wrapper (re-uses existing .section spacing)
   - .home-section__row     : 2-column text+visual layout (like .grid-2)
   - .home-section__copy    : text card (uses existing .section-label, .section-title, .divider, .btn-primary)
   - .home-mini-collage     : small 2×2 contained collage (Projects)
   - .home-sport-cards      : 4-up grid of sport cards (Sports)
   - .home-sport-card       : tile mirroring /sports-events/ aesthetic
   - .home-feature-card     : single big poster card (GREMAW) — re-uses v18/v19 class
─────────────────────────────────────────────────────────── */

.home-section__row {
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  align-items:center;
}
@media (min-width:880px) {
  .home-section__row { grid-template-columns:1fr 1fr; gap:60px; }
}

.home-section__copy {
  display:flex;
  flex-direction:column;
}
.home-section__copy .section-label,
.home-section__copy .section-title,
.home-section__copy .divider,
.home-section__copy p {
  margin-left:0;
  margin-right:0;
}
.home-section__copy p {
  margin-bottom:0;
  font-size:1.05rem;
  line-height:1.7;
  color:#3a3a3a;
}

/* === Projects mini collage (small contained, NOT massive tiles) === */

.home-mini-collage {
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:8px;
  width:100%;
  max-width:380px;
  margin:0 auto;
  aspect-ratio:1 / 1;
  border-radius:var(--radius-lg, 14px);
  overflow:hidden;
  box-shadow:var(--shadow-lg, 0 12px 32px rgba(0,0,0,0.12));
  text-decoration:none;
  color:inherit;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.home-mini-collage:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 44px rgba(0,0,0,0.18);
}
.home-mini-collage__cell {
  overflow:hidden;
  position:relative;
  background:var(--green-light, #e8f5ed);
}
.home-mini-collage__cell img {
  width:100%; height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  transition:transform 0.5s ease;
}
.home-mini-collage:hover .home-mini-collage__cell img { transform:scale(1.04); }

/* "N Editions" badge — same idiom as About's Est. 2009 badge */
.home-mini-collage__badge {
  position:absolute;
  bottom:14px; left:14px;
  background:var(--green, #016936);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  font-family:var(--font-serif, serif);
  z-index:2;
  box-shadow:0 4px 12px rgba(0,0,0,0.30);
  line-height:1.1;
}
.home-mini-collage__badge strong {
  display:block;
  font-size:1.5rem;
  font-weight:800;
}
.home-mini-collage__badge span {
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  opacity:0.92;
}

.home-mini-collage--empty {
  background:linear-gradient(135deg, #f0f4f0, #e1ebe1);
  border:2px dashed #b6c8b6;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  text-align:center;
}
.home-mini-collage__hint {
  color:#5a705a;
  font-size:0.9rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.home-mini-collage__hint i { font-size:2rem; opacity:0.7; }
.home-mini-collage__hint em { color:var(--green, #016936); font-style:normal; font-weight:700; }

/* === Sport cards grid (mirrors /sports-events/ hub aesthetic, smaller scale) === */

.home-sport-cards {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
@media (min-width:560px) { .home-sport-cards { grid-template-columns:repeat(3, 1fr); } }
@media (min-width:880px) { .home-sport-cards { grid-template-columns:repeat(4, 1fr); } }

.home-sport-card {
  --sp-accent:#016936;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:18px 16px 16px;
  background:#fff;
  border-radius:14px;
  border:1.5px solid #e8e8e8;
  text-decoration:none;
  color:inherit;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow:hidden;
}
.home-sport-card::before {
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:var(--sp-accent);
  opacity:0;
  transition:opacity 0.2s ease;
}
.home-sport-card:hover {
  transform:translateY(-3px);
  border-color:var(--sp-accent);
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
}
.home-sport-card:hover::before { opacity:1; }
.home-sport-card__icon {
  font-size:1.8rem;
  line-height:1;
}
.home-sport-card__name {
  margin:0;
  font-size:1.02rem;
  font-weight:800;
  color:#1a1a1a;
  line-height:1.25;
  letter-spacing:-0.005em;
}
.home-sport-card__tagline {
  margin:0;
  font-size:0.82rem;
  color:#5a5a5a;
  line-height:1.4;
}
.home-sport-card__meta {
  margin-top:auto;
  padding-top:8px;
  font-size:0.78rem;
  color:#666;
  letter-spacing:0.01em;
}
.home-sport-card__meta strong {
  color:var(--sp-accent);
  font-weight:800;
  font-size:0.92rem;
}
.home-sport-card__meta em {
  font-style:normal;
  color:var(--sp-accent);
  font-weight:700;
}

/* === GREMAW: re-uses .home-feature-card from v18/v19 (already styled) === */
/* No new styles needed; .home-section__row places the card on the right.   */

/* === Mobile niceties === */
@media (max-width:879px) {
  .home-section__copy { text-align:center; }
  .home-section__copy .section-label,
  .home-section__copy .divider { margin-left:auto; margin-right:auto; }
  .home-section__copy .divider { transform:translateX(0); }
  .home-section__copy > div[style*="margin-top"] { text-align:center; }
}

/* ───────────────────────────────────────────────────────────
   v21 — Tick-to-feature collage, sport-card photo peeks,
         full-bleed GREMAW poster + video trigger, mobile reorder
─────────────────────────────────────────────────────────── */

/* Reduce vertical white space inside the v21 sections (Inaam: "this gap is a little too much") */
.home-section--v21 { padding-top:48px; padding-bottom:48px; }
@media (min-width:880px) {
  .home-section--v21 { padding-top:64px; padding-bottom:64px; }
}
.home-section--v21 .home-section__intro { margin-bottom:28px; }
.home-section--v21 .home-section__cta-wrap { margin-top:24px !important; }

/* === Tick-to-feature project collage === */

.home-mini-collage--ticks .home-mini-collage__cell {
  position:relative;
  display:block;
  text-decoration:none;
  color:#fff;
}
.home-mini-collage--ticks .home-mini-collage__cell .home-mini-collage__label {
  position:absolute;
  left:0; right:0; bottom:0;
  padding:22px 10px 8px;
  font-size:0.74rem;
  font-weight:700;
  line-height:1.2;
  color:#fff;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  letter-spacing:0.01em;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.2s ease;
}
.home-mini-collage--ticks .home-mini-collage__cell:hover .home-mini-collage__label,
.home-mini-collage--ticks .home-mini-collage__cell:focus-visible .home-mini-collage__label {
  opacity:1;
}
.home-mini-collage__ph {
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #1a3a28, #04331c);
  color:rgba(255,255,255,0.4);
  font-size:1.4rem;
}

/* === Sport card with photo peeks (v21) === */

.home-sport-card {
  --sp-accent:#016936;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
  background:#fff;
  border-radius:14px;
  border:1.5px solid #e8e8e8;
  text-decoration:none;
  color:inherit;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow:hidden;
}
.home-sport-card:hover {
  transform:translateY(-3px);
  border-color:var(--sp-accent);
  box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

/* Photo peek band — sits at the top of the card */
.home-sport-card__peeks {
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  height:96px;
  background:var(--sp-accent);
}
.home-sport-card__peek {
  background-size:cover;
  background-position:center;
  transition:transform 0.5s ease;
}
.home-sport-card:hover .home-sport-card__peek { transform:scale(1.06); }
.home-sport-card__peek-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events:none;
}
.home-sport-card__icon--on-photo {
  position:absolute;
  top:8px; left:10px;
  font-size:1.6rem;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  z-index:1;
  background:rgba(255,255,255,0.92);
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* Body region — text below the peek band */
.home-sport-card__body {
  padding:14px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}
.home-sport-card--no-peek .home-sport-card__body { padding-top:18px; }
.home-sport-card--no-peek .home-sport-card__icon {
  display:inline-block;
  font-size:1.7rem;
  margin:14px 14px 0;
  line-height:1;
}
.home-sport-card__name {
  margin:0;
  font-size:1rem;
  font-weight:800;
  color:#1a1a1a;
  line-height:1.25;
}
.home-sport-card__tagline {
  margin:0;
  font-size:0.8rem;
  color:#5a5a5a;
  line-height:1.4;
}
.home-sport-card__meta {
  margin-top:auto;
  padding-top:6px;
  font-size:0.78rem;
  color:#666;
}
.home-sport-card__meta strong { color:var(--sp-accent); font-weight:800; }
.home-sport-card__meta em { font-style:normal; color:var(--sp-accent); font-weight:700; }

/* === GREMAW poster card — v21 (full image, no crop, optional video trigger) === */

.home-poster-card {
  position:relative;
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:#0a1a0f;
  border-radius:16px;
  overflow:hidden;
  text-align:left;
  text-decoration:none;
  color:#fff;
  cursor:pointer;
  box-shadow:0 8px 30px rgba(0,0,0,0.16);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.home-poster-card:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 44px rgba(0,0,0,0.22);
}
.home-poster-card__img {
  display:block;
  width:100%;
  height:auto;          /* v21 — show full poster, no crop */
  max-height:560px;
  object-fit:contain;
  background:#0a1a0f;   /* letterbox bars when poster aspect != container */
}
.home-poster-card__img--ph {
  height:380px;
  background:linear-gradient(135deg, #1a3a28, #04331c);
}
.home-poster-card__body {
  position:absolute;
  left:0; right:0; bottom:0;
  padding:20px 22px;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.home-poster-card__kicker {
  display:inline-block;
  font-size:0.74rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.28);
  padding:3px 10px;
  border-radius:12px;
  margin-bottom:8px;
  color:#fff;
}
.home-poster-card__title {
  font-size:clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight:800;
  margin:0 0 6px;
  line-height:1.25;
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,0.5);
}
.home-poster-card__cta {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.88rem;
  font-weight:700;
  color:#fff;
  opacity:0.92;
}

/* Play badge — overlay on the poster when a video is attached */
.home-poster-card__play-badge {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%, -50%);
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px 12px 18px;
  background:rgba(255,255,255,0.94);
  border-radius:32px;
  color:#1a1a1a;
  font-weight:800;
  font-size:0.92rem;
  box-shadow:0 8px 24px rgba(0,0,0,0.28);
  pointer-events:none;
  transition:transform 0.2s ease, background 0.2s ease;
  z-index:2;
}
.home-poster-card__play-badge i {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px; height:34px;
  background:var(--green, #016936);
  color:#fff;
  border-radius:50%;
  font-size:0.85rem;
  padding-left:3px;
}
.home-poster-card:hover .home-poster-card__play-badge {
  transform:translate(-50%, -50%) scale(1.05);
  background:#fff;
}

/* === Mobile reorder: title → image → body → CTA (Inaam) === */

@media (max-width:879px) {
  .home-section__row--reverse-mobile {
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
  }
  /* On mobile, render in the order: section-label/title (split out of copy), THEN visual,
     THEN body+CTA. We achieve this by splitting the .home-section__copy into title+rest
     using CSS subgrid trickery — actually simpler approach: the copy already contains all
     four. We use flexbox order on the visual to push it BETWEEN title and body. */
  .home-section__row--reverse-mobile .home-section__copy {
    display:contents;
  }
  /* In display:contents, the children become direct grid items. So order is:
     1. .section-label  2. .section-title  3. .divider  4. <p>  5. .home-section__cta-wrap
     6. <visual> (mini-collage / poster card). We want visual after title (3rd), then body+cta. */
  .home-section__row--reverse-mobile .section-label    { order:1; }
  .home-section__row--reverse-mobile .section-title    { order:2; }
  .home-section__row--reverse-mobile .divider          { order:3; }
  .home-section__row--reverse-mobile .home-mini-collage,
  .home-section__row--reverse-mobile .home-poster-card { order:4; margin-top:6px; }
  .home-section__row--reverse-mobile .home-section__copy + .home-mini-collage,
  .home-section__row--reverse-mobile .home-section__copy + .home-poster-card { order:4; }
  .home-section__row--reverse-mobile p                 { order:5; }
  .home-section__row--reverse-mobile .home-section__cta-wrap { order:6; }
}

/* ───────────────────────────────────────────────────────────
   v22 — Stat counts more prominent + GREMAW poster natural-aspect
─────────────────────────────────────────────────────────── */

/* === Bigger, bolder Stats Strip numbers (Inaam: "make these counts very visible") === */
.stats-strip { padding:64px 0; }
.stat-number { font-size:clamp(2.6rem, 5.2vw, 4.2rem) !important; font-weight:900 !important; letter-spacing:-0.02em; line-height:0.95 !important; }
.stat-plus   { font-size:clamp(1.6rem, 3vw, 2.6rem) !important; vertical-align:top; }
.stat-label  { font-size:0.86rem !important; font-weight:800 !important; letter-spacing:0.14em !important; margin-top:10px !important; color:#1a1a1a !important; }
.stat-item   { padding:24px 16px !important; }

@media (max-width:879px) {
  .stat-number { font-size:2.6rem !important; }
  .stat-label  { font-size:0.76rem !important; letter-spacing:0.12em !important; }
}

/* === Bigger Editions badge on Projects collage === */
.home-mini-collage__badge {
  bottom:16px !important; left:16px !important;
  padding:14px 22px !important;
  border-radius:12px !important;
}
.home-mini-collage__badge strong { font-size:2rem !important; font-weight:900 !important; letter-spacing:-0.02em; }
.home-mini-collage__badge span   { font-size:0.78rem !important; font-weight:800 !important; letter-spacing:0.12em !important; }

/* === GREMAW poster — natural aspect, no letterbox bars (Inaam: "white borders should not be there") === */
.home-poster-card { background:transparent; box-shadow:0 8px 30px rgba(0,0,0,0.16); }
.home-poster-card__img {
  display:block;
  width:100%;
  height:auto !important;        /* drop the max-height + object-fit:contain that produced letterbox */
  max-height:none !important;
  object-fit:initial !important;
  background:transparent !important;
}
.home-poster-card__img--ph {
  height:380px !important;
  background:linear-gradient(135deg, #1a3a28, #04331c) !important;
}

/* === Sport tile stats footer (v22) === */
.home-sport-card__stats {
  margin-top:6px;
  padding-top:8px;
  border-top:1px dashed rgba(0,0,0,0.08);
  font-size:0.78rem;
  color:#3a3a3a;
}
.home-sport-card__stat-line {
  display:flex;
  align-items:center;
  gap:6px;
  line-height:1.35;
}
.home-sport-card__stat-line i {
  color:var(--sp-accent);
  font-size:0.78rem;
  flex-shrink:0;
}
.home-sport-card__stat-line strong {
  color:#1a1a1a;
  font-weight:800;
}
.home-sport-card__sep {
  color:#aaa;
  margin:0 2px;
}

/* ───────────────────────────────────────────────────────────
   v23 — Stats Strip prominence UX redesign
   Inaam: "make this text a bit more darker or I would appreciate a UX solution"
   Solution: darker number colour, deeper drop-shadow, accent underline,
            heavier label weight, hover lift on each tile.
─────────────────────────────────────────────────────────── */

.stats-strip {
  background: linear-gradient(180deg, #d6ebe0 0%, #c4dfd0 100%) !important;
  padding: 72px 0 !important;
}
.stats-strip .grid-4 {
  gap: 2px !important;
}
.stat-item {
  position: relative !important;
  padding: 28px 18px !important;
  transition: transform 0.25s ease;
  border-right: none !important;
}
.stat-item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--green, #016936), #b8860b);
  border-radius: 2px;
  opacity: 0.55;
}
.stat-item:hover { transform: translateY(-3px); }
.stat-item:hover::before { opacity: 1; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(1,105,54,0.18);
}

.stat-number {
  font-family: var(--font-serif) !important;
  font-size: clamp(3rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  color: #012817 !important;          /* much darker than before */
  letter-spacing: -0.025em !important;
  line-height: 0.95 !important;
  text-shadow: 0 2px 0 rgba(0,0,0,0.06), 0 4px 14px rgba(0,0,0,0.10) !important;
  margin-bottom: 18px !important;     /* room for the accent bar */
}
.stat-plus {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important;
  vertical-align: top;
  color: var(--green, #016936) !important;
}
.stat-label {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
  margin-top: 14px !important;
}

@media (max-width: 879px) {
  .stats-strip { padding: 48px 0 !important; }
  .stat-number { font-size: 2.8rem !important; margin-bottom: 14px !important; }
  .stat-label  { font-size: 0.78rem !important; letter-spacing: 0.14em !important; }
  .stat-item:not(:last-child)::after { display: none; }
}

/* ───────────────────────────────────────────────────────────
   v23.2 — Gallery archive header center fix + mobile tile titles
─────────────────────────────────────────────────────────── */

/* Gallery archive — force-center the header block (Inaam: hub text was left-aligned) */
.archive-section .archive-header.text-center {
  text-align: center !important;
}
.archive-section .archive-header.text-center .section-label,
.archive-section .archive-header.text-center .section-title,
.archive-section .archive-header.text-center .section-desc {
  margin-left: auto !important;
  margin-right: auto !important;
}
.archive-section .archive-header.text-center .divider {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.archive-section .archive-header.text-center .divider.center {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile gallery tiles — always show album title (no hover on touch devices) */
@media (max-width: 879px) {
  .gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.78) 100%) !important;
    transform: none !important;
    transition: none !important;
  }
  .gallery-overlay span {
    transform: none !important;
    opacity: 1 !important;
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  }
  /* Same fix for archive album cards */
  .album-card-overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.78) 100%) !important;
  }
  .album-card-overlay h3,
  .album-card-overlay p {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  }
}

/* Desktop — keep the elegant hover behaviour, but ensure title is at least subtly hinted */
@media (min-width: 880px) {
  .gallery-item .gallery-overlay,
  .album-card .album-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.55) 100%);
    opacity: 1;
  }
  .gallery-item:hover .gallery-overlay,
  .album-card:hover .album-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  }
}

/* v23.5 — Split Vision + Mission blockquote on About section */
.about-quote.about-quote--vm { font-style: normal; }
.about-quote.about-quote--vm .about-quote__line { margin: 0 0 8px; line-height: 1.65; font-style: italic; }
.about-quote.about-quote--vm .about-quote__line:last-child { margin-bottom: 0; }
.about-quote.about-quote--vm .about-quote__line strong {
  font-style: normal;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-block;
  min-width: 70px;
}

/* ───────────────────────────────────────────────────────────
   v23.7 — Mobile title clipping fix (UX audit critical #02)
   v23.8 — strengthened: .ab-hero (g9-about plugin) and any first-of-page
           section get explicit padding-top to clear the fixed nav.
   The fixed .site-nav is ~68-90px tall (admin-bar adds 32/46px when present).
─────────────────────────────────────────────────────────── */
html { scroll-padding-top: calc( var(--g9nt-bar-height, 0px) + 90px ); }
body.admin-bar { --wp-admin-bar-h: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --wp-admin-bar-h: 46px; }
}
body.admin-bar { scroll-padding-top: calc( var(--g9nt-bar-height, 0px) + 90px + var(--wp-admin-bar-h, 0px) ); }

/* Page heroes — give first content area enough top padding to clear the sticky nav.
   Mobile fix applies whether the page is rendered by the theme or by a plugin
   (g9-about-page's .ab-hero, archive headers, single-page first sections, etc.). */
@media (max-width: 879px) {
  .archive-section .archive-header,
  body.single .section:first-of-type,
  .home-section--v21:first-of-type,
  main > section:first-child .archive-header,
  main > section:first-child .home-v19__copy {
    padding-top: 24px;
  }
  /* g9-about-page plugin renders its own hero outside the theme's section system */
  .ab-hero { padding-top: 96px !important; }
  /* g9-committee, g9-gremaw, g9-sports, g9-projects custom-routed pages —
     give the first section enough top padding to clear the fixed nav.
     These are rendered via template_redirect, not get_template_part, so
     they often don't inherit the theme's hero offsets. */
  body:not(.home) main > section:first-child,
  body:not(.home) main > div:first-child > section:first-child,
  body:not(.home) #cmt > .cmt-hero,
  body:not(.home) .gl-hub-hero,
  body:not(.home) .sp-hub-hero,
  body:not(.home) .sp-sport-hero,
  body:not(.home) .sp-season-hero,
  body:not(.home) .g9pr-hub-hero,
  body:not(.home) .g9gr-hub-hero {
    padding-top: 96px !important;
  }
}
@media (min-width: 880px) {
  /* v23.8.2 — desktop padding-top for ALL plugin-rendered hub heroes.
     v23.8 only set this for .ab-hero; the Projects/Sports/GREMAW/Gallery/
     Committee hubs were also clipping behind the fixed nav on desktop. */
  .ab-hero { padding-top: 90px !important; }
  body:not(.home) main > section:first-child,
  body:not(.home) main > div:first-child > section:first-child,
  body:not(.home) #cmt > .cmt-hero,
  body:not(.home) .gl-hub-hero,
  body:not(.home) .sp-hub-hero,
  body:not(.home) .sp-sport-hero,
  body:not(.home) .sp-season-hero,
  body:not(.home) .g9pr-hub-hero,
  body:not(.home) .g9gr-hub-hero {
    padding-top: 90px !important;
  }
  /* If the admin bar is showing, add 32px on top so the heading clears it too. */
  body.admin-bar:not(.home) .ab-hero,
  body.admin-bar:not(.home) main > section:first-child,
  body.admin-bar:not(.home) main > div:first-child > section:first-child,
  body.admin-bar:not(.home) #cmt > .cmt-hero,
  body.admin-bar:not(.home) .gl-hub-hero,
  body.admin-bar:not(.home) .sp-hub-hero,
  body.admin-bar:not(.home) .sp-sport-hero,
  body.admin-bar:not(.home) .sp-season-hero,
  body.admin-bar:not(.home) .g9pr-hub-hero,
  body.admin-bar:not(.home) .g9gr-hub-hero {
    padding-top: 122px !important;
  }
}

/* ───────────────────────────────────────────────────────────
   v23.7 — Home gallery rail (UX audit critical #03)
─────────────────────────────────────────────────────────── */
.home-gallery-rail { padding: 56px 0 64px; }
.home-gallery-rail__head { text-align: center; margin-bottom: 28px; }
.home-gallery-rail__sub  { color: #5a5a5a; max-width: 540px; margin: 8px auto 0; }
.home-gallery-rail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px)  { .home-gallery-rail__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .home-gallery-rail__grid { gap: 20px; } }

.home-gallery-rail__tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1a3a28;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-gallery-rail__tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.home-gallery-rail__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.home-gallery-rail__tile:hover .home-gallery-rail__img { transform: scale(1.06); }
.home-gallery-rail__img--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a3a28, #04331c);
  color: rgba(255,255,255,0.45);
  font-size: 2rem;
}
.home-gallery-rail__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.78) 100%);
}
.home-gallery-rail__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  z-index: 1;
}
.home-gallery-rail__cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
  color: #fff;
}
.home-gallery-rail__title {
  margin: 0;
  font-size: clamp(0.94rem, 2.4vw, 1.05rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ───────────────────────────────────────────────────────────
   v23.8 — Custom 404 page (UX audit Critical #05)
─────────────────────────────────────────────────────────── */
.g9-404__hero { padding: 80px 0 100px; background: linear-gradient(180deg, #f7faf6 0%, #ffffff 60%); }
@media (max-width: 879px) { .g9-404__hero { padding: 56px 0 72px; } }

.g9-404__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.g9-404__code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--green, #016936);
  line-height: 0.9;
  letter-spacing: -0.05em;
  opacity: 0.18;
  margin-bottom: 14px;
}
.g9-404__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.2;
}
.g9-404__desc {
  font-size: 1rem;
  color: #5a5a5a;
  margin: 0 auto 36px;
  max-width: 520px;
  line-height: 1.6;
}
.g9-404__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 40px;
}
@media (min-width: 700px) { .g9-404__links { grid-template-columns: repeat(4, 1fr); } }
.g9-404__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  color: #1a1a1a;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.g9-404__link:hover {
  transform: translateY(-3px);
  border-color: var(--green, #016936);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.g9-404__link i { font-size: 1.5rem; color: var(--green, #016936); }
.g9-404__link-title { font-weight: 800; font-size: 0.95rem; }
.g9-404__link-sub   { font-size: 0.74rem; color: #888; line-height: 1.3; }

.g9-404__search { display: flex; max-width: 460px; margin: 0 auto; }
.g9-404__search input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #d8d8d8;
  border-right: none;
  border-radius: 24px 0 0 24px;
  font-size: 0.95rem;
}
.g9-404__search input:focus {
  outline: 2px solid var(--green, #016936);
  outline-offset: -1px;
  border-color: var(--green, #016936);
}
.g9-404__search button {
  padding: 0 22px;
  background: var(--green, #016936);
  color: #fff;
  border: 0;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  font-size: 1rem;
}
.g9-404__search button:hover { background: #014d29; }

/* ───────────────────────────────────────────────────────────
   v23.8 — Honour prefers-reduced-motion (UX audit #21)
   When the OS-level preference is set, strip every animation/transition
   so motion-sensitive users + battery-conscious mobile users get a clean
   static experience. Only thing we keep: opacity transitions ≤ 100ms
   for hover state feedback (these are not motion-triggers).
─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* v23.8.6 - REMOVED the universal *, *::before, *::after rule.
     It was killing essential UI transitions site-wide (About-page collage
     crossfade, Sports hero rotator, etc.). Scoping to specific decorative
     animations instead. */

  /* Disable purely decorative looping animations (Ken Burns pans, parallax,
     background hero zooms). These are visual flourishes, not UI feedback. */
  .ab-frame, .ab-pile,
  .home-mag__photo, .home-mini-collage__cell img, .home-collage__tile img,
  .gl-hub-hero__collage-cell, .sp-hub-hero__collage-cell,
  .g9pr-hub-hero__cimg,
  .home-feature-card__img, .home-poster-card__img {
    animation: none !important;
    transform: none !important;
  }

  /* Disable smooth scroll for users who don\'t want auto-motion */
  html { scroll-behavior: auto !important; }

  /* Honour the user\'s preference but keep ESSENTIAL UX motion:
     - the About-page Ken Burns is decorative (disabled above via .ab-frame),
       but the opacity CROSSFADE between photos is essential UX and should
       still run smoothly.
     - the Sports hero rotator is content discovery, not gratuitous motion;
       its plugin CSS already handles its own reduced-motion fallback. */
}


/* ═══════════════════════════════════════════════════════════════
   v23.8.5 — Homepage Sports tiles: tighten spacing, more visual
   weight per tile (Inaam feedback: "tiles look empty, lots of
   white space, no contrast against background").
═══════════════════════════════════════════════════════════════ */
.home-section--sports { padding-top: 36px; padding-bottom: 36px; }
.home-section--sports .home-section__intro { margin-bottom: 18px; }
.home-sport-cards { gap: 14px !important; }
@media (min-width: 880px) { .home-sport-cards { gap: 18px !important; } }
.home-sport-card {
  background: #fff;
  border: 1px solid #e2e6e3;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-sport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: var(--g9-green, #016936);
}