/* The block-pattern layer: everything the 26 patterns/ files render.
 *
 * PLUGIN-AWARE SELECTORS. .entry-content's layout rules name
 * .testimonial-carousel and .stories-page-section, which belong to
 * bundles-content. The :has() targets the user-authored Columns block
 * WRAPPING the block, which a render callback has no handle on, so this
 * cannot be inverted into the plugin. Renaming either class there has a
 * second site here.
 *
 * Split out of assets/css/main.css. Every rule below is verbatim from
 * that file and appears in its original relative order.
 */
/* ─── Shared Sections ────────────────────────────────────────────────────── */

/* Info card (address/location callout) — all styling lives on the live
   .info-card.wp-block-group rule below; this class is never rendered
   without wp-block-group alongside it. */
.info-card__body  { font: 400 15px/1.5 var(--font-sans); color: var(--brown-med); }

/* Alert — background/border-radius/padding live on .alert-teal.wp-block-group;
   font/color are the only properties this bare selector still contributes. */
.alert-teal {
  font: 500 15px/1.5 var(--font-sans);
  color: var(--teal);
}

/* CTA banner: .banner (shape) + .fill-teal/.fill-red (color) — padding lives
   on .cta-banner.wp-block-group (always paired) */

/* Donate strip (red banner): .banner (shape) + .fill-red (color) — vertical
   spacing lives entirely on .donate-strip.wp-block-group's own padding; no
   margin here to avoid double-stacking with it. */
.donate-strip__inner {
  padding: 44px var(--pad-h);
}
/* Impact band (legacy CSS-grid layout — superseded by the block variant,
   .impact-band.wp-block-group, which every current pattern uses; this
   selector's shared class name still matches that markup though, so it
   must not declare its own border — the universal separator already
   draws one and this border-bottom was doubling it up). */
.impact-band {
  background: var(--white);
  padding: var(--pad-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
}
/* Two-col section */
.two-col-section {
  padding: var(--pad-v) var(--pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-col);
  align-items: center;
}
.two-col-section--bordered {
  background: var(--white);
}
.two-col-section--reversed .two-col-section__image { order: -1; }

.two-col-section__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.two-col-section__image {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 340px;
}
.two-col-section__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ways grid */
.ways-section {
  padding: var(--pad-v) var(--pad-h);
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}
.ways-card {
  border-radius: var(--radius-card);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ways-card p      { flex: 1; }

/* Testimonial */
.testimonial {
  margin: 0;
  padding: 0;
}
.testimonial p {
  font: 400 28px/1.45 var(--font-serif);
  color: var(--brown-dark);
  font-style: italic;
}
.testimonial footer {
  font: 700 15px var(--font-sans);
  color: var(--brown-muted);
  margin-top: 16px;
}

/* Template-generated page title (page.php — all interior pages).
   It renders as a sibling of .entry-content, not a child, so it falls
   outside the "universal band separator" rule that draws a border
   between full-bleed sections inside .entry-content — give it its own
   border-bottom so the divider below the hero is consistent everywhere. */
.page-title-header {
  background: var(--cream);
  padding: var(--pad-v-hero-top) var(--pad-h) var(--pad-v-hero-bottom);
}
.page-title-header h1 { margin-bottom: 18px; }
.page-subtitle {
  margin: 0;
  max-width: 880px;
  font: 400 20px/1.6 var(--font-sans);
  color: var(--brown-med);
}

/* Page intro (subtitle + description block — used below the template title).
   Padding lives on .page-intro.wp-block-group (always paired); this bare
   selector only ever contributed padding, which was fully overridden. */
.page-intro h2 { margin-bottom: 18px; }
.page-intro--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-col);
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 56px var(--pad-h) 40px;
}
.page-intro__text { display: flex; flex-direction: column; gap: 16px; }
.page-intro__image {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 360px;
}
.page-intro__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero.wp-block-columns {
  display: grid !important;
  grid-template-columns: 2fr 3fr !important;
  gap: 0 !important;
  align-items: stretch;
  flex-wrap: unset;
  min-height: 560px;
  max-width: var(--row-content-width);
  margin: 0 auto;
}
.hero .wp-block-column {
  flex-basis: unset !important;
  flex: unset !important;
  min-width: 0;
}

/* ─── Get Diapers Hero ──────────────────────────────────────────────────── */
.get-diapers-hero.wp-block-group {
  background: var(--cream);
  padding: var(--pad-v-hero-top) var(--pad-h) var(--pad-v-hero-bottom) !important;
  /* No border-bottom here — the universal full-bleed sibling separator
     (.entry-content > .wp-block-group + .wp-block-group) already draws it. */
}

.get-diapers-hero__inner.wp-block-columns {
  gap: 48px !important;
  align-items: stretch !important;
}

.get-diapers-hero__content.wp-block-column {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}

.get-diapers-hero__content h1 {
  margin: 0 !important;
}

.get-diapers-hero__lead {
  font: 400 18px/1.55 var(--font-sans) !important;
  color: var(--brown-med) !important;
  margin: 0 !important;
}

.get-diapers-hero__spanish {
  background: var(--pastel-teal-bg);
  border-radius: var(--radius-card-sm);
  padding: 14px 20px;
  font: 500 15px/1.5 var(--font-sans);
  color: var(--teal);
}

.get-diapers-hero__spanish a {
  color: var(--teal);
}

.get-diapers-hero__img-col.wp-block-column {
  display: flex !important;
  flex-direction: column;
  min-height: 340px;
}

.get-diapers-hero__img.wp-block-image {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.get-diapers-hero__img img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

/* ─── Partners Page ──────────────────────────────────────────────────────── */
.partners-section {
  padding: 0 var(--pad-h) var(--pad-h);
}

.partners-grid {
  display: grid;
  gap: 16px;
}

/* ─── Community Partners Page (new design) ───────────────────────────────── */
.cp-section {
  padding: 48px var(--pad-h);
}
.cp-section--cream { background: var(--cream); }

.cp-section__label {
  font: 700 13px/1 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-muted);
  margin: 0 0 16px;
}

