/* ==========================================================================
   CHV — "We take care of each other V2" (/we-take-care-of-each-other-v2/)
   Figma: 2026 Fall Campaign Landing Page › REGULAR LANDING PAGE
   --------------------------------------------------------------------------
   - Loaded ONLY on pages whose content contains "chvw-" (see enqueue PHP).
   - Prefix chvw- everywhere. No chvm- / chvl- rules here, so
     /wetakecareofeachother/ and /letstakecareofeachother/ are never affected.
   - Every section is built from editable core blocks.
   - The Stories slider keeps the site's own [chv_stories] block and styling.
   ========================================================================== */


/* ==========================================================================
   PART A — PAGE BASE
   ========================================================================== */
.chvw {
  --chvw-blue: #0067ff;
  --chvw-blue-dark: #0052cc;
  --chvw-yellow: #ffe653;
  --chvw-cream: #fffadd;
  --chvw-orange: #fd7b0b;
  --chvw-ink: #000;
  --chvw-white: #fff;
  --chvw-polaroid: #f1f1f1;
  --chvw-video-bg: #d9d9d9;

  --chvw-serif: 'P22 Mackinac Pro', Georgia, serif;
  --chvw-sans: 'GT America', Helvetica, Arial, sans-serif;
  --chvw-cond: 'GT America', Helvetica, Arial, sans-serif;   /* quotes, cards, counter — same face as the original page */
  --chvw-cond-axes: normal;
  --chvw-cond-ws: normal;
  --chvw-mono: 'GT America Mono', 'GT America', monospace;

  --chvw-h1: clamp(40px, 30.6px + 2.6vw, 72px);     /* Mackinac Extra Bold 72/74 */
  --chvw-h2: clamp(20px, 17.6px + 0.66vw, 28px);    /* Mackinac Medium 28/36 */
  --chvw-body: clamp(17px, 16.1px + 0.25vw, 20px);  /* GT America 20/30 */

  --chvw-max: 1062px;
  --chvw-pad-y: clamp(64px, 10.4vw, 150px);
  --chvw-pad-x: 24px;
  --chvw-bg: var(--chvw-white);

  position: relative;
  isolation: isolate;
  box-sizing: border-box;
}
.chvw *, .chvw *::before, .chvw *::after { box-sizing: border-box; }

/* Every section: padding + full-width background behind it */
.wp-block-group.chvw {
  margin: 0;
  padding: var(--chvw-pad-y) var(--chvw-pad-x);
  background: transparent;
}
.wp-block-group.chvw::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(100vw - var(--chvw-sbw, 0px));
  transform: translateX(-50%);
  background: var(--chvw-bg);
  pointer-events: none;
}

/* Theme guards — this page only */
html:has(.chvw),
html:has(.chvw) body { overflow-x: clip; }
html:has(.chvw) { scroll-behavior: smooth; }
[class*="core-"]:has(.chvw) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
[class*="core-"]:has(> .chvw) { padding-left: 0 !important; padding-right: 0 !important; }

/* Neutral start for blocks inside the sections */
.chvw .wp-block-group { margin: 0; padding: 0; }
.chvw .wp-block-heading,
.chvw p,
.chvw figure { margin: 0; padding: 0; }
.chvw .wp-block-image { margin: 0; }
.chvw .wp-block-image img { display: block; max-width: none; border: 0; box-shadow: none; border-radius: 0; }
.chvw .wp-block-buttons { margin: 0; gap: 0; }

/* Remove the theme's wrapper boxes from the layout */
.chvw .wp-block-group__inner-container,
.chvw .container[class*="core-"] { display: contents; }

.chvw .chvw-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Shared type */
.chvw .chvw-hero__title,
.chvw .chvw-give__title,
.chvw .chvw-why__title,
.chvw .chvw-count__title,
.chvw .chvw-cta__title {
  font-family: var(--chvw-serif);
  font-weight: 800;
  font-style: normal;
  font-size: var(--chvw-h1);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: none;
  color: var(--chvw-blue);
}

