/* ================================================================
   WHITE FLOWER FOUNDATION
   Donation platform — mobile-first, white surfaces, soft lilac accent.
   Design language: clean, trustworthy, premium (GoFundMe-grade).
   ================================================================ */

/* ── 0. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* — Brand —
     Lilac is used SPARINGLY as an accent: CTA, progress, focus rings,
     active states. Everything else is white + neutral. */
  --lilac:        #B79CD9;
  --lilac-600:    #9579C4;     /* hover / pressed */
  --lilac-700:    #7B5BA8;     /* deep — for text on lilac tint */
  --lilac-50:     #F6F1FB;     /* soft tint background */
  --lilac-100:    #EDE3F6;     /* badge / hover surface */
  --lilac-ring:   rgba(183,156,217,.35);

  /* — Neutrals — */
  --white:        #FFFFFF;
  --paper:        #FFFFFF;
  --surface:      #FAFAFB;     /* alternate section background */
  --surface-2:    #F4F4F6;     /* deeper neutral, hover on white */

  --line:         #E8E8EC;     /* default border */
  --line-strong:  #D6D6DC;     /* divider, input border focus-adjacent */

  --ink:          #14141A;     /* primary text (near-black) */
  --ink-2:        #2C2C36;     /* secondary heading text */
  --slate:        #5A5A66;     /* body secondary */
  --muted:        #8A8A95;     /* metadata, placeholders */
  --subtle:       #B0B0BA;     /* disabled */

  /* — Semantic — */
  --success:      #10B981;
  --success-50:   #E6F7F1;
  --warning:      #F59E0B;
  --warning-50:   #FFF6E5;
  --danger:       #DC2626;
  --danger-50:    #FDECEC;
  --info:         #2563EB;
  --info-50:      #E8F0FE;

  /* — Typography — */
  /* Interface / corpo / funcional: Plus Jakarta Sans (humanist, premium) */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Headings emocionais / destaque: DM Serif Display (peso único 400) */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --tracking-tight: -0.003em;
  --tracking-display: -0.006em;

  /* — Radii — */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --pill: 999px;

  /* — Shadows (subtle, GoFundMe-style) — */
  --s-xs: 0 1px 2px rgba(20,20,30,.04);
  --s-sm: 0 1px 3px rgba(20,20,30,.05), 0 1px 2px rgba(20,20,30,.04);
  --s:    0 4px 12px rgba(20,20,30,.06), 0 1px 3px rgba(20,20,30,.04);
  --s-md: 0 10px 24px rgba(20,20,30,.08), 0 2px 6px rgba(20,20,30,.05);
  --s-lg: 0 22px 50px rgba(20,20,30,.10), 0 6px 16px rgba(20,20,30,.06);
  --s-focus: 0 0 0 4px var(--lilac-ring);

  /* — Spacing scale (use sparingly, prefer rem) — */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* — Layout — */
  --container: 1200px;
  --container-narrow: 880px;
  --nav-h: 64px;

  /* — Motion — */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 360ms;
}

/* ── 1. RESET (modern, minimal) ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--s-focus); border-radius: var(--r-xs); }

/* ── 2. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;            /* DM Serif Display: peso único — sem faux-bold */
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: var(--tracking-display); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); line-height: 1.18; }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--slate); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;            /* Plus Jakarta Sans Bold */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lilac-700);
}
.lede { font-size: 1.0625rem; color: var(--slate); max-width: 60ch; }

/* ── 3. LAYOUT PRIMITIVES ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow { max-width: var(--container-narrow); }
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

.section { padding-block: clamp(48px, 8vw, 96px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section--surface { background: var(--surface); }
.section--lilac { background: var(--lilac-50); }

.stack > * + * { margin-top: var(--gap, var(--space-4)); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.between { justify-content: space-between; }

/* Section header */
.section-head { text-align: left; max-width: 720px; margin-bottom: var(--space-8); }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head h2 { margin-bottom: var(--space-3); }

/* ── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;            /* touch target */
  padding: 0 22px;
  border-radius: var(--pill);
  font-family: var(--font-sans);
  font-weight: 500;            /* Plus Jakarta Sans Medium */
  font-size: .9375rem;
  letter-spacing: -0.003em;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lilac);
  color: #fff;
  box-shadow: 0 6px 16px rgba(149,121,196,.28);
}
.btn-primary:hover { background: var(--lilac-600); box-shadow: 0 10px 22px rgba(149,121,196,.34); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--s-xs);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lilac-700);
  font-weight: 600;
  font-size: .9375rem;
}
.btn-link:hover { color: var(--lilac-600); }
.btn-link::after { content: '→'; transition: transform var(--dur) var(--ease); }
.btn-link:hover::after { transform: translateX(3px); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── 5. BADGES & CHIPS ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--lilac-100);
  color: var(--lilac-700);
}
.badge--urgent { background: var(--danger-50); color: var(--danger); }
.badge--verified { background: var(--success-50); color: var(--success); }
.badge--new { background: var(--info-50); color: var(--info); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: .875rem;
  font-weight: 500;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all var(--dur) var(--ease);
  min-height: 38px;
}
.chip:hover { border-color: var(--lilac); color: var(--lilac-700); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── 6. NAVBAR ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              -webkit-backdrop-filter var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.nav.is-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: start;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: end;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  justify-self: center;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__links { display: none; }
.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }

.nav__icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  color: var(--ink);
  transition: background var(--dur) var(--ease);
  flex: none;
}
.nav__icon-btn:hover { background: var(--surface-2); }
.nav__icon-btn svg { width: 20px; height: 20px; }

.nav__cta { display: none; }
.nav__burger { display: inline-grid; }

@media (min-width: 900px) {
  .nav__links { display: flex; gap: 2px; margin-left: var(--space-2); }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__search { display: none; }
  .nav__logo-img { height: 48px; }
}

/* ── 7. SIDEBAR (off-canvas mobile nav) ────────────────────── */
.sb-overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,30,.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 200;
}
.sb-overlay.is-open { opacity: 1; pointer-events: auto; }

.sb {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--s-lg);
}
.sb.is-open { transform: translateX(0); }

.sb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.sb__close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  color: var(--ink);
}
.sb__close:hover { background: var(--surface-2); }

.sb__body { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-2); }

.sb__section { padding: var(--space-3) var(--space-3) var(--space-2); }
.sb__section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 8px;
}
.sb__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  min-height: 48px;
  transition: background var(--dur) var(--ease);
}
.sb__link:hover { background: var(--surface-2); }
.sb__link svg { width: 20px; height: 20px; color: var(--muted); }

.sb__foot {
  padding: var(--space-5);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-3);
}

/* ── 8. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: 92vh;
  padding: 0 0 clamp(52px, 13vw, 104px);
  /* Fixed transparent nav overlays the hero — reserve its height plus
     generous breathing room so the content has a calm, premium rhythm. */
  padding-top: calc(var(--nav-h) + clamp(32px, 9vw, 60px));
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--lilac-50) 0%, transparent 60%),
    radial-gradient(800px 500px at -10% 110%, var(--lilac-50) 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}

/* Mobile: full-bleed illustration BEHIND the hero text */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
/* Whisper-soft warm-cream gradient — almost invisible, just enough to
   support the lower content zone without darkening the artwork. */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,253,250,0)    0%,
    rgba(255,252,247,.06) 36%,
    rgba(255,250,243,.26) 58%,
    rgba(253,247,238,.52) 80%,
    rgba(252,246,236,.66) 100%);
}

.hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: stretch;
  width: 100%;
  min-height: 100%;
}
/* Mobile: headline + subheadline + CTA as ONE cohesive group, anchored
   in the lower third so it reads top-down without fighting the artwork. */
.hero__copy {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__copy .hero__lede { margin-top: 0; }
.hero__visual { order: 2; display: none; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--slate);
  box-shadow: var(--s-xs);
  margin-bottom: var(--space-5);
}
.hero__eyebrow-pill {
  background: var(--lilac);
  color: #fff;
  border-radius: var(--pill);
  padding: 3px 10px;
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.5rem, 9.5vw, 3.25rem);
  line-height: 1.13;
  letter-spacing: -0.008em;
  margin-bottom: clamp(14px, 4vw, 22px);
}
/* Richer, less "washed" lilac highlight — same brand family, more presence */
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lilac-700) 0%, var(--lilac-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin-bottom: clamp(26px, 6.5vw, 36px);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  max-width: 33ch;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0;
}
.hero__cta .btn { min-width: 220px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__trust-lbl {
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* Hero visual — featured campaign card */
.hero__feature {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--s-lg);
  overflow: hidden;
  position: relative;
}
.hero__feature-img {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero__feature-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45) 100%);
}
.hero__feature-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
}
.hero__feature-body { padding: var(--space-5); }
.hero__feature-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  letter-spacing: -0.011em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  font-size: .875rem;
}
.hero__feature-meta strong { color: var(--ink); font-weight: 700; }
.hero__feature-meta .muted { color: var(--muted); }