.cp-grid {
  display: grid;
  gap: 16px;
}
.cp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cp-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  padding: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .15s;
}
a.cp-card:hover { border-color: var(--teal); }
.cp-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* .banner + .fill-red supply shape/color; this rule is just the card's own padding/margin */
.cp-cta {
  padding: 44px 48px;
  margin: 56px 0 72px;
}
.cp-cta__text { flex: 1; }
.cp-cta__heading {
  font: 600 30px/1.2 var(--font-serif);
  color: var(--white);
  margin: 0;
}
.cp-cta__sub {
  font: 400 16px/1.5 var(--font-sans);
  color: rgba(255,255,255,.8);
  margin: 6px 0 0;
}
.cp-cta__btn {
  font: 800 16px/1 var(--font-sans);
  color: var(--teal);
  background: var(--pastel-yellow-mid);
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  display: inline-block;
}
.cp-cta__btn:hover { opacity: .88; color: var(--teal); }

@media (max-width: 1100px) {
  .cp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cp-cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 28px; }
}
@media (max-width: 540px) {
  .cp-grid--4,
  .cp-grid--3 { grid-template-columns: 1fr; }
}

/* ─── Page-level defaults ────────────────────────────────────────────────── */
/* A plain full-bleed row — var(--pad-h) alone already caps the effective
   content width at --row-content-width as the viewport grows, same as every
   other full-bleed section on the site (.events-list-section, .section,
   etc.). It previously also carried a fixed max-width: 880px, which fought
   var(--pad-h) instead of matching it — the two together shrank the column
   the wider the screen got instead of letting it flex like page content
   does everywhere else. Components inside that want a narrower read (e.g.
   .event-meta-card) set their own max-width rather than this row doing it. */
.page-content--default .container {
  padding: 64px var(--pad-h) var(--pad-v);
}
.page-hero { margin-bottom: 32px; }
.page-hero__eyebrow { font: 400 14px var(--font-sans); color: var(--brown-muted); margin-bottom: 8px; }
.page-hero__title { font: 600 46px var(--font-serif); color: var(--brown-dark); }

/* Row it sits in now flexes full page-content width (see .container above);
   cap the actual text at a readable measure instead of letting paragraphs
   stretch edge to edge, matching the 880px reading width used elsewhere
   (.page-subtitle, .why-diapers-hero__lead). */
.wysiwyg { max-width: 880px; }
.wysiwyg p  { margin-bottom: 18px; }
.wysiwyg h2 { margin: 32px 0 14px; }
@media (max-width: 1100px) {
  .impact-band { grid-template-columns: repeat(2, 1fr); }
}



@media (max-width: 860px) {
  /* Hero stays two-up as long as it can hold together (48px heading from
     1100px down); only stacks here, not at 1100, so it keeps scaling
     instead of wrapping to one column early. */
  .hero.wp-block-columns { grid-template-columns: 1fr !important; }

  .two-col-section,
  .page-intro--split {
    grid-template-columns: 1fr;
  }
  .two-col-section--reversed .two-col-section__image { order: 0; }

  .ways-grid { grid-template-columns: 1fr; }
  .get-diapers-hero.wp-block-group { padding: var(--mob-v-hero-top) var(--mob-h) var(--mob-v-hero-bottom) !important; }
  .get-diapers-hero__inner.wp-block-columns { gap: 32px !important; flex-direction: column !important; }
  /* Decorative photo — dropped on mobile so the address and hours are reachable
     without scrolling past a full-width image. !important is needed to match
     the base rule's own display: flex !important. */
  .get-diapers-hero__img-col.wp-block-column { display: none !important; }



  .page-title-header { padding: var(--mob-v-hero-top) var(--mob-h) var(--mob-v-hero-bottom); }
  .page-subtitle { font-size: 17px; }
  /* .stories-section belongs to bundles-content, but the other five are
     patterns, so the rule lives here and always loads. Filed with the
     testimonials archive it would only apply on the Stories page, and every
     other section would lose its mobile gutter everywhere else. */
  .donate-strip,
  .partners-section,
  .page-intro,
  .two-col-section,
  .ways-section,
  .stories-section { padding-left: var(--mob-h) !important; padding-right: var(--mob-h) !important; }
  .entry-content { grid-template-columns: var(--mob-h) 1fr var(--mob-h); }
}

