/* ============================================================
   ISEYA FOUNDATION — EDITORIAL DESIGN SYSTEM
   White · Black · Institutional Green · Serif headlines
   ============================================================ */

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

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --ink-soft: #1A1A1A;
  --ink-muted: #6B6B6B;
  --ink-subtle: #969696;
  --ink-faint: #C9C9C9;
  --hairline: #E5E5E5;
  --hairline-soft: #F0F0F0;

  --green: #1B4635;
  --green-soft: #2A5A47;
  --green-faint: #F3F7F5;
  --gold-soft: #D9AD54;

  --serif: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.75rem, 7vw, 6rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4: 1.125rem;
  --fs-deck: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-meta: 0.8125rem;
  --fs-caps: 0.75rem;

  --lh-display: 1.02;
  --lh-headline: 1.1;
  --lh-body: 1.65;
  --lh-loose: 1.85;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  --container-editorial: 1120px;
  --container-wide: 1440px;
  --container-narrow: 720px;

  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-quick: 220ms;
  --duration-calm: 480ms;
  --duration-slow: 700ms;
  --duration-deliberate: 900ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--duration-quick) var(--ease-calm), opacity var(--duration-quick) var(--ease-calm); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: var(--lh-headline);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-feature-settings: "ss01", "kern";
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.display em, h1 em, h2 em, h3 em, .headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.deck {
  font-family: var(--sans);
  font-size: var(--fs-deck);
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.prose {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--ink-soft);
  max-width: 66ch;
}

.prose p { margin-bottom: var(--s-5); }
.prose p:last-child { margin-bottom: 0; }

.caps {
  font-family: var(--sans);
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.meta {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--ink-subtle);
}

.numeral {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.container { width: 100%; max-width: var(--container-editorial); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-loose { padding: var(--s-11) 0; }

@media (max-width: 768px) {
  .section { padding: var(--s-8) 0; }
  .section-tight { padding: var(--s-7) 0; }
  .section-loose { padding: var(--s-9) 0; }
}

.hairline { border: none; border-top: 1px solid var(--hairline); margin: 0; }
.divider-thick { border: none; border-top: 2px solid var(--ink); width: 48px; margin: var(--s-5) 0; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.005em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--duration-quick) var(--ease-calm), color var(--duration-quick) var(--ease-calm), border-color var(--duration-quick) var(--ease-calm), transform var(--duration-quick) var(--ease-calm);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap var(--duration-quick) var(--ease-calm), color var(--duration-quick) var(--ease-calm);
}

.link-arrow:hover { gap: 14px; color: var(--green); border-bottom-color: var(--green); }
.link-arrow svg { transition: transform var(--duration-quick) var(--ease-calm); }
.link-arrow:hover svg { transform: translateX(3px); }

/* SECTION HEADER */
.section-header {
  margin-bottom: var(--s-8);
  max-width: 800px;
}

.section-header .caps { display: block; margin-bottom: var(--s-3); }
.section-header h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); max-width: 20ch; }
.section-header .deck { max-width: 60ch; }
.section-header-ruled { padding-top: var(--s-5); border-top: 2px solid var(--ink); }

/* ============================================
   SIDE PROGRESS BAR — vertical, minimal
   ============================================ */
.ed-progress {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.ed-progress-track {
  width: 2px;
  height: 160px;
  background: var(--hairline);
  position: relative;
  order: 2;
}

.ed-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--ink);
  transition: height 120ms linear;
}

.ed-progress-dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  order: 1;
  pointer-events: auto;
}

.ed-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-quick) var(--ease-calm), transform var(--duration-quick) var(--ease-calm);
  position: relative;
}

.ed-progress-dot:hover {
  background: var(--ink-subtle);
  transform: scale(1.3);
}

.ed-progress-dot.is-active {
  background: var(--ink);
  transform: scale(1.4);
}

.ed-progress-dot::after {
  content: attr(aria-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease-calm), visibility 200ms;
  pointer-events: none;
}

.ed-progress-dot:hover::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1000px) {
  .ed-progress {
    display: none;
  }
}

/* HEADER */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
  transition: padding var(--duration-quick) var(--ease-calm), box-shadow var(--duration-quick) var(--ease-calm);
}

.ed-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--hairline), 0 8px 24px rgba(0, 0, 0, 0.03);
}

.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.ed-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ed-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ed-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ed-logo-text strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.ed-logo-text span {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ed-nav { display: none; }
@media (min-width: 900px) { .ed-nav { display: block; } }

.ed-nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
}

.ed-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-quick) var(--ease-calm), color var(--duration-quick) var(--ease-calm);
  cursor: pointer;
}

.ed-nav-link:hover { color: var(--green); border-bottom-color: var(--green); }
.ed-nav-link svg { transition: transform var(--duration-quick) var(--ease-calm); opacity: 0.6; }
.has-mega:has(.ed-mega.is-open) .ed-nav-link svg { transform: rotate(180deg); opacity: 1; }
.has-mega:has(.ed-mega.is-open) .ed-nav-link { color: var(--green); border-bottom-color: var(--green); }

/* MEGA MENU */
.ed-mega {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px) scale(0.98);
  width: min(1100px, calc(100vw - 48px));
  max-width: 1100px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--ink);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.10), 0 12px 24px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
  padding: var(--s-8) var(--s-8) var(--s-7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-calm), transform 460ms var(--ease-calm), visibility 320ms;
  z-index: 200;
  transform-origin: top center;
}

.ed-mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.ed-mega-backdrop {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-calm), visibility 320ms;
  z-index: 150;
  pointer-events: none;
}

.ed-mega-backdrop.is-open { opacity: 1; visibility: visible; }

.ed-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
  align-items: flex-start;
}

.ed-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms var(--ease-calm), transform 480ms var(--ease-calm);
}

.ed-mega.is-open .ed-mega-col { opacity: 1; transform: translateY(0); }
.ed-mega.is-open .ed-mega-col:nth-child(1) { transition-delay: 80ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) { transition-delay: 140ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) { transition-delay: 200ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) { transition-delay: 260ms; }

.ed-mega-col-title {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.ed-mega-col-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-calm);
}

.ed-mega.is-open .ed-mega-col-title::after { transform: scaleX(1); }

.ed-mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease-calm), padding 260ms var(--ease-calm);
  opacity: 0;
  transform: translateY(8px);
}

.ed-mega.is-open .ed-mega-item { opacity: 1; transform: translateY(0); }
.ed-mega.is-open .ed-mega-col:nth-child(1) .ed-mega-item:nth-child(2) { transition-delay: 180ms; }
.ed-mega.is-open .ed-mega-col:nth-child(1) .ed-mega-item:nth-child(3) { transition-delay: 240ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) .ed-mega-item:nth-child(2) { transition-delay: 240ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) .ed-mega-item:nth-child(3) { transition-delay: 300ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) .ed-mega-item:nth-child(2) { transition-delay: 300ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) .ed-mega-item:nth-child(3) { transition-delay: 360ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) .ed-mega-item:nth-child(2) { transition-delay: 360ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) .ed-mega-item:nth-child(3) { transition-delay: 420ms; }

.ed-mega-item:hover { border-bottom-color: var(--ink); padding-left: 6px; }

.ed-mega-item-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }

.ed-mega-item-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ed-mega-item-desc {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.ed-mega-item-arrow {
  color: var(--ink-faint);
  transition: color 260ms var(--ease-calm), transform 260ms var(--ease-calm);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
}

.ed-mega-item:hover .ed-mega-item-arrow { color: var(--green); transform: translateX(0); opacity: 1; }

@media (max-width: 900px) {
  .ed-mega { display: none !important; }
  .ed-mega-backdrop { display: none !important; }
}

/* REGISTER DROPDOWN */
.ed-header-actions { display: none; }
@media (min-width: 900px) { .ed-header-actions { display: block; } }

.ed-register-dd { position: relative; }

.ed-register-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--duration-quick) var(--ease-calm);
}

.ed-register-trigger:hover { background: var(--green); }
.ed-register-trigger svg { transition: transform var(--duration-quick) var(--ease-calm); }
.ed-register-dd.is-open .ed-register-trigger svg { transform: rotate(180deg); }

