/*
Theme Name: Boredom Fighters
Theme URI: https://hq.boredomfighters.org
Author: Boredom Fighters Foundation
Author URI: https://boredomfighters.org
Description: Hello Biz child theme that ships the Boredom Fighters design system (color palette, Montserrat/Poppins/Calistoga font stack, button + card primitives) for use inside Elementor + JetEngine. All page layouts live in Elementor templates - no PHP page templates here.
Template: hello-biz
Version: 2.20.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boredomfighters-child
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@200;300;400;500;600&family=Calistoga&family=Caveat+Brush&display=swap");

:root {
  --site-primary: #f05b5b;
  --site-primary-hover: #d94848;
  --site-primary-light: rgba(240, 91, 91, 0.12);
  --site-secondary: #00588d;
  --site-secondary-hover: #004a77;
  --site-secondary-light: #eaf1fb;
  --site-accent-green: #99a55f;
  --site-accent-green-hover: #8a9650;
  --site-accent-brown: #6c573c;

  /* Phase 28.1 -- AA-safe variants for the brand red + olive. Use these
   * tokens (NOT --site-primary / --site-accent-green) on any surface that
   * carries text. Brand-red #f05b5b yields 3.30:1 against white (fails AA
   * 4.5:1); --bf-red-aa yields 5.92:1. Brand-olive #99a55f yields 2.65:1;
   * --bf-olive-aa yields 6.40:1. Decorative chrome (SVG fills, hardcoded
   * gradient bands) keeps the brighter brand tokens. */
  --bf-red-aa: #c41e3a;
  --bf-red-aa-hover: #a01730;
  --bf-olive-aa: #5d6b2e;
  --bf-olive-aa-hover: #4a5524;

  --site-bg: #ffffff;
  --site-surface: #f8f9fc;
  --site-surface-alt: #eeeeee;
  --site-border: #e2e5eb;
  --site-border-dark: #c8ccd3;
  --site-text: #2b312f;
  --site-text-secondary: #4a5568;
  --site-text-muted: #6b7280;

  --site-success: #059669;
  --site-warning: #d97706;
  --site-error: #dc2626;
  --site-info: #0284c7;

  --site-dark-bg: #2b312f;
  --site-dark-text: #ffffff;
  --site-dark-text-muted: rgba(255, 255, 255, 0.7);

  --site-font-heading: "Montserrat", sans-serif;
  --site-font-body: "Poppins", sans-serif;
  --site-font-display: "Caveat Brush", "Calistoga", cursive;
  --site-font-serif: "Calistoga", serif;

  --site-fs-display: clamp(2.5rem, 5vw, 4rem);
  --site-fs-h1: clamp(2rem, 4vw, 3.5rem);
  --site-fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --site-fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --site-fs-h4: clamp(1.1rem, 1.5vw, 1.35rem);
  --site-fs-body: 1rem;
  --site-fs-body-lg: 1.125rem;
  --site-fs-small: 0.875rem;
  --site-fs-xs: 0.75rem;

  --site-lh-heading: 1.15;
  --site-lh-body: 1.65;
  --site-ls-heading: -0.03em;

  --site-fw-normal: 400;
  --site-fw-medium: 500;
  --site-fw-semibold: 600;
  --site-fw-bold: 700;
  --site-fw-extrabold: 800;
  --site-fw-black: 900;

  --site-space-1: 4px;
  --site-space-2: 8px;
  --site-space-3: 12px;
  --site-space-4: 16px;
  --site-space-5: 20px;
  --site-space-6: 24px;
  --site-space-8: 32px;
  --site-space-10: 40px;
  --site-space-12: 48px;
  --site-space-16: 64px;
  --site-space-20: 80px;
  --site-space-24: 96px;

  --site-content-max: 1200px;
  --site-content-wide: 1400px;
  --site-content-narrow: 720px;

  --site-radius-sm: 4px;
  --site-radius: 8px;
  --site-radius-lg: 12px;
  --site-radius-xl: 16px;
  --site-radius-pill: 9999px;
  --site-radius-button: 24px;

  --site-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --site-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --site-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --site-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  --site-transition: 0.2s ease;
}

/* Elementor exposes these to Elementor Pro Global Colors / Fonts settings.
   Mapped 1:1 with the Boredom Fighters palette so designers can use
   Elementor's color picker and still hit the same tokens. */
:root {
  --e-global-color-primary: var(--site-primary);
  --e-global-color-secondary: var(--site-secondary);
  --e-global-color-text: var(--site-text);
  --e-global-color-accent: var(--site-accent-green);

  --e-global-typography-primary-font-family: "Montserrat";
  --e-global-typography-secondary-font-family: "Poppins";
  --e-global-typography-text-font-family: "Poppins";
  --e-global-typography-accent-font-family: "Calistoga";
}

body {
  font-family: var(--site-font-body);
  font-size: var(--site-fs-body);
  font-weight: var(--site-fw-normal);
  line-height: var(--site-lh-body);
  color: var(--site-text);
  background-color: var(--site-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--site-font-heading);
  font-weight: var(--site-fw-extrabold);
  line-height: var(--site-lh-heading);
  letter-spacing: var(--site-ls-heading);
  color: var(--site-text);
}

