/* =========================================================
   CatholicVote — Redesign v1
   Modern editorial design system
   ========================================================= */

/* ---------- Design Tokens ---------- */
/* CV brand palette: teal #00acc8, gold #fcaf26, red #f04646
 * We keep the legacy --navy-* / --gold-* / --paper-* variable NAMES so the
 * existing markup re-skins automatically — values are remapped to the
 * authentic CatholicVote palette below. */
:root {
  /* Authentic CV brand */
  --cv-teal:        #00acc8;
  --cv-teal-hover:  #009fbb;
  --cv-teal-dark:   #0f8093;
  --cv-teal-deep:   #0A5663;
  --cv-teal-ink:    #053742;
  --cv-gold:        #fcaf26;
  --cv-gold-hover:  #e89c10;
  --cv-gold-soft:   #fde2a6;
  --cv-red:         #f04646;
  --cv-red-hover:   #d63232;
  --cv-tint:        #f4fafe;
  --cv-cloud:       #e6f7fb;

  /* Legacy aliases (so existing class names keep working) */
  --navy-900: var(--cv-teal-ink);
  --navy-800: var(--cv-teal-deep);
  --navy-700: var(--cv-teal-dark);
  --navy-600: var(--cv-teal-hover);
  --gold-600: var(--cv-gold-hover);
  --gold-500: var(--cv-gold);
  --gold-400: var(--cv-gold);
  --gold-100: var(--cv-gold-soft);
  --red-600:  var(--cv-red);
  --red-700:  var(--cv-red-hover);

  /* Surfaces */
  --paper:    var(--cv-tint);
  --paper-2:  #fbfeff;
  --bg:       #FFFFFF;
  --bg-soft:  #f8fcfd;
  --ink:      #0E1A26;
  --ink-2:    #1F2E3B;
  --muted:    #5B6772;
  --muted-2:  #8A95A0;
  --line:     #DDE9EE;
  --line-2:   #E9F1F4;

  /* Typography */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Effects */
  --shadow-1: 0 1px 2px rgba(10,20,48,.05), 0 1px 1px rgba(10,20,48,.04);
  --shadow-2: 0 6px 24px -8px rgba(10,20,48,.18), 0 2px 6px rgba(10,20,48,.06);
  --shadow-3: 0 20px 60px -20px rgba(10,20,48,.28);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-600); }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 var(--space-4); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25; font-weight: 600; }
h4 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 var(--space-4); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }
.section-navy { background: var(--navy-900); color: #ECE9DF; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #FFFDF6; }
.section-cream { background: var(--bg-soft); }
.section-line-top { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: var(--space-4); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-navy .eyebrow { color: var(--gold-400); }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.section-navy .lead { color: #C7CBDB; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; transition: all var(--dur) var(--ease); white-space: nowrap; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-red { background: var(--red-600); color: #fff; }
.btn-red:hover { background: var(--red-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-link { padding: 0; border: 0; background: transparent; color: var(--navy-700); font-weight: 600; }
.btn-link::after { content: ' →'; transition: transform var(--dur) var(--ease); display: inline-block; }
.btn-link:hover { color: var(--gold-600); }
.btn-link:hover::after { transform: translateX(3px); }
.btn-sm { padding: 10px 16px; font-size: 0.86rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.utility-bar { background: var(--navy-900); color: #C7CBDB; font-size: 0.78rem; padding: 6px 0; }
.utility-bar a { color: inherit; }
.utility-bar a:hover { color: var(--gold-400); }
.utility-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.utility-links { display: flex; gap: var(--space-5); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--navy-900); letter-spacing: -0.01em; }
.logo:hover { color: var(--navy-900); }
.logo-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-500); border-radius: 50%; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
.logo span.cv-mark { font-style: italic; }
.logo small { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.primary-nav { display: flex; gap: var(--space-5); align-items: center; justify-self: center; }
.primary-nav a { font-weight: 500; font-size: 0.96rem; color: var(--ink-2); padding: 8px 4px; position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); border-radius: 2px; }
.primary-nav a:hover, .primary-nav a.active { color: var(--navy-900); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; gap: var(--space-3); align-items: center; }
.mobile-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--paper); }
.mobile-toggle:hover { background: var(--gold-100); }

@media (max-width: 980px) {
  .primary-nav { display: none; position: fixed; inset: 0 0 0 0; top: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 96px 24px 40px; align-items: stretch; justify-self: stretch; z-index: 60; overflow-y: auto; }
  .primary-nav.open { display: flex; }
  .primary-nav a { font-size: 1.4rem; font-family: var(--font-display); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .header-cta .btn:not(.btn-red):not(.mobile-toggle) { display: none; }
  .mobile-toggle { display: inline-flex; }
  .utility-bar { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 96px); background: var(--paper); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
   radial-gradient(circle at 88% 18%, rgba(252,175,38,.20), transparent 42%),
   radial-gradient(circle at 8% 90%, rgba(0,172,200,.10), transparent 38%);
   pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: var(--space-5); }
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--gold-500); border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.25); } }
.hero h1 { color: var(--navy-900); margin-bottom: var(--space-5); }
.hero h1 em { font-style: italic; color: var(--gold-600); font-weight: 500; }
.hero-lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-meta { margin-top: var(--space-7); display: flex; gap: var(--space-7); flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--navy-900); line-height: 1; }
.hero-stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; font-weight: 600; }