.ed-register-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  padding: var(--s-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-calm), transform 240ms var(--ease-calm), visibility 200ms;
  z-index: 200;
}

.ed-register-dd.is-open .ed-register-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.ed-register-item {
  display: block;
  padding: var(--s-3) var(--s-4);
  transition: background var(--duration-quick) var(--ease-calm);
}

.ed-register-item:hover { background: var(--green-faint); }

.ed-register-item-label {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.ed-register-item-desc {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--ink-muted);
}

/* MOBILE TOGGLE */
.ed-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 900px) { .ed-mobile-toggle { display: none; } }

.ed-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--duration-quick) var(--ease-calm);
  transform-origin: center;
}

.ed-mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ed-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.ed-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.ed-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-calm);
  overflow-y: auto;
  padding-top: 80px;
}

.ed-mobile-drawer.is-open { transform: translateX(0); }
.ed-mobile-drawer-inner { padding: var(--s-6) var(--s-5) var(--s-8); }
.ed-mobile-nav { display: flex; flex-direction: column; }

.ed-mobile-nav a {
  display: block;
  padding: var(--s-4) 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--hairline);
  transition: color var(--duration-quick) var(--ease-calm);
}

.ed-mobile-nav a:hover { color: var(--green); }

/* HERO */
.ed-hero { padding: var(--s-10) 0 var(--s-8); }
@media (max-width: 768px) { .ed-hero { padding: var(--s-8) 0 var(--s-6); } }

.ed-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-7);
  color: var(--ink-muted);
}

.ed-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: ed-pulse 2.4s ease-in-out infinite;
}

@keyframes ed-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ed-meta-sep { color: var(--ink-faint); }
.ed-hero-headline { margin-bottom: var(--s-8); max-width: 16ch; }

.ed-hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: end;
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .ed-hero-bottom { grid-template-columns: 1.3fr 1fr; gap: var(--s-9); }
}

.ed-hero-deck { max-width: 60ch; }
.ed-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (min-width: 900px) { .ed-hero-ctas { justify-content: flex-end; } }
@media (max-width: 640px) {
  .ed-hero-ctas { flex-direction: column; align-items: stretch; }
  .ed-hero-ctas .btn { width: 100%; justify-content: center; }
}

/* STATS LINE */
.stat-line {
  display: grid;
  grid-template-columns: repeat(6, auto);
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  width: 100%;
}

.stat-line-item { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

.stat-line-value {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.stat-line-value.green { color: var(--green); }

.stat-line-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.stat-line-divider { width: 1px; height: 22px; background: var(--hairline); align-self: center; }

@media (max-width: 900px) {
  .stat-line { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); row-gap: var(--s-5); }
  .stat-line-divider { display: none; }
  .stat-line-item { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 480px) { .stat-line { grid-template-columns: repeat(2, 1fr); } }

/* MISSION PROSE */
.ed-mission-prose {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
}

.ed-mission-prose p { margin-bottom: var(--s-5); }
.ed-mission-prose em { font-style: italic; color: var(--green); }

/* FEATURE BLOCK */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 900px) {
  .feature-block { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .feature-block.reverse .feature-text { order: -1; }
}

.feature-text h2, .feature-text h3 { margin-bottom: var(--s-4); }
.feature-text .deck { margin-bottom: var(--s-5); }

.feature-image {
  aspect-ratio: 4 / 5;
  background: var(--hairline-soft);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-calm);
}

.feature-image:hover img { transform: scale(1.02); }
@media (min-width: 900px) { .feature-image { aspect-ratio: 3 / 4; } }

/* PILLARS COLLAGE */
.ed-pillars-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (min-width: 1000px) {
  .ed-pillars-collage { grid-template-columns: 1fr 1fr; gap: var(--s-10); align-items: flex-start; }
}

.ed-pillars-text { display: flex; flex-direction: column; gap: var(--s-9); }
.ed-pillar-text-block .caps { display: block; margin-bottom: var(--s-3); }
.ed-pillar-text-block h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: var(--s-4); max-width: 22ch; }
.ed-pillar-text-block .deck { max-width: 55ch; margin-bottom: var(--s-5); }

.ed-collage { position: relative; width: 100%; }

.ed-collage-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s-3);
  aspect-ratio: 4 / 5;
}

.ed-collage-pillars .ed-collage-item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.ed-collage-pillars .ed-collage-item-2 { grid-column: 2 / 3; grid-row: 1 / 2; margin-top: var(--s-6); }
.ed-collage-pillars .ed-collage-item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.ed-collage-pillars .ed-collage-item { overflow: hidden; background: var(--hairline-soft); }

.ed-collage-pillars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-calm);
}

.ed-collage-pillars .ed-collage-item:hover img { transform: scale(1.03); }

/* SCREENINGS COLLAGE */
.ed-collage-screenings {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: var(--s-4);
  aspect-ratio: 16 / 10;
  margin-bottom: var(--s-9);
}

.ed-collage-screenings .ed-collage-item { overflow: hidden; background: var(--hairline-soft); }

.ed-collage-screenings .ed-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-calm);
}

.ed-collage-screenings .ed-collage-item:hover img { transform: scale(1.04); }

.ed-collage-screenings .ed-collage-item-a { grid-column: 1 / 8; grid-row: 1 / 7; }
.ed-collage-screenings .ed-collage-item-b { grid-column: 8 / 13; grid-row: 1 / 4; }
.ed-collage-screenings .ed-collage-item-c { grid-column: 8 / 11; grid-row: 4 / 7; }
.ed-collage-screenings .ed-collage-item-d { grid-column: 11 / 13; grid-row: 4 / 7; margin-top: var(--s-5); }

@media (max-width: 900px) {
  .ed-collage-screenings { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; gap: var(--s-3); }
  .ed-collage-screenings .ed-collage-item-a,
  .ed-collage-screenings .ed-collage-item-b,
  .ed-collage-screenings .ed-collage-item-c,
  .ed-collage-screenings .ed-collage-item-d { grid-column: auto; grid-row: auto; margin-top: 0; aspect-ratio: 1 / 1; }
}

/* EDITORIAL TABLE */
.editorial-table { width: 100%; border-collapse: collapse; font-family: var(--sans); }

.editorial-table thead { border-bottom: 2px solid var(--ink); }

.editorial-table th {
  padding: var(--s-3) 0;
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
}

.editorial-table td {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  color: var(--ink);
  vertical-align: baseline;
}

.editorial-table tr:last-child td { border-bottom: none; }

.editorial-table .cell-date {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 130px;
}

.editorial-table .cell-teams {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.editorial-table .cell-teams .vs {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0 12px;
}

.editorial-table .cell-venue {
  color: var(--ink-muted);
  font-size: var(--fs-meta);
  text-align: right;
  white-space: nowrap;
}

/* STANDINGS TABLE */
.standings-table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.standings-table thead { border-bottom: 2px solid var(--ink); }

.standings-table th {
  padding: var(--s-3) 0;
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
}

.standings-table th:not(:first-child),
.standings-table td:not(:first-child) { text-align: right; }

.standings-table td {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  color: var(--ink);
}

.standings-table .rank { width: 40px; color: var(--ink-subtle); font-family: var(--serif); font-weight: 500; }

.standings-table .team {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.standings-table .pts { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: 1.0625rem; }

/* PULL QUOTE */
.pullquote {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  padding: var(--s-6) 0;
  margin: var(--s-8) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pullquote-author {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* UPDATES LIST */
.updates-list { display: flex; flex-direction: column; }

.update-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding var(--duration-quick) var(--ease-calm);
}

.update-row:first-child { border-top: 1px solid var(--hairline); }
.update-row:hover { padding-left: 8px; }

.update-row .date {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.update-row .title {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.update-row .arrow {
  color: var(--ink-faint);
  transition: color var(--duration-quick) var(--ease-calm), transform var(--duration-quick) var(--ease-calm);
}

.update-row:hover .arrow { color: var(--green); transform: translateX(4px); }

@media (max-width: 640px) {
  .update-row { grid-template-columns: 1fr auto; gap: var(--s-3); }
  .update-row .date { grid-column: 1 / -1; color: var(--ink-subtle); }
}

/* SPLIT GRID + CARDS */
.ed-split-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-8); }

@media (min-width: 900px) {
  .ed-split-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
}

.ed-split-col { min-width: 0; }

.ed-card-light, .ed-card-dark {
  padding: var(--s-7) var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-calm);
}

.ed-card-light { background: var(--paper); border: 1px solid var(--hairline); color: var(--ink); }
.ed-card-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }

.ed-card-head {
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
}

.ed-card-dark .ed-card-head { border-bottom-color: rgba(255, 255, 255, 0.1); }
.ed-card-head .caps { display: block; margin-bottom: var(--s-3); color: var(--ink-muted); }
.ed-card-dark .ed-card-head .caps { color: rgba(255, 255, 255, 0.5); }

.ed-card-head h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.ed-card-dark .ed-card-head h3 { color: var(--paper); }

.ed-card-foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--hairline); }
.ed-card-dark .ed-card-foot { border-top-color: rgba(255, 255, 255, 0.1); }