/* Floating credibility chips around hero feature */
.hero__chips {
  display: none;
}
@media (min-width: 1024px) {
  .hero__chips { display: block; }
  .hero__chip-float {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 8px 14px 8px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--s-md);
  }
  .hero__chip-float--tl { top: -18px; left: -22px; }
  .hero__chip-float--br { bottom: 60px; right: -28px; }
  .hero__chip-float .dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--success-50); color: var(--success);
  }
  .hero__chip-float .dot svg { width: 14px; height: 14px; }
}

@media (min-width: 900px) {
  /* Desktop unchanged: solid sticky nav, no transparent overlay */
  .nav {
    position: sticky;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .hero {
    display: block;
    min-height: 0;
    align-items: initial;
    padding: clamp(40px, 8vw, 80px) 0 clamp(40px, 6vw, 64px);
  }
  .hero__bg { display: none; }
  .hero__title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: var(--tracking-display);
    margin-bottom: var(--space-5);
  }
  .hero__lede { font-size: 1.0625rem; line-height: 1.6; max-width: none; margin-bottom: var(--space-8); color: var(--slate); text-shadow: none; }
  .hero__copy .hero__lede { margin-top: 0; }
  .hero__cta { justify-content: flex-start; margin-top: 0; }
  .hero__cta .btn { min-width: 160px; }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    min-height: 0;
  }
  .hero__copy { order: 1; display: block; }
  .hero__visual { order: 2; display: block; }
  .hero__trust { gap: var(--space-10); }
  .hero__trust-num { font-size: 1.75rem; }
}

/* ── 9. PROGRESS BAR ───────────────────────────────────────── */
.progress {
  position: relative;
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--pill);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lilac) 0%, var(--lilac-600) 100%);
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease);
}
.progress--success .progress__fill {
  background: linear-gradient(90deg, var(--success) 0%, #059669 100%);
}

/* ── 10. CAMPAIGN CARD ─────────────────────────────────────── */
.cc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
}
.cc:hover {
  transform: translateY(-4px);
  box-shadow: var(--s-md);
  border-color: transparent;
}
.cc__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cc__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%);
}
.cc__tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.cc__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.cc__save {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: var(--s-sm);
  transition: transform var(--dur-fast) var(--ease);
}
.cc__save:hover { transform: scale(1.06); }
.cc__save svg { width: 18px; height: 18px; }
.cc__save.is-saved { color: var(--lilac-600); }

.cc__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.cc__category {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;            /* Plus Jakarta Sans Bold */
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--lilac-700);
}
.cc__title {
  font-family: var(--font-sans);   /* sans, não serif — mais legível e moderno */
  font-size: 1.0625rem;
  font-weight: 600;                /* Plus Jakarta Sans SemiBold */
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.011em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc__org {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
}
.cc__org-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lilac-100);
  color: var(--lilac-700);
  font-size: .6875rem;
  font-weight: 700;
  display: grid; place-items: center;
}
.cc__stats { margin-top: var(--space-1); }
.cc__amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: .875rem;
  color: var(--slate);
}
.cc__raised {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cc__goal { color: var(--muted); }

.cc-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .cc-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Horizontal scroll (mobile featured row) */
.cc-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-2) var(--space-5) var(--space-5);
  margin: 0 calc(var(--space-5) * -1);
  scrollbar-width: none;
}
.cc-scroll::-webkit-scrollbar { display: none; }
.cc-scroll > .cc { scroll-snap-align: start; }
@media (min-width: 600px) { .cc-scroll { grid-auto-columns: 48%; } }
@media (min-width: 900px) {
  .cc-scroll {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}

/* ── 11. CATEGORY GRID ─────────────────────────────────────── */
.cats {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(6, 1fr); gap: var(--space-4); } }

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
  color: var(--ink);
}
.cat:hover {
  border-color: var(--lilac);
  background: var(--lilac-50);
  transform: translateY(-2px);
}
.cat__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--lilac-50);
  color: var(--lilac-700);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease);
}
.cat:hover .cat__icon { transform: scale(1.06); background: var(--lilac-100); }
.cat__icon svg { width: 22px; height: 22px; }
.cat__name { font-size: .9375rem; font-weight: 600; }
.cat__count { font-size: .75rem; color: var(--muted); }

/* ── 12. HOW IT WORKS ──────────────────────────────────────── */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }

.step {
  position: relative;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  counter-increment: step;
}
.step__num {
  position: absolute;
  top: -14px; left: var(--space-6);
  background: var(--ink);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8125rem;
  font-weight: 700;
}
.step__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--lilac-50);
  color: var(--lilac-700);
  display: grid; place-items: center;
  margin-bottom: var(--space-4);
}
.step__icon svg { width: 24px; height: 24px; }
.step h3 { margin-bottom: var(--space-2); font-size: 1.1875rem; }
.step p { font-size: .9375rem; line-height: 1.6; }

/* ── 13. TRUST / GUARANTEE STRIP ───────────────────────────── */
.trust-strip {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--s-sm);
}
@media (min-width: 768px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}
@media (min-width: 1100px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }

.trust-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-item__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--success-50);
  color: var(--success);
  display: grid; place-items: center;
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item h4 {
  font-family: var(--font-sans);   /* mesma fonte dos títulos de campanha */
  font-weight: 600;                /* Plus Jakarta Sans SemiBold */
  font-size: .9375rem;
  letter-spacing: -0.011em;
  margin-bottom: 4px;
}
.trust-item p { font-size: .8125rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── 14. URGENT CALLOUT ────────────────────────────────────── */
.urgent-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--danger-50);
  border: 1px solid #FBD5D5;
  border-radius: var(--r-md);
  color: var(--danger);
  font-weight: 500;
  font-size: .9375rem;
}
.urgent-banner__icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}

/* ── 15. RECENT DONORS / SOCIAL PROOF ──────────────────────── */
.donor-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .donor-list { grid-template-columns: repeat(2, 1fr); } }

.donor {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.donor__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac-100) 0%, var(--lilac-50) 100%);
  color: var(--lilac-700);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .9375rem;
  flex: none;
}
.donor__body { flex: 1; min-width: 0; }
.donor__name { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.donor__meta { font-size: .8125rem; color: var(--muted); }
.donor__amount {
  font-weight: 700;
  color: var(--lilac-700);
  font-size: 1rem;
  white-space: nowrap;
}

/* ── 16. TESTIMONIAL ───────────────────────────────────────── */
.quote {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  position: relative;
}
.quote__mark {
  position: absolute;
  top: -18px; left: var(--space-6);
  width: 44px; height: 44px;
  background: var(--lilac);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Georgia', serif;
  font-size: 2rem;
  line-height: 1;
  padding-bottom: 8px;
}
.quote__text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}
.quote__attr { display: flex; align-items: center; gap: var(--space-3); }
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lilac-100);
  color: var(--lilac-700);
  display: grid; place-items: center;
  font-weight: 700;
  flex: none;
}
.quote__name { font-weight: 700; color: var(--ink); font-size: .9375rem; }
.quote__role { font-size: .8125rem; color: var(--muted); }

/* ── 17. CTA BANNER ────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, var(--lilac-600) 0%, var(--lilac) 100%);
  border-radius: var(--r-xl);
  color: #fff;
  text-align: center;
}
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::before { width: 280px; height: 280px; top: -140px; right: -100px; }
.cta-banner::after  { width: 200px; height: 200px; bottom: -100px; left: -60px; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: var(--space-3); font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-banner p  { color: rgba(255,255,255,.92); margin-bottom: var(--space-6); max-width: 56ch; margin-inline: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--lilac-700); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--lilac-600); transform: translateY(-2px); }
.cta-banner .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── 18. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: var(--space-10) 0 var(--space-8);
  font-size: .9375rem;
}
.footer a { color: rgba(255,255,255,.7); transition: color var(--dur) var(--ease); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-12); } }

.footer__brand .nav__logo { color: #fff; justify-self: start; align-self: start; justify-content: flex-start; }
.footer__brand .nav__logo-mark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
/* Footer logo — ratio locked. aspect-ratio fixes the box to the image's
   true proportions; object-fit:contain is a second safety net so the
   image can NEVER stretch, no matter what constrains width/height. */
.footer__logo-img {
  height: 40px;
  width: auto;
  aspect-ratio: 1024 / 186;   /* logo-footer.png intrinsic ratio */
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.footer__about {
  margin-top: var(--space-4);
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 36ch;
}
.footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.footer__social-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  transition: background var(--dur) var(--ease);
}
.footer__social-btn:hover { background: var(--lilac); border-color: var(--lilac); }
.footer__social-btn svg { width: 17px; height: 17px; }

.footer__title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__list { display: flex; flex-direction: column; gap: var(--space-3); }

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
}
.footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__seals { display: flex; gap: var(--space-3); align-items: center; }
.footer__seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--pill);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  color: rgba(255,255,255,.8);
}
.footer__seal svg { width: 14px; height: 14px; color: var(--success); }