/* Shared pill button (Figma "donate button - blue") */
.chvw .chvw-btn-row { display: flex; margin-top: 34px; }
.chvw .chvw-btn-row--center { justify-content: center; }
.chvw .chvw-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 28px;
  background: var(--chvw-blue);
  color: var(--chvw-yellow);
  font-family: var(--chvw-mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 100px;
  box-shadow: none;
  transition: background-color .2s ease, transform .2s ease;
}
.chvw .chvw-btn .wp-block-button__link:hover,
.chvw .chvw-btn .wp-block-button__link:focus-visible {
  background: var(--chvw-blue-dark);
  color: var(--chvw-yellow);
  transform: translateY(-2px);
}
.chvw .chvw-btn .wp-block-button__link:focus-visible { outline: 3px solid var(--chvw-ink); outline-offset: 3px; }
@media (max-width: 767px) {
  .chvw .chvw-btn .wp-block-button__link { font-size: 16px; min-height: 48px; }
}


/* ==========================================================================
   PART B — SECTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   B1. HERO — "We take care of each other." + rolling images
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-hero {
  --chvw-bg: var(--chvw-white);
  --chvw-hero-pad: clamp(64px, 8.5vw, 125px);
  padding: var(--chvw-hero-pad) var(--chvw-pad-x);
}
.chvw-hero .chvw-hero__inner {
  max-width: var(--chvw-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 611px) 410px;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.chvw.chvw-hero .chvw-hero__title { margin: 0 0 40px; }
.chvw.chvw-hero .chvw-hero__text {
  font-family: var(--chvw-sans);
  font-weight: 400;
  font-size: var(--chvw-body);
  line-height: 1.5;
  color: var(--chvw-ink);
  margin: 0 0 20px;
}
.chvw.chvw-hero .chvw-hero__text--match { margin-bottom: 0; }
.chvw.chvw-hero .chvw-hero__text--match strong { font-weight: 400; color: var(--chvw-blue); }

.chvw-hero .chvw-gallery {
  position: relative;
  align-self: stretch;
  contain: size;
  margin: calc(var(--chvw-hero-pad) * -1) 0;
}
.chvw-hero .chvw-gallery__viewport {
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 4%, #000 24%, #000 76%, transparent 96%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 4%, #000 24%, #000 76%, transparent 96%, transparent 100%);
}
.chvw-hero .chvw-gallery__track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}
.chvw-hero .chvw-gallery.is-looping .chvw-gallery__track {
  animation: chvw-roll var(--chvw-loop, 20s) linear infinite;
  will-change: transform;
}
.chvw-hero .chvw-gallery.is-looping:hover .chvw-gallery__track,
.chvw-hero .chvw-gallery.is-paused .chvw-gallery__track { animation-play-state: paused; }
@keyframes chvw-roll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}
.chvw-hero .chvw-gallery__item {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  aspect-ratio: 410 / 323;
  border-radius: 15px;
  overflow: hidden;
  background: var(--chvw-blue);
}
.chvw-hero .chvw-gallery__item:nth-child(3n+2),
.chvw-hero .container:nth-child(3n+2) > .chvw-gallery__item { background: var(--chvw-yellow); }
.chvw-hero .chvw-gallery__item:nth-child(3n),
.chvw-hero .container:nth-child(3n) > .chvw-gallery__item   { background: var(--chvw-orange); }
.chvw-hero .chvw-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chvw-hero .chvw-gallery__toggle {
  position: absolute;
  right: 10px;
  bottom: calc(var(--chvw-hero-pad) * 0.5);
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--chvw-blue);
  color: var(--chvw-yellow);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}
.chvw-hero .chvw-gallery:hover .chvw-gallery__toggle,
.chvw-hero .chvw-gallery.is-paused .chvw-gallery__toggle,
.chvw-hero .chvw-gallery__toggle:focus-visible { opacity: 1; }
.chvw-hero .chvw-gallery__toggle:focus-visible { outline: 3px solid var(--chvw-ink); outline-offset: 2px; }
.chvw-hero .chvw-gallery__toggle svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.chvw-hero .chvw-gallery__toggle .chvw-icon-play { display: none; }
.chvw-hero .chvw-gallery.is-paused .chvw-icon-play { display: block; }
.chvw-hero .chvw-gallery.is-paused .chvw-icon-pause { display: none; }

@media (max-width: 1100px) {
  .chvw-hero .chvw-hero__inner { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 767px) {
  .wp-block-group.chvw-hero { --chvw-hero-pad: 56px; padding-left: 20px; padding-right: 20px; }
  .chvw-hero .chvw-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .chvw.chvw-hero .chvw-hero__title { margin-bottom: 24px; }
  .chvw-hero .chvw-gallery { margin: 0 0 calc(var(--chvw-hero-pad) * -1); contain: none; }
  .chvw-hero .chvw-gallery__viewport { height: 460px; }
  .chvw-hero .chvw-gallery__toggle { bottom: 16px; }
}
@media (hover: none) {
  .chvw-hero .chvw-gallery__toggle { opacity: .85; }
}


/* --------------------------------------------------------------------------
   B2. CAMPAIGN VIDEO — full width, poster + play ring, YouTube on click
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-video {
  --chvw-bg: #000;
  padding: 0;
  width: calc(100vw - var(--chvw-sbw, 0px));
  max-width: none;
  margin-left: calc(50% - (100vw - var(--chvw-sbw, 0px)) / 2);
}
.chvw-video .chvw-video__box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.chvw-video .chvw-video__link,
.chvw-video .chvw-video__box iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
}
.chvw-video .chvw-video__link { color: var(--chvw-white); cursor: pointer; }
.chvw-video .chvw-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.chvw-video .chvw-video__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(88px, 15.35vw, 221px);
  height: clamp(88px, 15.35vw, 221px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .25));
  transition: transform .2s ease;
}
.chvw-video .chvw-video__ring svg { display: block; width: 100%; height: 100%; }
.chvw-video .chvw-video__link:hover .chvw-video__ring { transform: translate(-50%, -50%) scale(1.06); }
.chvw-video .chvw-video__link:focus-visible { outline: 4px solid var(--chvw-yellow); outline-offset: -8px; }


/* --------------------------------------------------------------------------
   B3. BECAUSE YOU CHOOSE TO CARE — intro + FundraiseUp form + 3 cards
       Each card is clickable (the amount link stretches over the card)
       and scrolls up to the form.
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-give {
  --chvw-bg: var(--chvw-cream);
  padding-top: clamp(64px, 8vw, 115px);
  padding-bottom: clamp(64px, 8vw, 115px);
}
.chvw-give .chvw-give__top {
  max-width: var(--chvw-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 360px);
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.chvw.chvw-give .chvw-give__title { margin: 0 0 32px; }
.chvw-give .chvw-give__form,
.chvw-give .container:has(> .chvw-give__form) { justify-self: end; }
.chvw.chvw-give .chvw-give__text {
  font-family: var(--chvw-serif);
  font-weight: 500;
  font-size: var(--chvw-h2);
  line-height: 1.286;
  color: var(--chvw-ink);
}
.chvw-give .chvw-give__form { width: 100%; max-width: 360px; min-height: 200px; scroll-margin-top: 140px; }

.chvw-give .chvw-give__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1092px;
  margin: clamp(56px, 6vw, 86px) auto 0;
}
.chvw-give .chvw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.chvw-give .chvw-card__top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 36px 26px 24px;
  border-radius: 15px;
  transition: box-shadow .25s ease;
}
.chvw-give .chvw-card--blue .chvw-card__top   { background: var(--chvw-blue); }
.chvw-give .chvw-card--yellow .chvw-card__top { background: var(--chvw-yellow); }
.chvw.chvw-give .chvw-card__amount {
  font-family: var(--chvw-cond);
  font-variation-settings: var(--chvw-cond-axes);
  font-weight: 500;
  font-size: 52px;
  line-height: 1;
  color: var(--chvw-yellow);
  margin: 0 0 8px;
}
.chvw.chvw-give .chvw-card--yellow .chvw-card__amount { color: var(--chvw-blue); }
.chvw.chvw-give .chvw-card__amount a,
.chvw.chvw-give .chvw-card__amount a:hover,
.chvw.chvw-give .chvw-card__amount a:visited {
  color: inherit;
  font: inherit;
  text-decoration: none;
  outline: none;
}
.chvw-give .chvw-card__amount a::after {          /* whole card is the link */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 15px;
}
.chvw.chvw-give .chvw-card__label {
  font-family: var(--chvw-cond);
  font-variation-settings: var(--chvw-cond-axes);
  word-spacing: var(--chvw-cond-ws);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.07;
  color: var(--chvw-white);
  max-width: 311px;
  margin: 0 0 20px;
}
.chvw.chvw-give .chvw-card--yellow .chvw-card__label { color: var(--chvw-ink); }
.chvw-give .chvw-card__img {
  position: relative;
  aspect-ratio: 360 / 318;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chvw-white);
}
.chvw-give .chvw-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chvw.chvw-give .chvw-card__caption {
  font-family: var(--chvw-sans);
  font-weight: 400;
  font-size: var(--chvw-body);
  line-height: 1.5;
  color: var(--chvw-ink);
  text-align: center;
  margin: 18px 0 0;
}
.chvw-give .chvw-card:hover { transform: translateY(-6px); }
.chvw-give .chvw-card:hover .chvw-card__top { box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
.chvw-give .chvw-card:focus-within { outline: 3px solid var(--chvw-blue); outline-offset: 4px; border-radius: 15px; }

/* Rise-in when scrolled into view (only once the script runs) */
.chvw-js .chvw-give .chvw-card {
  opacity: 0;
  transform: translate3d(0, 60px, 0);
  transition: opacity .6s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.chvw-js .chvw-give .chvw-card:nth-child(2),
.chvw-js .chvw-give .container:nth-child(2) > .chvw-card { transition-delay: .2s; }
.chvw-js .chvw-give .chvw-card:nth-child(3),
.chvw-js .chvw-give .container:nth-child(3) > .chvw-card { transition-delay: .4s; }
.chvw-js .chvw-give .chvw-card.is-in { opacity: 1; transform: none; }
.chvw-js .chvw-give .chvw-card.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (max-width: 1100px) {
  .chvw-give .chvw-give__cards { gap: 16px; }
  .chvw-give .chvw-card__top { padding: 28px 18px 18px; }
  .chvw.chvw-give .chvw-card__amount { font-size: 42px; }
  .chvw.chvw-give .chvw-card__label { font-size: 22px; }
}
@media (max-width: 767px) {
  .wp-block-group.chvw-give { --chvw-pad-x: 20px; }
  .chvw-give .chvw-give__top { grid-template-columns: 1fr; gap: 32px; }
  .chvw.chvw-give .chvw-give__title { margin-bottom: 20px; }
  .chvw-give .chvw-give__cards { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 32px; }
  .chvw-js .chvw-give .chvw-card:nth-child(n),
  .chvw-js .chvw-give .container:nth-child(n) > .chvw-card { transition-delay: 0s; }
}


/* --------------------------------------------------------------------------
   B4. WHY WE CARE — videos, each with a polaroid + quote
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-why {
  --chvw-bg: var(--chvw-yellow);
  padding-top: clamp(64px, 8vw, 115px);
  padding-bottom: clamp(64px, 9vw, 130px);
}
.wp-block-group.chvw-why::before { border-radius: 0 0 30px 30px; }
.chvw-why .chvw-why__header,
.chvw-why .chvw-item { max-width: var(--chvw-max); margin-left: auto; margin-right: auto; }
.chvw-why .chvw-why__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: clamp(36px, 4.2vw, 60px);
}
.chvw.chvw-why .chvw-why__title { margin: 0; }
.chvw.chvw-why .chvw-why__intro {
  flex: 0 0 400px;
  max-width: 400px;
  font-family: var(--chvw-serif);
  font-weight: 500;
  font-size: var(--chvw-h2);
  line-height: 1.286;
  color: var(--chvw-ink);
}
.chvw-why .chvw-item + .chvw-item,
.chvw-why .container:has(> .chvw-item) + .container .chvw-item { margin-top: clamp(72px, 9vw, 129px); }

/* Video block (<figure class="wp-block-video chvw-vid">) */
.chvw.chvw-why .chvw-vid {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chvw-video-bg);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.chvw-why .chvw-vid video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  background: var(--chvw-video-bg);
}
.chvw-why .chvw-vid figcaption { display: none; }
.chvw-why .chvw-vid__play {                        /* added by chv-v2.js */
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, .12);
  color: var(--chvw-white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.chvw-why .chvw-vid__play svg {
  display: block;
  width: clamp(64px, 11vw, 120px);
  height: clamp(64px, 11vw, 120px);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25));
  transition: transform .2s ease;
}
.chvw-why .chvw-vid__play:hover { background: rgba(0, 0, 0, .2); }
.chvw-why .chvw-vid__play:hover svg { transform: scale(1.06); }
.chvw-why .chvw-vid__play:focus-visible { outline: 4px solid var(--chvw-blue); outline-offset: -8px; }
.chvw-why .chvw-vid.is-playing .chvw-vid__play { display: none; }