@media (max-width: 540px) {
  .impact-band { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════════════════
 * Block Editor Pattern Styles
 * Applied when sections are built with Gutenberg block patterns rather
 * than legacy PHP templates. The wp:group className attribute maps each
 * block's wrapper div to these selectors.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Block editor resets ──────────────────────────────────────────────────── */
.wp-block-group { margin: 0; }
.wp-block-columns { margin-bottom: 0 !important; }
.wp-block-column { margin-top: 0 !important; }
.site-content .wp-block-heading { margin: 0; }
.site-content p.wp-block-paragraph { margin-bottom: 0; }
.site-content figure { margin: 0; }

/* ── Page content layout system ──────────────────────────────────────────────
 * .entry-content wraps the_content() in page.php and front-page.php.
 * It is the SINGLE source of horizontal constraint for all page content.
 *
 * Three-column grid: [gutter] [content] [gutter].
 *   Constrained content (default): grid-column 2 — middle track only.
 *   Full-bleed sections:           grid-column 1 / -1 — all three tracks.
 *
 * Rule 1  All direct children are constrained by default (grid-column: 2).
 * Rule 2  Pattern sections (wp-block-group), hand-authored PHP blocks marked
 *         .full-bleed, and the carousel columns block are full-bleed
 *         (grid-column: 1 / -1). Their own internal padding re-establishes
 *         the visual gutter.
 * Rule 3  User-added layout columns get vertical breathing room only.
 * Rule 4  Custom sections nested inside layout columns defer all spacing
 *         to their parent — no independent padding.
 *
 * .full-bleed is the hand-authored-PHP equivalent of .wp-block-group: every
 * top-level element in this file is a <div> (matching what the block editor
 * itself outputs — its Group block defaults to <div>, and no pattern here
 * overrides that), so full-bleed detection can't rely on a <section> tag;
 * it needs an explicit marker instead.
 * ─────────────────────────────────────────────────────────────────────────── */
.entry-content {
  display: grid;
  grid-template-columns: var(--pad-h) 1fr var(--pad-h);
}
.entry-content > * {
  grid-column: 2;
}
/* Rule 2. Stays HERE, not in bundles-content, even though one selector names
   .testimonial-carousel: this is the page layout system and it has to apply on
   every page. Filed with the carousel it would only load where that block is,
   and every full-bleed section on every other page would sit in the middle
   grid track with a visible gutter down both sides. */
.entry-content > .wp-block-group,
.entry-content > .full-bleed,
.entry-content > .wp-block-columns:has(.testimonial-carousel) {
  grid-column: 1 / -1;
}
.entry-content > .wp-block-columns {
  padding-top: var(--pad-v);
  padding-bottom: var(--pad-v);
}

/* Universal band separator — border between consecutive full-bleed sections.
   Covers the testimonial-carousel columns wrapper's leading edge too — it's
   full-bleed like any other section and needs the same divider from
   whatever precedes it. Its trailing edge is deliberately excluded: the
   carousel and the donate-strip right after it are meant to read as one
   continuous cream band, not two separate sections (see .donate-strip
   below), so no divider belongs between them.

   Here rather than in bundles-content for the same reason as Rule 2 above. */
.entry-content > .wp-block-group + .wp-block-group,
.entry-content > .full-bleed + .wp-block-group,
.entry-content > .wp-block-group + .full-bleed,
.entry-content > .wp-block-group + .wp-block-columns:has(.testimonial-carousel) {
  border-top: 1px solid var(--border);
}

/* The same divider, for a bare banner that ends a page — the Sponsors page's
   "Become a corporate sponsor" card, which is raw HTML rather than a group and
   so matches nothing above. It has no background of its own beyond the card, so
   what a reader sees is the page's cream showing through: a final cream band
   that ran straight into the white section above it with no line between.

   Drawn on the TRAILING edge of that section rather than on the banner's own
   top edge, which is the whole reason this can't just be another selector in
   the list above: the banner carries a 56px top margin, so a border-top on it
   would land 56px into the cream rather than on the boundary the eye reads.

   :not(.wp-block-group) is load-bearing. The teal CTA pattern is a group that
   also carries .banner, and it already takes its divider from the rule above —
   without the exclusion that boundary would get a line from both rules, 1px on
   each side of it, and read as a 2px double rule on every page using it. */
.entry-content > .wp-block-group:has(+ .banner:not(.wp-block-group)) {
  border-bottom: 1px solid var(--border);
}

/* Fix cover block background for full-width hero */
.wp-block-cover.site-hero {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  background-color: var(--teal) !important; /* fallback before staff uploads photo */
}
.wp-block-cover.site-hero .wp-block-cover__inner-container {
  max-width: 760px;
  width: 90%;
  margin: 0 auto;
}
.wp-block-cover.site-hero .wp-block-heading,
.wp-block-cover.site-hero p { color: var(--white) !important; }
.wp-block-cover.site-hero .wp-block-buttons { justify-content: center; }

/* ── Section lead paragraph ───────────────────────────────────────────────── */
.section-lead {
  font: 400 19px/1.6 var(--font-sans);
  color: var(--brown-med);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Section heading block ────────────────────────────────────────────────── */
.section-heading-block {
  /* Full-bleed per Rule 2 — must self-supply padding like every other
     top-level section, or it butts directly against its neighbors. */
  padding: var(--pad-v) var(--pad-h);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Impact band — block pattern variant ─────────────────────────────────── */
/* The legacy .impact-band uses CSS grid directly. The block variant wraps
   the grid inside a wp:columns block; this container holds the bg/border.
   Border separators come from the universal .entry-content sibling rule. */
.impact-band.wp-block-group {
  display: block; /* override legacy grid; columns handles layout */
  /* Vertical padding is fixed at the gutter floor — --pad-h grows with
     viewport width to cap content at --row-content-width, and reusing
     it here too would balloon top/bottom padding on very wide screens. */
  padding: var(--row-gutter) var(--pad-h);
  background: var(--white);
}
.impact-band .wp-block-columns {
  gap: var(--gap-grid);
  align-items: stretch;
}
.impact-band .wp-block-column {
  /* prevent Gutenberg min-width fighting our grid */
  min-width: 0;
}

.impact-card {
  border-radius: var(--radius-card);
  padding: var(--pad-card) var(--pad-card-h);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Number color comes from a .text-* utility on the element itself (see patterns) */
.impact-card__number {
  font: 600 46px/1 var(--font-serif) !important;
  margin: 0 !important;
  white-space: nowrap; /* "5,000+" wrapping mid-number reads as broken, not responsive */
}

.impact-card__label {
  font: 500 15px/1.4 var(--font-sans) !important;
  color: var(--brown-med) !important;
  margin: 0 !important;
}

/* ── Donate strip — block pattern variant ─────────────────────────────────
   No top padding and cream background: this sits directly beneath the
   testimonial-carousel section and is meant to continue its cream band
   with no seam, not read as its own bordered section. */
.donate-strip.wp-block-group {
  background: var(--cream);
  padding: 0 var(--pad-h) var(--pad-v) !important;
}
/* .banner + .fill-red supply shape/color; only the !important padding override is needed here */
.donate-strip .donate-strip__inner.wp-block-group {
  padding: 44px var(--pad-h) !important;
}
.donate-strip__text.wp-block-group {
  flex: 1;
  background: transparent;
  padding: 0 !important;
}
.donate-strip__text .wp-block-heading {
  color: var(--white) !important;
  font-size: 32px !important;
  margin-bottom: 8px !important;
}
.donate-strip__text .wp-block-paragraph {
  color: rgba(255,255,255,.92) !important;
  line-height: 1.5 !important;
}
.donate-strip .wp-block-buttons { flex-shrink: 0; }

/* ── CTA banner — block pattern: .banner (shape) + .fill-teal/.fill-red (color)
   + .section (padding rhythm, see patterns) ─────────────────────────────── */
.cta-banner.wp-block-group {
  text-align: center;
}
.cta-banner.wp-block-group .wp-block-buttons { justify-content: center; }
.cta-banner.wp-block-group .wp-block-heading  { color: var(--white) !important; }
.cta-banner.wp-block-group .wp-block-paragraph { color: rgba(255,255,255,.9) !important; }

/* ── Two-col section — block pattern ─────────────────────────────────────── */
/* The legacy .two-col-section uses display:grid directly.
   When the wp:group wrapper carries this class, block the grid
   and let the nested wp:columns handle the two-column layout. */
/* .section + .section--cream (shape/color) — this rule blocks the legacy grid */
.two-col-section.wp-block-group {
  display: block !important;
}
.two-col-section__inner.wp-block-columns { gap: var(--gap-col); align-items: stretch; }
/* Right column: flex so figure can grow to full column height */
.two-col-section__inner > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.two-col-section__inner > .wp-block-column:last-child > .wp-block-image.two-col-section__img,
.two-col-section__inner > .wp-block-column:last-child > .two-col-section__img {
  flex: 1;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.two-col-section.wp-block-group .two-col-section__img img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* Left text column: flex layout so gap is 18px between each block, matching design */
.two-col-section__inner > .wp-block-column:first-child {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
}
.two-col-section__inner > .wp-block-column:first-child > * { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Body paragraph */
.two-col-section__inner > .wp-block-column > .wp-block-paragraph:first-of-type {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--brown-med) !important;
}
/* Footnote paragraph */
.two-col-section__inner > .wp-block-column > .wp-block-paragraph:last-of-type,
.two-col-section__inner > .wp-block-column > .two-col-footnote {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--brown-muted) !important;
}

/* ── Ways section — block pattern ────────────────────────────────────────── */
/* .section + .section--white (shape/color) */
.ways-section.wp-block-group > .wp-block-heading {
  margin-bottom: 8px !important;
}
.ways-section.wp-block-group > .section-lead {
  margin-bottom: 32px !important;
  margin-left: 0 !important;
  max-width: none !important;
}
.ways-section .ways-grid.wp-block-columns {
  gap: var(--gap-grid);
  align-items: stretch;
}

/* Ways card color variants */
.ways-card__title { font: 600 24px var(--font-serif); color: var(--brown-dark); margin: 0 !important; }
.ways-card__body  { font: 400 16px/1.6 var(--font-sans); color: var(--brown-med); flex: 1; margin: 0 !important; }

/* ── Testimonial — block pattern ─────────────────────────────────────────── */
/* .testimonial-section is .section + .section--cream (shape/color) */
.testimonial-split.wp-block-columns {
  gap: var(--gap-col);
  align-items: center;
}
.testimonial-split__photo img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}
.testimonial__quote {
  font: 400 28px/1.45 var(--font-serif) !important;
  color: var(--brown-dark) !important;
  font-style: italic;
  margin: 0 0 16px !important;
}
.testimonial__attribution {
  font: 700 15px var(--font-sans) !important;
  color: var(--brown-muted) !important;
  margin: 0 0 12px !important;
}
.testimonial__link {
  font: 600 15px var(--font-sans) !important;
  margin: 0 !important;
}
.testimonial__link a { color: var(--red) !important; }

/* Link injected under the homepage image column */
.wp-block-column .testimonial__link {
  margin-top: 14px !important;
  text-align: center;
}

/* ── Story grid — block pattern ──────────────────────────────────────────── */
.story-card {
  border-radius: var(--radius-card);
  padding: var(--pad-card);
}
.story-card__quote {
  font: 400 18px/1.6 var(--font-serif) !important;
  font-style: italic;
  color: var(--brown-dark) !important;
  margin: 0 0 10px !important;
}
.story-card__name {
  font: 700 14px var(--font-sans) !important;
  color: var(--brown-muted) !important;
  margin: 0 !important;
}
.story-grid.wp-block-columns { align-items: stretch; gap: var(--gap-grid); }

/* ── Timeline — block pattern ────────────────────────────────────────────── */
/* .timeline-section is .section + .section--white (shape/color) */
.timeline-grid.wp-block-columns { gap: 32px; }
.timeline-step {
  border-top: 5px solid var(--border);
  padding: 20px 0 0;
}
.timeline-step__heading { font: 600 18px var(--font-serif); color: var(--brown-dark); margin: 0 0 8px !important; }
.timeline-step__desc    { font: 400 14px/1.5 var(--font-sans); color: var(--brown-med); margin: 0 !important; }

/* ── Info card — block pattern: .accent-card + .edge-teal (shape/color) ──── */
.info-card.wp-block-group {
  padding: var(--pad-card) var(--pad-card-h) !important;
  display: flex !important;
  margin: 0 !important;
}
.info-card__heading { font: 700 16px var(--font-serif) !important; color: var(--teal) !important; margin: 0 !important; }
.info-card__body    { font: 400 15px/1.5 var(--font-sans) !important; color: var(--brown-med) !important; margin: 0 !important; }
.info-card.wp-block-group a { color: var(--red) !important; font: 600 14px var(--font-sans) !important; text-decoration: none !important; }

/* ── Location card — .accent-card + .edge-teal (shape/color); the standard
   "where + when + what's in stock" card, with Get Directions / Call actions.
   Used on Home, the Get Diapers hero, and Contact's Visit Us. Overrides
   .accent-card's own gap since spacing here is tuned per-child instead. */
.location-card.accent-card { gap: 0; }
.location-card__name {
  font: 700 21px var(--font-serif) !important;
  color: var(--teal) !important;
  margin: 0 0 8px !important;
}
.location-card__facts {
  font: 400 14px/1.55 var(--font-sans);
  color: var(--brown-med);
  margin: 0 0 10px;
}
.location-card__facts strong { color: var(--brown-dark); font-weight: 600; }
.location-card__address {
  font: 400 14.5px/1.5 var(--font-sans);
  color: var(--brown-med);
  margin: 0 0 16px;
}
.location-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* .btn-primary / .btn-secondary supply color + hover; only size is scoped
   down here to fit a compact card instead of a full-width CTA. */
.location-card__actions a.btn-primary,
.location-card__actions a.btn-secondary {
  padding: 10px 18px;
  font-size: 13px;
}
/* Optional trailing line for supplementary contact facts that don't fit the
   distribution-day story (e.g. office hours, a general email) — used on
   Contact's Visit Us card only; omit the element where it doesn't apply. */
.location-card__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font: 400 13px/1.5 var(--font-sans);
  color: var(--brown-muted);
}
.location-card__meta a { color: var(--brown-muted); text-decoration: underline; }

/* ── Alert / notice — block pattern: .notice + .tint-teal (shape/color) ──── */
.alert-teal.wp-block-group {
  padding: var(--pad-card) var(--pad-card-h) !important;
}
.alert-teal__heading {
  font-weight: 700 !important;
  font-size: 16px !important;
  margin: 0 0 6px !important;
}

/* ── Page intro — block pattern ──────────────────────────────────────────── */
.page-intro.wp-block-group {
  background: var(--cream);
  padding: var(--pad-v-hero-top) var(--pad-h) var(--pad-v-hero-bottom) !important;
  text-align: center;
}
.page-intro.wp-block-group .wp-block-heading {
  margin-bottom: 18px !important;
}

/* ── Split hero ───────────────────────────────────────────────────────────
 * A full-bleed hero (title lives inside it) instead of the generic
 * template title-header — page.php's title-header renders as a separate
 * element outside .entry-content, which can't share a continuous element
 * with content below it. Building the title into this hero directly lets
 * the four-color divider span the section's whole height in one piece,
 * same technique as .hero__slideshow::before on the homepage — just as a
 * seam between two panels instead of a column edge. _hide_page_title is
 * set wherever this is used (Get in Touch/post 52, Partner Order
 * Form/post 9) so the generic banner doesn't also render.
 * ─────────────────────────────────────────────────────────────────────── */
.split-hero.wp-block-group { padding: 0 !important; }

.split-hero__inner.wp-block-columns {
  position: relative;
  gap: 0;
  align-items: stretch;
}
/* Same gradient-strip technique as .hero__slideshow::before and the mobile
   nav's accent bar — the site's four-color motif, drawn as one continuous
   overlay spanning the row's full stretched height (title included),
   rather than a boxed-in flex sibling that could only span the row. */
.split-hero__inner.wp-block-columns::before {
  content: '';
  position: absolute;
  /* Matches the left column's width — set via inline custom property per
     instance (e.g. style="--split-position:30%"), defaulting to 40% for
     the standard split. */
  left: var(--split-position, 40%);
  margin-left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to bottom, var(--spectrum-stops));
}

.split-panel { padding: var(--pad-v-hero-top) 32px var(--pad-v-hero-bottom); }
.split-panel--cream { background: var(--cream); }
.split-panel--white { background: var(--white); }
/* Outer edges use the site's standard page gutter; the inner edges (next
   to the divider stripe) keep the tighter 32px so the seam doesn't get an
   oversized gap of its own. */
@media (min-width: 861px) {
  .split-panel:first-child { padding-left: var(--pad-h); }
  .split-panel:last-child  { padding-right: var(--pad-h); }
}

.split-hero__title { margin: 0 0 12px !important; }
.split-hero__lead {
  font: 400 18px/1.55 var(--font-sans) !important;
  color: var(--brown-med) !important;
  margin: 0 0 32px !important;
}

/* The narrower panel's secondary content (e.g. Visit Us + Follow Along on
   Get in Touch) stays pinned while the longer form scrolls past it. This
   lives on an inner wrapper, not the column itself — the column needs to
   stay stretched to the row's full height for the panel fill; sticky
   positioning would pin it to its own (shorter) content height instead.
   Desktop-only, matching the ≤860px stacking breakpoint below.
   Deliberately excludes the title/lead above it, which scrolls away
   normally like any page heading. */
@media (min-width: 861px) {
  .split-sidebar-sticky { position: sticky; top: 126px; }
}
.split-sidebar .location-card + h3 { margin-top: 24px; }

/* ── Spacing the editor used to carry inline ─────────────────────────────────
 * theme.json turns the block editor's Padding and Margin controls off
 * (settings.spacing). A value typed there writes an inline style, which
 * outranks every rule in this file and is invisible from the front end — so
 * "the gap is wrong" turns into a hunt through post_content rather than a look
 * at the stylesheet. Four such values existed across the whole site; all four
 * were off-scale one-offs (36px and 12px are not on the xs–xl scale).
 *
 * The two that were doing real work move here as modifiers, keyed to a class on
 * the block rather than to a page, so they are reviewable, reusable, and don't
 * change any other page that shares the same shell.
 * ─────────────────────────────────────────────────────────────────────────── */

/* A sidebar stack holding several sections of its own — Get in Touch's Visit Us
 * card, Follow Along, and the newsletter button — reads as a region apart from
 * the lead paragraph above it. The single-purpose sticky blocks in the Partner
 * Portal and Partner Order Form patterns sit directly under their lead on
 * purpose and are deliberately not given this break. */
.split-sidebar-sticky--sections { margin-top: 36px; }
.split-sidebar .split-sidebar-sticky--sections .location-card + h3 { margin-top: 36px; }

/* Room under the final row of a band that ends in call-to-action buttons — Get
 * Involved's "Know what's happening" — which otherwise sit hard against the
 * bottom edge of the band. Applied to the columns rather than to the .section
 * itself, whose padding is !important in foundation.css and would have to be
 * restated in full (including its mobile override) to add to it. */
.section > .wp-block-columns.columns--tail-gap { padding-bottom: 36px; }

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card-sm);
  color: var(--teal);
  transition: background .15s, color .15s, border-color .15s;
}
.contact-social-links a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.contact-social-links svg { width: 20px; height: 20px; display: block; }