h1 {
  font-size: var(--site-fs-h1);
}
h2 {
  font-size: var(--site-fs-h2);
}
h3 {
  font-size: var(--site-fs-h3);
}
h4 {
  font-size: var(--site-fs-h4);
}

a {
  color: var(--site-secondary);
  text-decoration: none;
  transition: color var(--site-transition);
}
a:hover {
  color: var(--site-secondary-hover);
}

/* ============================================
   Reusable component classes (used inside
   Elementor as CSS Class on widgets/sections).
   Editor adds class names via the right-hand
   "Advanced -> CSS Classes" field; no code edits.
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--site-space-2);
  padding: var(--site-space-3) var(--site-space-6);
  font-family: var(--site-font-heading);
  font-size: var(--site-fs-small);
  font-weight: var(--site-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--site-radius-button);
  transition: all var(--site-transition);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--primary {
  background: var(--site-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--site-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--site-shadow);
}
.btn--secondary {
  background: var(--site-secondary);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--site-secondary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--site-primary);
  border-color: var(--site-primary);
}
.btn--outline:hover {
  background: var(--site-primary);
  color: #fff;
}
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--site-text);
}
.btn--green {
  background: var(--site-accent-green);
  color: #fff;
}
.btn--green:hover {
  background: var(--site-accent-green-hover);
  color: #fff;
}
.btn--lg {
  padding: var(--site-space-4) var(--site-space-8);
  font-size: var(--site-fs-body);
}
.btn--sm {
  padding: var(--site-space-2) var(--site-space-4);
  font-size: var(--site-fs-xs);
}
.btn--block {
  width: 100%;
}

.site-section {
  padding: var(--site-space-20) 0;
}
.site-section--sm {
  padding: var(--site-space-12) 0;
}
.site-section--lg {
  padding: var(--site-space-24) 0;
}
.site-section--dark {
  background-color: var(--site-dark-bg);
  color: var(--site-dark-text);
}
.site-section--dark h1,
.site-section--dark h2,
.site-section--dark h3 {
  color: var(--site-dark-text);
}
.site-section--gray {
  background-color: var(--site-surface-alt);
}
.site-section--blue-light {
  background-color: var(--site-secondary-light);
}

.site-container {
  max-width: var(--site-content-max);
  margin: 0 auto;
  padding: 0 var(--site-space-6);
}
.site-container--wide {
  max-width: var(--site-content-wide);
}
.site-container--narrow {
  max-width: var(--site-content-narrow);
}

.card {
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--site-transition),
    transform var(--site-transition);
}
.card:hover {
  box-shadow: var(--site-shadow-md);
  transform: translateY(-2px);
}
.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card__body {
  padding: var(--site-space-5);
}
.card__title {
  font-size: var(--site-fs-h4);
  margin-bottom: var(--site-space-2);
}
.card__meta {
  font-size: var(--site-fs-small);
  color: var(--site-text-muted);
  margin-bottom: var(--site-space-3);
}
.card__text {
  color: var(--site-text-secondary);
  font-size: var(--site-fs-small);
}

/* Hello Biz / Hello Elementor body padding override so Elementor sections
   can go full-bleed without a 20px gutter from the parent theme. */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* === Listing card image normalization (round 4) === */
/* Pin every JetEngine listing-dynamic-image to a uniform 4:3 box so
   cards across team / branch / mentor / story / workshop / project
   listings are the same height regardless of source aspect. */
.jet-listing-dynamic-image .jet-listing-dynamic-image__img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  max-height: 280px;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

/* On dark hero/about-page sections the story listing card needs more
   breathing room so the title + excerpt do not crowd the image. */
.jet-listing-grid__item
  .elementor-widget-jet-listing-dynamic-field
  + .elementor-widget-jet-listing-dynamic-field {
  margin-top: 4px;
}

/* Partner listing cards are name-only chips. Center the text vertically
   inside the fixed-height border. */
.jet-listing-grid--375 .jet-listing-grid__item .elementor-section {
  height: 100%;
}

/* ============================================================
   Round 5 - Mobile overflow fixes
   ============================================================
   Three issues discovered via Playwright at 390x844 viewport:
   1. jet-listing-grid__items overflowed to 445px (from internal
      card image / minimum-content widths)
   2. jet-listing-dynamic-field__inline-wrap overflowed to 419px
      (long story titles with no wrap)
   3. Instagram-embed placeholder <p> overflowed to 433px from
      "@boredomfightersfoundation" rendered at 1.75rem with no break
   These fixes constrain everything to viewport on mobile.
*/

/* Universal: never let any element push the page horizontally. */
html,
body {
  overflow-x: hidden;
}

/* Force JetEngine listing grids to fit viewport on mobile.
   The default grid-col-mobile-1 still leaks because JetEngine sets
   inline width: calc(...) on the items; we override to 100%. */
