/* ==========================================================================
   Campaign Landing (template-campaign-landing.php)
   United Way brand guidelines 2024 v1.3: Antonio (headlines), Palanquin (body)

   Everything is scoped to .cmp (or the campaign-landing body class) so nothing
   leaks into the rest of the site. Sizes are in px on purpose: the theme sets
   html { font-size: 62.5% }, so rem values here would come out 10px-based.
   ========================================================================== */

:root {
  --cmp-blue: #0044B5;
  --cmp-blue-dark: #21296B;
  --cmp-blue-mid: #5082F0;
  --cmp-blue-light: #A7D2FF;
  --cmp-blue-pale: #C0C6FC;
  --cmp-red: #FD372C;
  --cmp-red-dark: #D12626;
  --cmp-red-darker: #B01F1F;
  --cmp-red-light: #FF806C;
  --cmp-red-pale: #FFD7D0;
  --cmp-yellow: #FFBA00;
  --cmp-yellow-pale: #FFEAD0;
  --cmp-ink: #221E1F;
  --cmp-gray: #646567;
  --cmp-tint: #F4F6FC;
  --cmp-line: #E4E6EE;

  --cmp-font-display: 'Antonio', 'Arial Narrow', sans-serif;
  --cmp-font-body: 'Palanquin', 'Segoe UI', sans-serif;

  --cmp-wrap: 1200px;
  --cmp-gutter: clamp(20px, 4vw, 40px);
  --cmp-section-y: clamp(56px, 8vw, 96px);
}

/* Theme header on this template ------------------------------------------ */
/* Main nav hidden when "Hide main navigation" is on. Logo, Donate (repointed
   to #give by the template) and the accessibility/translate button stay. */

.campaign-landing--hide-nav #nav--main,
.campaign-landing--hide-nav #nav--main_toggle,
.campaign-landing--hide-nav #nav--hamburger,
.campaign-landing--hide-nav .nav--main_search_toggle {
  display: none !important;
}

/* Base ------------------------------------------------------------------- */

.cmp {
  font-family: var(--cmp-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--cmp-ink);
}

.cmp *,
.cmp *::before,
.cmp *::after { box-sizing: border-box; }

/* Reset theme element styles (typography.scss sets h1-h6 to Trade Gothic /
   blue and p/ul to fluid sizes). :where() keeps this at single-class
   specificity, so the component rules below still win. */