@media (max-width: 860px) {
  .split-hero__inner.wp-block-columns::before { display: none; }
  .split-panel { padding: 32px var(--mob-h); }
}

/* ── Other ways to get diapers ────────────────────────────────────────────
 * One block. Every partner is a pill and colour carries the category, so the
 * three groups read as a single compact flow rather than three cards.
 *
 * Tinted fills with matching dark text, following the same convention as
 * .lf-tag and the detail badges — solid dark pills at this quantity read as
 * a wall of colour and pull focus off the finder above.
 *
 * Each category is its own wp:list so items stay editable and inherit the
 * right colour automatically. The lists are display:contents, which lets all
 * three sets of pills wrap together as one run inside .other-ways__pillbox.
 * ─────────────────────────────────────────────────────────────────────────── */
.other-ways { margin-top: 56px; }
/* !important on these two: .site-content .wp-block-heading and
   .site-content p.wp-block-paragraph zero the block editor's margins at a
   higher specificity. Same approach the programs and team sections take. */
.other-ways > .wp-block-heading { margin-bottom: 16px !important; }

.other-ways__legend.wp-block-paragraph {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 20px !important;
}
.ow-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px var(--font-sans);
  color: var(--brown-muted);
}
/* Swatch mirrors the pill exactly — same tinted fill, same mid-tone border,
   at 21px. Kept deliberately soft; a saturated ring makes it read as a
   control rather than a colour key. */