.ed-students-list { display: flex; flex-direction: column; gap: 0; }

.ed-student-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.ed-card-dark .ed-student-row { border-bottom-color: rgba(255, 255, 255, 0.08); }
.ed-student-row:last-child { border-bottom: none; }

.ed-student-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.ed-card-dark .ed-student-name { color: var(--paper); }

.ed-student-school {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--ink-muted);
}

.ed-card-dark .ed-student-school { color: rgba(255, 255, 255, 0.5); }

.ed-student-badge {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.ed-card-dark .ed-student-badge { color: var(--gold-soft); }

/* INVERSE TABLES */
.ed-card-dark .editorial-table-inverse { width: 100%; border-collapse: collapse; }

.ed-card-dark .editorial-table-inverse td {
  padding: var(--s-5) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: var(--fs-small);
  vertical-align: baseline;
}

.ed-card-dark .editorial-table-inverse tr:last-child td { border-bottom: none; }

.ed-card-dark .editorial-table-inverse .cell-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 110px;
  font-family: var(--sans);
}

.ed-card-dark .editorial-table-inverse .cell-teams {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.ed-card-dark .editorial-table-inverse .cell-teams .vs {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 8px;
}

.ed-card-dark .editorial-table-inverse .cell-venue { display: none; }

.ed-card-dark .standings-table-inverse { width: 100%; border-collapse: collapse; }
.ed-card-dark .standings-table-inverse thead { border-bottom: 1.5px solid var(--paper); }

.ed-card-dark .standings-table-inverse th {
  padding: var(--s-3) 0;
  font-family: var(--sans);
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.ed-card-dark .standings-table-inverse th:not(:first-child),
.ed-card-dark .standings-table-inverse td:not(:first-child) { text-align: right; }

.ed-card-dark .standings-table-inverse td {
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: var(--fs-small);
}

.ed-card-dark .standings-table-inverse tr:last-child td { border-bottom: none; }
.ed-card-dark .standings-table-inverse .rank { width: 40px; color: rgba(255, 255, 255, 0.4); font-family: var(--serif); font-weight: 500; }

.ed-card-dark .standings-table-inverse .team {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.ed-card-dark .standings-table-inverse .pts {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-soft);
  font-size: 1.0625rem;
}

.ed-card-dark .link-arrow { color: var(--paper); border-bottom-color: var(--paper); }
.ed-card-dark .link-arrow:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
.ed-caps-inverse { color: rgba(255, 255, 255, 0.5) !important; }

/* DEBATE FIGURES */
.ed-debate-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-6);
}

.ed-debate-figure { display: flex; flex-direction: column; gap: 4px; }

.ed-debate-figure-value {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
}

.ed-debate-figure .caps { color: var(--ink-muted); }

/* GALLERY */
.gallery-editorial { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

@media (min-width: 800px) {
  .gallery-editorial { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

.gallery-editorial .gallery-tile {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hairline-soft);
  cursor: pointer;
}

.gallery-editorial .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-calm);
}

.gallery-editorial .gallery-tile:hover img { transform: scale(1.03); }

.gallery-editorial .gallery-tile.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (min-width: 800px) {
  .gallery-editorial .gallery-tile.featured { grid-column: span 2; grid-row: span 2; }
}

/* FRAUD */
.ed-fraud {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.ed-fraud h3 { font-size: var(--fs-h3); margin: var(--s-3) 0 var(--s-4); }
.ed-fraud .deck { max-width: 60ch; }

/* FOOTER */
.ed-footer {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}

.ed-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .ed-footer-top { grid-template-columns: 1.2fr 2.5fr; gap: var(--s-10); }
}

.ed-footer-logo {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--s-5);
  letter-spacing: -0.02em;
}

.ed-footer-brand h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-4); }
.ed-footer-tagline { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.65; max-width: 380px; }

.ed-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (min-width: 700px) { .ed-footer-cols { grid-template-columns: repeat(4, 1fr); } }

.ed-footer-col h4 { margin-bottom: var(--s-4); color: var(--ink-muted); }
.ed-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.ed-footer-col a, .ed-footer-col li { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; }
.ed-footer-col a:hover { color: var(--green); }

.ed-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-6);
}

/* TOASTS */
.ed-toast-stack {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .ed-toast-stack { bottom: 16px; left: 16px; right: 16px; max-width: none; width: auto; }
}

.ed-toast {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-left: 3px solid var(--green);
  padding: var(--s-4) var(--s-5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  animation: ed-toast-in 400ms var(--ease-calm) both;
}

.ed-toast.exit { animation: ed-toast-out 300ms var(--ease-calm) both; }

@keyframes ed-toast-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ed-toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-16px); } }

.ed-toast-text { font-family: var(--sans); font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.ed-toast-text strong { font-family: var(--serif); font-weight: 600; color: var(--ink); }

.ed-toast-time {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}

/* REVEALS */
.reveal, .reveal-fade, .reveal-left, .reveal-line {
  opacity: 0;
  transition: opacity var(--duration-deliberate) var(--ease-calm), transform var(--duration-deliberate) var(--ease-calm);
}

.reveal { transform: translateY(24px); }
.reveal-left { transform: translateX(-24px); }
.reveal-line { transform: scaleX(0); transform-origin: left; }

.reveal.is-visible, .reveal-fade.is-visible, .reveal-left.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.reveal-line.is-visible { opacity: 1; transform: scaleX(1); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-calm), transform var(--duration-slow) var(--ease-calm);
}

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }

/* UTILITIES */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-green { color: var(--green); }
.mt-1 { margin-top: var(--s-1); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-fade, .reveal-left, .reveal-line, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 768px) {
  .container, .container-wide, .container-narrow { padding: 0 var(--s-4); }
  .stat-line { gap: var(--s-4) var(--s-5); }
  .editorial-table td { padding: var(--s-4) 0; }
}

@media (max-width: 640px) {
  .ed-pillars-text { gap: var(--s-8); }
  .ed-collage-pillars { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; gap: var(--s-3); }
  .ed-collage-pillars .ed-collage-item-1,
  .ed-collage-pillars .ed-collage-item-2,
  .ed-collage-pillars .ed-collage-item-3 { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .ed-card-light, .ed-card-dark { padding: var(--s-5) var(--s-5) var(--s-4); }
}

/* ============================================================
   PAGE HERO + FORM LAYOUT + FORMS — for inner pages
   ============================================================ */

/* ============================================
   PAGE HERO — smaller than homepage hero
   ============================================ */
.ed-page-hero {
  padding: var(--s-10) 0 var(--s-8);
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 768px) {
  .ed-page-hero {
    padding: var(--s-8) 0 var(--s-6);
  }
}

.ed-page-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-6);
  color: var(--ink-muted);
}

.ed-breadcrumb-link {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--duration-quick) var(--ease-calm), border-color var(--duration-quick) var(--ease-calm);
}

.ed-breadcrumb-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.ed-page-hero-title {
  margin-bottom: var(--s-6);
  max-width: 18ch;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.ed-page-hero-deck {
  max-width: 65ch;
}

/* ============================================
   FORM LAYOUT — form + sidebar
   ============================================ */
.ed-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
}

@media (min-width: 1000px) {
  .ed-form-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s-10);
    align-items: start;
  }
}

.ed-form-main {
  min-width: 0;
}

.ed-form-header {
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 2px solid var(--ink);
}

