/* Page Builder block styles. One section per block, in build order. */

/* ---- hero_full_bleed --------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding: 120px 0;
  overflow: hidden;
}

/* Headline-only (no eyebrow / intro / buttons, e.g. Contact): banner height.
   The partial adds the class automatically. */
.hero--compact {
  min-height: 400px;
  padding: 80px 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(var(--overlay-rgb), 0.30) 0%,
    rgba(var(--overlay-rgb), 0.22) 35%,
    rgba(var(--overlay-rgb), 0.40) 58%,
    rgba(var(--overlay-rgb), 0.72) 78%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: 18px;
}

.hero .h-hero {
  color: #fff;
}

.hero__intro {
  max-width: 560px;
  margin: 22px 0 30px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-hero);
}

.hero__credit {
  position: absolute;
  right: calc(var(--content-gutter) + var(--safe-area-right));
  bottom: 18px;
  z-index: 2;
  color: var(--on-image-caption);
}

/* Video background: sits over the poster image inside .hero__media, under the
   gradient overlay. hero-video.js suppresses it for reduced motion, Save-Data
   and (unless the editor opts in) phones, and reveals the pause control. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-toggle {
  position: absolute;
  left: calc(var(--content-gutter) + var(--safe-area-left));
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background-color: rgba(var(--overlay-rgb), 0.35);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero__video-toggle[hidden] {
  display: none;
}

.hero__video-toggle:hover,
.hero__video-toggle:focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* Pause icon: two bars (box + inset borders). Paused: play triangle. */
.hero__video-toggle-icon {
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero__video-toggle.is-paused .hero__video-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 11px solid currentColor;
  border-right: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .hero__video-toggle {
    display: none;
  }
}

/* First section on a page sits under the sticky header; nothing needed since header is sticky, not fixed. */

@media (max-width: 640px) {
  .hero {
    min-height: 520px;
    padding: 80px 0 64px;
  }

  .hero--compact {
    min-height: 300px;
    padding: 56px 0 48px;
  }

  .hero__intro {
    margin: 18px 0 24px;
  }

  .hero__video-toggle {
    bottom: 14px;
  }
}

/* ---- stats_ticker ------------------------------------------------------ */
.ticker {
  padding: 16px 0;
  overflow: hidden;
  color: #fff;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: vf-ticker 28s linear infinite;
}

.ticker__set {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Deliberately smaller than the mission statement below it
   (.statement = clamp(26px, 3.2vw, 38px)). */
.ticker__item {
  display: flex;
  align-items: center;
  padding: 0 24px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker__sep {
  margin-left: 44px;
  color: var(--brand);
  font-size: 14px;
}

@keyframes vf-ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .ticker__item {
    font-size: 16px;
    padding: 0 16px;
  }

  .ticker__sep {
    margin-left: 32px;
  }
}

/* ---- statement --------------------------------------------------------- */
.statement-band {
  padding: 88px 0;
}

.statement-band__eyebrow {
  margin-bottom: 20px;
}

.statement-band__link {
  margin-top: 26px;
}

@media (max-width: 640px) {
  .statement-band {
    padding: 64px 0;
  }
}

/* ---- numbered_rows ----------------------------------------------------- */
.rows {
  padding: 90px 0 50px;
}

.rows.band--tint {
  padding: 80px 0;
}

.rows__label {
  margin-bottom: 14px;
}

.rows__list {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  /* Arrow column is a fixed width (not auto) so rows without a link keep
     their description aligned with rows that have one. */
  grid-template-columns: 90px minmax(0, 1.2fr) minmax(240px, 380px) 28px;
  gap: 28px;
  align-items: center;
  padding: 34px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rows.band--tint .rows__list,
.rows.band--tint .row {
  border-color: var(--line-row);
}

a.row:hover,
a.row:focus-visible {
  background-color: var(--bg-tint);
}

.rows.band--tint a.row:hover,
.rows.band--tint a.row:focus-visible {
  background-color: rgba(255, 255, 255, 0.6);
}

.row__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--brand);
}

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

.row__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.row__arrow {
  width: 28px;
  font-size: 22px;
  line-height: 1;
  text-align: right;
  color: var(--text-arrow);
}

