/* FND Challenge — "They Said I Couldn't" campaign styles.
   Dark-themed campaign overlay on top of the main site chrome. */

/* ── Import handwritten + sans fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Paint Brush Script — supplied by FND Connect for the campaign script text
   (subset to Latin + smart punctuation as woff2). */
@font-face {
  font-family: 'Paint Brush Script';
  src: url('/assets/fonts/PaintBrushScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Campaign tokens ─────────────────────────────────────────────────────── */
:root {
  --ch-navy:   #06143f;
  --ch-deep:   #02081f;
  --ch-navy2:  #10205d;
  --ch-pink:   #e8007a;
  --ch-pink2:  #ff2d8a;
  --ch-pink3:  #ff6bb0;
  --ch-ink:    #1a1f50;
  --ch-slate:  #5a6478;
  --ch-white:  #ffffff;
  --ch-muted:  rgba(255,255,255,0.74);
  --ch-faint:  rgba(255,255,255,0.5);
  --ch-border: rgba(255,255,255,0.14);
  --ch-radius: 8px;
  --ch-max:    1220px;
  --ch-sans:   'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ch-script: 'Caveat', cursive;
  --ch-display:'Paint Brush Script', 'Caveat Brush', 'Caveat', cursive;
  --ch-shadow: 0 18px 50px rgba(0,0,0,0.45);
  --ch-header-h: 78px;
}

/* Clean geometric sans for all challenge content (replaces site Arial) */
.challenge-page #main,
.challenge-page .ch-site-header { font-family: var(--ch-sans); }
.challenge-page #main p,
.challenge-page #main li,
.challenge-page #main label,
.challenge-page #main input,
.challenge-page #main textarea,
.challenge-page #main select { font-family: var(--ch-sans); }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.ch-wrap {
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Page body when on challenge routes ──────────────────────────────────── */
.challenge-page {
  background: var(--ch-navy);
  color: var(--ch-white);
}
/* Link colour: pink on dark — SCOPED TO #main so the site header/footer chrome
   keeps its own styling (fixes pink-on-pink "Support our work" CTA). Buttons,
   share buttons, card anchors and lb rows are excluded. */
.challenge-page #main a:not(.ch-btn):not(.ch-btn-brush):not(.ch-share-btn):not(.ch-story-card):not(.ch-lb-row):not(.ch-team-card):not(.ch-resource-card):not(.ch-logo) { color: var(--ch-pink2); }
.challenge-page #main a:not(.ch-btn):not(.ch-btn-brush):not(.ch-share-btn):not(.ch-story-card):not(.ch-lb-row):not(.ch-team-card):not(.ch-resource-card):not(.ch-logo):hover { color: var(--ch-white); }
.challenge-page #main a.ch-btn-brush { color: #fff; }
/* Buttons keep their own colour even when rendered as <a> */
.challenge-page .ch-btn-primary,
.challenge-page .ch-btn-primary:hover { color: #fff; }
.challenge-page .ch-btn-outline,
.challenge-page .ch-btn-outline:hover { color: var(--ch-white); }
.challenge-page .ch-btn-ghost,
.challenge-page .ch-btn-ghost:hover  { color: var(--ch-white); }
/* Social share buttons */
.challenge-page .ch-share-facebook { color: #fff; }
.challenge-page .ch-share-twitter  { color: #fff; }
.challenge-page .ch-share-whatsapp { color: #fff; }
.challenge-page .ch-share-copy     { color: #333; }
/* Story cards (white bg) and leaderboard rows stay with their own colours */
.challenge-page .ch-story-card,
.challenge-page .ch-story-card:hover { color: var(--ch-navy); }
.challenge-page .ch-lb-row,
.challenge-page .ch-lb-row:hover { color: var(--ch-white); }

/* Consent / checkbox label text — override styles.css `label span { color:var(--ink) }`
   which otherwise renders the consent copy dark-navy-on-navy (invisible). */
.challenge-page .ch-check-label span {
  display: inline;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--ch-muted);
}
.challenge-page .ch-form-group > label { color: var(--ch-white); }
.challenge-page .ch-donate-form label { color: #637086; }

/* ── Campaign header takeover ────────────────────────────────────────────── */
.ch-site-header {
  position: relative;
  z-index: 20;
  background: var(--ch-deep);
}
.ch-site-header--overlay { background: transparent; }

.ch-nav-wrap {
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.ch-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.ch-logo img { height: 40px; width: auto; display: block; }
/* When a transparent dark-background logo is supplied, drop the white chip:
   add class "ch-logo--bare" to .ch-logo and it sits straight on the navy. */
.ch-logo--bare {
  background: none;
  box-shadow: none;
  padding: 0;
  width: clamp(148px, 14vw, 180px);
  height: clamp(54px, 5.2vw, 68px);
  overflow: hidden;
  position: relative;
}
.ch-logo--bare img {
  position: absolute;
  top: 0;
  left: 0;
  height: 180%;
  width: auto;
  max-width: none;
  transform: translate(-8px, -16px);
}

.ch-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}
.ch-nav > a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}
/* !important: the header sits inside #main, so beat the broad pink-link rule */
.challenge-page .ch-site-header .ch-nav > a { color: rgba(255,255,255,0.88) !important; }
.challenge-page .ch-site-header .ch-nav > a:hover,
.challenge-page .ch-site-header .ch-nav > a[aria-current="page"] { color: #fff !important; }
.ch-nav-donate {
  background: var(--ch-pink);
  color: #fff !important;
  padding: 0.72rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  box-shadow: 0 6px 18px rgba(232,0,122,0.4);
}
.challenge-page .ch-site-header .ch-nav-donate:hover { background: var(--ch-pink2); }

.ch-nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--ch-border);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}
.ch-nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .ch-nav-toggle { display: inline-flex; }
  .ch-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ch-deep);
    border-top: 1px solid var(--ch-border);
    padding: 0.5rem 1.25rem 1rem;
    margin: 0;
    display: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  }
  .ch-nav.is-open { display: flex; }
  .ch-nav > a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; }
  .ch-nav-donate { margin-top: 0.85rem; text-align: center; border-bottom: none !important; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ch-hero {
  position: relative;
  background:
    radial-gradient(ellipse 56% 58% at 72% 16%, rgba(232,0,122,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 70% 88% at 10% 54%, rgba(20,74,145,0.32) 0%, transparent 64%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--ch-deep) 100%);
  padding: 0 0 clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}
/* when the header sits inside the hero (homepage), make the hero own the top space */
.ch-hero > .ch-site-header { margin-bottom: clamp(0.25rem, 1.4vw, 1rem); }
.ch-hero:not(:has(> .ch-site-header)) { padding-top: clamp(2.5rem, 6vw, 5rem); }

.ch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 16%, rgba(255,255,255,0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 88%, rgba(255,45,138,0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 74%, rgba(255,45,138,0.34) 0 1.4px, transparent 2.8px);
  background-size: 22px 22px, 34px 34px, 18px 18px;
  opacity: 0.38;
  pointer-events: none;
}

/* faint paint-texture wash */
.ch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, transparent 0 10%, rgba(255,255,255,0.035) 10.4% 11.1%, transparent 11.4% 100%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 100% 100%, 28px 28px;
  opacity: 0.62;
  pointer-events: none;
}

.ch-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: clamp(520px, calc(100svh - 235px), 590px);
}

@media (max-width: 860px) {
  .ch-hero { padding-bottom: 2rem; }
  .ch-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.9rem;
    min-height: 0;
    padding: 0 1rem;
  }
  .ch-hero-text { max-width: 640px; }
  .ch-polaroids {
    min-height: 500px;
    max-width: 390px;
    margin: 0.5rem auto 0;
  }
  .ch-polaroid--top { top: 0; left: 19%; width: 58%; }
  .ch-polaroid--left { top: 34%; left: 0; width: 55%; }
  .ch-polaroid--right { top: 30%; right: 0; width: 60%; }
}