.ed-form-header .caps {
  display: block;
  margin-bottom: var(--s-3);
}

.ed-form-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--s-4);
}

.ed-form-header .deck {
  max-width: 55ch;
}

/* ============================================
   FORM ELEMENTS — editorial
   ============================================ */
.ed-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}

.ed-fieldset {
  border: none;
  padding: 0;
}

.ed-legend {
  font-family: var(--sans);
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline);
  width: 100%;
}

.ed-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 700px) {
  .ed-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5) var(--s-6);
  }
  .ed-form-group-wide {
    grid-column: 1 / -1;
  }
}

.ed-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.ed-form-label {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.ed-form-input,
.ed-form-select,
.ed-form-textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color var(--duration-quick) var(--ease-calm);
  border-radius: 0;
  appearance: none;
}

.ed-form-input::placeholder,
.ed-form-textarea::placeholder {
  color: var(--ink-faint);
}

.ed-form-input:focus,
.ed-form-select:focus,
.ed-form-textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.ed-form-input:invalid:not(:placeholder-shown) {
  border-bottom-color: #C53030;
}

.ed-form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}

.ed-form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--sans);
  line-height: 1.6;
}

.ed-form-hint {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Checkboxes */
.ed-form-checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.ed-form-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-3);
  align-items: start;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-soft);
}

.ed-form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Submit */
.ed-form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}

.ed-form-note {
  margin: 0;
}

/* Success */
.ed-form-success {
  padding: var(--s-8) 0;
  border-top: 2px solid var(--green);
}

.ed-form-success .caps {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--green);
}

.ed-form-success h3 {
  font-size: var(--fs-h2);
  margin-bottom: var(--s-4);
}

.ed-form-success .deck {
  max-width: 55ch;
}

/* ============================================
   FORM SIDEBAR
   ============================================ */
.ed-form-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

@media (min-width: 1000px) {
  .ed-form-side {
    position: sticky;
    top: 96px;
  }
}

.ed-side-block {
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}

.ed-side-block:last-child {
  border-bottom: none;
}

.ed-side-block .caps {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--ink-muted);
}

.ed-side-block h4 {
  font-family: var(--serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.ed-side-block p {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.ed-side-block strong {
  color: var(--ink);
  font-weight: 600;
}

.ed-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.ed-side-list li {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-muted);
  padding-left: var(--s-4);
  position: relative;
}

.ed-side-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.ed-side-block-notice {
  padding: var(--s-5);
  background: var(--green-faint);
  border-left: 3px solid var(--green);
  border-bottom: none;
}

.ed-side-block-notice .caps {
  color: var(--green);
}

.ed-side-block-notice p {
  color: var(--ink-soft);
}

/* ============================================================
   MEGA MENU + HEADER — make sure inner pages get them
   ============================================================ */

/* Ensure .ed-mega positioning works on inner pages too */
.ed-mega {
  position: fixed;
  top: 72px;
}

/* Backdrop dim */
.ed-mega-backdrop {
  position: fixed;
  inset: 0;
  top: 72px;
}

/* Register dropdown */
.ed-register-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.ed-faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.ed-faq-item {
  border-bottom: 1px solid var(--hairline);
}

.ed-faq-item summary {
  list-style: none;
  padding: var(--s-5) 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  transition: color var(--duration-quick) var(--ease-calm);
}

.ed-faq-item summary::-webkit-details-marker {
  display: none;
}

.ed-faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ink-muted);
  transition: transform var(--duration-quick) var(--ease-calm);
  flex-shrink: 0;
}

.ed-faq-item[open] summary::after {
  content: "−";
  color: var(--ink);
}

.ed-faq-item summary:hover {
  color: var(--green);
}

.ed-faq-answer {
  padding: 0 0 var(--s-5);
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 65ch;
}

/* ============================================================
   PROGRAM SELECTION CARDS — for community registration
   Bulletproof version: native checkbox + custom card styling
   ============================================================ */

.ed-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 700px) {
  .ed-program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}

.ed-program-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  padding: var(--s-5);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-calm);
  position: relative;
}

.ed-program-card:hover {
  border-color: var(--ink-muted);
  background: var(--bg-alt);
}

/* The actual checkbox — visible, sits in its own column */
.ed-program-input {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: flex-start;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

/* Number badge — small caps, sits above the title */
.ed-program-number {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-1);
}

.ed-program-title {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ed-program-desc {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Selected state — uses :has() but with a fallback */
.ed-program-card:has(.ed-program-input:checked) {
  border-color: var(--green);
  background: var(--green-faint);
  box-shadow: 0 0 0 3px rgba(27, 70, 53, 0.08);
}

.ed-program-card:has(.ed-program-input:checked) .ed-program-title {
  color: var(--green);
  font-weight: 600;
}

.ed-program-card:has(.ed-program-input:checked) .ed-program-number {
  color: var(--green);
}

/* Mobile refinement */
@media (max-width: 480px) {
  .ed-program-card {
    padding: var(--s-4);
    column-gap: var(--s-3);
  }
  .ed-program-title {
    font-size: 1rem;
  }
}

/* ============================================================
   PROGRAM SELECTION CARDS
   ============================================================ */
.ed-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 700px) {
  .ed-program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}

.ed-program-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  padding: var(--s-5);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-calm);
  position: relative;
}

.ed-program-card:hover {
  border-color: var(--ink-muted);
  background: var(--bg-alt);
}

.ed-program-input {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: flex-start;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.ed-program-number {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-1);
}

.ed-program-title {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ed-program-desc {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.ed-program-card:has(.ed-program-input:checked) {
  border-color: var(--green);
  background: var(--green-faint);
  box-shadow: 0 0 0 3px rgba(27, 70, 53, 0.08);
}

.ed-program-card:has(.ed-program-input:checked) .ed-program-title {
  color: var(--green);
  font-weight: 600;
}

.ed-program-card:has(.ed-program-input:checked) .ed-program-number {
  color: var(--green);
}

@media (max-width: 480px) {
  .ed-program-card {
    padding: var(--s-4);
    column-gap: var(--s-3);
  }
  .ed-program-title {
    font-size: 1rem;
  }
}

/* ============================================================
   SPECIAL NAV TABS — Match Fixtures (black) + Report Fraud (red)
   ============================================================ */
.ed-nav-special,
.ed-nav-special-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition:
    background 220ms var(--ease-calm),
    transform 220ms var(--ease-calm),
    box-shadow 220ms var(--ease-calm);
  white-space: nowrap;
}

.ed-nav-special {
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ed-nav-special:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 70, 53, 0.28);
}

.ed-nav-special-danger {
  background: #C53030;
  box-shadow: 0 2px 6px rgba(197, 48, 48, 0.18);
}
.ed-nav-special-danger:hover {
  background: #9B1C1C;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(197, 48, 48, 0.35);
}

.ed-nav-special svg,
.ed-nav-special-danger svg {
  opacity: 0.9;
  flex-shrink: 0;
}

/* ============================================================
   MEGA MENU — PROGRAMS VARIANT (4 columns, extra polish)
   ============================================================ */
.ed-mega[data-mega="programs"] {
  max-width: 1180px;
  padding: var(--s-8) var(--s-8) var(--s-7);
}

.ed-mega[data-mega="programs"] .ed-mega-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
}

/* ── Hairline top accent that draws itself on open ── */
.ed-mega::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-calm);
  pointer-events: none;
}
.ed-mega.is-open::before {
  transform: scaleX(1);
}

