/* npo_solutions.css — /drupal-for-non-profits NPO KPI solutions band.
   Values from the spec ## Computed Styles: 1440 = base rules;
   768 -> @media(max-width:991px); 375 -> @media(max-width:479px).
   Run breakpoint boundary set {479,767,991,1919}.

   The heading glyph style and the per-stat glyph styles sit past the capture's
   depth ceiling (spec ## Typography overrides: "no override value can be stated
   without inventing data") — sizes here are derived from the captured wrapper
   heights (heading wrapper 48/80/96px; grid 140/184/444px), not invented from
   the source. Typography via var(--font-*) (framework-11 E1 lock; source
   'Plus Jakarta Sans' already resolves through the frozen tokens).

   All selectors are scoped under the component root
   .c-npo_solutions__section-npo-solutions (rule 9 — the shared canonical
   utility classes c-about_info__*, c-accordion__*, c-cta_banner__*, c-hero__*
   never leak). The CTA composes atom_button (R10); only the box appearance is
   set here (matches the site's consult_expert / cta_banner CTA). */

/* ---------------- Section root (source aside.section_npo-solutions) --------- */
.c-npo_solutions__section-npo-solutions {
  display: block;
  color: var(--color-text-body);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  /* SDC-preview UA body-margin neutraliser (Drupal zeroes body margin on composed pages) */
  margin: -8px;
}
.region-content .c-npo_solutions__section-npo-solutions {
  margin: 0;
  width: 100%;
}

/* ---------------- padding-global + padding-section-medium (path 0.0) --------
   1440: padding 96px 40px. */
.c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-5 {
  display: block;
  padding: 96px var(--space-40);
}

/* ---------------- container-large (path 0.0.0) — capped 1280, centered ------ */
.c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap {
  display: block;
  width: 100%;
  max-width: 1280px; /* source container-large cap; no --container-max token this run */
  margin-inline: auto;
}

/* ---------------- row (path 0.0.0.0) — horizontal flex, centered ------------
   Flips to a vertical stack at the mobile band (see @media 479). */
.c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-7 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-40);
  width: 100%;
}

/* ---------------- banner column (.npo_kpi-banner, path 0.0.0.0.0) -----------
   Vertical stack: heading + grid + CTA, centered, gap 40. */
.c-npo_solutions__section-npo-solutions .c-npo_solutions__npo-kpi-banner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-40);
  width: 100%;
  min-width: 100%;
}

/* ---------------- heading wrapper (.max-width-xlarge, path 0.0.0.0.0.0) -----
   Block, capped 1024, centered by the banner's align-items:center.
   Styles now owned by the lifted atom atom_c_cta_banner_max_width_xlarge
   (css/atoms.css — WS-FE-1 Stage 2); the div is embedded, not declared here. */

/* heading (atom_heading h2) — 1-line at 1440 (wrapper 48px tall) */
.c-npo_solutions__section-npo-solutions .c-atom-heading {
  margin: 0;
  font-family: var(--font-family-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1.5px;
  text-align: center;
  color: var(--color-text-primary);
}

/* ---------------- KPI stat grid (.npo-cards-grid, path 0.0.0.0.0.1) ---------
   3-col at 1440/768, 1-col at 375. Bare 400px tracks captured; rule 18 ->
   repeat(3, minmax(0,1fr)) + min-width:0 (robust to Drupal-seeded content). */
.c-npo_solutions__section-npo-solutions .c-npo_solutions__npo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: space-around;
  align-items: center;
  gap: var(--space-40);
  width: 100%;
  max-width: 1400px;
}
.c-npo_solutions__section-npo-solutions .c-npo_solutions__npo-cards-grid > * {
  min-width: 0;
}

/* individual KPI stat (past capture depth ceiling — component-owned BEM) */
.c-npo_solutions__section-npo-solutions .c-npo_solutions__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}
.c-npo_solutions__section-npo-solutions .c-npo_solutions__stat-value {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -1.5px;
  color: var(--color-text-primary);
}
.c-npo_solutions__section-npo-solutions .c-npo_solutions__stat-label {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

/* ---------------- CTA button wrapper (.interactive-button-wrapper, 0.0.0.0.0.2)
   Fixed 205.047 x 52 flex box at every breakpoint. */
.c-npo_solutions__section-npo-solutions .c-hero__interactive-button-wrapper {
  display: flex;
  gap: var(--space-10);
  width: 205.047px;
  height: 52px;
}
/* CTA appearance — dark filled square button (matches the site's consult_expert
   CTA); atom_button (R10) owns the theme's ONE interactive-effect rule. */
.c-npo_solutions__section-npo-solutions .c-atom-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px 28px;
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--color-text-inverse);
  background-color: var(--color-bg-dark);
}

/* ============================ Tablet: 768 band ==============================
   Container narrows to 688; padding 64px 40px; row gap 40 -> 10; the KPI grid
   stays 3-across (only the columns narrow). Heading scales to fit the 80px
   wrapper (2 lines). */
@media (max-width: 991px) {
  .c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-5 {
    padding: var(--space-64) var(--space-40);
  }
  .c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-7 {
    gap: var(--space-10);
  }
  .c-npo_solutions__section-npo-solutions .c-atom-heading {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
  }
  .c-npo_solutions__section-npo-solutions .c-npo_solutions__stat-value {
    font-size: 44px;
    line-height: 52px;
  }
}

/* ============================ Mobile: 375 band ==============================
   The row flips from horizontal flex to a vertical stack (both axes centered),
   and the KPI grid collapses from 3 columns to 1 (gap 24). Padding 48px 16px.
   Heading scales to fit the 96px wrapper (3 lines). */
@media (max-width: 479px) {
  .c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-5 {
    padding: 48px var(--space-16);
  }
  .c-npo_solutions__section-npo-solutions .c-about_info__heading-wrap-7 {
    flex-direction: column;
    align-items: center;
    gap: var(--space-20);
  }
  .c-npo_solutions__section-npo-solutions .c-npo_solutions__npo-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
  }
  .c-npo_solutions__section-npo-solutions .c-atom-heading {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }
  .c-npo_solutions__section-npo-solutions .c-npo_solutions__stat-value {
    font-size: 40px;
    line-height: 48px;
  }
}