.ch-hero-text {
  text-align: left;
  align-self: start;
  padding-top: clamp(0.25rem, 2vw, 1.25rem);
}

.ch-hero-eyebrow {
  display: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ch-pink3);
  margin-bottom: 0.85rem;
}

/* Hero title — live text in the self-hosted Paint Brush Script face */
.ch-hero-title {
  font-family: var(--ch-display);
  font-weight: 400;
  color: var(--ch-white);
  margin: 0;
  line-height: 0.78;
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.ch-hero-title-1 {
  display: block;
  font-size: clamp(3.9rem, 7vw, 5.7rem);
  transform: rotate(-3deg);
  transform-origin: left center;
  white-space: nowrap;
}
.ch-hero-title-2 {
  display: block;
  font-size: clamp(4.9rem, 8.2vw, 7.4rem);
  margin-left: 0.02em;
  white-space: nowrap;
}
/* Pink brush swipe beneath the title (decorative transparent PNG) */
.ch-hero-swipe {
  display: block;
  width: min(520px, 94%);
  height: auto;
  margin: -0.25rem 0 0.6rem;
  transform: rotate(-1.5deg);
}

.ch-hero-sub {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-pink2);
  margin: 0.35rem 0 1.2rem;
  display: inline-block;
}

.ch-hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.5;
  color: var(--ch-muted);
  margin: 0 0 0.8rem;
  max-width: 520px;
}
.ch-hero-desc--strong {
  color: var(--ch-white);
  font-weight: 700;
}

.ch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

/* ── Polaroid collage ────────────────────────────────────────────────────── */
.ch-polaroids {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 54vw, 650px);
  padding: 0;
  isolation: isolate;
}

.ch-collage-orbit,
.ch-collage-splatter {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ch-collage-orbit {
  width: 72%;
  aspect-ratio: 1;
  top: 9%;
  right: 5%;
  border: 3px solid rgba(232,0,122,0.46);
  border-left-color: transparent;
  border-bottom-color: rgba(255,45,138,0.18);
  border-radius: 48% 52% 51% 49%;
  transform: rotate(-20deg);
  box-shadow:
    -8px 20px 0 -18px rgba(255,45,138,0.8),
    18px -10px 0 -17px rgba(255,45,138,0.55);
}

.ch-collage-splatter {
  width: 42%;
  aspect-ratio: 1;
  right: -1%;
  bottom: 6%;
  background:
    radial-gradient(circle at 22% 68%, rgba(255,45,138,0.8) 0 2px, transparent 2.8px),
    radial-gradient(circle at 76% 24%, rgba(255,45,138,0.58) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 58% 82%, rgba(232,0,122,0.6) 0 2px, transparent 3px),
    radial-gradient(ellipse at center, rgba(232,0,122,0.16) 0%, transparent 62%);
  background-size: 17px 17px, 23px 23px, 31px 31px, 100% 100%;
  transform: rotate(14deg);
  opacity: 0.9;
}

.ch-polaroid {
  background: linear-gradient(#fff, #fafafa);
  padding: clamp(0.55rem, 1vw, 0.72rem) clamp(0.55rem, 1vw, 0.72rem) clamp(1.55rem, 2vw, 2rem);
  border-radius: 3px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.45), 0 3px 10px rgba(0,0,0,0.35);
  position: absolute;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  z-index: 2;
}
.ch-polaroid--top {
  top: 0;
  left: 30%;
  width: clamp(178px, 18vw, 232px);
  transform: rotate(-4deg);
  z-index: 3;
}
.ch-polaroid--left {
  top: 45%;
  left: 3%;
  width: clamp(184px, 19vw, 244px);
  transform: rotate(-5deg);
  z-index: 4;
}
.ch-polaroid--right {
  top: 33%;
  right: 1%;
  width: clamp(198px, 21vw, 270px);
  transform: rotate(5deg);
  z-index: 3;
}
.ch-polaroid:hover { z-index: 6; box-shadow: 0 22px 54px rgba(0,0,0,0.55); }
.ch-polaroid--top:hover { transform: rotate(-1deg) scale(1.035); }
.ch-polaroid--left:hover { transform: rotate(-2deg) scale(1.035); }
.ch-polaroid--right:hover { transform: rotate(2deg) scale(1.035); }

/* washi tape */
.ch-polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 76px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(232,0,122,0.55) 0 7px, rgba(255,45,138,0.45) 7px 14px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}
.ch-polaroid--left::before { transform: translateX(-50%) rotate(4deg); }
.ch-polaroid--right::before { transform: translateX(-50%) rotate(-6deg); }

.ch-polaroid-img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.ch-polaroid-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #2a3088 0%, #161c5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-polaroid-img-placeholder svg { width: 46px; height: 46px; }

.ch-polaroid-caption {
  font-family: var(--ch-script);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  color: var(--ch-ink);
  text-align: center;
  padding-top: 0.5rem;
  line-height: 1.05;
}

/* hand-drawn heart scribble accent */
.ch-heart-scribble {
  position: absolute;
  right: 3%;
  top: 24%;
  width: 64px;
  height: 64px;
  color: var(--ch-pink2);
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 2;
}
.ch-heart-scribble svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .ch-polaroids {
    min-height: 500px;
    max-width: 390px;
    margin: 0.5rem auto 0;
  }
  .ch-polaroid--top {
    top: 0;
    left: 19%;
    width: 58%;
  }
  .ch-polaroid--left {
    top: 34%;
    left: 0;
    width: 55%;
  }
  .ch-polaroid--right {
    top: 30%;
    right: 0;
    width: 60%;
  }
  .ch-collage-orbit {
    width: 82%;
    top: 6%;
    right: 1%;
  }
  .ch-heart-scribble { display: none; }
}