/* ── Panel lift with spring ── */
.ed-mega {
  transform: translateX(-50%) translateY(-14px) scale(0.985);
  transition:
    opacity 340ms var(--ease-calm),
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 340ms;
}
.ed-mega.is-open {
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ── Column stagger — refine timing ── */
.ed-mega.is-open .ed-mega-col:nth-child(1) { transition-delay: 80ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) { transition-delay: 140ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) { transition-delay: 200ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) { transition-delay: 260ms; }

/* ── Item stagger within each column ── */
.ed-mega.is-open .ed-mega-col:nth-child(1) .ed-mega-item:nth-child(2) { transition-delay: 160ms; }
.ed-mega.is-open .ed-mega-col:nth-child(1) .ed-mega-item:nth-child(3) { transition-delay: 220ms; }
.ed-mega.is-open .ed-mega-col:nth-child(1) .ed-mega-item:nth-child(4) { transition-delay: 280ms; }

.ed-mega.is-open .ed-mega-col:nth-child(2) .ed-mega-item:nth-child(2) { transition-delay: 220ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) .ed-mega-item:nth-child(3) { transition-delay: 280ms; }
.ed-mega.is-open .ed-mega-col:nth-child(2) .ed-mega-item:nth-child(4) { transition-delay: 340ms; }

.ed-mega.is-open .ed-mega-col:nth-child(3) .ed-mega-item:nth-child(2) { transition-delay: 280ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) .ed-mega-item:nth-child(3) { transition-delay: 340ms; }
.ed-mega.is-open .ed-mega-col:nth-child(3) .ed-mega-item:nth-child(4) { transition-delay: 400ms; }

.ed-mega.is-open .ed-mega-col:nth-child(4) .ed-mega-item:nth-child(2) { transition-delay: 340ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) .ed-mega-item:nth-child(3) { transition-delay: 400ms; }
.ed-mega.is-open .ed-mega-col:nth-child(4) .ed-mega-item:nth-child(4) { transition-delay: 460ms; }

/* ── Refined column title — small caps, tight tracking ── */
.ed-mega[data-mega="programs"] .ed-mega-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.ed-mega[data-mega="programs"] .ed-mega-col-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--ease-calm);
}
.ed-mega[data-mega="programs"].is-open .ed-mega-col-title::after {
  transform: scaleX(1);
  transition-delay: 200ms;
}

/* ── Item hover — animated underline instead of box ── */
.ed-mega[data-mega="programs"] .ed-mega-item {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition:
    border-color 260ms var(--ease-calm),
    padding 260ms var(--ease-calm);
}
.ed-mega[data-mega="programs"] .ed-mega-item:hover {
  border-bottom-color: var(--ink);
  padding-left: 4px;
}

.ed-mega[data-mega="programs"] .ed-mega-item-title {
  font-size: 1.0625rem;
  transition: color 220ms var(--ease-calm);
}
.ed-mega[data-mega="programs"] .ed-mega-item:hover .ed-mega-item-title {
  color: var(--green);
}

/* ── Arrow micro-interaction ── */
.ed-mega[data-mega="programs"] .ed-mega-item-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 220ms var(--ease-calm),
    transform 220ms var(--ease-calm),
    color 220ms var(--ease-calm);
}
.ed-mega[data-mega="programs"] .ed-mega-item:hover .ed-mega-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--green);
}

/* ============================================================
   MEGA MENU — Responsive collapse for Programs (4 → 3 → 2 cols)
   ============================================================ */
@media (max-width: 1200px) {
  .ed-mega[data-mega="programs"] .ed-mega-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ed-mega[data-mega="programs"] .ed-mega-col:nth-child(4) {
    grid-column: 1 / -1;
    padding-top: var(--s-5);
    border-top: 1px solid var(--hairline);
    margin-top: var(--s-4);
  }
}

@media (max-width: 1000px) {
  .ed-mega[data-mega="programs"] .ed-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-mega[data-mega="programs"] .ed-mega-col:nth-child(4) {
    grid-column: auto;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
  }
}

/* ============================================================
   SPECIAL TABS IN MOBILE DRAWER
   ============================================================ */
.ed-mobile-special-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}

.ed-mobile-special-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
  transition: all 220ms var(--ease-calm);
}

.ed-mobile-special-tabs a:hover {
  transform: translateY(-1px);
}

.ed-mobile-special-tabs a.is-fixtures {
  background: var(--ink);
}
.ed-mobile-special-tabs a.is-fixtures:hover {
  background: var(--green);
}

.ed-mobile-special-tabs a.is-fraud {
  background: #C53030;
}
.ed-mobile-special-tabs a.is-fraud:hover {
  background: #9B1C1C;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ed-mega,
  .ed-mega::before,
  .ed-mega-col,
  .ed-mega-item,
  .ed-mega-item-arrow,
  .ed-mega-col-title::after {
    transition: none !important;
  }
  .ed-mega::before { transform: scaleX(1); }
  .ed-mega-col-title::after { transform: scaleX(1); }
}

/* ============================================================
   PROGRAMS PAGE — tabs + scorer rows
   ============================================================ */

/* ── Fixtures tabs ── */
.ed-fixtures-tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ed-fixtures-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease-calm);
  white-space: nowrap;
}

.ed-fixtures-tab:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.ed-fixtures-tab.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.ed-fixtures-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.ed-fixtures-tab.is-active .ed-fixtures-tab-count {
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper);
}

.ed-fixtures-panel {
  animation: edFixturesFade 280ms var(--ease-calm);
}

@keyframes edFixturesFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scorer rows ── */
.ed-scorer-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all 260ms var(--ease-calm);
}

.ed-scorer-row:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.ed-scorer-rank {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: -0.02em;
  text-align: center;
}