.chvw-why .chvw-item__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 587px);
  justify-content: space-between;
  align-items: start;
  column-gap: 24px;
  margin-top: -28px;
  padding-left: clamp(0px, 7.5%, 80px);
}
.chvw.chvw-why .chvw-polaroid {
  padding: 14px;
  background: var(--chvw-polaroid);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  transform: rotate(-3deg);
}
.chvw-why .chvw-polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--chvw-white);
}
.chvw-why .chvw-item__text { padding-top: 60px; }
.chvw.chvw-why .chvw-item__quote {
  font-family: var(--chvw-cond);
  font-variation-settings: var(--chvw-cond-axes);
  word-spacing: var(--chvw-cond-ws);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 15.6px + 1.2vw, 30px);
  line-height: 1.45;
  color: var(--chvw-blue);
  margin: 0 0 20px;
}
.chvw.chvw-why .chvw-item__name {
  font-family: var(--chvw-cond);
  font-variation-settings: var(--chvw-cond-axes);
  font-weight: 400;
  font-size: clamp(15px, 13.6px + 0.37vw, 19px);
  line-height: 1.6;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--chvw-blue);
}
@media (max-width: 1100px) {
  .chvw-why .chvw-item__foot { grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; padding-left: 4%; }
  .chvw-why .chvw-item__text { padding-top: 56px; }
}
@media (max-width: 767px) {
  .wp-block-group.chvw-why { --chvw-pad-x: 20px; }
  .chvw-why .chvw-why__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .chvw.chvw-why .chvw-why__intro { flex: 0 0 auto; max-width: none; }
  .chvw.chvw-why .chvw-vid { border-radius: 8px; }
  .chvw-why .chvw-item__foot { grid-template-columns: 1fr; margin-top: -24px; padding-left: 16px; }
  .chvw.chvw-why .chvw-polaroid { width: 190px; padding: 10px; }
  .chvw-why .chvw-item__text { padding-top: 28px; margin-left: -16px; }
}