@media (max-width: 460px) {
  .ch-polaroids { min-height: 470px; }
  .ch-polaroid-caption { font-size: 1rem; }
  .ch-hero-title-1 { font-size: clamp(3.3rem, 17vw, 4rem); }
  .ch-hero-title-2 { font-size: clamp(4.2rem, 20vw, 4.9rem); }
  .ch-hero-actions .ch-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ── Reusable pink brush underline (section headings) ────────────────────── */
.ch-brush-underline {
  display: block;
  width: 180px;
  height: 16px;
  margin: 0.5rem auto 0;
  color: var(--ch-pink);
}
.ch-brush-underline svg { display: block; width: 100%; height: 100%; }
.ch-section--white .ch-brush-underline,
.ch-brush-underline { color: var(--ch-pink); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.ch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,0,122,0.35); }
.ch-btn:active { transform: translateY(0); }

.ch-btn-primary {
  background: var(--ch-pink);
  color: #fff;
  border-color: var(--ch-pink);
  box-shadow: 0 8px 22px rgba(232,0,122,0.35);
}
.ch-btn-primary:hover {
  background: var(--ch-pink2);
  color: #fff;
  border-color: var(--ch-pink2);
}

.ch-btn-outline {
  background: transparent;
  color: var(--ch-white);
  border-color: rgba(255,255,255,0.5);
}
.ch-btn-outline:hover { border-color: var(--ch-white); color: var(--ch-white); background: rgba(255,255,255,0.08); }

.ch-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--ch-white);
  border-color: rgba(255,255,255,0.15);
}
.ch-btn-ghost:hover { background: rgba(255,255,255,0.18); color: var(--ch-white); }

.ch-btn-lg {
  padding: 0.84rem 1.45rem;
  font-size: 0.84rem;
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.ch-stats {
  background: #fff;
  color: var(--ch-navy);
  padding: 1.45rem 0 1.7rem;
}

.ch-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.ch-stat {
  flex: 1 0 150px;
  text-align: center;
  padding: 0.55rem 1rem;
  position: relative;
}
.ch-stat + .ch-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: #e4e9f2;
}

.ch-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  color: var(--ch-navy);
}
.ch-stat-icon svg { width: 29px; height: 29px; }
.ch-stat-icon--pink { color: var(--ch-pink); }

.ch-stat-value {
  font-family: var(--ch-sans);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--ch-navy);
  line-height: 1;
  display: block;
}
.ch-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-slate);
  margin-top: 0.4rem;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.ch-section {
  padding: clamp(3rem, 5vw, 4.25rem) 0;
  background: var(--ch-navy);
}
.ch-section--alt {
  background: var(--ch-deep);
}
.ch-section--white {
  background: #fff;
  color: var(--ch-navy);
}

.ch-section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ch-section-title {
  font-family: var(--ch-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--ch-white);
  margin: 0 0 0.4rem;
  line-height: 1.04;
}
.ch-section-title em { font-style: normal; color: var(--ch-pink2); }
.ch-section--white .ch-section-title { color: var(--ch-navy); }
.ch-section--white .ch-section-title em { color: var(--ch-pink); }
.ch-section--white .ch-tagline { color: #5a6478; }

.ch-tagline {
  color: var(--ch-muted);
  font-size: 1.18rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.ch-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1rem;
}

.ch-step {
  text-align: center;
  padding: 1rem 1.25rem;
  position: relative;
}

/* clean pink line icon (no ring) */
.ch-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin: 0 auto 1.1rem;
  color: var(--ch-pink);
  transition: transform 0.2s ease;
}
.ch-step-icon svg { width: 52px; height: 52px; }
.ch-step:hover .ch-step-icon { transform: translateY(-4px) scale(1.06); }

.ch-step-num {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-navy);
  margin: 0 0 0.6rem;
}
.ch-step-num b { color: var(--ch-pink); font-weight: 800; }

.ch-step h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-white);
  margin: 0 0 0.7rem;
}
.ch-section--white .ch-step h3 { color: var(--ch-navy); }

.ch-step p {
  font-size: 1.05rem;
  color: var(--ch-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 320px;
  margin-inline: auto;
}
.ch-section--white .ch-step p { color: var(--ch-slate); }

/* ── Painted brush button ("Sign up today") ──────────────────────────────── */
.ch-btn-brush {
  position: relative;
  display: inline-block;
  padding: 1.05rem 3.4rem;
  border: none;
  background: none;
  color: #fff;
  font-family: var(--ch-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  z-index: 0;
}
.ch-btn-brush::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
  z-index: -1;
  background: url("/assets/img/challenge/btn-brush.png") center/100% 100% no-repeat;
  filter: drop-shadow(0 10px 22px rgba(232,0,122,0.4));
}
.ch-btn-brush:hover { transform: translateY(-2px) rotate(-0.6deg); filter: brightness(1.05); color: #fff; }

/* ── Story cards (horizontal: photo left, quote right) ───────────────────── */
.ch-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.4rem;
}

.ch-story-card {
  background: #fff;
  color: var(--ch-navy);
  border-radius: var(--ch-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ch-story-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(0,0,0,0.42); }

.ch-story-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  background: #e8eaf0;
}

.ch-story-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #232a82 0%, #0b1142 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-story-card-body {
  padding: 1.35rem 1.4rem 1.25rem 1.5rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* big decorative opening quote mark */
.ch-story-card-body::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 0.9rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(232,0,122,0.22);
  pointer-events: none;
}

.ch-story-card-quote {
  font-size: 1rem;
  color: #2a3050;
  line-height: 1.55;
  margin: 0.85rem 0 0.6rem;
  position: relative;
}

.ch-story-card-quote strong {
  display: block;
  color: var(--ch-navy);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.ch-story-card-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ch-pink);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: auto;
  padding-top: 0.85rem;
}
.ch-story-card-name b { display: block; color: var(--ch-navy); font-size: 0.82rem; letter-spacing: 0.02em; margin-bottom: 0.1rem; }

.ch-story-card-raised {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a8c5e;
  margin-top: 0.3rem;
}

/* ── Participant page ─────────────────────────────────────────────────────── */
.ch-participant-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 62% at 84% 16%, rgba(232,0,122,0.2) 0%, transparent 64%),
    radial-gradient(ellipse 70% 88% at 8% 60%, rgba(20,74,145,0.34) 0%, transparent 66%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--ch-deep) 100%);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
}