.ed-scorer-row.is-gold .ed-scorer-rank { color: #C9A24A; }
.ed-scorer-row.is-silver .ed-scorer-rank { color: #9CA3AF; }
.ed-scorer-row.is-bronze .ed-scorer-rank { color: #B8763D; }

.ed-scorer-row.is-gold {
  border-color: rgba(201, 162, 74, 0.4);
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.04), transparent 60%);
}

.ed-scorer-body {
  min-width: 0;
}

.ed-scorer-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ed-scorer-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.ed-scorer-goals {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ed-scorer-goals span {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ── Standings medal colours ── */
.standings-table .rank { font-size: 1rem; }

/* ============================================================
   PROGRAMS PAGE — SPORTS TABLE + FORM GUIDE (Refined)
   ============================================================ */

/* ── Standings table: tighter, cleaner, sports-book feel ── */
.standings-table {
  table-layout: fixed;
  width: 100%;
}

.standings-table th {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  padding: 14px 12px;
  border-bottom: 2px solid var(--ink);
}

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

/* Team column: left-aligned (standard for sports tables) */
.standings-table .team-cell {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  padding-left: 6px;
}

/* Rank cell: centered, fixed width */
.standings-table .rank-cell {
  text-align: center;
  padding: 16px 6px;
}

/* Number columns: right-aligned for GF/GA/GD, centered for P/W/D/L */
.standings-table .num-cell {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink-soft);
}

/* Points column: right-aligned, serif bold */
.standings-table .pts-cell {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  padding-right: 20px;
  font-variant-numeric: tabular-nums;
}

/* W/D/L color coding — softer palette */
.standings-table .col-win {
  color: #15803D;
  font-weight: 600;
}
.standings-table .col-draw {
  color: #A16207;
  font-weight: 600;
}
.standings-table .col-loss {
  color: #B91C1C;
  font-weight: 600;
}

/* GD subtle coloring */
.standings-table .col-gd {
  font-weight: 600;
  color: var(--ink-soft);
}
.standings-table .col-gd.is-positive {
  color: #15803D;
}
.standings-table .col-gd.is-negative {
  color: #B91C1C;
}

/* ── Rank badges for top 3 ── */
.ed-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.ed-rank-badge.is-gold {
  background: linear-gradient(135deg, #D4AF37, #C9A24A);
  box-shadow: 0 2px 8px rgba(201, 162, 74, 0.35);
}
.ed-rank-badge.is-silver {
  background: linear-gradient(135deg, #B8B8B8, #9CA3AF);
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3);
}
.ed-rank-badge.is-bronze {
  background: linear-gradient(135deg, #CD7F32, #B8763D);
  box-shadow: 0 2px 8px rgba(184, 118, 61, 0.3);
}

.ed-rank-plain {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: -0.02em;
}

/* ── Row accents for top 3 ── */
.standings-table .ed-standing-row.is-gold {
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.05), transparent 30%);
}
.standings-table .ed-standing-row.is-silver {
  background: linear-gradient(90deg, rgba(156, 163, 175, 0.05), transparent 30%);
}
.standings-table .ed-standing-row.is-bronze {
  background: linear-gradient(90deg, rgba(184, 118, 61, 0.05), transparent 30%);
}

.standings-table .ed-standing-row.is-gold .rank-cell { border-left: 3px solid #C9A24A; }
.standings-table .ed-standing-row.is-silver .rank-cell { border-left: 3px solid #9CA3AF; }
.standings-table .ed-standing-row.is-bronze .rank-cell { border-left: 3px solid #B8763D; }

.standings-table .ed-standing-row:hover {
  background: rgba(0, 0, 0, 0.015);
}

/* ── Form guide chips ── */
.form-cell {
  width: 150px;
}

.ed-form-guide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ed-form-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  transition: transform 180ms var(--ease-calm);
  cursor: default;
}

.ed-form-chip:hover {
  transform: scale(1.15);
}

.ed-form-chip.is-win { background: #16A34A; }
.ed-form-chip.is-draw { background: #EAB308; color: #713F12; }
.ed-form-chip.is-loss { background: #DC2626; }

/* ── Fixtures tabs ── */
.ed-fixtures-tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ed-fixtures-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease-calm);
  white-space: nowrap;
}

.ed-fixtures-tab:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.ed-fixtures-tab.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.ed-fixtures-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.ed-fixtures-tab.is-active .ed-fixtures-tab-count {
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper);
}

.ed-fixtures-panel {
  animation: edFixturesFade 280ms var(--ease-calm);
}

@keyframes edFixturesFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scorer rows ── */
.ed-scorer-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all 260ms var(--ease-calm);
}

.ed-scorer-row:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.ed-scorer-rank {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: -0.02em;
  text-align: center;
}

.ed-scorer-row.is-gold .ed-scorer-rank { color: #C9A24A; }
.ed-scorer-row.is-silver .ed-scorer-rank { color: #9CA3AF; }
.ed-scorer-row.is-bronze .ed-scorer-rank { color: #B8763D; }

.ed-scorer-row.is-gold {
  border-color: rgba(201, 162, 74, 0.4);
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.04), transparent 60%);
}

.ed-scorer-body {
  min-width: 0;
}

.ed-scorer-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ed-scorer-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.ed-scorer-goals {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ed-scorer-goals span {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ── Season label ── */
.ed-scorers-season-label {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: var(--s-3);
  background: var(--green-faint);
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ── Responsive adjustments ── */
@media (max-width: 900px) {
  .standings-table .form-cell { display: none; }
  .standings-table th:nth-child(3) { display: none; }
  .standings-table .num-cell { font-size: 0.8125rem; }
  .standings-table .team-cell { font-size: 0.9375rem; }
  .standings-table th,
  .standings-table td { padding: 12px 6px; }
}

@media (max-width: 640px) {
  .standings-table .col-gd,
  .standings-table th:nth-child(10) { display: none; }
  .standings-table .num-cell:nth-child(8),
  .standings-table .num-cell:nth-child(9) { display: none; }
  .standings-table th:nth-child(8),
  .standings-table th:nth-child(9) { display: none; }
}


/* ============================================================
   STANDARDS PAGE — cards + code list
   ============================================================ */

/* ── Standards grid (5 pillars) ── */
.ed-standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 700px) {
  .ed-standards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .ed-standards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* First two cards span wider on 3-col layout for visual variety */
  .ed-standards-grid .ed-standard-card:nth-child(1),
  .ed-standards-grid .ed-standard-card:nth-child(2) {
    grid-column: span 1;
  }
}

.ed-standard-card {
  padding: var(--s-6) var(--s-6) var(--s-7);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all 260ms var(--ease-calm);
  position: relative;
  overflow: hidden;
}

.ed-standard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-calm);
}

.ed-standard-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.ed-standard-card:hover::before {
  transform: scaleX(1);
}

.ed-standard-number {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-5);
}

.ed-standard-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
  line-height: 1.3;
}

.ed-standard-card p {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Child protection list (dark card) ── */
.ed-protection-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .ed-protection-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6) var(--s-8);
  }
}

.ed-protection-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
}

.ed-protection-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 2px;
}

.ed-protection-item h4 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ed-protection-item p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ── Code of conduct list ── */
.ed-code-list {
  list-style: none;
  counter-reset: code-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}

.ed-code-list li {
  counter-increment: code-counter;
  position: relative;
  padding: var(--s-5) 0 var(--s-5) var(--s-8);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.ed-code-list li::before {
  content: counter(code-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--s-5);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}

.ed-code-list li strong {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* ============================================================
   COMMUNITIES PAGE — cards + geography panel
   ============================================================ */

/* ── Communities grid ── */
.ed-community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 700px) {
  .ed-community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
  }
}

@media (min-width: 1100px) {
  .ed-community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Community card ── */
.ed-community-card {
  position: relative;
  padding: var(--s-6) var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all 300ms var(--ease-calm);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
}

.ed-community-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-calm);
}

.ed-community-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.ed-community-card:hover::before {
  transform: scaleX(1);
}

/* ── Avatar initials ── */
.ed-community-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), #2A5A47);
  box-shadow: 0 6px 16px rgba(27, 70, 53, 0.22);
  transition: transform 300ms var(--ease-spring);
}

.ed-community-card:hover .ed-community-avatar {
  transform: scale(1.08) rotate(-3deg);
}

/* ── Head ── */
.ed-community-head {
  min-width: 0;
}

.ed-community-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ed-community-ward {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ── CDA leader ── */
.ed-community-leader {
  padding: var(--s-3) var(--s-4);
  background: var(--green-faint);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

.ed-community-leader-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.ed-community-leader-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ── Program badges ── */
.ed-community-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ed-program-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--cream);
  color: var(--ink-soft);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.ed-program-badge-icon {
  font-size: 0.8125rem;
}

/* ── Footer row (players, venue, year) ── */
.ed-community-footer {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.ed-community-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ed-community-metric-value {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ed-community-metric-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ed-community-venue {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.ed-community-year {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Geography stats panel (inside dark card) ── */
.ed-geography-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 500px) {
  .ed-geography-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ed-geography-stat {
  text-align: center;
  padding: var(--s-5) var(--s-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 260ms var(--ease-calm);
}

.ed-geography-stat:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 162, 74, 0.3);
  transform: translateY(-2px);
}

.ed-geography-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-2);
}

.ed-geography-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

/* ============================================================
   STORY PAGE — timeline + different-list
   ============================================================ */

/* ── Timeline ── */
.ed-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: var(--s-6);
  border-left: 2px solid var(--hairline);
  margin-top: var(--s-6);
}

.ed-timeline-item {
  position: relative;
  padding-bottom: var(--s-7);
}

.ed-timeline-item:last-child {
  padding-bottom: 0;
}

.ed-timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-6) - 7px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
  transition: all 300ms var(--ease-calm);
}

.ed-timeline-item:hover::before {
  background: var(--green);
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(27, 70, 53, 0.1);
}

.ed-timeline-year {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s-3);
}

.ed-timeline-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
  line-height: 1.3;
}

.ed-timeline-body p {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 62ch;
}

/* ── Different-list (dark card with icons) ── */
.ed-different-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 900px) {
  .ed-different-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6) var(--s-8);
  }
}

.ed-different-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
}

.ed-different-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 2px;
}

.ed-different-item h4 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ed-different-item p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ── Footer reframe helper (applies across pages) ── */
.ed-footer-brand .meta {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ============================================================
   DONORS PAGE — donor wall grid
   ============================================================ */

.ed-donor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 700px) {
  .ed-donor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5) var(--s-6);
  }
}

@media (min-width: 1100px) {
  .ed-donor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ed-donor-card {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: var(--s-4);
  row-gap: var(--s-3);
  transition: all 280ms var(--ease-calm);
  overflow: hidden;
}

.ed-donor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-calm);
}

.ed-donor-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.ed-donor-card:hover::before {
  transform: scaleX(1);
}

.ed-donor-card.is-anonymous {
  opacity: 0.75;
  background: var(--cream);
}

.ed-donor-card.is-anonymous::before {
  background: linear-gradient(90deg, var(--ink-faint), var(--ink-subtle));
}

/* Avatar */
.ed-donor-avatar {
  grid-row: 1 / span 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink), var(--green-700));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.ed-donor-card.is-anonymous .ed-donor-avatar {
  background: linear-gradient(135deg, var(--ink-subtle), var(--ink-faint));
}

/* Body */
.ed-donor-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.ed-donor-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-donor-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Type badge */
.ed-donor-type {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: start;
  justify-self: start;
}