/* --------------------------------------------------------------------------
   B5. SUPPORTER COUNT — "You can change a young person's life."
       Tiles roll to the live FundraiseUp number.
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-count {
  --chvw-bg: var(--chvw-cream);
  padding-top: clamp(64px, 8vw, 115px);
  padding-bottom: clamp(64px, 8.3vw, 120px);
  text-align: center;
}
.chvw.chvw-count .chvw-count__title { max-width: 900px; margin: 0 auto 60px; }
.chvw-count .chvw-counter {
  max-width: 1064px;
  margin: 0 auto;
  padding: 60px 45px 30px;
  background: var(--chvw-yellow);
  border-radius: 15px;
}
.chvw-count .chvw-counter__digits {
  display: grid;
  grid-template-columns: repeat(var(--chvw-tiles, 4), minmax(0, 225px));
  justify-content: center;
  gap: 24px;
}
.chvw-count .chvw-counter__digit {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chvw-white);
  border-radius: 15px;
  font-family: var(--chvw-cond);
  font-weight: 400;
  font-size: clamp(48px, 13.9vw, 200px);
  line-height: 1;
  color: var(--chvw-ink);
  font-variant-numeric: tabular-nums;
}
.chvw-count .chvw-counter__strip {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  transition: transform 1.1s cubic-bezier(.3, 1.15, .45, 1);
}
.chvw-count .chvw-counter__strip span {
  flex: 0 0 auto;
  height: 100cqw;
  font-size: 88cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chvw-count .chvw-counter__source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.chvw.chvw-count .chvw-counter__label {
  font-family: var(--chvw-serif);
  font-weight: 800;
  font-size: clamp(22px, 17.6px + 1.2vw, 36px);
  line-height: 1.4;
  color: var(--chvw-blue);
  margin: 24px 0 0;
}
.chvw.chvw-count .chvw-count__text {
  font-family: var(--chvw-serif);
  font-weight: 500;
  font-size: var(--chvw-h2);
  line-height: 1.286;
  color: var(--chvw-ink);
  max-width: 860px;
  margin: 0 auto 20px;
}
.chvw.chvw-count .chvw-counter + .chvw-count__text,
.chvw.chvw-count .container:has(.chvw-counter) + .container .chvw-count__text { margin-top: 48px; }
.chvw.chvw-count .chvw-btn-row { margin-top: 28px; }
@media (max-width: 767px) {
  .wp-block-group.chvw-count { --chvw-pad-x: 20px; }
  .chvw.chvw-count .chvw-count__title { margin-bottom: 36px; }
  .chvw-count .chvw-counter { padding: 24px 16px 20px; }
  .chvw-count .chvw-counter__digits { gap: 10px; }
  .chvw-count .chvw-counter__digit { border-radius: 10px; }
}


/* --------------------------------------------------------------------------
   B6. CLOSING CTA — "You can change a young person's future."
   -------------------------------------------------------------------------- */