.ch-participant-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 78%, rgba(255,45,138,0.3) 0 1.4px, transparent 2.6px);
  background-size: 24px 24px, 18px 18px;
  opacity: 0.42;
  pointer-events: none;
}

.ch-participant-hero > .ch-wrap {
  position: relative;
  z-index: 1;
}

.ch-participant-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .ch-participant-layout { grid-template-columns: 1fr; }
}

.ch-participant-main {
  min-width: 0;
}

.ch-participant-feature {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.ch-participant-polaroid {
  position: relative;
  margin: 0;
  padding: 0.72rem 0.72rem 1.9rem;
  border-radius: 3px;
  background: linear-gradient(#fff, #fafafa);
  box-shadow: 0 18px 46px rgba(0,0,0,0.48), 0 4px 12px rgba(0,0,0,0.34);
  transform: rotate(-3deg);
}

.ch-participant-polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 82px;
  height: 28px;
  background: repeating-linear-gradient(45deg, rgba(232,0,122,0.58) 0 7px, rgba(255,45,138,0.46) 7px 14px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  transform: translateX(-50%) rotate(4deg);
}

.ch-participant-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.ch-participant-polaroid .ch-photo-placeholder {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.ch-participant-polaroid figcaption {
  padding-top: 0.55rem;
  color: var(--ch-ink);
  font-family: var(--ch-script);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.ch-participant-copy {
  min-width: 0;
}

.ch-participant-kicker {
  color: var(--ch-pink2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.ch-participant-statement {
  font-family: var(--ch-display);
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.82;
  color: var(--ch-white);
  margin: 0;
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.ch-participant-statement span,
.ch-participant-statement em {
  display: block;
}

.ch-participant-statement span {
  transform: rotate(-2deg);
  transform-origin: left center;
}

.ch-participant-statement em {
  color: var(--ch-white);
  font-style: normal;
}

.ch-participant-brush {
  display: block;
  width: min(440px, 92%);
  height: auto;
  margin: -0.1rem 0 0.8rem;
  transform: rotate(-1.5deg);
}

.ch-participant-goal {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ch-white);
  margin: 0 0 1rem;
  max-width: 600px;
}
.ch-participant-goal strong { color: var(--ch-pink2); }

.ch-participant-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  color: var(--ch-muted);
  font-size: 0.85rem;
  margin: 0;
}
.ch-participant-byline strong {
  color: var(--ch-pink2);
}
.ch-participant-byline span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  vertical-align: middle;
}
.ch-participant-complete {
  color: #6ee7a0;
  font-weight: 800;
}

.ch-participant-story {
  max-width: 760px;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  background: rgba(255,255,255,0.06);
  color: var(--ch-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .ch-participant-feature {
    grid-template-columns: 1fr;
  }
  .ch-participant-polaroid {
    max-width: 330px;
    transform: rotate(-1.5deg);
  }
  .ch-participant-statement {
    font-size: clamp(3.2rem, 17vw, 4.7rem);
  }
}

/* ── Donate aside ────────────────────────────────────────────────────────── */
.ch-donate-box {
  background: #fff;
  color: var(--ch-navy);
  border-radius: var(--ch-radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: sticky;
  top: 80px;
}

.ch-donate-raised {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ch-pink);
  line-height: 1;
}

.ch-donate-meta {
  font-size: 0.82rem;
  color: #637086;
  margin: 0.25rem 0 0.75rem;
}

.ch-progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.ch-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ch-pink) 0%, var(--ch-pink2) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.ch-donate-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.ch-donate-stats b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--ch-navy); }
.ch-donate-stats span { color: #637086; }

.ch-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.ch-amount-btn {
  padding: 0.5rem;
  border: 2px solid #dfe6ef;
  border-radius: 8px;
  background: #f7f9fc;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  text-align: center;
}
.ch-amount-btn:hover,
.ch-amount-btn.is-active { border-color: var(--ch-pink); background: #fff1f7; color: var(--ch-pink); }

.ch-donate-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid #dfe6ef;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ch-navy);
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.ch-donate-input:focus { outline: 3px solid #ffdd00; border-color: var(--ch-pink); }

.ch-donate-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #637086;
  margin-bottom: 0.25rem;
}
.ch-donate-form input[type="text"],
.ch-donate-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #dfe6ef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-bottom: 0.6rem;
}

.ch-donate-form .ch-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #637086;
  margin-bottom: 0.75rem;
}

.ch-share-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.ch-share-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ch-share-facebook { background: #1877f2; color: #fff; }
.ch-share-twitter  { background: #1da1f2; color: #fff; }
.ch-share-whatsapp { background: #25d366; color: #fff; }
.ch-share-linkedin { background: #0a66c2; color: #fff; }
.ch-share-copy     { background: #f0f0f0; color: #333; }

/* ── Share kit (copy/paste posts) ─────────────────────────────────────────── */
.ch-share-kit {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(232, 0, 122, 0.28);
  border-radius: var(--ch-radius);
  background: linear-gradient(180deg, rgba(232, 0, 122, 0.1), rgba(255, 255, 255, 0.03));
}
.ch-share-kit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.ch-share-kit-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-pink);
}
.ch-share-kit-title {
  margin: 0 0 0.5rem;
  color: var(--ch-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.ch-share-kit-lead {
  margin: 0;
  max-width: 46rem;
  color: var(--ch-muted);
  line-height: 1.6;
}
.ch-share-kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ch-share-kit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
}
.ch-share-kit-preview-card,
.ch-share-kit-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ch-share-kit-preview-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-share-kit-og {
  overflow: hidden;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  background: rgba(6, 12, 46, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.ch-share-kit-og-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}
.ch-share-kit-og-fallback {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 1rem;
  text-align: center;
  color: var(--ch-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}
.ch-share-kit-og-copy {
  padding: 0.9rem 1rem 1rem;
}
.ch-share-kit-og-site {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ch-muted);
}
.ch-share-kit-og-copy h3 {
  margin: 0 0 0.35rem;
  color: var(--ch-white);
  font-size: 1rem;
  line-height: 1.3;
}
.ch-share-kit-og-copy p {
  margin: 0;
  color: var(--ch-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ch-share-kit-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ch-muted);
  line-height: 1.5;
}
.ch-share-kit-tip.warn { color: #ffd28a; }
.ch-share-kit-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.ch-share-kit-post {
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}
.ch-share-kit-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ch-share-kit-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.ch-share-kit-publish {
  flex: 1 1 auto;
}
.ch-share-kit-quick .ch-share-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.ch-share-kit-post-head h3 {
  margin: 0 0 0.2rem;
  color: var(--ch-white);
  font-size: 1rem;
}
.ch-share-kit-post-head p {
  margin: 0;
  color: var(--ch-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.ch-share-kit-text {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(6, 12, 46, 0.75);
  color: var(--ch-white);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.85rem 0.95rem;
  box-sizing: border-box;
}
.ch-share-kit-copy.is-copied,
.ch-share-kit-post .ch-btn.is-copied {
  background: #1f9d63;
  border-color: #1f9d63;
}
@media (max-width: 900px) {
  .ch-share-kit-grid { grid-template-columns: 1fr; }
  .ch-share-kit-quick { grid-template-columns: 1fr; }
}

/* ── Share now prompt ─────────────────────────────────────────────────────── */
.ch-share-now-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(232, 0, 122, 0.95), rgba(11, 17, 66, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.ch-share-now-bar-inner {
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ch-share-now-bar p {
  margin: 0;
  color: var(--ch-white);
  font-size: 0.92rem;
}
.ch-share-now-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ch-share-now-modal[hidden],
.ch-share-now-bar[hidden] {
  display: none !important;
}
body.ch-share-now-open { overflow: hidden; }
.ch-share-now-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ch-share-now-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 28, 0.78);
  backdrop-filter: blur(4px);
}
.ch-share-now-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #101a52, #060c2e);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
}
.ch-share-now-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ch-white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.ch-share-now-title {
  margin: 0 0 0.5rem;
  color: var(--ch-white);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}
.ch-share-now-lead {
  margin: 0 0 1.25rem;
  color: var(--ch-muted);
  line-height: 1.6;
}
.ch-share-now-actions {
  display: grid;
  gap: 0.75rem;
}
.ch-share-now-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.ch-share-now-btn span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ch-white);
}
.ch-share-now-btn small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.ch-share-now-btn--whatsapp { background: #128c47; }
.ch-share-now-btn--facebook { background: #1877f2; }
.ch-share-now-btn--twitter { background: #1da1f2; }
.ch-share-now-btn--copy { background: rgba(255, 255, 255, 0.08); }
.ch-share-now-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.ch-thanks-share-now {
  padding: 2.5rem 0 1rem;
  background: #fff;
}
.ch-thanks-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #e6ebf3;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: 0 18px 40px rgba(11, 17, 66, 0.08);
}
.ch-thanks-share-copy h2 {
  margin: 0 0 0.75rem;
  color: var(--ch-navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.ch-thanks-share-copy p {
  color: #4d5b73;
  line-height: 1.65;
}
.ch-thanks-share-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #4d5b73;
  display: grid;
  gap: 0.45rem;
}
.ch-thanks-share-linkbox {
  margin-top: 1.25rem;
}
.ch-thanks-share-linkbox label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #637086;
}
.ch-thanks-share-linkrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}
.ch-thanks-share-linkrow input {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ch-navy);
}
.ch-thanks-share-note,
.ch-thanks-url-label {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #637086;
}
.ch-thanks-share-actions {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.ch-thanks-share-preview-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #637086;
}
.ch-thanks-share-action {
  width: 100%;
}
@media (max-width: 900px) {
  .ch-thanks-share-card { grid-template-columns: 1fr; }
  .ch-thanks-share-linkrow { grid-template-columns: 1fr; }
}

/* ── Thank-you page ──────────────────────────────────────────────────────── */
.ch-btn-on-white {
  border-color: #d7deea;
  background: #fff;
  color: var(--ch-navy) !important;
}
.ch-btn-on-white:hover {
  border-color: var(--ch-pink);
  background: #fff5fa;
  color: var(--ch-pink) !important;
}

.ch-thanks-page {
  background: #fff;
}

.ch-thanks-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 62% at 84% 16%, rgba(232,0,122,0.2) 0%, transparent 64%),
    radial-gradient(ellipse 70% 88% at 8% 60%, rgba(20,74,145,0.34) 0%, transparent 66%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--ch-deep) 100%);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(6rem, 10vw, 8rem);
}

.ch-thanks-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 78%, rgba(255,45,138,0.3) 0 1.4px, transparent 2.6px);
  background-size: 24px 24px, 18px 18px;
  opacity: 0.42;
  pointer-events: none;
}

.ch-thanks-hero > .ch-wrap {
  position: relative;
  z-index: 1;
}

.ch-thanks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ch-thanks-copy {
  max-width: 720px;
}

.challenge-page #main .ch-thanks-script {
  font-family: var(--ch-display);
  font-size: clamp(4.5rem, 9vw, 7.4rem);
  line-height: 0.78;
  color: #fff;
  margin: 0;
  transform: rotate(-2deg);
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.ch-thanks-copy h1 {
  color: var(--ch-pink2);
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 1rem;
}

.ch-thanks-copy p:not(.ch-thanks-script) {
  color: var(--ch-white);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}

.ch-thanks-copy strong {
  color: #fff;
}

.ch-thanks-card {
  position: relative;
  background: #fff;
  color: var(--ch-navy);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: 0 22px 54px rgba(0,0,0,0.46);
  transform: rotate(2.5deg);
}

.ch-thanks-card h2 {
  color: var(--ch-slate);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.challenge-page #main .ch-thanks-quote {
  color: var(--ch-navy);
  font-family: var(--ch-script);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 0.9rem;
}

.ch-thanks-goal {
  color: #43506a;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.ch-thanks-goal strong { color: var(--ch-pink); }

.ch-thanks-next {
  background: #fff;
  color: var(--ch-navy);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem);
}

.ch-thanks-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid #e4e9f2;
  border-radius: var(--ch-radius);
  box-shadow: 0 24px 70px rgba(6,20,63,0.1);
}

.ch-thanks-kicker {
  color: var(--ch-pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.ch-thanks-next h2 {
  color: var(--ch-navy);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

.ch-thanks-next p {
  color: var(--ch-slate);
  margin: 0;
}

.ch-thanks-url {
  display: inline-block;
  margin-top: 0.65rem !important;
  color: var(--ch-pink) !important;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.ch-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .ch-thanks-grid,
  .ch-thanks-next-card {
    grid-template-columns: 1fr;
  }
  .ch-thanks-card {
    max-width: 420px;
    transform: rotate(-1.5deg);
  }
  .ch-thanks-actions {
    justify-content: flex-start;
  }
}

/* ── Updates ─────────────────────────────────────────────────────────────── */
.ch-updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ch-update {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 1rem 1.25rem;
}
.ch-update-meta {
  font-size: 0.78rem;
  color: var(--ch-muted);
  margin-bottom: 0.4rem;
}
.ch-update-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ch-white);
  margin: 0;
}

/* ── Registration form ───────────────────────────────────────────────────── */
.ch-join-page {
  background: #fff;
}

.ch-join-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 62% at 84% 16%, rgba(232,0,122,0.2) 0%, transparent 64%),
    radial-gradient(ellipse 70% 88% at 8% 60%, rgba(20,74,145,0.34) 0%, transparent 66%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--ch-deep) 100%);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(6rem, 10vw, 8rem);
}