.ed-donor-type.is-education {
  background: var(--green-faint);
  color: var(--green);
}

.ed-donor-type.is-match {
  background: var(--gold-100);
  color: #6B4C0F;
}

.ed-donor-type.is-items {
  background: #EDE9FE;
  color: #6D28D9;
}

.ed-donor-type-icon {
  font-size: 0.75rem;
}

/* Message */
.ed-donor-message {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}

/* ============================================================
   FOOD BANK PAGE
   ============================================================ */

/* ── Food Bank nav link — distinct styling ── */
.ed-nav-food {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--green) !important;
  font-weight: 600 !important;
}

.ed-nav-food:hover {
  color: var(--ink) !important;
  border-bottom-color: var(--green) !important;
}

.ed-nav-food svg {
  color: var(--green);
  opacity: 0.85;
}

.ed-nav-food:hover svg {
  opacity: 1;
}

/* ── Standards grid override (used on food bank too) ── */
.ed-standards-grid .ed-standard-number {
  font-size: 2rem;
}

/* Handle emoji numbers gracefully */
.ed-standard-card .ed-standard-number:not(:empty) {
  font-family: var(--serif);
}

/* ============================================================
   ACTIVE PAGE INDICATOR
   ============================================================ */

/* Top-level nav links (Home) */
.ed-nav-link.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Mega menu triggers when active */
.has-mega .ed-nav-link.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.has-mega .ed-nav-link.is-active svg {
  opacity: 1;
}

/* Food Bank nav link when active */
.ed-nav-food.is-active {
  color: var(--ink) !important;
  border-bottom: 1px solid var(--ink);
}

/* Fixtures tab when active */
.ed-nav-special.is-active {
  background: var(--green) !important;
  transform: translateY(-1px);
}

/* Report Fraud tab when active */
.ed-nav-special-danger.is-active {
  background: #9B1C1C !important;
  transform: translateY(-1px);
}

/* ============================================================
   REFERENCE SUCCESS SCREEN — Donation reference + bank details
   ============================================================ */

/* ── Reference block ── */
.reference-block {
  margin: var(--s-7) 0 var(--s-6);
  padding: var(--s-6);
  background: var(--green-faint);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  text-align: center;
}

.reference-label {
  display: block;
  color: var(--green);
  margin-bottom: var(--s-3);
}

.reference-code {
  font-family: var(--mono, "SF Mono", Monaco, "Cascadia Code", monospace);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: var(--s-4);
  line-height: 1.2;
  word-break: break-all;
}

.reference-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--green);
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--ease-calm);
}

.reference-copy:hover {
  background: var(--green);
  color: var(--paper);
}

/* ── Bank details block ── */
.bank-block {
  margin-bottom: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.bank-label {
  display: block;
  margin-bottom: var(--s-4);
  color: var(--ink-muted);
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

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

.bank-row-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bank-row-value {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: right;
  word-break: break-all;
}

/* ── Bank fallback ── */
.bank-fallback {
  margin-bottom: var(--s-6);
  padding: var(--s-5);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

/* ── Paystack slot (hidden until activated) ── */
.paystack-slot {
  margin-bottom: var(--s-6);
  text-align: center;
}

.paystack-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paystack-divider::before,
.paystack-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ── Next steps ── */
.next-steps {
  margin-bottom: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

.next-steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.next-steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: var(--s-7);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.next-steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 50%;
}

.next-steps-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Track block ── */
.track-block {
  margin-bottom: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--cream);
  border-radius: var(--radius-lg);
}


/* ============================================================
   MY GIVING — Donor lookup results (editorial redesign)
   ============================================================ */

/* ── Results header card ── */
.giving-header-card {
  margin-bottom: var(--s-7);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.giving-header-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold) 100%);
}

.giving-header-content {
  padding: var(--s-7) var(--s-7);
}

.giving-header-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: center;
}

.donor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #2A5A47);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(27, 70, 53, 0.25);
  flex-shrink: 0;
}

.giving-header-text {
  min-width: 0;
}

.donor-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--s-3);
}

.donor-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.donor-ref {
  font-family: var(--mono, "SF Mono", Monaco, monospace);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-faint);
  padding: 4px 12px;
  border-radius: 999px;
}

.donor-ref-sep {
  color: var(--ink-faint);
}

/* ── Summary stats ── */
.giving-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

@media (max-width: 900px) {
  .giving-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.giving-stat {
  padding: var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 220ms var(--ease-calm);
}

.giving-stat:hover {
  border-color: var(--ink-faint);
}

.giving-stat.is-primary {
  background: linear-gradient(180deg, var(--green-faint) 0%, var(--paper) 100%);
  border-color: rgba(27, 70, 53, 0.2);
}

.giving-stat-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.3;
}

.giving-stat-value {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.giving-stat.is-primary .giving-stat-value {
  color: var(--green);
}

.giving-stat-value-sm {
  font-size: 1.25rem;
}

/* ── Section head ── */
.giving-section {
  margin-bottom: var(--s-8);
}

.giving-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--ink);
}

.giving-section-head .caps {
  color: var(--ink);
}

.giving-section-count {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ── Contributions list ── */
.contrib-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contrib-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  margin-bottom: var(--s-3);
  transition: all 220ms var(--ease-calm);
  position: relative;
  overflow: hidden;
}

.contrib-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 260ms var(--ease-calm);
}

.contrib-row:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.contrib-row:hover::before {
  transform: scaleY(1);
}

@media (max-width: 700px) {
  .contrib-row {
    grid-template-columns: 1fr auto;
    gap: var(--s-3);
    padding: var(--s-4);
  }
}

/* ── Type pill ── */
.contrib-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}

.contrib-type-pill.is-education {
  background: var(--green-faint);
  color: var(--green);
}

.contrib-type-pill.is-match {
  background: var(--gold-100);
  color: #6B4C0F;
}

.contrib-type-pill.is-inkind {
  background: #EDE9FE;
  color: #6D28D9;
}

.contrib-type-pill.is-neutral {
  background: var(--cream);
  color: var(--ink-muted);
}

/* ── Body ── */
.contrib-body {
  min-width: 0;
}

.contrib-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.contrib-date {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ── Amount ── */
.contrib-amount {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* ── Status pill ── */
.contrib-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contrib-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.contrib-status.is-success {
  background: #dcfce7;
  color: #166534;
}
.contrib-status.is-success .contrib-status-dot {
  background: #16a34a;
}

.contrib-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}
.contrib-status.is-warning .contrib-status-dot {
  background: #f59e0b;
}

.contrib-status.is-info {
  background: #dbeafe;
  color: #1e40af;
}
.contrib-status.is-info .contrib-status-dot {
  background: #3b82f6;
}

.contrib-status.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.contrib-status.is-danger .contrib-status-dot {
  background: #dc2626;
}

.contrib-status.is-neutral {
  background: var(--cream);
  color: var(--ink-muted);
}
.contrib-status.is-neutral .contrib-status-dot {
  background: var(--ink-faint);
}

/* ── Impact block ── */
.giving-impact {
  margin-bottom: var(--s-8);
  padding: var(--s-7);
  background: linear-gradient(135deg, var(--green-faint) 0%, rgba(201, 162, 74, 0.06) 100%);
  border: 1px solid rgba(27, 70, 53, 0.15);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
}

.giving-impact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 70, 53, 0.3);
}

.giving-impact-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.giving-impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.giving-impact-list li {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: var(--s-5);
  position: relative;
}

.giving-impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 2px;
  background: var(--green);
}

@media (max-width: 600px) {
  .giving-impact {
    grid-template-columns: 1fr;
    padding: var(--s-5);
  }
}

/* ── Actions ── */
.giving-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}

/* ── Error styling ── */
#lookup-error {
  padding: var(--s-5);
  background: #FEF5F5;
  border-left: 3px solid #C53030;
  border-radius: 6px;
}

/* ============================================================
   MY GIVING — Lookup mode toggle
   ============================================================ */

.lookup-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--cream);
  border-radius: 999px;
  margin-bottom: var(--s-6);
}

.lookup-mode-btn {
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease-calm);
  white-space: nowrap;
}

.lookup-mode-btn:hover {
  color: var(--ink);
}