.cmp :where(p, ul, ol, li, blockquote, figure, h1, h2, h3, h4) {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.cmp :where(h1, h2, h3, h4) { font-family: var(--cmp-font-body); font-weight: 700; }
.cmp :where(ul) { list-style: none; }
.cmp img { max-width: 100%; height: auto; display: block; }

/* Links: theme sets a, a:visited to black with a red underline. */
.cmp a,
.cmp a:visited { color: var(--cmp-blue); text-decoration: underline; text-decoration-color: currentColor; }
.cmp a:hover,
.cmp a:focus { color: var(--cmp-blue-dark); }

.cmp a:focus-visible {
  outline: 3px solid var(--cmp-yellow);
  outline-offset: 3px;
}

.cmp-wrap {
  max-width: var(--cmp-wrap);
  margin: 0 auto;
  padding-left: var(--cmp-gutter);
  padding-right: var(--cmp-gutter);
}

.cmp-display {
  font-family: var(--cmp-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.cmp-h2 { font-size: clamp(38px, 5vw, 52px); color: var(--cmp-blue); }
.cmp-h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; color: var(--cmp-blue); }

.cmp-eyebrow {
  font-family: var(--cmp-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cmp-blue);
}
.cmp-eyebrow--on-dark { color: var(--cmp-blue-light); }

.cmp-section { padding: var(--cmp-section-y) 0; }
.cmp-section--tint { background: var(--cmp-tint); }
.cmp-section__head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 40px; }

/* Buttons ---------------------------------------------------------------- */
/* Dark red, not bright red: brand guide only approves white on bright red for large text. */

.cmp a.cmp-btn,
.cmp a.cmp-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--cmp-red-dark);
  color: #FFFFFF;
  font-family: var(--cmp-font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 4px;
}
.cmp a.cmp-btn:hover,
.cmp a.cmp-btn:focus { background: var(--cmp-red-darker); color: #FFFFFF; }

.cmp a.cmp-btn--light,
.cmp a.cmp-btn--light:visited { background: #FFFFFF; color: var(--cmp-red-dark); }
.cmp a.cmp-btn--light:hover,
.cmp a.cmp-btn--light:focus { background: var(--cmp-red-pale); color: var(--cmp-red-darker); }

/* Orbits (brand graphic element: clean concentric arcs) ------------------ */

.cmp-orbits { position: absolute; pointer-events: none; fill: none; }

/* Hero ------------------------------------------------------------------- */

.cmp-hero { position: relative; overflow: hidden; color: #FFFFFF; background: var(--cmp-blue); }
.cmp-hero--dark-blue { background: var(--cmp-blue-dark); }
.cmp-hero__orbits { width: 980px; height: 980px; left: -260px; bottom: -420px; stroke: var(--cmp-blue-mid); }

.cmp-hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-areas: "copy" "impact" "form";
  padding-top: 32px;
  padding-bottom: 40px;
}
.cmp-hero__copy { grid-area: copy; display: grid; gap: 18px; }
.cmp-hero__form { grid-area: form; }
.cmp-hero__impact { grid-area: impact; display: grid; gap: 14px; max-width: 520px; }

.cmp-hero__title { font-size: clamp(52px, 7.5vw, 88px); line-height: 0.98; }
.cmp-hero__sub { font-size: clamp(17px, 1.8vw, 21px); max-width: 520px; }

.cmp-hero__form {
  background: #FFFFFF;
  color: var(--cmp-ink);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(16, 20, 60, 0.28);
  padding: clamp(18px, 2.4vw, 28px);
  display: grid;
  gap: 16px;
}
.cmp-hero__form-title { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; color: var(--cmp-blue); }
.cmp-hero__iframe { display: block; width: 100%; border: 0; height: var(--h-m, 760px); }
.cmp-hero__secure { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cmp-gray); }
.cmp-hero__secure svg { flex-shrink: 0; fill: none; stroke: var(--cmp-blue); stroke-width: 2; stroke-linecap: round; }

/* Side by side from 860px. Between 860 and 959px the form column is narrow,
   so the form keeps its mobile height there; the desktop height starts at 960px. */
@media (min-width: 860px) {
  .cmp-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    /* The text and progress sit together, centered against the (taller)
       form card, so neither column leaves an empty patch. */
    grid-template-areas: ". form" "copy form" "impact form" ". form";
    grid-template-rows: 1fr auto auto 1fr;
    align-items: start;
    column-gap: clamp(32px, 4vw, 56px);
    row-gap: 28px;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .cmp-hero__copy { padding-top: 8px; }
}
@media (min-width: 960px) {
  .cmp-hero__iframe { height: var(--h-d, 700px); }
}

/* Thank-you mode: confirmation card sits where the form card goes */
.cmp-hero__confirm {
  grid-area: form;
  align-self: start;
  background: #FFFFFF;
  color: var(--cmp-ink);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(16, 20, 60, 0.28);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 18px;
}
.cmp-confirm__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cmp-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmp-confirm__badge svg { fill: none; stroke: var(--cmp-blue-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp-confirm__title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.02; color: var(--cmp-blue); }
.cmp-confirm__body { display: grid; gap: 14px; font-size: 17px; }
.cmp-confirm__body ul { display: grid; gap: 10px; padding: 4px 0; }
.cmp-confirm__body li { position: relative; padding-left: 26px; }
.cmp-confirm__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cmp-red);
}
.cmp-confirm__body a { font-weight: 600; }
.cmp-confirm__body > :last-child { font-weight: 700; color: var(--cmp-blue-dark); }

/* Jump target for "Give now" links. The theme's smooth-scroll stops 72px above
   the target and the fixed header is ~107px, so the anchor sits 48px above the
   card to keep the card's top edge clear of the header. */
.cmp-hero__form,
.cmp-hero__confirm { position: relative; }
.cmp-anchor {
  position: absolute;
  top: -48px;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 80px;
}

/* Progress (glow bar) ----------------------------------------------------
   Big total, percent badge and a thick striped bar with a glowing leading
   edge. Colors come from variables so "Card color" can change them; the
   defaults suit a dark background (the hero itself, or a dark card). */