/* ---- application_status (Q1–Q4 tiles) ---------------------------------- */
.app-status {
  padding: 64px 0;
}

.app-status__label {
  margin-bottom: 20px;
}

/* Optional heading under the label */
.app-status__label:has(+ .app-status__heading) {
  margin-bottom: 12px;
}

.app-status__heading {
  margin-bottom: 28px;
}

/* Only when BOTH are on the tinted band (Grants "How it works") do rows + tiles
   read as one block: close the gap to the design's 28px. */
.rows.band--tint:has(+ .app-status.band--tint) {
  padding-bottom: 28px;
}

.rows.band--tint + .app-status.band--tint {
  padding-top: 0;
}

/* Status tiles directly followed by the recipients grid: halve the stacked gap
   (64 + 60 → 40 + 24). Tint still runs 40px under the last tiles. */
.app-status:has(+ .recipients) {
  padding-bottom: 40px;
}

.app-status + .recipients {
  padding-top: 24px;
}

@media (max-width: 640px) {
  .app-status:has(+ .recipients) {
    padding-bottom: 32px;
  }

  .app-status + .recipients {
    padding-top: 16px;
  }
}

.cycle-tiles + .cycle-tiles {
  margin-top: 22px;
}

.cycle-tiles__label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

.cycle-tiles__label.is-active {
  color: var(--brand);
}

.cycle-tile {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-row);
  background-color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  overflow-wrap: anywhere;
}

/* Below tablet width the quarter and the status stack on two lines. */
@media (max-width: 900px) {
  .cycle-tile__sep {
    display: none;
  }

  .cycle-tile__q,
  .cycle-tile__state {
    display: block;
  }

  .cycle-tile__state {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

.cycle-tile--open {
  border: 2px solid var(--brand);
  background-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.cycle-tile--scheduled {
  color: var(--text-nav);
  border-color: var(--line-input);
}

.cycle-tile--tba {
  color: var(--text-eyebrow);
}

.cycle-tile--loading {
  border-style: dashed;
  color: var(--text-arrow);
}

@media (max-width: 640px) {
  .rows {
    padding: 64px 0 32px;
  }

  .app-status {
    padding: 48px 0;
  }

  .row {
    grid-template-columns: 48px minmax(0, 1fr);
    row-gap: 10px;
    padding: 24px 4px;
  }

  .row__text {
    grid-column: 2;
  }

  .row__arrow {
    display: none;
  }

  .row__num {
    font-size: 28px;
  }

  .row__title {
    font-size: 24px;
  }
}

/* ---- recipients_grid --------------------------------------------------- */
.recipients {
  padding: 60px 0 90px;
}

.recipients__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.recipients__label {
  margin: 0;
}

.recipients__tools {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-left: auto;
}

.recipients__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
  cursor: pointer;
}

.recipients__filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a93aa' stroke-width='2'/%3E%3C/svg%3E") no-repeat right center;
  padding: 0 16px 0 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink);
  cursor: pointer;
}

.recipients__filter-select:focus-visible {
  outline-offset: 2px;
}

.recipients__grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.recipient-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

a.recipient-card {
  transition: opacity 0.2s ease;
}

a.recipient-card:hover,
a.recipient-card:focus-visible {
  opacity: 0.88;
}

.recipient-card__media {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-tint);
}

.recipient-card__meta {
  margin-top: 4px;
}

.recipient-card__title {
  margin: 0;
}

.recipient-card__blurb {
  margin: 0;
}