@media (max-width: 767px) {
  .jet-listing-grid__items,
  .jet-listing-grid {
    max-width: 100% \!important;
    width: 100% \!important;
  }
  .jet-listing-grid__item {
    max-width: 100% \!important;
    width: 100% \!important;
    flex-basis: 100% \!important;
  }
  .jet-listing-grid__item img,
  .jet-listing-dynamic-image,
  .jet-listing-dynamic-image .jet-listing-dynamic-image__img {
    max-width: 100% \!important;
    height: auto \!important;
  }
  /* Long titles / excerpts on listing cards: wrap aggressively. */
  .jet-listing-dynamic-field,
  .jet-listing-dynamic-field__inline-wrap,
  .jet-listing-dynamic-field__content {
    max-width: 100% \!important;
    word-wrap: break-word \!important;
    overflow-wrap: break-word \!important;
  }
  /* Instagram-handle headline in our IG placeholder. */
  .elementor-widget-html p {
    word-break: break-word;
  }
  /* Tone down the IG placeholder's padding + font on small screens. */
  .elementor-widget-html [style*="padding:60px 20px"] {
    padding: 32px 16px \!important;
  }
  .elementor-widget-html [style*="font-size:1.75rem"] {
    font-size: 1.25rem \!important;
  }
}

/* Listing card internal section overflow fix.
   The card template (Elementor template ID 373 etc) has its own
   nested elementor-section / elementor-container with column-gap
   spacing that does NOT collapse below ~430px width. Force
   internal containers to fit the listing item's viewport-sized box.
*/
@media (max-width: 767px) {
  .jet-listing-grid__item .elementor-section,
  .jet-listing-grid__item .elementor-container,
  .jet-listing-grid__item .elementor-column,
  .jet-listing-grid__item .elementor-widget-wrap {
    max-width: 100% \!important;
    flex-wrap: wrap \!important;
    box-sizing: border-box \!important;
  }
  .jet-listing-grid__item .elementor-column-gap-extended,
  .jet-listing-grid__item .elementor-column-gap-default,
  .jet-listing-grid__item .elementor-column-gap-wide {
    --gap: 8px \!important;
    gap: 8px \!important;
    padding: 0 \!important;
  }
  .jet-listing-grid__item .elementor-column {
    width: 100% \!important;
    flex: 0 0 100% \!important;
  }
  .jet-listing-grid__item img {
    width: 100% \!important;
    max-width: 100% \!important;
    height: auto \!important;
  }
  /* Word-wrap the long titles on cards. */
  .jet-listing-grid__item h1,
  .jet-listing-grid__item h2,
  .jet-listing-grid__item h3,
  .jet-listing-grid__item h4 {
    word-wrap: break-word \!important;
    overflow-wrap: break-word \!important;
    hyphens: auto;
  }
}

/* Final mobile listing-card fix - text content inside listing
   dynamic-field renders as single-line inline-block on small viewports,
   ignoring word-wrap rules. Force block flow + normal white-space. */
@media (max-width: 767px) {
  .jet-listing-grid__item .jet-listing-dynamic-field,
  .jet-listing-grid__item .jet-listing-dynamic-field__content,
  .jet-listing-grid__item .jet-listing-dynamic-field__inline-wrap {
    display: block \!important;
    white-space: normal \!important;
    width: 100% \!important;
    max-width: 100% \!important;
    word-break: break-word \!important;
  }
  .jet-listing-grid__item .display-inline {
    display: block \!important;
  }
}

/* ============================================================
   v5 - Source-fidelity polish
   ============================================================
*/

/* Hero h1 should be much larger - source matches ~6rem */
.elementor-element-populated
  .elementor-widget-heading
  h1.elementor-heading-title {
  font-size: 5.5rem;
  line-height: 1;
}
@media (max-width: 1024px) {
  .elementor-element-populated
    .elementor-widget-heading
    h1.elementor-heading-title {
    font-size: 4rem;
  }
}
@media (max-width: 640px) {
  .elementor-element-populated
    .elementor-widget-heading
    h1.elementor-heading-title {
    font-size: 2.75rem;
  }
}

/* Stats grid responsive on mobile */
@media (max-width: 767px) {
  .bf-stats-grid {
    grid-template-columns: repeat(2, 1fr) \!important;
  }
  .bf-why-strip,
  .bf-process-strip,
  .bf-2x2-grid,
  .bf-takeaction-grid,
  .bf-news-grid,
  .bf-fund-grid,
  .bf-collage {
    grid-template-columns: 1fr \!important;
  }
  .bf-takeaction-secondary {
    flex-direction: column \!important;
    align-items: center \!important;
  }
}