.wp-block-group.chvw-cta {
  --chvw-bg: var(--chvw-yellow);
  padding-top: clamp(80px, 11vw, 159px);
  padding-bottom: clamp(80px, 11vw, 160px);
  text-align: center;
}
.chvw.chvw-cta .chvw-cta__title,
.chvw.chvw-cta .chvw-cta__lead { max-width: 900px; margin-left: auto; margin-right: auto; }
.chvw.chvw-cta .chvw-cta__title { margin-bottom: 40px; }
.chvw.chvw-cta .chvw-cta__lead {
  font-family: var(--chvw-serif);
  font-weight: 500;
  font-size: var(--chvw-h2);
  line-height: 1.286;
  color: var(--chvw-blue);
  margin-bottom: 20px;
}
.chvw.chvw-cta .chvw-btn-row { margin-top: 48px; }
@media (max-width: 767px) {
  .wp-block-group.chvw-cta { --chvw-pad-x: 20px; }
  .chvw.chvw-cta .chvw-cta__title { margin-bottom: 24px; }
  .chvw.chvw-cta .chvw-btn-row { margin-top: 32px; }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:has(.chvw) { scroll-behavior: auto; }
  .chvw-hero .chvw-gallery.is-looping .chvw-gallery__track { animation: none; }
  .chvw-js .chvw-give .chvw-card { opacity: 1; transform: none; transition: none; }
  .chvw-count .chvw-counter__strip { transition: none; }
  .chvw .wp-block-button__link,
  .chvw-video .chvw-video__ring,
  .chvw-why .chvw-vid__play,
  .chvw-why .chvw-vid__play svg { transition: none; }
}