.ch-join-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 78%, rgba(255,45,138,0.3) 0 1.4px, transparent 2.6px);
  background-size: 24px 24px, 18px 18px;
  opacity: 0.42;
  pointer-events: none;
}

.ch-join-hero > .ch-wrap {
  position: relative;
  z-index: 1;
}

.ch-back-link {
  display: inline-flex;
  color: var(--ch-muted) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.ch-back-link:hover { color: #fff !important; }

.ch-join-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ch-join-intro {
  max-width: 680px;
}

.challenge-page #main .ch-join-script {
  font-family: var(--ch-display);
  font-size: clamp(4.5rem, 9vw, 7.4rem);
  line-height: 0.78;
  color: #fff;
  margin: 0;
  transform: rotate(-2deg);
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.ch-join-swipe {
  display: block;
  width: min(520px, 92%);
  height: auto;
  margin: -0.15rem 0 1.1rem;
  transform: rotate(-1.5deg);
}

.ch-join-intro h1 {
  color: var(--ch-pink2);
  font-size: clamp(1.65rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 1rem;
}

.ch-join-intro p:not(.ch-join-script) {
  color: var(--ch-white);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

.ch-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.ch-join-pledge {
  position: relative;
  background: #fff;
  color: var(--ch-navy);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: 0 22px 54px rgba(0,0,0,0.46);
  transform: rotate(2.5deg);
}

.ch-join-tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 96px;
  height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(232,0,122,0.62) 0 7px, rgba(255,45,138,0.5) 7px 14px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.ch-join-pledge-kicker {
  color: var(--ch-slate);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.challenge-page #main .ch-join-pledge-line {
  font-family: var(--ch-script);
  color: var(--ch-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 0.75rem;
}

.challenge-page #main .ch-join-pledge-line--pink {
  color: var(--ch-pink);
}

.ch-join-mini-steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid #e4e9f2;
  display: grid;
  gap: 0.75rem;
}

.ch-join-mini-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ch-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ch-join-mini-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ch-pink);
  color: #fff;
  flex-shrink: 0;
}

.ch-join-form-section {
  background: #fff;
  color: var(--ch-navy);
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(4rem, 7vw, 6rem);
}

.ch-join-form-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: var(--ch-radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(6,20,63,0.12);
}

.ch-join-form-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.ch-join-form-head .ch-section-title {
  color: var(--ch-navy);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.ch-join-form-head p {
  color: var(--ch-slate);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 1rem 0 0;
}

.ch-form.ch-form--join {
  max-width: 760px;
}

.ch-form-section-title {
  color: var(--ch-pink);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 2.4rem 0 1.25rem;
  border-bottom: 1px solid #e4e9f2;
  padding-bottom: 0.85rem;
}
.ch-form--join .ch-form-section-title:first-of-type { margin-top: 0; }

.challenge-page .ch-form--join .ch-form-group > label,
.ch-form--join .ch-form-group label {
  color: var(--ch-navy);
}

.ch-form--join .ch-form-hint {
  color: var(--ch-slate);
}

.ch-form--join .ch-input {
  background: #fff;
  border-color: #d7deea;
  color: var(--ch-ink);
}
.ch-form--join .ch-input::placeholder { color: #98a3b6; }
.ch-form--join .ch-input:focus {
  background: #fff;
  border-color: var(--ch-pink);
}

.ch-form--join .ch-input-prefix {
  background: #fff;
  border-color: #d7deea;
}
.ch-form--join .ch-input-prefix span {
  background: #fff5fa;
  border-right-color: #f2c3d8;
}
.ch-form--join .ch-input-prefix .ch-input {
  background: transparent;
}

.ch-form--join select.ch-input {
  cursor: pointer;
}

.ch-file-input {
  width: 100%;
  color: var(--ch-ink);
  font-size: 0.9rem;
  font-family: inherit;
}
.ch-file-input::file-selector-button {
  margin-right: 0.85rem;
  border: 1px solid var(--ch-pink);
  background: var(--ch-pink);
  color: #fff;
  border-radius: 7px;
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.ch-form--join .ch-disclaimer,
.ch-join-form-card .ch-disclaimer {
  background: #fff5fa;
  color: #43506a;
  border-left-color: var(--ch-pink);
}
.ch-join-form-card .ch-disclaimer strong { color: var(--ch-navy) !important; }

.ch-form--join .ch-form-notice {
  background: #f7f9fc;
  border-color: #dfe6ef;
  color: var(--ch-slate);
}

.ch-form--join .ch-check-label,
.challenge-page .ch-form--join .ch-check-label span {
  color: #43506a;
}

.ch-form-submit {
  margin-top: 2rem;
}
.ch-form-submit .ch-btn {
  width: 100%;
  justify-content: center;
}
.ch-form-submit p {
  color: var(--ch-slate);
  font-size: 0.82rem;
  text-align: center;
  margin: 0.75rem 0 0;
}

@media (max-width: 860px) {
  .ch-join-hero-grid {
    grid-template-columns: 1fr;
  }
  .ch-join-pledge {
    max-width: 360px;
    margin: 0 auto;
    transform: rotate(-1.5deg);
  }
}

@media (max-width: 520px) {
  .ch-join-script {
    font-size: clamp(3.6rem, 18vw, 4.9rem);
  }
  .ch-join-actions .ch-btn {
    width: 100%;
    justify-content: center;
  }
  .ch-join-form-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-inline: -1rem;
  }
  .ch-form--join .ch-input-prefix {
    align-items: stretch;
    flex-direction: column;
  }
  .ch-form--join .ch-input-prefix span {
    border-right: none;
    border-bottom: 1px solid #f2c3d8;
  }
}

.ch-form {
  max-width: 640px;
  margin: 0 auto;
}

.ch-form-group {
  margin-bottom: 1.5rem;
}

.ch-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ch-white);
  margin-bottom: 0.4rem;
}

.ch-form-hint {
  font-size: 0.78rem;
  color: var(--ch-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.ch-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--ch-border);
  border-radius: 8px;
  color: var(--ch-white);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

.ch-input::placeholder { color: rgba(255,255,255,0.35); }
.ch-input:focus {
  outline: 3px solid #ffdd00;
  border-color: var(--ch-pink);
  background: rgba(255,255,255,0.12);
}

/* Admin ERP pages have a light background; the base .ch-input palette above
   is for the dark public challenge theme and would be white-on-white here. */
.admin-cms-body .ch-input {
  background: #fff;
  border-color: #d7deea;
  color: #111;
}
.admin-cms-body .ch-input::placeholder { color: #98a3b6; }
.admin-cms-body .ch-input:focus {
  background: #fff;
  border-color: var(--ch-pink);
}

.ch-input-prefix {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--ch-border);
  border-radius: 8px;
  overflow: hidden;
}
.ch-input-prefix span {
  padding: 0.75rem 1rem;
  color: var(--ch-pink);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border-right: 1px solid var(--ch-border);
  flex-shrink: 0;
}
.ch-input-prefix .ch-input {
  border: none;
  border-radius: 0;
  background: transparent;
}
.ch-input-prefix .ch-input:focus { outline: none; border: none; }
.ch-input-prefix:focus-within { outline: 3px solid #ffdd00; border-color: var(--ch-pink); }

textarea.ch-input { resize: vertical; min-height: 120px; }

.ch-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--ch-muted);
  cursor: pointer;
}
.ch-check-label input[type="checkbox"] { flex-shrink: 0; margin-top: 0.2em; accent-color: var(--ch-pink); width: 18px; height: 18px; }

.ch-form-error {
  background: rgba(232,0,122,0.15);
  border: 1px solid rgba(232,0,122,0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #ff9cc4;
  margin-bottom: 1.5rem;
}

.ch-form-notice {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--ch-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--ch-muted);
  margin-bottom: 1.5rem;
}

.ch-disclaimer {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--ch-pink);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--ch-muted);
  margin-bottom: 1.5rem;
}