.recipient-card__award {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.recipients__empty {
  margin-top: 16px;
}

/* Striped "pending" placeholder, as in the design. */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #eef0f4 0 14px, #e6e9ef 14px 28px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

@media (max-width: 640px) {
  .recipients {
    padding: 48px 0 64px;
  }

  .recipients__tools {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- media_text (featured story) --------------------------------------- */
.media-text {
  padding: 90px 0;
}

.media-text__inner > * {
  min-width: 0;
}

.media-text__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.media-text--image-right .media-text__media {
  order: 2;
}

.media-text__media {
  overflow: hidden;
  background-color: var(--bg);
}

.media-text__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-text__tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid rgba(66, 98, 174, 0.4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.media-text__heading {
  margin-bottom: 20px;
}

.media-text__text {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.media-text__actions {
  margin-top: 28px;
}

/* Default button in this block is the outline-dark style from the design. */
.media-text__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline) {
  background-color: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.media-text__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):hover,
.media-text__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):focus-visible {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 900px) {
  .media-text__inner {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .media-text {
    padding: 64px 0;
  }

  .media-text__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .media-text--image-right .media-text__media {
    order: 0;
  }
}

/* ---- cta_band ---------------------------------------------------------- */
.cta-band {
  padding: 56px 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.cta-band__copy {
  max-width: 760px;
}

.cta-band__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.cta-band__eyebrow {
  margin-bottom: 14px;
}

.cta-band__text {
  max-width: 560px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-blue);
}

.cta-band--dark .cta-band__text {
  color: var(--on-dark);
}

.cta-band__dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  animation: vf-pulse 2.4s ease-out infinite;
}

@keyframes vf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  60% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-band__dot {
    animation: none;
  }
}

/* On both bands, "solid" buttons render as white outlines (the design's default). */
.cta-band__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline) {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.cta-band__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):hover,
.cta-band__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: var(--brand);
}

.cta-band--dark .cta-band__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):hover,
.cta-band--dark .cta-band__actions .btn:not(.btn--ghost):not(.btn--white):not(.btn--outline):focus-visible {
  color: var(--bg-dark);
}

.cta-band--dark .cta-band__actions .btn--white {
  color: var(--bg-dark);
}

@media (max-width: 640px) {
  .cta-band {
    padding: 48px 0;
  }

  .cta-band__heading {
    align-items: flex-start;
  }

  .cta-band__dot {
    margin-top: 0.45em;
  }
}

/* ---- page_hero --------------------------------------------------------- */
.page-hero-block {
  padding: 96px 0 20px;
}

.page-hero-block--deep {
  padding-bottom: 56px;
}

/* A form section directly after the hero (Contact) sits 56px below it:
   the hero owns the gap, the form drops its own top padding. */
.page-hero-block:has(+ .form-embed) {
  padding-bottom: 56px;
}

.page-hero-block + .form-embed:not(.band--tint) {
  padding-top: 0;
}

.page-hero-block__title {
  max-width: 12em;
}

.page-hero-block__lead {
  max-width: 750px;
  margin-top: 24px;
}

/* Application-status strips (Grants) */
.status-strips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-top: 32px;
}

.status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  border: 1px solid var(--line-card);
  background-color: #fff;
}

.status-strip--active {
  background-color: var(--bg-tint);
}

.status-strip__dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--line-input);
}

.status-strip--active .status-strip__dot {
  background-color: var(--brand);
  animation: vf-pulse-brand 2.4s ease-out infinite;
}

@keyframes vf-pulse-brand {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66, 98, 174, 0.45); }
  60% { box-shadow: 0 0 0 9px rgba(66, 98, 174, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-strip--active .status-strip__dot {
    animation: none;
  }
}

.status-strip__text {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

.status-strip--active .status-strip__text {
  color: var(--ink);
}

.status-strip__btn {
  margin-left: auto;
}

/* Image strip (Donate hero) */
.image-strip {
  max-width: 860px;
  margin-top: 36px;
}

.image-strip__item {
  overflow: hidden;
  background-color: var(--bg-tint);
}

.image-strip__caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .page-hero-block {
    padding: 64px 0 16px;
  }

  .page-hero-block--deep,
  .page-hero-block:has(+ .form-embed) {
    padding-bottom: 40px;
  }

  .status-strip__btn {
    margin-left: 0;
  }

  /* Donate hero: the 3-up image strip only pushes the giving card down on phones. */
  .image-strip {
    display: none;
  }
}

/* ---- rich_text --------------------------------------------------------- */
.rich-text {
  padding: 56px 0;
}

.rich-text--intro {
  padding: 0 0 80px;
}

.rich-text--fine {
  padding: 0 0 90px;
}

.rich-text--full .rich-text__body {
  max-width: none;
}

.rich-text--intro .rich-text__body {
  max-width: 750px;
}

.rich-text--fine .rich-text__body {
  max-width: 720px;
}

.rich-text--intro .rich-text__body > * + * {
  margin-top: 20px;
}

.rich-text--fine .rich-text__body > * + * {
  margin-top: 12px;
}

.rich-text__body a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rich-text__body ul,
.rich-text__body ol {
  padding-left: 1.5rem;
}

.rich-text__body ul { list-style: disc; }
.rich-text__body ol { list-style: decimal; }

@media (max-width: 640px) {
  .rich-text { padding: 40px 0; }
  .rich-text--intro { padding: 0 0 56px; }
  .rich-text--fine { padding: 0 0 64px; }
}

/* ---- full_bleed_image -------------------------------------------------- */
.full-bleed {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.full-bleed--cta {
  height: 460px;
}

.full-bleed__media {
  position: absolute;
  inset: 0;
}

.full-bleed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-bleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay-rgb), 0) 0%, rgba(var(--overlay-rgb), 0.65) 100%);
}