.ow-key::before {
  content: '';
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid;
  flex: 0 0 auto;
}
.ow-key--case::before {
  background: var(--pastel-teal-bg);
  border-color: var(--pastel-teal-mid);
}
.ow-key--school::before {
  background: var(--pastel-yellow-bg);
  border-color: var(--pastel-yellow-mid);
}
.ow-key--referral::before {
  background: var(--pastel-coral-bg);
  border-color: var(--pastel-coral-mid);
}

.other-ways__pillbox {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
/* Dissolves the three lists so their items share one wrapping run */
.other-ways__pills.wp-block-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
.other-ways__pills li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 12.5px/1.4 var(--font-sans);
}
.other-ways__pills--case li {
  background: var(--pastel-teal-bg);
  border-color: var(--pastel-teal-mid);
  color: var(--teal);
}
.other-ways__pills--school li {
  background: var(--pastel-yellow-bg);
  border-color: var(--pastel-yellow-mid);
  color: var(--yellow-dark);
}
.other-ways__pills--referral li {
  background: var(--pastel-coral-bg);
  border-color: var(--pastel-coral-mid);
  color: var(--red-dark);
}

/* Linked pills: anchor supplies the padding so the whole pill is the hit area,
   and a trailing glyph marks which pills actually go somewhere. */