/* ── Story wall filters ───────────────────────────────────────────────────── */
.ch-story-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.ch-filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--ch-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ch-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ch-filter-btn:hover, .ch-filter-btn.is-active {
  border-color: var(--ch-pink);
  background: rgba(232,0,122,0.12);
  color: var(--ch-white);
}

/* ── Leaderboard ─────────────────────────────────────────────────────────── */
.ch-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ch-lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.ch-lb-row:hover { background: rgba(255,255,255,0.1); }
.ch-lb-pos {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ch-pink);
  width: 2rem;
  flex-shrink: 0;
  text-align: center;
}
.ch-lb-pos.gold   { color: #ffd700; }
.ch-lb-pos.silver { color: #c0c0c0; }
.ch-lb-pos.bronze { color: #cd7f32; }
.ch-lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(232,0,122,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ch-lb-info { flex: 1; min-width: 0; }
.ch-lb-name { font-weight: 700; font-size: 0.95rem; color: var(--ch-white); }
.ch-lb-statement { font-size: 0.8rem; color: var(--ch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-lb-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ch-pink);
  flex-shrink: 0;
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.ch-cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--ch-pink2) 0%, var(--ch-pink) 45%, #a8004f 100%);
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  overflow: hidden;
}
.ch-cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.ch-cta-band > * { position: relative; z-index: 1; }
.ch-cta-band h2,
.ch-cta-title {
  font-family: var(--ch-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fff;
  margin: 0 0 0.6rem;
  font-weight: 400;
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.ch-cta-band p,
.ch-cta-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  margin: 0 auto 1.9rem;
  max-width: 520px;
  line-height: 1.55;
}
.ch-cta-band .ch-btn-primary {
  background: #fff;
  color: var(--ch-pink);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.ch-cta-band .ch-btn-primary:hover { background: #fff5fa; color: var(--ch-pink); }
.ch-cta-band .ch-btn-outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.ch-cta-band .ch-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.18); }

/* ── Brush-edge section divider (two-tone painted transition) ────────────── */
/* The element background = the colour we're transitioning TO; the SVG path
   carries the colour we're coming FROM, with an irregular hand-painted edge. */
.ch-edge {
  display: block;
  width: 100%;
  line-height: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}
.ch-edge img,
.ch-edge svg {
  display: block;
  width: 100%;
  height: clamp(46px, 5vw, 78px);
  object-fit: cover;
}
.ch-edge--to-white {
  background: #fff;
  height: clamp(72px, 7vw, 104px);
  margin-top: clamp(-68px, -5vw, -40px);
  overflow: hidden;
}
.ch-edge--to-white img { display: none; }
.ch-edge--to-white::before,
.ch-edge--to-white::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.ch-edge--to-white::before {
  left: -2%;
  right: -2%;
  top: 0;
  height: clamp(58px, 5.8vw, 86px);
  background:
    radial-gradient(ellipse 42% 90% at 88% 10%, rgba(232,0,122,0.16) 0%, transparent 62%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--ch-deep) 100%);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 36%,
    96% 47%,
    92% 39%,
    87% 51%,
    82% 43%,
    76% 52%,
    70% 44%,
    64% 54%,
    57% 46%,
    51% 55%,
    44% 45%,
    38% 54%,
    31% 46%,
    25% 53%,
    18% 44%,
    12% 50%,
    6% 42%,
    0 49%
  );
}
.ch-edge--to-white::after {
  left: -4%;
  right: -4%;
  top: clamp(26px, 3.2vw, 44px);
  height: clamp(46px, 4.8vw, 72px);
  background: #fff;
  clip-path: polygon(
    0 22%,
    7% 9%,
    13% 20%,
    20% 12%,
    27% 24%,
    35% 10%,
    43% 22%,
    52% 12%,
    60% 24%,
    69% 11%,
    77% 21%,
    86% 9%,
    94% 18%,
    100% 8%,
    100% 100%,
    0 100%
  );
  transform: rotate(-0.4deg);
}
.ch-edge--to-navy  { background: var(--ch-navy); }
/* pull adjacent sections tight against the painted edge */
.ch-edge + .ch-section,
.ch-edge + .ch-stats { margin-top: -1px; }
.ch-stats + .ch-edge { margin-top: -1px; }

/* ── Admin tables ────────────────────────────────────────────────────────── */
.ch-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ch-admin-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: #f7f9fc;
  border-bottom: 2px solid #dfe6ef;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #637086;
}
.ch-admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #dfe6ef;
  vertical-align: middle;
}
.ch-admin-table tr:hover td { background: #f7f9fc; }

.ch-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ch-badge--pending  { background: #fff3cd; color: #856404; }
.ch-badge--approved { background: #d1eddf; color: #0a5c2e; }
.ch-badge--rejected { background: #f8d7da; color: #842029; }
.ch-badge--completed { background: #cfe2ff; color: #084298; }

/* ── Admin nav ───────────────────────────────────────────────────────────── */
.ch-admin-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.4rem;
  background: #f7f9fc;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
}
.ch-admin-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #002b5f;
}
.ch-admin-nav a:hover { background: #fff; }
.ch-admin-nav a.is-active { background: #002b5f; color: #fff; }

/* ── Social card preview ─────────────────────────────────────────────────── */
.ch-social-preview {
  background: var(--ch-deep);
  border: 2px solid var(--ch-border);
  border-radius: var(--ch-radius);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.ch-social-header {
  background: var(--ch-navy);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ch-social-body {
  padding: 1.25rem;
  text-align: center;
}
.ch-social-headline {
  font-family: var(--ch-script);
  font-size: 2rem;
  color: var(--ch-white);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}
.ch-social-campaign {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-pink);
  margin-bottom: 1rem;
}
.ch-social-statement {
  font-family: var(--ch-script);
  font-size: 1.25rem;
  color: var(--ch-pink);
  margin: 0.5rem 0;
}
.ch-social-goal {
  font-family: var(--ch-script);
  font-size: 1.5rem;
  color: var(--ch-white);
  margin: 0 0 1rem;
}
.ch-social-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.ch-flash {
  background: rgba(232,0,122,0.12);
  border: 1px solid rgba(232,0,122,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #ff9cc4;
}
.ch-flash--success {
  background: rgba(16,183,80,0.12);
  border-color: rgba(16,183,80,0.3);
  color: #6ee7a0;
}

.ch-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .ch-pair { grid-template-columns: 1fr; } }

.ch-divider {
  border: none;
  border-top: 1px solid var(--ch-border);
  margin: 2rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .ch-btn, .ch-story-card, .ch-lb-row, .ch-step { transition: none; }
}

/* ── Photo placeholders ───────────────────────────────────────────────────── */
.ch-photo-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a2070 0%, #0b1142 100%);
  border-radius: var(--ch-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ch-photo-placeholder svg { width: 64px; height: 64px; }
.ch-photo-placeholder span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Improved polaroid placeholder */
.ch-polaroid-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}
.ch-polaroid-img-placeholder svg { width: 42px; height: 42px; }

/* Improved story card photo placeholder */
.ch-story-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
}
.ch-story-card-photo-placeholder svg { width: 52px; height: 52px; }

/* ── Team cards ───────────────────────────────────────────────────────────── */
.ch-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}
.ch-team-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s, border-color 0.15s;
  color: var(--ch-white);
}
.ch-team-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--ch-white); }
.ch-team-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ch-white);
  margin: 0;
}
.ch-team-meta {
  font-size: 0.82rem;
  color: var(--ch-muted);
}
.ch-team-raised {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ch-pink);
  margin-top: 0.25rem;
}