.lookup-mode-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.lookup-mode-panel {
  animation: lookupModeFade 280ms var(--ease-calm);
}

@keyframes lookupModeFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .lookup-mode-toggle {
    width: 100%;
    justify-content: center;
  }
  .lookup-mode-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   HEADER — Donate gold pill + Track Giving
   ============================================================ */

.ed-nav-donate {
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(201, 162, 74, 0.25);
}

.ed-nav-donate:hover {
  background: var(--gold-soft) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 74, 0.4);
}

.ed-nav-donate svg {
  color: var(--ink);
  opacity: 0.9;
}

/* ============================================================
   MOBILE DRAWER — Donate + Track special tabs
   ============================================================ */

.ed-mobile-special-tabs a.is-donate {
  background: var(--gold);
  color: var(--ink);
}
.ed-mobile-special-tabs a.is-donate:hover {
  background: var(--gold-soft);
}

.ed-mobile-special-tabs a.is-track {
  background: var(--ink);
}
.ed-mobile-special-tabs a.is-track:hover {
  background: var(--green);
}

/* ============================================================
   GIVE PAGE — three-card grid
   ============================================================ */

.give-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .give-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.give-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: all 300ms var(--ease-calm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.give-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease-calm);
}

.give-card:hover {
  border-color: var(--ink-faint);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.give-card:hover::before {
  transform: scaleX(1);
}

/* Different accent per card */
.give-card-education::before { background: var(--green); }
.give-card-match::before { background: var(--gold); }
.give-card-items::before { background: #6D28D9; }

.give-card-eyebrow {
  margin-bottom: var(--s-2);
}

.give-card-education .give-card-eyebrow .caps { color: var(--green); }
.give-card-match .give-card-eyebrow .caps { color: #B45309; }
.give-card-items .give-card-eyebrow .caps { color: #6D28D9; }

.give-card-title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.give-card-desc {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}

.give-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: var(--s-3);
  transition: color 240ms var(--ease-calm);
}

.give-card:hover .give-card-footer {
  color: var(--ink);
}

.give-card-footer svg {
  transition: transform 260ms var(--ease-calm);
}

.give-card:hover .give-card-footer svg {
  transform: translateX(4px);
}

/* ============================================================
   GIVE PAGE — trust strip
   ============================================================ */

.give-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-6) var(--s-6);
  background: var(--green-faint);
  border: 1px solid rgba(27, 70, 53, 0.15);
  border-radius: var(--radius-lg);
}

@media (max-width: 700px) {
  .give-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5) var(--s-4);
  }
}

.give-trust-item {
  text-align: center;
}

.give-trust-value {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}

.give-trust-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.3;
}


/* ============================================================
   HEADER — Give dropdown trigger (gold)
   ============================================================ */

.ed-give-trigger {
  background: var(--gold) !important;
  color: var(--ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 220ms var(--ease-calm);
  box-shadow: 0 2px 8px rgba(201, 162, 74, 0.25);
  white-space: nowrap;
}

.ed-give-trigger:hover {
  background: var(--gold-soft) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 74, 0.35);
}

.ed-give-trigger svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.ed-give-trigger svg:last-child {
  transition: transform 220ms var(--ease-calm);
}

.ed-register-dd.is-open .ed-give-trigger {
  background: var(--gold-soft) !important;
  box-shadow: 0 6px 20px rgba(201, 162, 74, 0.4);
}

.ed-register-dd.is-open .ed-give-trigger svg:last-child {
  transform: rotate(180deg);
}

/* Give dropdown menu — position under the trigger */
#give-dropdown .ed-register-menu {
  right: auto;
  left: 0;
  min-width: 280px;
}

/* Header compaction — reduce padding, allow horizontal room */
.ed-header-inner {
  gap: var(--s-5);
}

.ed-nav-list {
  gap: var(--s-5);
}

.ed-nav-link {
  white-space: nowrap;
}

.ed-nav-special,
.ed-nav-special-danger {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 7px 14px;
}

/* Tighten user menu area */
.ed-header-actions {
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .ed-nav-list {
    gap: var(--s-4);
  }
  .ed-nav-special,
  .ed-nav-special-danger {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .ed-give-trigger {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1150px) {
  .ed-nav-list {
    gap: var(--s-3);
  }
  .ed-nav-link {
    font-size: 0.875rem;
  }
  /* Hide labels on tightest desktop widths but keep icons */
  .ed-nav-special,
  .ed-nav-special-danger {
    padding: 6px 10px;
    font-size: 0.6875rem;
    gap: 4px;
  }
}

/* /* ============================================================
   SECTION PROGRESS RAIL — final version
   - Fixed top-right
   - Visible fill line
   - Hover labels from aria-label
   ============================================================ */

.ed-progress {
  position: fixed;
  right: 32px;
  top: 100px;
  z-index: 95;

  /* Column layout: dots on left, line on right */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;

  /* Real height — this is what makes the line visible */
  height: 200px;

  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ed-progress.is-visible {
  opacity: 1;
}

/* ── Vertical rail (background line) ── */
.ed-progress-track {
  position: relative;
  width: 2px;
  align-self: stretch;
  background: rgba(10, 10, 10, 0.10);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Fill line that grows as you scroll ── */
.ed-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--ink);
  border-radius: 2px;
  transition: height 80ms linear;
}

/* ── Dots container ── */
.ed-progress-dots {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  flex-shrink: 0;
  pointer-events: auto;
}

/* ── Individual dots ── */
.ed-progress-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--paper, #fff);
  border: 1.5px solid rgba(10, 10, 10, 0.22);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    width 340ms cubic-bezier(0.34, 1.56, 0.64, 1),
    height 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.ed-progress-dot:hover {
  border-color: var(--ink);
  background: var(--paper, #fff);
}

.ed-progress-dot.is-active {
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.10);
}

/* ── Hover tooltip using aria-label ── */
.ed-progress-dot::after {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  transform: translateY(-50%) translateX(4px);
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 180ms;
}

.ed-progress-dot:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ── Dark mode overrides ── */
:root[data-theme="dark"] .ed-progress-track {
  background: rgba(255, 255, 255, 0.10);
}

:root[data-theme="dark"] .ed-progress-fill {
  background: var(--ink);
}

:root[data-theme="dark"] .ed-progress-dot {
  background: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
}

:root[data-theme="dark"] .ed-progress-dot:hover {
  border-color: var(--ink);
}

:root[data-theme="dark"] .ed-progress-dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 242, 236, 0.12);
}

:root[data-theme="dark"] .ed-progress-dot::after {
  background: var(--ink);
  color: #0A0A0A;
}

/* ── Hide on mobile ── */
@media (max-width: 1000px) {
  .ed-progress {
    display: none;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ed-progress,
  .ed-progress-dot,
  .ed-progress-dot::after,
  .ed-progress-fill {
    transition-duration: 0.01ms !important;
  }
}

/* Little arrow on the right edge of the label */
.ed-progress-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%) translateX(6px);
  border: 4px solid transparent;
  border-left-color: var(--ink);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 200ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 200ms;
}

.ed-progress-dot:hover::after,
.ed-progress-dot.is-active::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.ed-progress-dot:hover::before,
.ed-progress-dot.is-active::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   DARK MODE — invert the rail for visibility
   ============================================================ */
:root[data-theme="dark"] .ed-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .ed-progress-fill {
  background: var(--ink);
}

:root[data-theme="dark"] .ed-progress-dot {
  border-color: rgba(255, 255, 255, 0.22);
}

:root[data-theme="dark"] .ed-progress-dot:hover {
  border-color: var(--ink);
}

:root[data-theme="dark"] .ed-progress-dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(245, 242, 236, 0.1);
}

:root[data-theme="dark"] .ed-progress-dot::after {
  background: var(--ink);
  color: #0A0A0A;
}

:root[data-theme="dark"] .ed-progress-dot::before {
  border-left-color: var(--ink);
}

/* ============================================================
   HIDE ON MOBILE
   ============================================================ */
@media (max-width: 1000px) {
  .ed-progress {
    display: none;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ed-progress,
  .ed-progress-dot,
  .ed-progress-dot::after,
  .ed-progress-dot::before,
  .ed-progress-fill {
    transition-duration: 0.01ms !important;
  }
}