.cmp-progress {
  --pg-bg: transparent;
  --pg-ink: #FFFFFF;
  --pg-label: var(--cmp-blue-light);
  --pg-amt: var(--cmp-yellow);
  --pg-strong: var(--cmp-yellow);
  --pg-track: rgba(255, 255, 255, 0.16);
  --pg-tick: rgba(255, 255, 255, 0.3);
  --pg-fill: linear-gradient(90deg, #FF9D00, var(--cmp-yellow) 55%, #FFD55A);
  --pg-glow: rgba(255, 186, 0, 0.55);
  --pg-pill-bg: var(--cmp-yellow);
  --pg-pill-ink: var(--cmp-blue-dark);
  --pg-knob: #FFFFFF;
  position: relative;
  display: grid;
  gap: 14px;
  color: var(--pg-ink);
}
/* No card: sits on the hero with a divider line above (A3). */
.cmp-progress--plain { border-top: 2px solid rgba(255, 255, 255, 0.28); padding-top: 22px; }
/* Card */
.cmp-progress--card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 20px;
  background: var(--pg-bg);
  box-shadow: 0 18px 40px rgba(11, 16, 64, 0.3);
}
.cmp-progress--dark-blue { --pg-bg: var(--cmp-blue-dark); }
.cmp-progress--blue      { --pg-bg: var(--cmp-blue); }
.cmp-progress--purple    { --pg-bg: #4E4AA6; --pg-label: #C0C6FC; }
.cmp-progress--green     { --pg-bg: #156B4C; --pg-label: #C6F7DA; }
.cmp-progress--red {
  --pg-bg: var(--cmp-red-dark);
  --pg-label: #FFFFFF;
  --pg-amt: #FFFFFF;
  --pg-strong: #FFFFFF;
  --pg-track: rgba(0, 0, 0, 0.18);
  --pg-fill: linear-gradient(90deg, #FFD7D0, #FFFFFF);
  --pg-glow: rgba(255, 255, 255, 0.45);
  --pg-pill-bg: #FFFFFF;
  --pg-pill-ink: var(--cmp-red-dark);
  --pg-knob: var(--cmp-red-dark);
}
.cmp-progress--white {
  --pg-bg: #FFFFFF;
  --pg-ink: var(--cmp-ink);
  --pg-label: var(--cmp-blue);
  --pg-amt: var(--cmp-blue);
  --pg-strong: var(--cmp-blue-dark);
  --pg-track: var(--cmp-line);
  --pg-tick: rgba(33, 41, 107, 0.25);
  --pg-fill: linear-gradient(90deg, var(--cmp-blue-dark), var(--cmp-blue) 55%, var(--cmp-blue-mid));
  --pg-glow: rgba(0, 68, 181, 0.35);
  --pg-pill-bg: var(--cmp-blue);
  --pg-pill-ink: #FFFFFF;
  border-top: 8px solid var(--cmp-yellow);
}

.cmp-progress__label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pg-label); }
.cmp-progress__amount { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmp-progress .cmp-progress__raised {
  font-size: clamp(54px, 6.2vw, 84px);
  line-height: 0.92;
  color: var(--pg-amt);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px var(--pg-glow);
}
.cmp-progress .cmp-progress__pct {
  padding: 6px 14px 4px;
  border-radius: 999px;
  background: var(--pg-pill-bg);
  font-size: 26px;
  line-height: 1.1;
  color: var(--pg-pill-ink);
  font-variant-numeric: tabular-nums;
}
.cmp-progress__track {
  position: relative;
  height: 28px;
  border-radius: 14px;
  background: var(--pg-track);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}
.cmp-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  min-width: 28px;
  border-radius: 14px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 0 10px, rgba(255, 255, 255, 0) 10px 20px), var(--pg-fill);
  background-size: 28px 28px, 100% 100%;
  box-shadow: 0 0 18px var(--pg-glow);
  animation: cmp-stripes 1.1s linear infinite;
}
/* Glowing leading edge */
.cmp-progress__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--pg-knob);
  animation: cmp-pulse 1.8s ease-out infinite;
}
.cmp-progress__tick { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--pg-tick); pointer-events: none; }
.cmp-progress__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.cmp-progress__meta strong { font-weight: 700; color: var(--pg-strong); }

/* Fill-in animation once the script has set things up */
.cmp-progress.is-ready .cmp-progress__fill { width: 0; transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cmp-progress.is-ready.is-filled .cmp-progress__fill { width: var(--pct); }
.cmp-progress.is-complete .cmp-progress__label { color: var(--pg-amt); }

@keyframes cmp-stripes { to { background-position: 28px 0, 0 0; } }
@keyframes cmp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-progress__fill,
  .cmp-progress__fill::after { animation: none; }
  .cmp-progress.is-ready .cmp-progress__fill { transition: none; }
}