/* ── Workplace / School info page ─────────────────────────────────────────── */
.ch-edition-hero {
  background: var(--ch-deep);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ch-edition-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,0,122,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ch-edition-hero h1 {
  font-family: var(--ch-script);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--ch-white);
  font-weight: 700;
  margin: 0 0 0.5rem;
  position: relative;
}
.ch-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ch-benefit {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 1.5rem;
  text-align: center;
}
.ch-benefit-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.ch-benefit h3 { font-size: 0.98rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ch-white); margin: 0 0 0.5rem; }
.ch-benefit p { font-size: 1rem; color: var(--ch-muted); margin: 0; line-height: 1.6; }

/* ── Certificate (print) ──────────────────────────────────────────────────── */
.ch-cert-page {
  background: #fff;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ch-cert {
  width: 100%;
  max-width: 740px;
  background: #fff;
  border: 4px solid var(--ch-pink);
  border-radius: 16px;
  padding: 3rem 3.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 8px rgba(232,0,122,0.08), 0 0 0 12px rgba(232,0,122,0.04);
}
.ch-cert-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ch-pink);
  margin: 0 0 0.5rem;
}
.ch-cert-org {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ch-navy);
  margin: 0 0 1.5rem;
  letter-spacing: 0.06em;
}
.ch-cert-title {
  font-family: var(--ch-script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ch-pink);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}