.hero-art { position: relative; }
.hero-card { background: #fff; border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-card-dot { width: 10px; height: 10px; background: var(--red-600); border-radius: 50%; animation: pulse 1.8s infinite; }
.hero-card-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.hero-card h3 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; margin-bottom: 10px; }
.hero-card p { font-size: 0.96rem; color: var(--muted); margin-bottom: 18px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 64px); flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.trust-row strong { color: var(--ink); font-weight: 600; }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 50ch; }
.section-head-center { text-align: center; flex-direction: column; align-items: center; margin-inline: auto; max-width: 720px; }
.section-head-center h2 { max-width: none; }

/* ---------- Article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid-3 { grid-template-columns: 1fr; } }

.article-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.article-card .thumb { aspect-ratio: 16/10; background: var(--paper); position: relative; overflow: hidden; }
.article-card .thumb-inner { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; color: var(--navy-900); font-size: 1.4rem; padding: 24px; text-align: center; }
.article-card .thumb.gradient-1 { background: linear-gradient(135deg, var(--cv-teal-deep), var(--cv-teal)); }
.article-card .thumb.gradient-1 .thumb-inner { color: #fff; }
.article-card .thumb.gradient-2 { background: linear-gradient(135deg, var(--cv-tint), var(--cv-gold-soft)); }
.article-card .thumb.gradient-3 { background: linear-gradient(135deg, var(--cv-teal-ink), var(--cv-teal-dark)); }
.article-card .thumb.gradient-3 .thumb-inner { color: var(--cv-gold); }
.article-card .thumb.gradient-4 { background: linear-gradient(135deg, var(--cv-gold-soft), var(--cv-gold)); }
.article-card .thumb.gradient-4 .thumb-inner { color: var(--cv-teal-ink); }
.article-card .thumb.gradient-5 { background: linear-gradient(135deg, var(--cv-teal-deep), var(--cv-teal-hover)); }
.article-card .thumb.gradient-5 .thumb-inner { color: var(--cv-gold); }
.article-card .thumb.gradient-6 { background: linear-gradient(135deg, var(--cv-cloud), var(--cv-teal)); }
.article-card .thumb.gradient-6 .thumb-inner { color: var(--cv-teal-ink); }
.article-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.article-card .meta { display: flex; gap: 10px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--gold-600); margin-bottom: 10px; }
.article-card .meta time { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.article-card h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; }
.article-card h3 a { color: inherit; }
.article-card .excerpt { color: var(--muted); font-size: 0.96rem; margin-bottom: var(--space-4); flex: 1; }
.article-card .byline { font-size: 0.82rem; color: var(--muted); }

/* Featured / hero article variant */
.feature-article { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-7); align-items: stretch; }
.feature-article .thumb { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; }
.feature-article .body { display: flex; flex-direction: column; justify-content: center; }
.feature-article h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: var(--space-4); }
.feature-article .meta { color: var(--gold-600); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--space-4); display: flex; gap: 12px; align-items: center; }
@media (max-width: 880px) { .feature-article { grid-template-columns: 1fr; } .feature-article .thumb { min-height: 240px; } }