.full-bleed--cta .full-bleed__overlay {
  background: linear-gradient(180deg, rgba(var(--overlay-rgb), 0.15) 0%, rgba(var(--overlay-rgb), 0.72) 100%);
}

.full-bleed__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 20px;
}

.full-bleed--cta .full-bleed__content {
  padding-bottom: 52px;
}

.full-bleed__heading {
  max-width: 14em;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  color: #fff;
}

.full-bleed__actions {
  margin-top: 24px;
}

.full-bleed__actions .btn:not(.btn--white):not(.btn--outline) {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.full-bleed__actions .btn:not(.btn--white):not(.btn--outline):hover,
.full-bleed__actions .btn:not(.btn--white):not(.btn--outline):focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: var(--bg-dark);
}

.full-bleed__caption {
  color: var(--on-image-caption);
}

.full-bleed__actions + .full-bleed__caption {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .full-bleed,
  .full-bleed--cta {
    height: 320px;
  }

  .full-bleed--cta .full-bleed__content {
    padding-bottom: 32px;
  }
}

/* ---- split_text -------------------------------------------------------- */
.split-text {
  padding: 80px 0;
}

.split-text:has(+ .board-grid) {
  padding-bottom: 0;
}

.split-text__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.split-text__body > * + * {
  margin-top: 16px;
}

.split-text__body a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .split-text {
    padding: 56px 0;
  }
}

/* ---- board_grid -------------------------------------------------------- */
.board-grid {
  padding: 90px 0;
}

.board-grid + .board-grid {
  padding-top: 0;
}

.board-group + .board-group {
  margin-top: 64px;
}

.board-group__label {
  margin-bottom: 26px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person__photo {
  overflow: hidden;
  background-color: var(--bg-tint);
}

.person__name {
  margin: 0;
}

.person__role {
  margin-top: -6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

@media (max-width: 640px) {
  .board-grid {
    padding: 64px 0;
  }

  .board-grid__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .person__name {
    font-size: 18px;
  }
}

/* ---- form_embed -------------------------------------------------------- */
.form-embed {
  padding: 90px 0;
}

.form-embed.band--tint {
  padding: 80px 0;
}

.form-embed__eyebrow {
  margin-bottom: 14px;
}

.form-embed__heading {
  margin-bottom: 18px;
}

.form-embed__intro {
  max-width: 480px;
}

.form-embed__intro > * + * {
  margin-top: 14px;
}

.form-embed__intro a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-embed__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.form-embed--sidebar .form-embed__heading {
  margin-bottom: 24px;
}

/* Phones (grid collapsed to one column): details sidebar above the form, with
   the eyebrow/heading still first. The form column becomes display: contents
   so its heading and card are direct grid items that can be ordered. */
@media (max-width: 640px) {
  .form-embed--sidebar .form-embed__form-col {
    display: contents;
  }

  .form-embed--sidebar .form-embed__heading {
    margin-bottom: 0;
  }

  .form-embed--sidebar .form-embed__sidebar {
    order: 1;
  }

  .form-embed--sidebar .form-embed__card {
    order: 2;
  }
}

.form-embed__fallback .prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Details sidebar (Contact) */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-block__label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

.info-block__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-nav);
}

.info-block__value p + p {
  margin-top: 4px;
}

.info-block__value a {
  color: var(--brand);
  font-weight: 600;
}