/* Take action button hover */
.bf-takeaction-grid a:hover {
  background: #f05b5b \!important;
  color: #fff \!important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* News card hover */
.bf-news-grid a:hover {
  border-color: #f05b5b \!important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Partner listing card - center logo, fixed size */
.jet-listing-grid--375 .jet-listing-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
}
.jet-listing-grid--375 .jet-listing-dynamic-image {
  width: 100%;
  text-align: center;
}
.jet-listing-grid--375 .jet-listing-dynamic-image img {
  max-width: 120px \!important;
  max-height: 60px \!important;
  width: auto \!important;
  height: auto \!important;
  object-fit: contain \!important;
  margin: 0 auto;
}

/* v2.3.0 - Story listing card polish: tighter cards, no body excerpt overflow */
.jet-listing-grid--373 .jet-listing-grid__item {
  background: #ffffff \!important;
  border-radius: 12px \!important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.jet-listing-grid--373 .jet-listing-dynamic-image img {
  width: 100% \!important;
  height: 200px \!important;
  object-fit: cover \!important;
}
.jet-listing-grid--373 .jet-listing-dynamic-field {
  padding: 0 16px;
}
.jet-listing-grid--373
  .elementor-widget-jet-listing-dynamic-field:not(:first-child) {
  margin-top: 8px;
}
.jet-listing-grid--373 .jet-listing-dynamic-link__label {
  display: inline-block;
  margin: 16px;
  padding: 8px 18px;
  background: #f05b5b;
  color: #ffffff \!important;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* v2.3.0 - Why Help Kids tab pills bigger, source-matching */
.elementor-widget-tabs .elementor-tab-title.elementor-active {
  border-bottom-width: 4px \!important;
  border-bottom-color: #f05b5b \!important;
  font-weight: 800 \!important;
}

/* Hero title kerning polish */
.elementor-widget-heading h1 {
  letter-spacing: -0.02em \!important;
}

/* v2.4.0 - Why Help Kids section: black heading, gradient pill tabs, image-with-overlay-card */
.bf-why-section {
  padding: 60px 24px 80px;
  background: #f5f6f8;
}
.bf-why-title {
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: #1a1f1d;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 40px;
  line-height: 1.05;
}
.bf-why-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  max-width: 1200px;
}
.bf-why-section .bf-why-tab,
button.bf-why-tab {
  padding: 14px 32px \!important;
  border-radius: 999px \!important;
  border: none \!important;
  outline: none \!important;
  cursor: pointer;
  font-family:
    Montserrat,
    sans-serif \!important;
  font-weight: 700 \!important;
  font-size: 1rem \!important;
  letter-spacing: -0.005em;
  background: #d1d5db \!important;
  background-color: #d1d5db \!important;
  background-image: none \!important;
  color: #ffffff \!important;
  transition: all 0.2s ease;
  flex: 0 1 auto;
  min-width: 160px;
  text-shadow: none;
  box-shadow: none;
}
.bf-why-section .bf-why-tab.active,
button.bf-why-tab.active {
  background: linear-gradient(90deg, #1e3a8a 0%, #f05b5b 100%) \!important;
  background-image: linear-gradient(90deg, #1e3a8a 0%, #f05b5b 100%) \!important;
  color: #ffffff \!important;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.28) \!important;
}
.bf-why-section .bf-why-tab:hover:not(.active),
button.bf-why-tab:hover:not(.active) {
  background: #b9c0c9 \!important;
  background-color: #b9c0c9 \!important;
}
/* F18.2-A: replace stripped outline with a visible focus ring so keyboard
   users can still see which tab is active. WCAG 2.4.7 (Focus Visible) AA. */
.bf-why-section .bf-why-tab:focus-visible,
button.bf-why-tab:focus-visible {
  outline: 3px solid #1e3a8a \!important;
  outline-offset: 2px \!important;
}
.bf-why-panels {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.bf-why-panel {
  display: none;
  position: relative;
}
.bf-why-panel.active {
  display: block;
}
.bf-why-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.bf-why-card {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 480px;
  max-width: calc(100% - 64px);
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 32px 0;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}
.bf-why-card-title {
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 2.25rem;
  text-align: center;
  color: #1e3a8a;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.bf-why-card-body {
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2b312f;
  text-align: center;
  margin: 0 0 22px;
}
.bf-why-card-body strong {
  color: #1a1f1d;
  font-weight: 700;
}
.bf-why-card-cite {
  background: #f05b5b;
  color: #ffffff;
  padding: 16px 20px;
  margin: 0 -32px;
  font-family: Poppins, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .bf-why-img {
    height: 480px;
  }
  .bf-why-card {
    width: 420px;
  }
}
@media (max-width: 768px) {
  .bf-why-title {
    font-size: 2rem;
  }
  .bf-why-tabs {
    gap: 8px;
  }
  .bf-why-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    min-width: 0;
  }
  .bf-why-img {
    height: 360px;
  }
  .bf-why-card {
    position: static;
    width: auto;
    max-width: none;
    margin: -80px 16px 0;
  }
}

/* `.bf-decoration` is still used by the [bf_decoration] shortcode for
   inline SVG injection; everything else previously in this block (
   .bf-display, .bf-pill-header, .bf-pill--*) was retired in PR-12D --
   their visual output is now expressed through native Elementor heading
   widget settings (typography_font_family=Caveat Brush, _background_color,
   _padding, _border_radius, _element_width=inline). */
.bf-decoration {
  display: inline-block;
  line-height: 0;
  pointer-events: none;
}
.bf-decoration svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   JetEngine listing card overflow guards (Phase 11
   migration from bf-mobile-fixes.php). The Elementor
   sections nested inside jet-listing-grid items can
   expand wider than the card container at narrow
   viewports; clamp them globally.
   ============================================ */
.jet-listing-grid__item .elementor,
.jet-listing-grid__item .elementor-section,
.jet-listing-grid__item .elementor-container {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.jet-listing-grid .elementor-column,
.jet-listing-grid .elementor-widget-wrap {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Inline-styled 2-col / 3-col HTML widgets that lack a
   targetable class for their own media rules: force
   single column at <=480px. */
@media (max-width: 480px) {
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Nav dropdown: show sub-menu on hover (desktop only).
   Elementor free nav-menu widget renders the correct
   HTML structure but provides no CSS to reveal the
   dropdown. JetMenu is not installed, so we ship the
   show/hide rules here. */
@media (min-width: 768px) {
  .elementor-nav-menu .menu-item-has-children {
    position: relative;
  }
  .elementor-nav-menu .sub-menu.elementor-nav-menu--dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-top: 3px solid var(--site-primary);
    box-shadow: var(--site-shadow-md);
    z-index: 9999;
    padding: 8px 0;
    list-style: none;
    margin: 0;
  }
  .elementor-nav-menu
    .menu-item-has-children:hover
    > .sub-menu.elementor-nav-menu--dropdown {
    display: block !important;
  }
  .elementor-nav-menu
    .sub-menu.elementor-nav-menu--dropdown
    .menu-item
    a.elementor-sub-item {
    display: block;
    padding: 10px 20px;
    color: var(--site-secondary);
    font-family: var(--site-font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  .elementor-nav-menu
    .sub-menu.elementor-nav-menu--dropdown
    .menu-item
    a.elementor-sub-item:hover {
    color: var(--site-primary);
    background: var(--site-surface);
  }
}

/* Phase 13: Elementor _element_width:"inline" emits .elementor-widget__width-inline,
   which Elementor's own CSS does not shrink-wrap inside legacy Section/Column flex
   contexts (the widget is a flex child with flex-basis stretching to 100%).
   Force shrink-to-content + center, working in both Container and legacy Section layouts.
   Affects pill-style headings (Wix parity). */
.elementor-widget.elementor-widget__width-inline,
.elementor .elementor-widget.elementor-widget__width-inline {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center;
}

/* Phase 19 PR #30: bf-mentor-headshot -- enforce square aspect + cover crop on
   listing-mentor-card image widget so the border-radius:50% set on the widget
   renders as a perfect circle regardless of source image aspect ratio. */
.bf-mentor-headshot .jet-listing-dynamic-image__img,
.bf-mentor-headshot img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: auto;
}

/* Phase 19 PR #30: /diversity/ hero mascots (sax_guy + chicken).
   The mascots live inside the hero section's single column (Elementor
   legacy section can't host widgets directly). Both Elementor section
   and column default to position:relative, which would anchor the
   absolute mascots to the narrow centered column box -- overlapping
   the heading. We force the column containing these mascots to
   position:static so the absolute positioning falls through to the
   hero SECTION as the anchor.

   Also constrain the hero heading + sub-headline width so the mascots
   sitting at left:3% / right:3% have visual clearance from the text. */
.elementor-section[data-id="7f169d4"]
  > .elementor-container
  > .elementor-column {
  position: static !important;
}
.elementor-section[data-id="7f169d4"] h1,
.elementor-section[data-id="7f169d4"] .elementor-widget-heading {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.elementor-section[data-id="7f169d4"] .elementor-widget-text-editor {
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.elementor-element.bf-mascot-left,
.elementor-element.bf-mascot-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  max-width: 180px;
}
.elementor-element.bf-mascot-left {
  left: 3%;
}
.elementor-element.bf-mascot-right {
  right: 3%;
}
@media (max-width: 768px) {
  .elementor-element.bf-mascot-left,
  .elementor-element.bf-mascot-right {
    position: static;
    transform: none;
    display: inline-block;
    max-width: 96px;
  }
}

/* Phase 19 PR #30: /home/ 7 action card photos.
   Each p14a0..p14a6 container now has a Wix CDN photo as
   background_image with a 65% dark overlay. Default heading + body
   text colors on these cards are dark (#1a1f1d / #2b312f) which would
   be unreadable on the dark photo. Target by [data-id] selector
   because Elementor containers ignore _css_classes in the JSON when
   set programmatically (verified empirically). */
[data-id="p14a0"],
[data-id="p14a1"],
[data-id="p14a2"],
[data-id="p14a3"],
[data-id="p14a4"],
[data-id="p14a5"],
[data-id="p14a6"] {
  min-height: 280px;
}
[data-id="p14a0"] .elementor-heading-title,
[data-id="p14a0"] .elementor-widget-text-editor,
[data-id="p14a0"] .elementor-widget-text-editor p,
[data-id="p14a1"] .elementor-heading-title,
[data-id="p14a1"] .elementor-widget-text-editor,
[data-id="p14a1"] .elementor-widget-text-editor p,
[data-id="p14a2"] .elementor-heading-title,
[data-id="p14a2"] .elementor-widget-text-editor,
[data-id="p14a2"] .elementor-widget-text-editor p,
[data-id="p14a3"] .elementor-heading-title,
[data-id="p14a3"] .elementor-widget-text-editor,
[data-id="p14a3"] .elementor-widget-text-editor p,
[data-id="p14a4"] .elementor-heading-title,
[data-id="p14a4"] .elementor-widget-text-editor,
[data-id="p14a4"] .elementor-widget-text-editor p,
[data-id="p14a5"] .elementor-heading-title,
[data-id="p14a5"] .elementor-widget-text-editor,
[data-id="p14a5"] .elementor-widget-text-editor p,
[data-id="p14a6"] .elementor-heading-title,
[data-id="p14a6"] .elementor-heading-title,
[data-id="p14a6"] .elementor-widget-text-editor,
[data-id="p14a6"] .elementor-widget-text-editor p {
  color: #ffffff !important;
}

/* ============================================
   Phase 20 Sub-PR C5 -- /grow-a-branch/ native rebuild
   ============================================ */

.bf-grow-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.bf-grow-stat .bf-grow-stat-num {
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #f05b5b;
  line-height: 1;
  margin: 0 0 4px;
}
.bf-grow-stat .bf-grow-stat-label {
  font-family: Poppins, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bf-grow-step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f05b5b;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bf-grow-step-row {
  position: relative;
}
.bf-grow-step-row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 56px;
  bottom: -36px;
  width: 2px;
  background: #eeeeee;
}

/* ============================================
   Phase 20 Sub-PR C4 -- /camp/ medallion substitution
   ============================================ */

.bf-camp-medallion {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.bf-camp-medallion--maker {
  background: #f05b5b;
}
.bf-camp-medallion--producer {
  background: #1e3a8a;
}
.bf-camp-medallion img {
  max-width: 130px;
  height: auto;
}
.bf-camp-date-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2b312f;
  margin: 0 6px 8px 0;
}

/* ============================================================
 * v2.8.9 -- Phase 21: full-bleed for rebuilt dark sections
 * ============================================================
 * Containers with these _element_id anchors carry their own dark/colored
 * background but sit inside a content-constrained parent (1110px). Without
 * this override they render as centered "cards" with white gutters instead
 * of the edge-to-edge bands the original Wix design used.
 *
 * The negative-margin trick breaks out of the parent constraint to span
 * the viewport. overflow-x: hidden on .site-main (already present in
 * Hello Biz parent) prevents any rounding-error horizontal scroll.
 */
#bf-msnd-pill-rebuild,
#bf-msnd-expect-rebuild,
#bf-msnd-receive-rebuild,
#bf-msnd-venue-rebuild,
#bf-msnd-past-rebuild,
#bf-msnd-counselors-rebuild,
#bf-msnd-ig-rebuild,
#bf-fin-global-budgets-rebuild {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Inner content inside those full-bleed wrappers still respects the
 * site content max-width via the .e-con-inner / Elementor inner container.
 */

/* Smooth color/background transitions on CTA buttons that already pair
 * an idle and hover color. Elementor's default has no transition, so
 * the hover snaps. Apply via _css_classes in the widget settings.
 */
.bf-cta-smooth-hover .elementor-button,
.bf-cta-smooth-hover a.elementor-button,
.bf-cta-smooth-hover button.elementor-button {
  transition:
    background-color 240ms ease-out,
    color 240ms ease-out,
    border-color 240ms ease-out,
    box-shadow 240ms ease-out;
}

/* Activation listing card hover lift. The card root section has a flat
 * 2/8/0 rgba(0,0,0,0.06) shadow at idle; on hover it lifts 4px and the
 * shadow blooms. Target both the _css_classes-injected name (defensive
 * forward-compat) and the section's stable data-id, because JetEngine's
 * listing render path strips section _css_classes (verified Phase 25 --
 * the data-settings JSON the section ships only carries 2 keys, not the
 * full settings array, so .bf-activation-card-hover never lands on the
 * <section> class attribute on /projects/ + /activation/). The data-id
 * attribute is rendered reliably and is unique to listing 1239.
 */
.bf-activation-card-hover,
section[data-id="actcardroot"] {
  transition:
    transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.bf-activation-card-hover:hover,
section[data-id="actcardroot"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .bf-activation-card-hover,
  section[data-id="actcardroot"] {
    transition: none;
  }
  .bf-activation-card-hover:hover,
  section[data-id="actcardroot"]:hover {
    transform: none;
  }
}

/* ============================================================
 * Phase 28 PR-B -- axe Serious sweep (color-contrast subset)
 * ============================================================
 * Two genuine wrong-color-assignment bugs surfaced by the
 * axe-core 4.10.0 detail probe (see qa-audit/phase28/AXE-SWEEP-TRIAGE.md).
 * The bulk of color-contrast violations are a brand-palette issue
 * (`#f05b5b` + `#99a55f` failing AA against `#ffffff`/`#fdf8f2`) and
 * are DEFERRED to a separate planning PR.
 */

/* /financials/ -- four "BUDGET" headings render white text on pastel
 * yellow/green section backgrounds (#fefce8 / #f0fdf4), giving 1.03:1
 * and 1.04:1 contrast. Target by element id; heading-title is a direct
 * child of the .elementor-element wrapper (no .elementor-widget-container
 * in between, verified from the axe target chain). */
.elementor-element-30a22ae > .elementor-heading-title,
.elementor-element-6a33e41 > .elementor-heading-title,
.elementor-element-ac286b7 > .elementor-heading-title,
.elementor-element-c517fca > .elementor-heading-title {
  color: var(--site-text) !important;
}

/* /why-music/ -- four counter titles ("Youth in the studio", "Workshops
 * hosted", "Creators hired", "Schools supported") render #2b312f text
 * on #3c4140 dark panel, giving 1.27:1. The panel stays dark; bump the
 * text to white. */
.elementor-element-55e6b1d .elementor-counter-title,
.elementor-element-7dadfbe .elementor-counter-title,
.elementor-element-2a1af0e .elementor-counter-title,
.elementor-element-dfb4a5c .elementor-counter-title {
  color: #ffffff !important;
}

/* ============================================================
 * Phase 28.1 -- brand-AA token sweep (auto-generated)
 * ============================================================
 * Per-element-ID overrides that swap brand red (#f05b5b) and brand
 * olive (#99a55f) for their AA-safe variants on every widget surface
 * where the axe-core 4.10.0 detail probe flagged WCAG AA contrast
 * failure (see qa-audit/phase28/AXE-SWEEP-TRIAGE.md Section 4.A).
 *
 * Auto-generated by scripts/gen-brand-aa-overrides.mjs from
 * qa-audit/a11y-baseline/*.detail.json. Re-run the script after each
 * detail-probe pass to refresh the list. The block is surgical: it
 * touches only the widget configurations that currently fail AA;
 * decorative SVG hero illustrations, hardcoded gradient bands, and
 * non-failing brand-red surfaces remain untouched.
 *
 * Generated 2026-05-18 (Phase 28 finisher pass, 11 pages x 3 viewports):
 *   bg-red:     19 element IDs
 *   color-red:  17 element IDs
 *   bg-olive:    2 element IDs
 *   color-olive: 5 element IDs
 */

/* Brand-red bg + white text -> AA-red bg */
.elementor-element-03e12ce .jet-listing-dynamic-link__label,
.elementor-element-0a521f1 .elementor-button-text,
.elementor-element-171ce8e h2,
.elementor-element-3252b29 .jet-listing-dynamic-field__content,
.elementor-element-35a4195 .elementor-button-text,
.elementor-element-3cb796b .elementor-button-text,
.elementor-element-3e0cd58 .elementor-button-text,
.elementor-element-4981d34 .elementor-button-text,
.elementor-element-49981d2 .elementor-button-text,
.elementor-element-4ddc8cb h2,
.elementor-element-4ee8520 .elementor-button-text,
.elementor-element-53b1a5a .elementor-button-text,
.elementor-element-5720ad9 h3,
.elementor-element-592c556 .elementor-button-text,
.elementor-element-5c77b58 .jet-listing-dynamic-link__label,
.elementor-element-60de0bc .elementor-button-text,
.elementor-element-62d58e1 .elementor-button-text,
.elementor-element-69b67cc .elementor-button-text,
.elementor-element-6c37825 .elementor-button-text,
.elementor-element-7327e8f a[href$="grow-a-branch/"],
.elementor-element-7648bef .elementor-button-text,
.elementor-element-7a4426a .elementor-button-text,
.elementor-element-7a9847e .elementor-button-text,
.elementor-element-8054667 .elementor-button-text,
.elementor-element-819604f a,
.elementor-element-875d9e8 .elementor-button-text,
.elementor-element-8a6e7d8 .elementor-button-text,
.elementor-element-8ce658f .elementor-button-text,
.elementor-element-8f50ea7 .elementor-button-text,
.elementor-element-95082f8 li,
.elementor-element-957c235 .elementor-button-text,
.elementor-element-ae30c20 .jet-listing-dynamic-link__label,
.elementor-element-ba390ab .elementor-button-text,
.elementor-element-c1a18a4 .elementor-button-text,
.elementor-element-c8e3f17 .elementor-button-text,
.elementor-element-ctabtn0 .elementor-button-text,
.elementor-element-ctabtn1 .elementor-button-text,
.elementor-element-ctabtn2 .elementor-button-text,
.elementor-element-d297343 .elementor-button-text,
.elementor-element-da6de08 .elementor-button-text,
.elementor-element-dc07a43 .jet-listing-dynamic-link__label,
.elementor-element-mentft_cta .elementor-button,
.elementor-element-mentlistpill h2,
.elementor-element-p14fc1btn .elementor-button-text,
.elementor-element-p14igb .elementor-button-text {
  background-color: var(--bf-red-aa) !important;
}

/* Brand-red text on LIGHT backgrounds -> AA-red text.
 * NOTE: dark-background variants moved to the white-on-dark block below.
 * Token --bf-red-aa is too dark to pair with dark surfaces (#2b312f etc.)
 * and would re-fail AA the other direction. */
.elementor-element-12200ff p,
.elementor-element-15566ac h3,
.elementor-element-156f70d p,
.elementor-element-1c405f2 .jet-listing-dynamic-field__content,
.elementor-element-20d3791 h3,
.elementor-element-22ca0cb h6,
.elementor-element-2482b58 h5,
.elementor-element-2e9684d h5,
.elementor-element-3aa406b strong,
.elementor-element-4a946e3 h5,
.elementor-element-4be1c25 h3,
.elementor-element-4e39b39 h3,
.elementor-element-56e0d3f p,
.elementor-element-59edf9f strong,
.elementor-element-5ad0e84 div,
.elementor-element-64dd9d2 h2,
.elementor-element-67c63e9 h5,
.elementor-element-69f0ab6 strong,
.elementor-element-75d2303 strong,
.elementor-element-7a8034a p,
.elementor-element-7bb52e2 h3,
.elementor-element-7fa607e div,
.elementor-element-8c1ddf5 h3,
.elementor-element-8e108c1 h2,
.elementor-element-90c7403 h3,
.elementor-element-91c4a1b .jet-listing-dynamic-field__content,
.elementor-element-b0e7123 .elementor-item-active,
.elementor-element-b3b60c0 p,
.elementor-element-d155d3f strong,
.elementor-element-ecbb3b9 div,
.elementor-element-f13a74e strong,
.elementor-element-f4722d7 h3,
.elementor-element-f4945a4 h3,
.elementor-element-fa1fd3c .jet-listing-dynamic-field__content,
.elementor-element-fea67b8 strong,
.elementor-element-whkmb01 .jet-tabs__label-text {
  color: var(--bf-red-aa) !important;
}

/* Brand-red text on DARK backgrounds -> white text. The AA-red token is
 * too dark to pair with #2b312f / #292d2c / #313534 (drops to 2.0-2.4:1).
 * White always passes against the site's dark surfaces. */
.elementor-element-138c873 h3,
.elementor-element-3ee9e80 span,
.elementor-element-626f9c8 h3,
.elementor-element-9c1efd7 .elementor-item-active,
.elementor-element-ae0fb97 h3,
.elementor-element-p14fc1tag h6,
.elementor-element-p14fc2tag h6,
.elementor-element-p14nl0 .elementor-button-text,
.elementor-element-p14nl1 .elementor-button-text,
.elementor-element-p14nl2 .elementor-button-text,
.elementor-element-p14ns0 h6,
.elementor-element-p14ns1 h6,
.elementor-element-p14ns2 h6 {
  color: #ffffff !important;
}

/* Brand-red text on YELLOW-GREEN bg (#d4d5a1): AA-red gives 3.84:1 (fail).
 * Use a deeper red that still passes against the light yellow-green panel. */
.elementor-element-0655908 .jet-listing-dynamic-field__content {
  color: #6b1023 !important; /* 6.0:1 against #d4d5a1 */
}

/* Blue link (#1e3a8a) on AA-red bg (#c41e3a) gives 1.77:1 -- after the
 * .elementor-element-819604f a -> AA-red bg override above, the inner
 * link text would need to be white to clear AA. */
.elementor-element-819604f a {
  color: #ffffff !important;
}

/* /our-team/ "Could Be Next" placeholder: brand-red bg with light-pink
 * (#fde6e6) strong text yields 2.77:1. Bump bg to AA-red and strong to
 * white -> 5.92:1 PASS. */
.elementor-element-ea59c74 {
  background-color: var(--bf-red-aa) !important;
}
.elementor-element-ea59c74 strong,
.elementor-element-ea59c74 p {
  color: #ffffff !important;
}

/* Brand-olive bg + white text -> AA-olive bg
 * /why-music/ Common quote (h2 7d8117f + attribution 0026ed5) removed from
 * this sweep in session-57: the section bg was switched to AA-olive directly
 * in the seed, so white text clears AA without painting an inner-box. */
.elementor-element-57c904c .elementor-button-text,
.elementor-element-580603c .elementor-button-text,
.elementor-element-f8d1775 .elementor-button-text {
  background-color: var(--bf-olive-aa) !important;
}

/* Brand-olive text -> AA-olive text */
.elementor-element-34b2b05 h3,
.elementor-element-50c301b h3,
.elementor-element-55b9fd8 h3,
.elementor-element-71776bc h3,
.elementor-element-819604f div,
.elementor-element-93c4947 h3,
.elementor-element-9db350f h3,
.elementor-element-d9ea130 h4,
.elementor-element-f529fa4 h4,
.elementor-element-p14acth h2,
.elementor-element-p14igh h2 {
  color: var(--bf-olive-aa) !important;
}

/* JetEngine listing-link buttons: also bump :hover so the visual cue
 * remains consistent when AA red is now the resting color. */
.jet-listing-dynamic-link__link:hover {
  background-color: var(--bf-red-aa-hover);
}

/* Blanket overrides for widget patterns that don't have stable
 * per-instance element IDs (testimonials carousel, jet-tabs labels,
 * elementor active nav menu item). Each of these is always either
 * dark-on-dark broken (testimonials name) or brand-red on white/dark
 * (testimonials position, jet-tabs label, nav-active). Safe to blanket. */
.jet-testimonials__name span,
.jet-testimonials__position span {
  /* Testimonial cards sit on dark surface; white passes AA. */
  color: #ffffff !important;
}
.jet-tabs__label-text {
  color: var(--bf-red-aa) !important;
}
/* Note: .elementor-item.elementor-item-active is NOT blanket-overridden.
 * The per-element-ID rules in the "DARK backgrounds -> white text" block
 * above handle the sitewide nav header (9c1efd7) where active items sit
 * on a dark surface and need white instead of AA-red. */

/* ---------------------------------------------------------------------
 * F18.2-B: Site-wide :focus-visible enhancement (WCAG 2.4.7 AA).
 *
 * Browser default focus rings are often suppressed by component CSS
 * (Hello Biz, Elementor, third-party widgets). This rule guarantees
 * every keyboard-focusable element gets a visible 3px brand-blue
 * outline regardless of upstream reset. Mouse-only focus (:focus
 * without :focus-visible) is not affected; this is keyboard-only.
 *
 * Use brand blue rather than red because red on red brand surfaces
 * has insufficient contrast.
 * ------------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1e3a8a \!important;
  outline-offset: 2px \!important;
  box-shadow: 0 0 0 1px #ffffff \!important; /* halo for dark backgrounds */
}