/* ==========================================================================
   PART C — BLOCK EDITOR ONLY
   Every rule includes .wp-block / .block-editor-… (editor-only classes),
   so the live page is unaffected.
   ========================================================================== */
.wp-block-group.chvw.wp-block { max-width: none; margin-left: auto; margin-right: auto; }
.chvw :where(.wp-block) { max-width: none; }
.chvw .block-editor-inner-blocks,
.chvw .block-editor-block-list__layout { display: contents; }
.wp-block-group.chvw.wp-block::before { left: 0; right: 0; width: auto; transform: none; }
.wp-block-group.chvw-video.wp-block { width: auto; margin-left: auto; margin-right: auto; }
/* Hero images: still, scrollable stack so each one can be selected/replaced */
.chvw-hero .chvw-gallery.wp-block { contain: none; margin: 0; align-self: start; }
.chvw-hero .chvw-gallery.wp-block .chvw-gallery__viewport {
  height: auto;
  max-height: 760px;
  overflow: auto;
  -webkit-mask-image: none;
          mask-image: none;
}
/* Cards: no stretched link in the editor, so each card part can be edited */
.chvw-give .chvw-card.wp-block .chvw-card__amount a::after { content: none; }
/* Why-we-care videos: keep the editor's player usable */
.chvw-why .chvw-vid.wp-block { aspect-ratio: auto; overflow: visible; }
.chvw-why .chvw-vid.wp-block video { position: static; height: auto; aspect-ratio: 16 / 9; }