/* Impact list */
.cmp-impact li {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.cmp-impact li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.cmp-impact__amt {
  flex: 0 0 88px;
  font-family: var(--cmp-font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--cmp-yellow);
}

/* Half-dome photo frame (from brand web/social examples) ----------------- */

.cmp-dome { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--cmp-blue-light); }
.cmp-dome img { width: 100%; height: 100%; object-fit: cover; }

/* Story ------------------------------------------------------------------ */

.cmp-story__grid { display: grid; gap: 40px; align-items: center; }
.cmp-story__media { aspect-ratio: 5 / 4; }
.cmp-story__text { display: grid; gap: 22px; }
.cmp-story__cite { font-weight: 700; color: var(--cmp-blue); }
.cmp-story__quote {
  margin: 0;
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--cmp-blue-dark);
}
.cmp-story__body > * + * { margin-top: 1em; }

@media (min-width: 900px) {
  .cmp-story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

.cmp-story__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; margin-top: 32px; }
@media (min-width: 900px) {
  .cmp-story__footer { padding-left: calc(50% + 32px); }
}

/* Stories carousel: slides share one grid cell, so the section is as tall
   as the tallest story and nothing jumps when they change. */
.cmp-story--carousel { overflow: hidden; }
.cmp-story__slides { display: grid; }
.cmp-story__slide { grid-area: 1 / 1; }
.cmp-story--carousel .cmp-story__slide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}
.cmp-story--carousel .cmp-story__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
}

.cmp-carousel__controls { display: flex; align-items: center; gap: 10px; }
.cmp-carousel__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--cmp-blue);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--cmp-blue);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cmp-carousel__btn:hover { background: var(--cmp-blue); color: #FFFFFF; }
.cmp-carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp-carousel__btn .cmp-icon-pause,
.cmp-carousel__btn .cmp-icon-play { fill: currentColor; stroke: none; }
.cmp-carousel__btn .cmp-icon-play { display: none; }
.cmp-story--carousel.is-paused .cmp-icon-pause { display: none; }
.cmp-story--carousel.is-paused .cmp-icon-play { display: block; }
/* No pause button until the script is running (nothing auto-advances without it). */
.cmp-story--carousel:not(.is-ready) [data-cmp-pause] { display: none; }

.cmp-carousel__dots { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.cmp-carousel__dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.3s ease;
}
.cmp-carousel__dot span {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cmp-blue-pale);
  transition: width 0.3s ease, background 0.3s ease;
}
.cmp-carousel__dot:hover span { background: var(--cmp-blue-mid); }
.cmp-carousel__dot[aria-current="true"] { width: 44px; }
.cmp-carousel__dot[aria-current="true"] span { width: 36px; background: var(--cmp-blue-pale); }
/* The active dot fills up over the slide's time on screen. */
.cmp-carousel__dot[aria-current="true"] span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cmp-red-dark);
  transform-origin: left center;
  transform: scaleX(1);
}
.cmp-story--carousel.is-ticking .cmp-carousel__dot[aria-current="true"] span::after {
  animation: cmp-dot-fill var(--cmp-interval, 8s) linear forwards;
}
@keyframes cmp-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .cmp-story--carousel .cmp-story__slide,
  .cmp-story--carousel .cmp-story__slide.is-active { transform: none; transition: none; }
}

/* Fund areas (brand "impact areas" left-bar treatment) ------------------- */