.ch-cert-subtitle {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ch-navy);
  opacity: 0.6;
  margin: 0 0 2rem;
}
.ch-cert-presenter { font-size: 0.9rem; color: #555; margin: 0 0 0.25rem; }
.ch-cert-name {
  font-family: var(--ch-script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ch-navy);
  margin: 0 0 1.5rem;
  line-height: 1.15;
}
.ch-cert-statement {
  font-family: var(--ch-script);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--ch-pink);
  margin: 0 0 0.25rem;
}
.ch-cert-goal {
  font-family: var(--ch-script);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--ch-navy);
  margin: 0 0 2rem;
}
.ch-cert-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--ch-pink), #b5005c);
  border-radius: 2px;
  margin: 0 auto 2rem;
  border: none;
}
.ch-cert-seal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ch-pink) 0%, #b5005c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.ch-cert-footer { font-size: 0.78rem; color: #999; margin: 0; }
@media print {
  .ch-cert-page { padding: 0; display: block; }
  .ch-cert { box-shadow: none; border-color: var(--ch-pink); page-break-inside: avoid; }
  .ch-cert-print-hint,
  .site-header, .site-footer, .skip-link { display: none !important; }
}

/* ── Missing badge variants ───────────────────────────────────────────────── */
.ch-badge--withdrawn { background: #e2e3e5; color: #383d41; }
.ch-badge--closed    { background: #e2e3e5; color: #383d41; }

/* ── Resources page ───────────────────────────────────────────────────────── */
.ch-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}
.ch-resource-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ch-resource-icon { font-size: 2rem; }
.ch-resource-title { font-size: 1.08rem; font-weight: 800; color: var(--ch-white); margin: 0; }
.ch-resource-desc { font-size: 1rem; color: var(--ch-muted); margin: 0; line-height: 1.6; }

/* ── Social share card preview ────────────────────────────────────────────── */
.ch-share-card {
  background: var(--ch-deep);
  border: 2px solid var(--ch-border);
  border-radius: var(--ch-radius);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.ch-share-card-header {
  background: var(--ch-navy);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--ch-border);
}
.ch-share-card-logo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-share-card-body { padding: 1.5rem 1.25rem; text-align: center; }
.ch-share-card-headline {
  font-family: var(--ch-script);
  font-size: 1.6rem;
  color: var(--ch-white);
  margin: 0 0 0.15rem;
  line-height: 1.1;
}
.ch-share-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ch-pink);
  margin: 0 0 1rem;
}
.ch-share-card-statement {
  font-family: var(--ch-script);
  font-size: 1.5rem;
  color: var(--ch-pink);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.ch-share-card-goal {
  font-family: var(--ch-script);
  font-size: 1.6rem;
  color: var(--ch-white);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}
.ch-share-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
  border-radius: 6px;
}
.ch-share-card-url {
  font-size: 0.75rem;
  color: var(--ch-muted);
  word-break: break-all;
  margin: 0.75rem 0 0;
}