/* The form target is printed before any fallback; while it's empty it must not
   take a flex-gap row (otherwise the fallback text sits lower than it should). */
.hs-form-target:empty {
  display: none;
}

/* HubSpot raw-HTML forms: map HubSpot's markup onto the design's controls.
   (No effect on iframe-embedded forms — those are styled in HubSpot.) */
.hs-form-target form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hs-form-target .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-form-target .hs-form-field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-nav);
}

.hs-form-target fieldset {
  max-width: none !important;
}

.hs-form-target fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.hs-form-target fieldset.form-columns-2 .hs-form-field {
  width: 100% !important;
  float: none !important;
}

.hs-form-target .input {
  margin: 0 !important;
}

.hs-form-target input[type="text"],
.hs-form-target input[type="email"],
.hs-form-target input[type="tel"],
.hs-form-target input[type="number"],
.hs-form-target select,
.hs-form-target textarea {
  width: 100% !important;
  padding: 12px 14px;
  border: 1px solid var(--line-input);
  border-radius: 0;
  background-color: var(--bg-input);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}

.hs-form-target textarea {
  min-height: 7em;
  resize: vertical;
}

.hs-form-target input[type="file"] {
  padding: 22px;
  border: 1.5px dashed var(--line-input);
  width: 100%;
  font-size: 14px;
  color: var(--text-eyebrow);
}

.hs-form-target .hs-error-msgs {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13px;
  color: #c0392b;
}

.hs-form-target .hs-button {
  align-self: flex-start;
  padding: 13px 30px;
  border: 2px solid var(--brand);
  border-radius: 0;
  background-color: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hs-form-target .hs-button:hover,
.hs-form-target .hs-button:focus-visible {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.hs-form-target .submitted-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-nav);
}

@media (max-width: 640px) {
  .form-embed,
  .form-embed.band--tint {
    padding: 64px 0;
  }

  /* Phones: the card's 32px padding ate most of the column — drop it
     (border kept; the Donate card keeps its own 24px override). */
  .form-embed__card {
    padding: 0;
  }

  .form-embed__card > .consent-panel--inline .consent-panel__inner {
    padding: 20px;
  }

  .hs-form-target fieldset.form-columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- consent panel (Cookiebot optout, shown until the category is allowed)
   Default = absolute overlay for a sized frame (video embeds). HubSpot forms
   use .consent-panel--inline instead, see below. */
.form-card {
  position: relative;
}

.consent-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #fff;
}

/* In-flow variant (HubSpot forms): the target is empty until consent, so the
   panel takes the form's place instead of overlaying it. Reads as a card on a
   bare band (newsletter); inside .form-card the card already supplies the box.
   NO box styling on the toggled element: Cookiebot's injected stylesheet sets
   `display: initial` (= inline) on it, and an inline box with a block child
   paints border/background as stray fragments. Never force display on it
   either — the same stylesheet hides it after consent. */
.consent-panel--inline {
  position: static;
  padding: 0;
  border: 0;
  background: none;
}

.consent-panel--inline .consent-panel__inner {
  height: auto;
  padding: 24px;
  border: 1px solid var(--line-card);
  background-color: #fff;
}

.form-card > .consent-panel--inline .consent-panel__inner {
  padding: 0;
  border: 0;
  background: none;
}

.consent-panel__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 32px;
}

.consent-panel__text {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Cookie declaration table (Cookiebot markup). Full container width — the
   table has five columns and was cramped in the 720px story column. */
.cookie-declaration .content {
  max-width: none;
}

.cookie-declaration .CookieDeclaration {
  font-size: 15px;
}

.cookie-declaration .CookieDeclarationType {
  border: 1px solid var(--line-card);
  padding: 20px;
  margin: 20px 0;
}

.cookie-declaration .CookieDeclarationTable {
  width: 100%;
  font-size: 13px;
}

.cookie-declaration .CookieDeclarationTable th,
.cookie-declaration .CookieDeclarationTable td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* ---- faq --------------------------------------------------------------- */
.faq {
  padding: 80px 0;
}

.faq__label {
  margin-bottom: 26px;
}

.faq__item {
  margin-bottom: 10px;
  padding: 18px 22px;
  background-color: #fff;
  border: 1px solid var(--line-card);
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--ink);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::before {
  transform: rotate(90deg);
}

.faq__q:hover,
.faq__q:focus-visible {
  color: var(--brand);
}

.faq__a {
  margin-top: 12px;
  padding-left: 19px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.faq__a > * + * {
  margin-top: 10px;
}

.faq__a a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .faq {
    padding: 56px 0;
  }

  .faq__q {
    font-size: 17px;
  }
}

/* ---- story_feed -------------------------------------------------------- */
.story-featured-wrap {
  padding: 0 0 24px;
}

.story-featured {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.story-featured:hover,
.story-featured:focus-visible {
  opacity: 0.96;
}

.story-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--overlay-rgb), 0.05) 30%, rgba(var(--overlay-rgb), 0.78) 100%);
}