/* ── 19. UTILITIES ─────────────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

.text-center { text-align: center; }

/* ── 20. SKELETON LOADING ──────────────────────────────────── */
.skel {
  background: linear-gradient(90deg,
    var(--surface-2) 0%,
    #ECECEF 50%,
    var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── 21. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp var(--dur-slow) var(--ease) both; }

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

/* ── 22. MOBILE STICKY DONATE BAR (campaign detail) ────────── */
.sticky-donate {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: var(--space-3) var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  z-index: 90;
  box-shadow: 0 -6px 18px rgba(20,20,30,.06);
}
@media (min-width: 900px) { .sticky-donate { display: none; } }

/* ── 23. CONTENT PAGES (contact · help · legal) ────────────── */

/* On content pages there's no hero behind the nav, so it must be
   solid + sticky at every width. */
.page .nav {
  position: sticky;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Page header band */
.page-hero {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 9vw, 84px) 0 clamp(36px, 7vw, 64px);
  background:
    radial-gradient(900px 440px at 100% -20%, var(--lilac-50) 0%, transparent 60%),
    radial-gradient(720px 360px at -10% 120%, var(--lilac-50) 0%, transparent 55%),
    var(--white);
}
.page-hero .eyebrow { margin-bottom: var(--space-3); }
.page-hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  margin-bottom: var(--space-4);
}
.page-hero p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--slate);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section--narrow .container { max-width: 920px; }

/* Last-updated badge (legal pages) */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--lilac-50);
  border: 1px solid var(--lilac-100);
  color: var(--lilac-700);
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: var(--space-10);
}
.updated-badge svg { width: 15px; height: 15px; }

/* Legal / prose */
.prose { max-width: 760px; margin-inline: auto; }
.prose__section { padding-block: var(--space-8); border-top: 1px solid var(--line); }
.prose__section:first-of-type { border-top: 0; padding-top: 0; }
.prose h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  margin-bottom: var(--space-4);
}
.prose h2 .num {
  flex: none;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--lilac-700);
  background: var(--lilac-50);
  border: 1px solid var(--lilac-100);
  border-radius: var(--pill);
  padding: 4px 10px;
  line-height: 1;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: var(--space-6) 0 var(--space-2);
}
.prose p { color: var(--slate); line-height: 1.78; margin-bottom: var(--space-4); }
.prose ul { margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.prose li { position: relative; padding-left: 26px; color: var(--slate); line-height: 1.7; }
.prose li::before {
  content: '';
  position: absolute;
  left: 7px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lilac);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--lilac-700); font-weight: 600; }
.prose a:hover { color: var(--lilac-600); }

/* FAQ accordion */
.faq-group + .faq-group { margin-top: var(--space-10); }
.faq-group__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lilac-700);
  margin-bottom: var(--space-4);
}
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq + .faq { margin-top: var(--space-3); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
}
.faq__icon {
  flex: none;
  width: 22px; height: 22px;
  color: var(--lilac-600);
  transition: transform var(--dur) var(--ease);
}
.faq.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.faq.is-open .faq__a { max-height: 520px; }
.faq__a p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--slate);
  line-height: 1.72;
}

/* Help — still-have-questions box */
.help-cta {
  margin-top: var(--space-12);
  text-align: center;
  padding: clamp(32px, 6vw, 56px) var(--space-6);
  background: var(--lilac-50);
  border: 1px solid var(--lilac-100);
  border-radius: var(--r-xl);
}
.help-cta h2 { margin-bottom: var(--space-3); }
.help-cta p { color: var(--slate); max-width: 46ch; margin: 0 auto var(--space-6); }

/* Contact layout */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 360px 1fr; align-items: start; }
}

.info-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.info-card + .info-card { margin-top: var(--space-4); }
.info-card__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lilac-50);
  color: var(--lilac-700);
  display: grid;
  place-items: center;
}
.info-card__icon svg { width: 20px; height: 20px; }
.info-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.info-card p { font-size: .9rem; color: var(--slate); line-height: 1.6; margin: 0; }
.info-card a { color: var(--lilac-700); font-weight: 600; }

/* Form */
.form-card {
  padding: clamp(20px, 5vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--s-sm);
}
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--lilac);
  background: var(--white);
  box-shadow: var(--s-focus);
}
.textarea { min-height: 144px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-success {
  display: none;
  padding: var(--space-6);
  background: var(--success-50);
  border: 1px solid #BFE8D8;
  border-radius: var(--r-md);
  color: #0F7A55;
  line-height: 1.6;
}
.form-success.is-visible { display: block; }
.form-success h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #0F7A55;
  margin-bottom: 6px;
}