.other-ways__pills li:has(a) { padding: 0; transition: background .15s, border-color .15s, color .15s; }
.other-ways__pills li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: inherit;
  text-decoration: none;
}
.other-ways__pills li a::after {
  content: '\2197';
  font-size: 11px;
  opacity: .7;
}
/* Linked pills invert on hover — the tint becomes the fill and the text goes
   white. Reads as an affordance without link underlines, which looked like
   stray emphasis inside a pill. focus-within gives keyboard users the same
   signal as the pointer. */

.other-ways__pills--case li:has(a):hover,
.other-ways__pills--case li:has(a):focus-within {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.other-ways__pills--school li:has(a):hover,
.other-ways__pills--school li:has(a):focus-within {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--white);
}
.other-ways__pills--referral li:has(a):hover,
.other-ways__pills--referral li:has(a):focus-within {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.other-ways__pills li a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.other-ways__note {
  margin-top: 22px;
  font: 400 13px/1.6 var(--font-sans);
  color: var(--brown-muted);
}

/* ── WP block button reset + variant wiring ──────────────────────────────── */
/*
 * is-style-fill / is-style-outline are the two choices in the Block > Styles
 * panel — wire them to the brand's primary and secondary button looks so editors
 * don't need to add custom classes for standard buttons.
 * Special-context classes (btn-primary-red, btn-primary-white, btn-outline-white)
 * override these where the design calls for it.
 */
.wp-block-button .wp-block-button__link {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 15px 28px !important;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* Fill hover — forces white text; theme.json sets bg but a:hover from elements.link bleeds in */
.wp-block-button.is-style-fill .wp-block-button__link:hover        { background-color: var(--red) !important; color: var(--white) !important; opacity: 1 !important; }

/* Outline → teal secondary (fill default is handled by theme.json elements.button) */
.wp-block-button.is-style-outline .wp-block-button__link           { background: transparent !important; color: var(--teal) !important; border: 2px solid var(--teal) !important; padding: 13px 26px !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover     { background: transparent !important; color: var(--red) !important; border-color: var(--red) !important; opacity: 1 !important; }

/* Special-context overrides */
.btn-primary-red .wp-block-button__link                            { background: var(--red) !important; color: var(--white) !important; border: none !important; }
.btn-primary-red .wp-block-button__link:hover                      { background: var(--red-dark) !important; color: var(--white) !important; opacity: 1 !important; }
.btn-primary-white .wp-block-button__link                          { background: var(--white) !important; color: var(--teal) !important; border: none !important; font-weight: 800 !important; }
.btn-primary-white-red .wp-block-button__link                      { background: var(--white) !important; color: var(--red) !important; border: none !important; font-weight: 800 !important; }
.btn-outline-white .wp-block-button__link                          { background: transparent !important; color: var(--white) !important; border: 2px solid rgba(255,255,255,.7) !important; padding: 13px 26px !important; }
.btn-outline-white .wp-block-button__link:hover                    { background: rgba(255,255,255,.12) !important; border-color: var(--white) !important; opacity: 1 !important; }

/* Backward-compat: existing posts that still carry btn-primary / btn-secondary */
.btn-primary .wp-block-button__link                                { background: var(--teal) !important; color: var(--white) !important; border: none !important; }
.btn-primary .wp-block-button__link:hover                          { background: var(--red) !important; color: var(--white) !important; opacity: 1 !important; }
.btn-secondary .wp-block-button__link                              { background: transparent !important; color: var(--teal) !important; border: 2px solid var(--teal) !important; padding: 13px 26px !important; }
.btn-secondary .wp-block-button__link:hover                        { color: var(--red) !important; border-color: var(--red) !important; opacity: 1 !important; }

/* ── Partners section — block pattern ────────────────────────────────────── */
/* .partners-section is .section + .section--cream (shape/color) */

/* ── Placeholder note for Gravity Forms insertion prompt ─────────────────── */
.placeholder-note {
  font-style: italic;
  color: #888;
  border: 2px dashed var(--border);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.partners-grid__row.wp-block-columns { gap: 16px; align-items: stretch; }

/* ── Responsive adjustments for block patterns ────────────────────────────── */
/* 4 stat cards need more room per number than the general 860px content
   breakpoint gives them — .impact-band wraps to 2-up a tier earlier, at the
   documented 1100px breakpoint, so "5,000+" etc. never wrap mid-number. */
@media (max-width: 1100px) {
  .impact-band .wp-block-columns { flex-wrap: wrap; }
  .impact-band .wp-block-column { flex-basis: calc(50% - 10px) !important; min-width: 0; }
}


@media (max-width: 860px) {
  .wp-block-cover.site-hero { padding-top: 56px !important; padding-bottom: 56px !important; }

  .section-heading-block { padding: var(--mob-v) var(--mob-h); }

  .impact-band.wp-block-group { padding: 32px var(--mob-h) !important; }

  .donate-strip.wp-block-group { padding: 0 var(--mob-h) var(--mob-v) !important; }
  .donate-strip .donate-strip__inner.wp-block-group { flex-direction: column; gap: 20px; }

  /* No flex-direction override on .two-col-section — see the
     testimonial-carousel fix note below; core's own flex-wrap:wrap +
     flex-basis:100% !important stacking already handles this safely, and
     forcing column direction is latent risk (it happened not to break here
     since the video column scales cleanly, but there's no upside to keeping
     the override). Same reasoning applies to .ways-section. */

  .page-intro.wp-block-group { padding: var(--mob-v-hero-top) var(--mob-h) var(--mob-v-hero-bottom) !important; }
  /* No flex-direction override on .stories-section — see the
     testimonial-carousel fix note above main.css; core's own
     flex-wrap:wrap + flex-basis:100% !important stacking already handles
     this and forcing column direction would break it the same way. Not
     currently used on any live page, but fixed proactively so it doesn't
     reproduce the bug if inserted later. */
  .partners-grid__row.wp-block-columns { flex-wrap: wrap; }
  .partners-grid__row .wp-block-column { flex-basis: calc(50% - 8px) !important; }
  .timeline-grid.wp-block-columns { flex-wrap: wrap; }
  .timeline-step { flex-basis: calc(50% - 10px) !important; }
  /* No flex-direction override on .split-hero__inner — see the
     testimonial-carousel fix note above; core's own stacking mechanism
     handles it safely. It stays at gap:0 (set above) — the two panels'
     own backgrounds already tell them apart when stacked; a gap here
     would just show a blank white band between them. */

  /* Undo the desktop card treatment and hide its maximize toggle. These must
     live in this later block, not the earlier ≤860 one: the desktop rules sit
     further down the file and would otherwise win on source order. Mobile's
     launch trigger and fullscreen overlay already cover the same ground. */
  .other-ways { margin-top: 36px; }
  .other-ways > .wp-block-heading { margin-bottom: 14px !important; }
  .other-ways__legend.wp-block-paragraph { margin-bottom: 16px !important; gap: 8px 16px; }
  .other-ways__note { margin-top: 18px; }
}


@media (max-width: 540px) {
  .impact-band .wp-block-column { flex-basis: 100% !important; }
  .partners-grid__row .wp-block-column { flex-basis: 100% !important; }
  .timeline-step { flex-basis: 100% !important; }
}

/* ── Why Diapers page hero ────────────────────────────────────────────────── */
.why-diapers-hero.wp-block-group {
  background: var(--cream);
  padding: var(--pad-v-hero-top) var(--pad-h) var(--pad-v-hero-bottom) !important;
}
.why-diapers-hero .wp-block-heading { margin-bottom: 18px !important; }
.why-diapers-hero__lead {
  font: 400 20px/1.6 var(--font-sans) !important;
  color: var(--brown-med) !important;
  max-width: 880px;
}
.text-highlight {
  background: linear-gradient(transparent 62%, var(--pastel-yellow-mid) 62%);
  font-weight: 600;
}

/* ── Two-col: single paragraph is body text, not a footnote ──────────────── */
/* The :last-of-type rule styles footnotes; override when the paragraph
   is the only one in the column (i.e. no footnote is present). */
.two-col-section__inner > .wp-block-column > .wp-block-paragraph:only-of-type {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--brown-med) !important;
}

/* ── Timeline year color per step variant ─────────────────────────────────── */
/* Color comes from a .text-* utility on the element itself (see patterns) */
.timeline-step__year {
  font: 700 15px var(--font-sans) !important;
  margin: 0 0 8px !important;
}

/* ── Programs section ─────────────────────────────────────────────────────── */
/* .programs-section is .section + .section--cream (shape/color) */
.programs-section > .wp-block-heading { margin-bottom: 8px !important; }
.programs-section > .section-lead {
  margin-bottom: 24px !important;
  margin-left: 0 !important;
  max-width: none !important;
}
.programs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
}
/* Each pill: .pill (shape) + a tint/text color pair — see patterns/23-programs.php */

/* ── Team section ─────────────────────────────────────────────────────────── */
/* .team-section is .section + .section--white (shape/color) */
.team-section > .wp-block-heading { margin-bottom: 32px !important; }

/* ED spotlight */
.ed-spotlight.wp-block-group {
  background: var(--pastel-teal-bg);
  border-radius: var(--radius-banner);
  padding: 40px !important;
  margin-bottom: 40px !important;
}
/* flex-wrap lets the row fold to avatar-then-quote on its own once the quote
   can no longer keep its 200px min-width — the 30% left column is too narrow
   for the row layout well before the 860px "mobile" tier kicks in.
   !important is required: core's desktop layout style forces nowrap on
   .wp-block-columns and otherwise beats this rule despite lower specificity. */
.ed-spotlight .wp-block-columns { gap: 32px !important; align-items: center; justify-content: center; flex-wrap: wrap !important; }
.ed-spotlight .wp-block-column:first-child {
  flex: 0 0 180px !important;
  max-width: 180px;
  min-width: 0;
}
.ed-spotlight .wp-block-column:last-child {
  flex: 1 1 200px;
  min-width: 200px;
}
.ed-spotlight .wp-block-image,
.ed-spotlight .wp-block-image figure { width: 180px; height: 180px; }
.ed-spotlight .wp-block-image img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
}
.ed-quote {
  font: 400 16px/1.6 var(--font-sans) !important;
  color: var(--brown-dark) !important;
  margin: 0 0 14px !important;
}
.ed-name {
  font: 700 16px var(--font-sans) !important;
  color: var(--teal) !important;
  margin: 0 0 4px !important;
}
.ed-role {
  font: 400 14px var(--font-sans) !important;
  color: var(--brown-muted) !important;
  margin: 0 !important;
}

/* Staff grid — wraps 3-up so cards keep enough width for names to read cleanly */
.staff-grid.wp-block-columns { gap: var(--gap-grid) !important; flex-wrap: wrap !important; margin-top: 12px !important; }
.staff-card.wp-block-column {
  background: var(--cream) !important;
  border-radius: var(--radius-card-sm);
  padding: 16px 20px !important;
  flex: 0 0 calc((100% - (2 * var(--gap-grid))) / 3) !important;
  max-width: calc((100% - (2 * var(--gap-grid))) / 3);
}
.staff-name,
.board-name {
  font: 700 15px var(--font-sans) !important;
  color: var(--brown-dark) !important;
  margin: 0 0 4px !important;
}
.staff-role,
.board-role {
  font: 400 13px var(--font-sans) !important;
  color: var(--brown-muted) !important;
  margin: 0 !important;
}

/* Staff, board, and events section labels use .eyebrow directly. */
/* Board of directors sits below the staff list — needs its own top space */
.board-grid.wp-block-columns { gap: 14px !important; flex-wrap: wrap !important; margin-top: 44px !important; }
.board-card.wp-block-column {
  background: var(--cream) !important;
  border-radius: var(--radius-card-sm);
  padding: 16px 20px !important;
  flex: 0 0 calc((100% - (2 * 14px)) / 3) !important;
  max-width: calc((100% - (2 * 14px)) / 3);
}

/* ── Team section — 40/60 two-column layout ───────────────────────────────── */
.team-layout.wp-block-columns { gap: var(--gap-col) !important; align-items: center; }
/* Left column: spotlight fills height and centers content vertically */
.team-layout__left .ed-spotlight.wp-block-group {
  margin-bottom: 0 !important;
  height: 100%;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* ── Responsive: Why Diapers sections ────────────────────────────────────── */
@media (max-width: 860px) {
  .why-diapers-hero.wp-block-group { padding: var(--mob-v-hero-top) var(--mob-h) var(--mob-v-hero-bottom) !important; }
  .ed-spotlight.wp-block-group { padding: 28px !important; }
  .ed-spotlight .wp-block-columns { flex-direction: column !important; align-items: center !important; }
  .ed-spotlight .wp-block-column:first-child { flex: none !important; max-width: none !important; }
  .staff-grid.wp-block-columns { flex-wrap: wrap !important; }
  .staff-card.wp-block-column { flex-basis: calc(50% - 10px) !important; }
  .board-card.wp-block-column { flex-basis: calc(50% - 7px) !important; max-width: calc(50% - 7px); }
  .team-layout.wp-block-columns { flex-direction: column !important; }
  .team-layout__left.wp-block-column,
  .team-layout__right.wp-block-column { flex-basis: 100% !important; max-width: 100%; }
}
@media (max-width: 540px) {
  .staff-card.wp-block-column { flex-basis: 100% !important; }
  .board-card.wp-block-column { flex-basis: 100% !important; max-width: 100%; }
}
.bdbank-closure__reason {
  width: auto;
  min-width: 0;
  margin: 0;
  flex: 2 1 160px;
}