.story-featured__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 48px;
}

.story-featured__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  /* Solid brand blue + white (≈6:1) — the old translucent outline + light-blue
     text was unreadable over busy featured images. */
  background-color: var(--brand);
  border: 1px solid var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.story-featured__title {
  display: block;
  max-width: 14em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.story-grid {
  padding: 50px 0 90px;
}

.story-grid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.story-grid__label {
  margin: 0;
}

.story-grid__link {
  margin-left: auto;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.story-card:hover,
.story-card:focus-visible {
  opacity: 0.92;
}

.story-card__media {
  overflow: hidden;
  background-color: var(--bg-tint);
}

.story-card__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.story-card__title {
  display: block;
}

.story-card__excerpt {
  display: block;
}

@media (max-width: 640px) {
  .story-featured {
    height: 320px;
  }

  .story-featured__content {
    padding-bottom: 28px;
  }

  .story-grid {
    padding: 40px 0 64px;
  }
}

/* ---- pull_quote -------------------------------------------------------- */
.pull-quote-block {
  padding: 0 0 56px;
}

.pull-quote-block .pull-quote {
  margin: 0;
}

.pull-quote-block__cite {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

/* ---- gallery ----------------------------------------------------------- */
.gallery-block {
  padding: 0 0 64px;
}

.gallery-block__item {
  overflow: hidden;
  background-color: var(--bg-tint);
}

.gallery-block__caption {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .gallery-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- video ------------------------------------------------------------ */
.video-block__label {
  margin-bottom: 12px;
}

.video-block__heading {
  margin-bottom: 24px;
}

.video-block__frame {
  position: relative;
  background-color: var(--bg-dark);
}

.video-block__caption {
  margin-top: 12px;
}

/* Full width: centered text, frame capped so it doesn't span the whole 1240px. */
.video-block--full .video-block__label,
.video-block--full .video-block__heading,
.video-block--full .video-block__caption {
  text-align: center;
}

.video-block--full .video-block__frame {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Consent panel over a gated embed: first-party poster under a dark scrim.
   The poster is inside the panel so it disappears with it once consent is
   given (Cookiebot toggles display on the panel itself — layout stays on
   .consent-panel__inner). */
.consent-panel--video {
  overflow: hidden;
  background-color: var(--bg-dark);
}

.consent-panel--video .video-block__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consent-panel--video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(var(--overlay-rgb), 0.6);
}

.consent-panel--video .consent-panel__inner {
  position: relative;
  align-items: center;
  text-align: center;
}

.consent-panel--video .consent-panel__text {
  color: var(--on-dark-hero);
}

/* ---- donation picker (shared: Donate card + Home give band) ------------ */
.donate-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donate-picker__freq {
  display: flex;
  gap: 10px;
}

.donate-picker__freq-btn {
  flex: 1 1 0;
  padding: 13px 0;
  border: 2px solid var(--brand);
  border-radius: 0;
  background-color: #fff;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.donate-picker__freq-btn[aria-pressed="true"] {
  background-color: var(--brand);
  color: #fff;
}

.donate-picker__amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.donate-picker--lg .donate-picker__amounts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donate-picker__btn {
  align-self: flex-start;
}

/* Compact picker (Home band): chips and the Donate button on one line. */
.donate-picker:not(.donate-picker--lg) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.donate-picker:not(.donate-picker--lg) .donate-picker__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donate-picker:not(.donate-picker--lg) .donate-picker__btn {
  align-self: auto;
  margin-left: 4px;
}

.donate-picker:not(.donate-picker--lg) .donate-picker__note {
  flex-basis: 100%;
}

.donate-picker--lg .donate-picker__btn {
  align-self: stretch;
  margin-top: 4px;
}

.donate-picker__btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.donate-picker__note {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .donate-picker__amounts,
  .donate-picker--lg .donate-picker__amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-picker__btn {
    align-self: stretch;
    text-align: center;
  }

  .donate-picker:not(.donate-picker--lg) .donate-picker__btn {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
  }
}

/* ---- donation_embed ---------------------------------------------------- */
.donate-block {
  padding: 80px 0;
}

.donate-block__heading {
  margin-bottom: 14px;
}

.donate-block__intro {
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .donate-block {
    padding: 56px 0;
  }

  .donate-block__card.form-card--lg {
    padding: 24px;
  }
}

/* ---- newsletter_signup ------------------------------------------------- */
.signup-band {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.signup-band--inline .signup-band__inner {
  max-width: calc(640px + var(--content-gutter) * 2);
  margin-left: 0;
}

.signup-band__col {
  min-width: 0;
}

.signup-band__heading {
  margin-bottom: 10px;
}

.signup-band__text {
  max-width: 480px;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.signup-band__form .small a {
  color: var(--brand);
  font-weight: 600;
}

/* HubSpot newsletter form: single row (email + Subscribe) when raw HTML. */
.signup-band__form .hs-form-target form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.signup-band__form .hs-form-target .hs-form-field {
  flex: 1 1 260px;
}

.signup-band__form .hs-form-target .hs-form-field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.signup-band__form .hs-form-target .hs-button {
  align-self: auto;
  padding: 13px 26px;
  border-color: var(--ink);
  background-color: transparent;
  color: var(--ink);
}

.signup-band__form .hs-form-target .hs-button:hover,
.signup-band__form .hs-form-target .hs-button:focus-visible {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 640px) {
  .signup-band {
    padding: 56px 0;
  }
}

/* ---- card_grid --------------------------------------------------------- */
.card-grid {
  padding: 90px 0 60px;
}

.card-grid__label {
  margin-bottom: 26px;
}

/* Cards in a row share the row's height; links sit on the bottom edge. */
.card-grid__grid {
  align-items: stretch;
}

.bordered-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line-card);
}

.bordered-card__title {
  margin-bottom: 12px;
  font-size: 26px;
}

.bordered-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.bordered-card__text > * + * {
  margin-top: 10px;
}

.bordered-card__text a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bordered-card__link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
}

@media (max-width: 640px) {
  .card-grid {
    padding: 56px 0 40px;
  }

  .bordered-card {
    padding: 24px;
  }
}

/* ---- story (single-story.php) ----------------------------------------- */
.story__header {
  padding: 80px 0 48px;
}

.story__meta {
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.32em;
}

.story__meta a {
  color: inherit;
}

.story__meta a:hover,
.story__meta a:focus-visible {
  color: var(--brand-hover);
}

.story__lead {
  margin: 0;
}

/* Inside a story: prose sections have no top padding (the lead image or the
   previous section provides the gap); the first one after the lead gets 56px. */
.story .rich-text,
.story .video-block {
  padding: 0 0 56px;
}

.story__lead + .rich-text,
.story__header + .rich-text,
.story__lead + .video-block,
.story__header + .video-block {
  padding-top: 56px;
}

.story__lead-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.story__lead figcaption {
  padding-top: 14px;
}

.story-footer {
  padding: 56px 0;
}

.story-footer__all {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s ease;
}

.story-footer__all:hover,
.story-footer__all:focus-visible {
  color: var(--on-blue);
}

@media (max-width: 640px) {
  .story__header {
    padding: 56px 0 32px;
  }

  .story__lead-img {
    height: 320px;
  }

  .story .rich-text,
  .story .video-block {
    padding: 0 0 40px;
  }

  .story__lead + .rich-text,
  .story__header + .rich-text,
  .story__lead + .video-block,
  .story__header + .video-block {
    padding-top: 40px;
  }

  .story-footer {
    padding: 48px 0;
  }
}