/* ── 24. CAMPAIGN DETAIL ───────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
  padding: var(--space-5) 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--lilac-700); }
.breadcrumb .sep { color: var(--subtle); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.cd-grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  /* Mobile order: carousel → payment/share → story & rest */
  grid-template-areas: "media" "aside" "body";
}
.cd-media { grid-area: media; }
.cd-aside { grid-area: aside; }
.cd-body  { grid-area: body; }
@media (min-width: 980px) {
  .cd-grid {
    grid-template-columns: minmax(0,1fr) 380px;
    grid-template-areas: "media aside" "body aside";
    gap: var(--space-10);
  }
}

/* Gallery */
.gallery {
  margin-bottom: 0;
  /* Mobile: full-bleed — image fills width AND height (like the ref).
     Negative top margin cancels the section's top padding so the
     image meets the header with no empty band above it. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * clamp(48px, 8vw, 96px));
}
.gallery__main {
  position: relative;
  aspect-ratio: auto;
  height: clamp(400px, 64vh, 620px);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
}
@media (min-width: 980px) {
  /* Desktop keeps the contained, rounded card inside the 2-col layout */
  .gallery {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: var(--space-6);
  }
  .gallery__main {
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: var(--r-lg);
  }
}
.gallery__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.gallery__slide.is-active { opacity: 1; }
.gallery__tag { position: absolute; top: 14px; right: 14px; z-index: 3; }

/* Reference-style overlays: organizer chip (top-left) + title (bottom) */
.gallery__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.34) 0%, transparent 24%),
    linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.20) 32%, transparent 54%);
}
.gallery__org {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: var(--pill);
}
.gallery__org-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--lilac);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .7rem;
  flex: none;
}
.gallery__org-nm {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
}
.gallery__title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 22px 20px 34px;
  color: #fff;
  font-size: clamp(1.35rem, 4.6vw, 2rem);
  line-height: 1.18;
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: var(--s-sm);
  z-index: 3;
  transition: transform var(--dur-fast) var(--ease);
}
.gallery__nav:hover { transform: translateY(-50%) scale(1.06); }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 7px;
  z-index: 3;
}
.gallery__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transition: all var(--dur) var(--ease);
}
.gallery__dot.is-active { background: #fff; width: 22px; border-radius: var(--pill); }
.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: var(--space-3);
  margin-top: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  opacity: .55;
  border: 2px solid transparent;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__thumb.is-active { opacity: 1; border-color: var(--lilac); }

/* Title + organizer */
.cd-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: var(--space-4);
}
.cd-cat {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--lilac-700);
  margin-bottom: var(--space-3);
  display: inline-block;
}
.org-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.org-row__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac-100), var(--lilac-50));
  color: var(--lilac-700);
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  flex: none;
}
.org-row__name { font-family: var(--font-sans); font-weight: 700; font-size: .9375rem; color: var(--ink); }
.org-row__meta { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.org-row__verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 600; }
.org-row__verified svg { width: 14px; height: 14px; }

/* Story + read more */
.cd-section { padding-block: var(--space-8); border-top: 1px solid var(--line); }
.cd-section__title { font-size: 1.5rem; margin-bottom: var(--space-5); }
.story { position: relative; }
.story p { color: var(--slate); line-height: 1.8; margin-bottom: var(--space-4); }
.story.is-clamped { max-height: 280px; overflow: hidden; }
.story.is-clamped::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--paper));
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  color: var(--lilac-700);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
}

/* Progress ring */
.ring { transform: rotate(-90deg); }
.ring__track { stroke: var(--surface-2); }
.ring__fill {
  stroke: var(--lilac);
  stroke-linecap: round;
  transition: stroke-dasharray var(--dur-slow) var(--ease);
}

/* Donate sidebar card */
/* Mobile: no card chrome — donate/share live directly on the page */
.donate-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
@media (min-width: 980px) {
  /* Desktop: keep the contained sticky sidebar card */
  .donate-card {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--s-md);
    padding: var(--space-6);
  }
}
.donate-card__raised {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.donate-card__goal { color: var(--muted); font-size: .9375rem; margin-bottom: var(--space-4); }
.donate-card__goal strong { color: var(--ink); font-weight: 700; }
.donate-card .progress { margin-bottom: var(--space-4); }
.donate-card__stats {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  font-size: .875rem;
  color: var(--slate);
}
.donate-card__stats b { display: block; font-family: var(--font-sans); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.donate-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.prot-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--success-50);
  border-radius: var(--r-md);
  font-size: .8125rem;
  color: #0F7A55;
  line-height: 1.5;
}
.prot-badge svg { flex: none; width: 20px; height: 20px; }