.cmp-areas__list { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cmp-areas__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cmp-areas__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmp-area { background: #FFFFFF; border-left: 8px solid var(--cmp-blue); padding: 24px 24px 28px; display: grid; gap: 10px; align-content: start; }
.cmp-area p { font-size: 16px; }
.cmp-area__title { font-size: 26px; line-height: 1.05; color: var(--cmp-blue); }
.cmp-area .cmp-area__stat { font-size: clamp(32px, 3.2vw, 40px); line-height: 1; text-transform: none; color: var(--cmp-blue-dark); }
.cmp-areas__more { margin-top: 28px; }
.cmp-areas__more a { font-weight: 600; }
.cmp-area--light-blue { border-left-color: var(--cmp-blue-light); }
.cmp-area--blue { border-left-color: var(--cmp-blue); }
.cmp-area--red { border-left-color: var(--cmp-red); }
.cmp-area--yellow { border-left-color: var(--cmp-yellow); }

/* Trust strip (end of page): badge + "A gift you can trust." --------- */

.cmp-trust { background: var(--cmp-blue-dark); color: #FFFFFF; }
.cmp-trust__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.cmp-trust__badge { flex: 0 0 auto; width: 120px; height: auto; }
.cmp-trust__text { flex: 1 1 420px; display: grid; gap: 8px; }
.cmp-trust__title { font-size: clamp(28px, 3.2vw, 40px); color: var(--cmp-yellow); }
.cmp-trust__stat { display: flex; gap: 16px; align-items: center; font-size: 17px; }
.cmp-trust__stat .cmp-display { font-size: clamp(44px, 5vw, 60px); color: var(--cmp-yellow); }
.cmp-trust__note { font-size: 17px; color: #E4E6F7; }
@media (max-width: 640px) {
  .cmp-trust__inner { flex-wrap: nowrap; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
  .cmp-trust__badge { width: 76px; }
}

/* Ways to give ----------------------------------------------------------- */

.cmp-ways .cmp-wrap { display: grid; gap: 32px; }

.cmp-uc {
  display: grid;
  background: var(--cmp-yellow);
  color: var(--cmp-blue-dark);
  border-radius: 6px;
  overflow: hidden;
}
.cmp-uc__text { padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; align-content: center; }
.cmp-uc__label { font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.cmp-uc__title { font-size: clamp(38px, 5vw, 56px); }
.cmp-uc__body { font-size: clamp(16px, 1.6vw, 19px); max-width: 480px; }
.cmp-uc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; }
.cmp-uc__note { font-style: italic; }
.cmp-uc__media { position: relative; min-height: 190px; }
.cmp-uc__media::before,
.cmp-uc__media img {
  position: absolute;
  top: 24px; right: 0; bottom: 0; left: 20px;
  border-radius: 999px 0 0 0;
}
.cmp-uc__media::before { content: ""; background: var(--cmp-yellow-pale); }
.cmp-uc__media img { width: calc(100% - 20px); height: calc(100% - 24px); object-fit: cover; }

@media (min-width: 900px) {
  .cmp-uc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .cmp-uc__media { min-height: 380px; }
  .cmp-uc__media::before,
  .cmp-uc__media img { top: 48px; left: 24px; }
  .cmp-uc__media img { width: calc(100% - 24px); height: calc(100% - 48px); }
}

.cmp-transfers { display: grid; gap: 8px; margin-top: 16px; }
.cmp-transfers__list { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 760px) { .cmp-transfers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-transfers__list li { border-top: 4px solid var(--cmp-blue); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.cmp-transfers__list h4 { font-size: 19px; font-weight: 700; color: var(--cmp-blue-dark); }
.cmp-transfers__list p { font-size: 16px; }
.cmp-transfers__list a { font-weight: 600; }
/* "Button text" setting: applies to every button and the Other ways to give links. */
.cmp--btn-upper .cmp-btn,
.cmp--btn-upper .cmp-transfers__list a { text-transform: uppercase; letter-spacing: 0.06em; }
.cmp--btn-upper .cmp-transfers__list a { font-size: 15px; font-weight: 700; }
.cmp--btn-title .cmp-btn,
.cmp--btn-title .cmp-transfers__list a { text-transform: capitalize; }

/* Closing band ----------------------------------------------------------- */

.cmp-closing { position: relative; overflow: hidden; background: var(--cmp-red-dark); color: #FFFFFF; }
.cmp-closing__orbits { width: 900px; height: 900px; right: -320px; top: -360px; stroke: var(--cmp-red-light); }
.cmp-closing__inner { position: relative; display: grid; gap: 22px; justify-items: start; padding-top: var(--cmp-section-y); padding-bottom: var(--cmp-section-y); }
.cmp-closing__title { font-size: clamp(48px, 6vw, 72px); line-height: 0.98; max-width: 760px; }
.cmp-closing__text { font-size: clamp(16px, 1.8vw, 20px); max-width: 600px; }
.cmp-closing__note { font-size: 15px; font-style: italic; color: var(--cmp-red-pale); }

/* Peer-to-peer band (same shape as the closing band) -------------------- */

/* Background colors ("Background" field). Each sets the band, text, ring,
   eyebrow and photo-border colors. Yellow and orange use dark text for contrast.
   All values are from the 2024 brand guidelines (p. 19). Green and purple
   use the guide's darker shades (#156B4C, #4E4AA6) with their light shades
   for the rings; the main shades (#009464, #6C76D3) are too light for
   white body text to pass WCAG AA. */
.cmp-band {
  --band-bg: var(--cmp-blue-dark);
  --band-ink: #FFFFFF;
  --band-ring: var(--cmp-blue-mid);
  --band-eyebrow: var(--cmp-yellow);
  --band-photo: var(--cmp-yellow);
  position: relative;
  overflow: hidden;
  color: var(--band-ink);
  background: var(--band-bg);
}
.cmp-band--blue   { --band-bg: var(--cmp-blue);     --band-ring: var(--cmp-blue-light); }
.cmp-band--red    { --band-bg: var(--cmp-red-dark); --band-ring: var(--cmp-red-light); --band-eyebrow: #FFFFFF; }
.cmp-band--yellow { --band-bg: var(--cmp-yellow);   --band-ink: var(--cmp-blue-dark); --band-ring: #FFFFFF; --band-eyebrow: var(--cmp-blue-dark); --band-photo: #FFFFFF; }
.cmp-band--orange { --band-bg: #F47925;             --band-ink: #221E1F; --band-ring: #FFEAD0; --band-eyebrow: #221E1F; --band-photo: #FFFFFF; }
.cmp-band--purple { --band-bg: #4E4AA6;             --band-ring: #8E97EF; --band-eyebrow: #FFFFFF; }
.cmp-band--green  { --band-bg: #156B4C;             --band-ring: #82D8A4; --band-eyebrow: #C6F7DA; }
.cmp-band__inner { position: relative; display: grid; gap: 40px; align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.cmp-band__copy { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.cmp .cmp-band__eyebrow { color: var(--band-eyebrow); }
.cmp-band .cmp-band__title, .cmp-band .cmp-band__text { color: var(--band-ink); }
.cmp-band__title { font-size: clamp(42px, 5.4vw, 64px); line-height: 0.98; max-width: 820px; text-wrap: balance; }

/* Corner rings, with an optional photo filling the inner ring. Everything
   is sized from --orb so the group scales down on phones. */
.cmp-band { --orb: 900px; }
.cmp-band__corner {
  position: absolute;
  right: calc(var(--orb) * -0.3556);
  top: calc(var(--orb) * -0.4);
  width: var(--orb);
  height: var(--orb);
  pointer-events: none;
}
/* With a photo, the rings drop lower so most of the photo shows. */
.cmp-band--photo .cmp-band__corner { top: calc(var(--orb) * -0.25); }
.cmp-band__orbits { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--band-ring); }
/* Photo sits just inside the inner ring. Selector is doubled up and height is
   set from aspect-ratio so the global ".cmp img { height: auto }" rule can't
   squash it into an oval. */
.cmp-band .cmp-band__photo {
  position: absolute;
  left: 18.5%;
  top: 18.5%;
  width: 63%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 899px) {
  .cmp-band { --orb: 640px; }
  .cmp-band--photo { --orb: 440px; }
  /* Start the text below the photo on phones. */
  .cmp-band--photo .cmp-band__inner { padding-top: calc(var(--orb) * 0.58 + 16px); }
}
@media (min-width: 900px) {
  .cmp-band--photo { --orb: clamp(560px, 50vw, 720px); }
  /* Keep text clear of the photo: stop 40px short of its left edge. */
  .cmp-band--photo .cmp-band__copy {
    max-width: calc(100vw - var(--orb) * 0.4778 - 40px - max(40px, (100vw - 1200px) / 2 + 40px));
  }
}
.cmp-band__text { font-size: clamp(16px, 1.8vw, 20px); max-width: 640px; }


/* Simplified footer ("Simplified footer" field) -------------------------- */

.cmp-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--cmp-line);
  font-family: var(--cmp-font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--cmp-gray);
  padding: 32px 0 24px;
}
.cmp-footer :where(p) { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.cmp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
  align-items: center;
}
.cmp-footer__org { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cmp-footer__logo img { display: block; width: 200px; height: auto; }
.cmp-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.cmp-footer .cmp-footer__links a,
.cmp-footer .cmp-footer__links a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cmp-blue);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.cmp-footer .cmp-footer__links a:hover,
.cmp-footer .cmp-footer__links a:focus { color: var(--cmp-blue-dark); }
.cmp-footer .cmp-footer__copy { margin-top: 12px; font-size: 13px; }

@media (max-width: 640px) {
  .cmp-footer__inner { flex-direction: column; align-items: flex-start; }
  .cmp-footer__logo img { width: 160px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.cmp) { scroll-behavior: smooth; }
}