/* ---------- Campaign cards ---------- */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.campaign-card { position: relative; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: all var(--dur) var(--ease); display: flex; flex-direction: column; min-height: 280px; }
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-500); }
.campaign-card.dark { background: var(--navy-900); border-color: var(--navy-700); color: #ECE9DF; }
.campaign-card.dark h3 { color: #FFFDF6; }
.campaign-card.dark p { color: #C7CBDB; }
.campaign-card.dark:hover { border-color: var(--gold-500); }
.campaign-card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; margin-bottom: var(--space-5); color: var(--navy-900); }
.campaign-card.dark .icon { background: rgba(201,162,74,.14); color: var(--gold-400); }
.campaign-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.campaign-card p { color: var(--muted); font-size: 0.97rem; flex: 1; margin-bottom: var(--space-4); }
.campaign-card .tag { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.campaign-card.dark .tag { color: var(--gold-400); }

/* ---------- LOOPcast feature ---------- */
.podcast-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: center; background: var(--navy-900); color: #ECE9DF; padding: clamp(40px, 6vw, 72px); border-radius: var(--radius-xl); }
.podcast-feature h2 { color: #FFFDF6; }
.podcast-feature .label { color: var(--gold-400); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: var(--space-4); }
.podcast-feature p { color: #C7CBDB; }
.podcast-feature .player { background: linear-gradient(150deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(201,162,74,.25); border-radius: var(--radius-lg); padding: 28px; }
.podcast-feature .episode { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; transition: background var(--dur) var(--ease); }
.podcast-feature .episode:hover { background: rgba(255,255,255,.04); }
.podcast-feature .episode-num { font-family: var(--font-display); color: var(--gold-400); font-size: 1.1rem; min-width: 44px; }
.podcast-feature .episode-title { flex: 1; }
.podcast-feature .episode-title strong { display: block; color: #FFFDF6; font-weight: 500; font-family: var(--font-display); margin-bottom: 3px; }
.podcast-feature .episode-title span { font-size: 0.84rem; color: var(--muted-2); }
.podcast-feature .episode-play { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; }
.podcast-feature .subscribe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-5); }
.podcast-feature .subscribe a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #ECE9DF; font-size: 0.86rem; font-weight: 500; border: 1px solid rgba(255,255,255,.1); }
.podcast-feature .subscribe a:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 880px) { .podcast-feature { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--paper); border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; border: 1px solid var(--line); }
.newsletter h2 { margin-bottom: var(--space-4); }
.newsletter p { color: var(--muted); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 8px; flex-direction: column; }
.newsletter-form .field { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow-1); }
.newsletter-form input { flex: 1; border: 0; background: transparent; outline: none; font-size: 1rem; min-width: 0; }
.newsletter-form button { padding: 12px 22px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: 0.92rem; }
.newsletter-form button:hover { background: var(--navy-700); }
.newsletter-form .fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Pillars (mission) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pillar { padding: 36px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pillar .num { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--gold-600); margin-bottom: var(--space-5); display: block; letter-spacing: 0.1em; }
.pillar h3 { margin-bottom: var(--space-3); }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Donate / Champions ---------- */
.donate-cta { background: linear-gradient(135deg, var(--red-700), var(--red-600)); color: #fff; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; }
.donate-cta h2 { color: #fff; }
.donate-cta p { color: rgba(255,255,255,.85); max-width: 60ch; margin-inline: auto; }
.donate-cta .btn { margin-top: var(--space-5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C7CBDB; padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-7); }
.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { color: #fff; }
.footer-brand p { color: #95A0B8; max-width: 36ch; margin-top: var(--space-4); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); color: #ECE9DF; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); }
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFDF6; margin-bottom: var(--space-4); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C7CBDB; font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; font-size: 0.82rem; color: #95A0B8; }
.footer-bottom a { color: #95A0B8; }
.footer-bottom a:hover { color: var(--gold-400); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--paper); padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .crumbs { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 { color: var(--navy-900); margin-bottom: var(--space-5); max-width: 22ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero.dark { background: var(--navy-900); color: #ECE9DF; }
.page-hero.dark h1 { color: #FFFDF6; }
.page-hero.dark .lead { color: #C7CBDB; }
.page-hero.dark .crumbs, .page-hero.dark .crumbs a { color: #95A0B8; }
.page-hero.dark .crumbs a:hover { color: var(--gold-400); }

/* ---------- Article body ---------- */
.article-body { max-width: 720px; margin-inline: auto; font-size: 1.1rem; line-height: 1.7; }
.article-body h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.article-body h3 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.article-body p { margin-bottom: var(--space-5); }
.article-body blockquote { margin: var(--space-7) 0; padding: 0 0 0 24px; border-left: 3px solid var(--gold-500); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.article-body a { border-bottom: 1px solid currentColor; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: var(--space-5); }
.article-body li { margin-bottom: 8px; }
.article-head { max-width: 760px; margin-inline: auto; padding-bottom: var(--space-7); }
.article-head .category { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: var(--space-4); }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-5); }
.article-head .article-meta { display: flex; gap: var(--space-5); align-items: center; color: var(--muted); font-size: 0.92rem; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.article-head .byline strong { color: var(--ink); }
.article-thumb-banner { aspect-ratio: 21/9; border-radius: var(--radius-lg); margin: var(--space-7) auto; max-width: 1040px; }
.share-row { display: flex; gap: 10px; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.share-row a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.share-row a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-7); }
.chips a, .chips button { padding: 8px 16px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 0.88rem; font-weight: 500; border: 1px solid var(--line); }
.chips a:hover, .chips button:hover { background: var(--gold-100); color: var(--navy-900); border-color: var(--gold-500); }
.chips a.active, .chips button.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Voter guide ---------- */
.voter-search { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-2); margin-top: var(--space-7); }
.voter-search h3 { margin-bottom: var(--space-3); }
.voter-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-top: var(--space-5); }
.voter-form input, .voter-form select { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 0.95rem; outline: none; transition: border-color var(--dur) var(--ease); }
.voter-form input:focus, .voter-form select:focus { border-color: var(--gold-500); }
.voter-form button { padding: 14px 22px; border-radius: 10px; background: var(--navy-900); color: #fff; font-weight: 600; }
.voter-form button:hover { background: var(--navy-700); }
@media (max-width: 740px) { .voter-form { grid-template-columns: 1fr; } }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.issue-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.issue-card .ic-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--navy-900); margin-bottom: var(--space-3); }
.issue-card h4 { margin-bottom: 8px; }
.issue-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.field-group input, .field-group select, .field-group textarea { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 0.95rem; outline: none; transition: border-color var(--dur) var(--ease); font-family: inherit; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--gold-500); }
.field-group textarea { resize: vertical; min-height: 140px; }
.field-group.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Team / leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.team-card .portrait { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--paper), var(--gold-100)); display: grid; place-items: center; font-family: var(--font-display); font-size: 3.4rem; color: var(--navy-900); font-weight: 500; }
.team-card .info { padding: 20px 24px 24px; }
.team-card h4 { margin-bottom: 2px; }
.team-card .role { color: var(--gold-600); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Job listings ---------- */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--space-4); align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all var(--dur) var(--ease); }
.job-row:hover { border-color: var(--gold-500); box-shadow: var(--shadow-1); }
.job-row h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.job-row .dept { color: var(--gold-600); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.job-row .loc { color: var(--muted); font-size: 0.92rem; }
.job-row .type { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 740px) { .job-row { grid-template-columns: 1fr; } .job-row .btn { justify-self: start; } }

/* ---------- Give page ---------- */
.give-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin: var(--space-7) 0; }
.give-tile { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 2px solid var(--line); cursor: pointer; transition: all var(--dur) var(--ease); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.give-tile:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.give-tile.featured { border-color: var(--gold-500); background: var(--paper); }
.give-tile .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--navy-900); line-height: 1; }
.give-tile .impact { color: var(--muted); margin-top: 10px; font-size: 0.92rem; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--space-9) 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 14vw, 12rem); line-height: 1; color: var(--gold-500); font-weight: 500; }

/* ---------- Misc helpers ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: var(--space-7) 0; }
.tag-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }
.timeline { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-5); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-year { font-family: var(--font-display); color: var(--gold-600); font-size: 1.3rem; font-weight: 500; }
.timeline-content h4 { margin-bottom: 6px; }
.timeline-content p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Preview banner (internal preview only) ---------- */
.preview-banner {
  background: var(--cv-teal-ink);
  color: #ECF8FA;
  padding: 8px 0;
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.06em;
}
.preview-banner strong { color: var(--cv-gold); font-weight: 700; letter-spacing: 0.12em; }
.preview-banner a { color: var(--cv-gold); border-bottom: 1px dotted var(--cv-gold); }
.preview-banner a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Logo (image variant) ---------- */
.logo-img { height: 30px; width: auto; display: block; }
.logo.logo-image { gap: 0; }
.logo.logo-image:hover .logo-img { opacity: 0.85; transition: opacity var(--dur) var(--ease); }
.site-footer .logo-img { filter: brightness(0) invert(1); }

/* ---------- Demo badge (non-functional buttons/forms) ---------- */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(252,175,38,.18);
  color: var(--cv-gold-hover);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  border: 1px solid rgba(252,175,38,.35);
  vertical-align: middle;
}
.demo-badge.dark {
  background: rgba(252,175,38,.16);
  color: var(--cv-gold);
  border-color: rgba(252,175,38,.32);
}
.demo-badge.red {
  background: rgba(240,70,70,.14);
  color: var(--cv-red);
  border-color: rgba(240,70,70,.3);
}
button.btn:disabled, a.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-demo { position: relative; }

/* Demo form note */
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(252,175,38,.12);
  border: 1px solid rgba(252,175,38,.3);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--ink-2);
  margin-top: 12px;
}
.demo-note svg { color: var(--cv-gold-hover); flex-shrink: 0; margin-top: 1px; }
.demo-note strong { color: var(--cv-gold-hover); }

/* ---------- Image thumb variant ---------- */
.article-card .thumb.thumb-img,
.feature-article .thumb.thumb-img,
.hero-art .thumb-img-wrap {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.article-card .thumb.thumb-img::after,
.feature-article .thumb.thumb-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,55,66,.55) 0%, rgba(5,55,66,0) 50%);
}
.article-card .thumb.thumb-img .thumb-inner,
.feature-article .thumb.thumb-img .thumb-inner {
  position: absolute;
  inset: auto 0 0 0;
  top: auto;
  align-content: end;
  color: #fff;
  text-align: left;
  padding: 24px;
  font-size: 1.15rem;
  z-index: 1;
}

/* ---------- Video embed (LOOPcast) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cv-teal-ink);
  box-shadow: var(--shadow-2);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Focus visibility */
:focus-visible { outline: 2px solid var(--cv-gold); outline-offset: 3px; border-radius: 4px; }

/* Print styles */
@media print {
  .site-header, .site-footer, .hero-art { display: none; }
}