/* Donor list */
.donor-mini { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.donor-mini__row { display: flex; align-items: center; gap: var(--space-3); }
.donor-mini__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lilac-50);
  color: var(--lilac-700);
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .8125rem;
  flex: none;
}
.donor-mini__name { font-family: var(--font-sans); font-weight: 600; font-size: .875rem; color: var(--ink); }
.donor-mini__meta { font-size: .75rem; color: var(--muted); }
.donor-mini__amt { margin-left: auto; font-family: var(--font-sans); font-weight: 700; color: var(--lilac-700); }

/* Share row */
.share-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .875rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.share-btn:hover { border-color: var(--lilac); background: var(--lilac-50); }
.share-btn svg { width: 17px; height: 17px; }

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: .8125rem;
  font-family: var(--font-sans);
}
.report-link:hover { color: var(--danger); }

.cd-disclaimer {
  margin-top: var(--space-6);
  font-size: .75rem;
  color: var(--subtle);
  line-height: 1.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: rgba(20,20,30,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: var(--s-lg);
  transform: translateY(10px);
  transition: transform var(--dur) var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-5);
}
.modal__head h3 { font-size: 1.25rem; }
.modal__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
}
.modal__close:hover { background: var(--surface-2); }
.copy-field {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.copy-field input {
  flex: 1;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  color: var(--slate);
}

/* Mobile sticky donate bar — hidden until the main CTA scrolls away */
.sticky-donate {
  transform: translateY(115%);
  transition: transform var(--dur) var(--ease);
}
.sticky-donate.is-visible { transform: none; }
.sticky-donate__info { flex: 1; min-width: 0; }
.sticky-donate__raised {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sticky-donate__sub { font-size: .75rem; color: var(--muted); }

/* ── 25. ABOUT · HOW IT WORKS · CAMPAIGNS ──────────────────── */

/* Stats row (about hero) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink);
  line-height: 1.1;
}
.stat-item__lbl {
  margin-top: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

/* Mission split */
.about-split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) { .about-split { grid-template-columns: 1.1fr .9fr; gap: var(--space-12); } }
.about-split h2 { margin-bottom: var(--space-4); }
.about-split p { color: var(--slate); line-height: 1.8; margin-bottom: var(--space-4); }
.about-quote {
  padding: clamp(28px, 5vw, 48px);
  background: var(--lilac-50);
  border: 1px solid var(--lilac-100);
  border-radius: var(--r-xl);
}
.about-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: var(--space-5);
}
.about-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--lilac-700);
}

/* For-organizers / for-donors band header */
.dual-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-10); }
.dual-head .eyebrow { margin-bottom: var(--space-3); }

/* Campaigns toolbar */
.cmp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.cmp-count { font-size: .9375rem; color: var(--muted); }
.cmp-count strong { color: var(--ink); font-weight: 700; }
.cmp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.cmp-sort {
  min-height: 40px;
  padding: 0 36px 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A95' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.cmp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto var(--space-6);
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--s-sm);
}
.cmp-search:focus-within { border-color: var(--lilac); box-shadow: var(--s-focus); }
.cmp-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cmp-search input {
  flex: 1;
  border: 0;
  background: none;
  font-size: .9375rem;
  color: var(--ink);
  outline: none;
}
.cmp-empty {
  display: none;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) var(--space-5);
  color: var(--muted);
}
.cmp-empty.is-on { display: block; }
.cmp-empty h3 { margin-bottom: var(--space-2); }
.cc.is-hidden { display: none; }

/* Donate card — ring + rotating donor (campaign detail) */
.donate-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.ring-wrap { position: relative; width: 84px; height: 84px; flex: none; }
.ring-wrap .ring { width: 84px; height: 84px; }
.ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.donate-head .donate-card__raised { font-size: 1.7rem; line-height: 1.05; }
.donate-head .donate-card__goal { margin-bottom: 0; }

.donor-line {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--muted);
  transition: opacity var(--dur) var(--ease);
}
.donor-line strong { font-weight: 700; color: var(--ink); }
.donor-line.is-fading { opacity: 0; }

/* ── 26. START-A-FUNDRAISER WIZARD ─────────────────────────── */
.wizard { max-width: 760px; margin-inline: auto; }

/* Progress header */
.wiz-progress { margin-bottom: var(--space-10); }
.wiz-dots {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.wiz-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}
.wiz-dot__circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .8125rem;
  border: 2px solid transparent;
  transition: all var(--dur) var(--ease);
}
.wiz-dot__label {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.wiz-dot.is-active .wiz-dot__circle {
  background: var(--lilac);
  color: #fff;
  box-shadow: 0 0 0 4px var(--lilac-ring);
}
.wiz-dot.is-active .wiz-dot__label { color: var(--lilac-700); }
.wiz-dot.is-done .wiz-dot__circle { background: var(--success); color: #fff; }
@media (max-width: 560px) { .wiz-dot__label { display: none; } }

.wiz-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--pill);
  overflow: hidden;
}
.wiz-bar__fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--lilac), var(--lilac-600));
  border-radius: inherit;
  transition: width var(--dur-slow) var(--ease);
}

/* Steps */
.wiz-step { display: none; }
.wiz-step.is-active { display: block; animation: fadeUp var(--dur-slow) var(--ease) both; }
.wiz-step__title { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: var(--space-2); }
.wiz-step__sub { color: var(--slate); margin-bottom: var(--space-8); }

/* Option cards (single-select groups) */
.opt-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } }
.opt-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .opt-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.opt-card:hover { border-color: var(--lilac); }
.opt-card.is-selected {
  border-color: var(--lilac);
  background: var(--lilac-50);
  box-shadow: 0 0 0 3px var(--lilac-ring);
}
.opt-card__t { font-family: var(--font-sans); font-weight: 700; font-size: .9375rem; color: var(--ink); }
.opt-card__d { font-size: .8125rem; color: var(--muted); }

/* Goal slider */
.goal-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3rem);
  color: var(--ink);
  text-align: center;
  margin-bottom: var(--space-5);
}
.goal-slider {
  width: 100%;
  accent-color: var(--lilac);
  height: 6px;
  margin-bottom: 6px;
}
.goal-scale {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

/* Upload */
.upload {
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--slate);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.upload:hover { border-color: var(--lilac); background: var(--lilac-50); }
.upload svg { width: 30px; height: 30px; color: var(--lilac-600); margin: 0 auto var(--space-3); }
.upload strong { color: var(--ink); font-weight: 700; }
.upload__hint { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.upload__preview {
  margin-top: var(--space-4);
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  display: none;
}
.upload__preview.is-on { display: block; }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.extra-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
}
.extra-thumb button {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(20,20,30,.7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

/* Review */
.review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.review-row__k { color: var(--muted); }
.review-row__v { color: var(--ink); font-weight: 600; text-align: right; }
.wiz-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--lilac-50);
  border: 1px solid var(--lilac-100);
  border-radius: var(--r-md);
  font-size: .8125rem;
  color: var(--slate);
  line-height: 1.6;
}
.wiz-terms input { margin-top: 3px; accent-color: var(--lilac); flex: none; }
.wiz-terms a { color: var(--lilac-700); font-weight: 600; }

/* Nav buttons */
.wiz-nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.wiz-nav .btn { flex: 1; }
.wiz-nav .btn--back { flex: 0 0 auto; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: .8125rem;
  color: var(--danger);
}
.field-error.is-on { display: block; }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--danger); }

/* Success */
.wiz-success { display: none; text-align: center; padding: clamp(32px,7vw,64px) var(--space-5); }
.wiz-success.is-on { display: block; animation: fadeUp var(--dur-slow) var(--ease) both; }
.wiz-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success);
  display: grid;
  place-items: center;
}
.wiz-success__icon svg { width: 34px; height: 34px; }
.wiz-success h2 { margin-bottom: var(--space-3); }
.wiz-success p { color: var(--slate); max-width: 46ch; margin: 0 auto var(--space-6); }

/* Rich story editor (links + images) */
.editor {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.editor:focus-within {
  border-color: var(--lilac);
  box-shadow: var(--s-focus);
  background: var(--white);
}
.editor__toolbar {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.editor__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
  color: var(--ink);
  transition: all var(--dur) var(--ease);
}
.editor__btn:hover { border-color: var(--lilac); color: var(--lilac-700); background: var(--lilac-50); }
.editor__btn svg { width: 15px; height: 15px; }
.editor__area {
  min-height: 200px;
  max-height: 460px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
}
.editor__area:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.editor__area p { margin-bottom: 10px; }
.editor__area a { color: var(--lilac-700); font-weight: 600; text-decoration: underline; }
.editor__area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  border-radius: var(--r-sm);
}

