/* ============================================================================
 * PWBC Design System — GENERATED FILE, DO NOT EDIT BY HAND.
 *
 * Assembled from design-system/ by _backups/scripts/06-build-design-system-css.php
 * Edit the source files there and re-run the script instead.
 *
 * Loaded by mcwc-theme/functions.php after 'bricks-child' so it can override
 * Bricks' own output. Colors here intentionally mirror the native Bricks "PWBC"
 * palette group and Advanced Themer's --at-* ramps: all three are generated from
 * the same design-system/tokens/colors.css values.
 * ============================================================================ */


/* ---------- root font-size compensation (site integration) ---------- */
:root {
  --pwbc-rem: calc(16 / var(--base-font, 16) * 1rem);
}

/* ---------- source: tokens/colors.css ---------- */
/* ============================================================
   PWBC — Color tokens
   Base values sampled directly from PWB-Logo-2022.jpg, extended
   with a neutral ramp and a warm accent for calls-to-action.
   ============================================================ */

:root {
  /* --- Base: brand (from logo) --- */
  --navy-900: #001A38;
  --navy-800: #002858;   /* logo wordmark + faucet ink */
  --navy-700: #003670;
  --navy-600: #0A4A8C;

  --cyan-600: #0098C7;
  --cyan-500: #00B8E8;   /* logo dome + "WATER" */
  --cyan-400: #3CCCF2;
  --cyan-300: #7FDDF7;
  --cyan-100: #E3F8FD;

  /* --- Base: warm accent (intentional addition — see readme "Intentional additions") --- */
  --amber-600: #C9760A;
  --amber-500: #E8920F;  /* action / urgency accent, used sparingly */
  --amber-400: #F5AC3C;
  --amber-100: #FDF0DD;

  /* --- Base: neutrals (navy-tinted grays, not flat gray) --- */
  --ink-900: #0B1520;
  --ink-700: #2B3A4A;
  --ink-500: #5B6B7B;
  --ink-300: #9AA9B6;
  --ink-200: #C7D2DA;
  --ink-100: #E7EDF1;
  --ink-50:  #F4F8FA;
  --white:   #FFFFFF;

  /* --- Semantic: text --- */
  --text-heading: var(--navy-800);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-inverse: var(--white);
  --text-link: var(--cyan-600);
  --text-link-hover: var(--navy-700);

  /* --- Semantic: surfaces --- */
  --surface-page: var(--white);
  --surface-alt: var(--ink-50);
  --surface-card: var(--white);
  --surface-navy: var(--navy-800);
  --surface-cyan: var(--cyan-500);
  --surface-overlay: rgba(0, 26, 56, 0.72);

  /* --- Semantic: borders --- */
  --border-subtle: var(--ink-200);
  --border-default: var(--ink-300);
  --border-strong: var(--navy-800);

  /* --- Semantic: action --- */
  --action-primary: var(--amber-500);
  --action-primary-hover: var(--amber-600);
  --action-primary-text: var(--navy-900);
  --action-secondary: var(--navy-800);
  --action-secondary-hover: var(--navy-700);
  --action-secondary-text: var(--white);

  /* --- Semantic: feedback --- */
  --feedback-success: #1E8E5A;
  --feedback-success-bg: #E4F5EC;
  --feedback-warning: var(--amber-600);
  --feedback-warning-bg: var(--amber-100);
  --feedback-error: #C9432E;
  --feedback-error-bg: #FBE7E3;
  --feedback-info: var(--cyan-600);
  --feedback-info-bg: var(--cyan-100);

  /* --- Focus ring --- */
  --focus-ring: var(--cyan-500);
}

/* ---------- source: tokens/spacing.css ---------- */
/* ============================================================
   PWBC — Spacing, radius, shadow, and motion tokens
   ============================================================ */

:root {
  /* --- Spacing scale (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Layout --- */
  --content-max: 1200px;
  --content-wide: 1440px;
  --content-narrow: 720px;
  --gutter: clamp(20px, 5vw, 64px); /* @kind spacing */

  /* --- Radius: mostly square with a couple of soft touchpoints —
     the logo & wordmark are hard-edged, so UI stays crisp, not pill-shaped --- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* --- Shadow: soft, low-elevation, single-source (no heavy drama) --- */
  --shadow-sm: 0 1px 2px rgba(11, 21, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 21, 32, 0.10);
  --shadow-lg: 0 12px 32px rgba(11, 21, 32, 0.14);
  --shadow-navy: 0 8px 24px rgba(0, 40, 88, 0.28);

  /* --- Border widths --- */
  --border-thin: 1px;
  --border-thick: 2px;
  --border-heavy: 3px;

  /* --- Motion: quick, purposeful, no bounce --- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 200ms; /* @kind other */
  --duration-slow: 360ms; /* @kind other */
}

/* ---------- source: tokens/typography.css ---------- */
/* ============================================================
   PWBC — Type tokens
   FONT SUBSTITUTION FLAG: no brand font files were supplied.
   Display type has moved through a couple of substitutions while
   dialing in the right feel: currently Readex Pro — a warm,
   humanist Google Font with rounded terminals, used at a
   semibold weight for headlines so the system reads bold but
   approachable rather than cold/industrial. Body/UI pairs with
   Public Sans, a civic/government-grade humanist sans with
   excellent readability at small sizes. Ask the user to confirm
   or supply the real brand fonts if the org has them.
   ============================================================ */

:root {
  --font-display: 'Readex Pro', 'Public Sans', sans-serif; /* @kind font */
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* @kind font */

  /* --- Display / headline sizes (Readex Pro, uppercase, open tracking) --- */
  --size-display-xl: clamp(calc(2.75 * var(--pwbc-rem)), calc(2 * var(--pwbc-rem)) + 3vw, calc(4.75 * var(--pwbc-rem))); /* @kind other */
  --size-display-lg: clamp(calc(2.25 * var(--pwbc-rem)), calc(1.8 * var(--pwbc-rem)) + 2vw, calc(3.25 * var(--pwbc-rem))); /* @kind other */
  --size-display-md: clamp(calc(1.75 * var(--pwbc-rem)), calc(1.5 * var(--pwbc-rem)) + 1vw, calc(2.5 * var(--pwbc-rem))); /* @kind other */
  --size-display-sm: calc(1.5 * var(--pwbc-rem)); /* @kind other */

  /* --- Body sizes (Public Sans) --- */
  --size-body-lg: calc(1.25 * var(--pwbc-rem)); /* @kind other */
  --size-body-md: calc(1.0625 * var(--pwbc-rem)); /* @kind other */
  --size-body-sm: calc(0.9375 * var(--pwbc-rem)); /* @kind other */
  --size-caption: calc(0.8125 * var(--pwbc-rem)); /* @kind other */

  /* --- UI sizes (Public Sans, semibold+) --- */
  --size-ui-lg: calc(1.0625 * var(--pwbc-rem)); /* @kind other */
  --size-ui-md: calc(0.9375 * var(--pwbc-rem)); /* @kind other */
  --size-ui-sm: calc(0.8125 * var(--pwbc-rem)); /* @kind other */

  /* --- Weights --- */
  --weight-display: 600; /* @kind other */
  --weight-body: 400; /* @kind other */
  --weight-medium: 500; /* @kind other */
  --weight-semibold: 600; /* @kind other */
  --weight-bold: 700; /* @kind other */
  --weight-extrabold: 800; /* @kind other */

  /* --- Line-heights --- */
  --leading-display: 1.2; /* @kind other */
  --leading-tight: 1.1; /* @kind other */
  --leading-body: 1.6; /* @kind other */
  --leading-ui: 1.2; /* @kind other */

  /* --- Tracking --- */
  --tracking-display: 0em; /* @kind other */
  --tracking-eyebrow: 0.12em; /* @kind other */
  --tracking-button: 0.02em; /* @kind other */
}

/* ---------- source: components/components.css ---------- */
/* ============================================================
   PWBC — Component styles
   Plain CSS classes consumed by the React primitives below.
   ============================================================ */

/* --- Button --- */
.pwbc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: var(--weight-bold) var(--size-ui-md)/var(--leading-ui) var(--font-body);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: var(--border-thick) solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.pwbc-btn:active { transform: scale(0.97); }
.pwbc-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pwbc-btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--size-ui-sm); }
.pwbc-btn--md { padding: var(--space-3) var(--space-6); }
.pwbc-btn--lg { padding: var(--space-6) var(--space-8); font-size: var(--size-ui-lg); }

.pwbc-btn--primary { background: var(--action-primary); border-color: var(--action-primary); color: var(--action-primary-text); }
.pwbc-btn--primary:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); }

.pwbc-btn--secondary { background: var(--action-secondary); border-color: var(--action-secondary); color: var(--action-secondary-text); }
.pwbc-btn--secondary:hover { background: var(--action-secondary-hover); border-color: var(--action-secondary-hover); }

.pwbc-btn--outline { background: transparent; border-color: var(--action-secondary); color: var(--action-secondary); }
.pwbc-btn--outline:hover { background: var(--surface-alt); }

.pwbc-btn--ghost { background: transparent; border-color: transparent; color: var(--action-secondary); }
.pwbc-btn--ghost:hover { background: var(--surface-alt); }

.pwbc-btn--onnavy { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.pwbc-btn--onnavy:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.pwbc-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* --- IconButton --- */
.pwbc-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: var(--border-thin) solid var(--border-default);
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.pwbc-iconbtn:hover { background: var(--surface-alt); }
.pwbc-iconbtn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pwbc-iconbtn--sm { width: 32px; height: 32px; }
.pwbc-iconbtn--onnavy { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.pwbc-iconbtn--onnavy:hover { background: rgba(255,255,255,0.12); }

/* --- Input / Select --- */
.pwbc-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-body); }
.pwbc-field__label { font: var(--weight-semibold) var(--size-ui-sm)/var(--leading-ui) var(--font-body); color: var(--text-heading); }
.pwbc-field__hint { font: var(--weight-body) var(--size-caption)/var(--leading-ui) var(--font-body); color: var(--text-muted); }
.pwbc-field__error { font: var(--weight-semibold) var(--size-caption)/var(--leading-ui) var(--font-body); color: var(--feedback-error); }

.pwbc-input, .pwbc-select {
  font: var(--weight-body) var(--size-body-sm)/1.2 var(--font-body);
  color: var(--text-body);
  padding: var(--space-3) var(--space-4);
  border: var(--border-thin) solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.pwbc-input::placeholder { color: var(--text-muted); }
.pwbc-input:hover, .pwbc-select:hover { border-color: var(--ink-500); }
.pwbc-input:focus, .pwbc-select:focus { outline: none; border-color: var(--cyan-600); box-shadow: 0 0 0 3px var(--cyan-100); }
.pwbc-input--error, .pwbc-select--error { border-color: var(--feedback-error); }
.pwbc-input--error:focus, .pwbc-select--error:focus { box-shadow: 0 0 0 3px var(--feedback-error-bg); }
.pwbc-input:disabled, .pwbc-select:disabled { background: var(--surface-alt); color: var(--text-muted); cursor: not-allowed; }

/* --- Checkbox / Radio --- */
.pwbc-check, .pwbc-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--weight-body) var(--size-body-sm)/var(--leading-ui) var(--font-body);
  color: var(--text-body);
  cursor: pointer;
}
.pwbc-check__box, .pwbc-radio__box {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: var(--border-thick) solid var(--border-default);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.pwbc-check__box { border-radius: var(--radius-sm); }
.pwbc-radio__box { border-radius: 50%; }
.pwbc-check__input:checked ~ .pwbc-check__box,
.pwbc-radio__input:checked ~ .pwbc-radio__box { background: var(--navy-800); border-color: var(--navy-800); }
.pwbc-check__input:focus-visible ~ .pwbc-check__box,
.pwbc-radio__input:focus-visible ~ .pwbc-radio__box { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pwbc-check__input, .pwbc-radio__input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.pwbc-check__mark { color: var(--white); width: 13px; height: 13px; }
.pwbc-radio__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

/* --- Switch --- */
.pwbc-switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font: var(--weight-body) var(--size-body-sm)/var(--leading-ui) var(--font-body); color: var(--text-body); }
.pwbc-switch__track {
  width: 44px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--ink-300);
  position: relative;
  transition: background-color var(--duration-base) var(--ease-standard);
  flex-shrink: 0;
}
.pwbc-switch__input:checked ~ .pwbc-switch__track { background: var(--navy-800); }
.pwbc-switch__input:focus-visible ~ .pwbc-switch__track { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.pwbc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--duration-base) var(--ease-standard); }
.pwbc-switch__input:checked ~ .pwbc-switch__track .pwbc-switch__thumb { transform: translateX(18px); }
.pwbc-switch__input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }

/* --- Card --- */
.pwbc-card {
  background: var(--surface-card);
  border: var(--border-thin) solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.pwbc-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pwbc-card__media { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--ink-100); }
.pwbc-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.pwbc-card__eyebrow { font: var(--weight-bold) var(--size-caption)/1 var(--font-body); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--cyan-600); }
.pwbc-card__title { font: var(--weight-extrabold) calc(1.375 * var(--pwbc-rem))/1.15 var(--font-body); color: var(--text-heading); }
.pwbc-card__text { font: var(--weight-body) var(--size-body-sm)/var(--leading-body) var(--font-body); color: var(--text-body); }

/* --- Badge / Tag --- */
.pwbc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font: var(--weight-bold) var(--size-caption)/1.6 var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.pwbc-badge--navy { background: var(--navy-800); color: var(--white); }
.pwbc-badge--cyan { background: var(--cyan-100); color: var(--navy-800); }
.pwbc-badge--amber { background: var(--amber-100); color: var(--amber-600); }
.pwbc-badge--success { background: var(--feedback-success-bg); color: var(--feedback-success); }
.pwbc-badge--error { background: var(--feedback-error-bg); color: var(--feedback-error); }

.pwbc-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: var(--border-thin) solid var(--border-default);
  background: var(--white);
  font: var(--weight-semibold) var(--size-caption)/1.4 var(--font-body);
  color: var(--text-body);
}
.pwbc-tag--removable { padding-right: var(--space-2); }
.pwbc-tag__remove { background: none; border: none; cursor: pointer; color: var(--text-muted); display: inline-flex; padding: 0; }
.pwbc-tag__remove:hover { color: var(--feedback-error); }

/* --- Tabs --- */
.pwbc-tabs__list { display: flex; gap: var(--space-6); border-bottom: var(--border-thick) solid var(--border-subtle); }
.pwbc-tabs__tab {
  background: none; border: none; cursor: pointer;
  padding: var(--space-3) var(--space-1);
  font: var(--weight-bold) var(--size-ui-sm)/1.2 var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: var(--border-heavy) solid transparent;
  margin-bottom: -2px;
  transition: color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.pwbc-tabs__tab:hover { color: var(--text-heading); }
.pwbc-tabs__tab--active { color: var(--navy-800); border-bottom-color: var(--amber-500); }
.pwbc-tabs__panel { padding-top: var(--space-6); font: var(--weight-body) var(--size-body-sm)/var(--leading-body) var(--font-body); color: var(--text-body); }

/* --- Dialog --- */
.pwbc-dialog__overlay {
  position: fixed; inset: 0;
  background: var(--surface-overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  z-index: 1000;
}
.pwbc-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pwbc-dialog__title { font: var(--weight-extrabold) calc(1.5 * var(--pwbc-rem))/1.15 var(--font-body); color: var(--text-heading); }
.pwbc-dialog__body { font: var(--weight-body) var(--size-body-sm)/var(--leading-body) var(--font-body); color: var(--text-body); }
.pwbc-dialog__actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-2); }

/* --- Toast --- */
.pwbc-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--navy-800);
  color: var(--white);
  font: var(--weight-body) var(--size-body-sm)/var(--leading-ui) var(--font-body);
  max-width: 360px;
  border-left: var(--border-heavy) solid var(--cyan-500);
}
.pwbc-toast--success { border-left-color: var(--feedback-success); }
.pwbc-toast--error { border-left-color: var(--feedback-error); }
.pwbc-toast--warning { border-left-color: var(--amber-500); }
.pwbc-toast__title { font-weight: var(--weight-bold); }

/* --- Tooltip --- */
.pwbc-tooltip-wrap { position: relative; display: inline-flex; }
.pwbc-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font: var(--weight-semibold) var(--size-caption)/1.3 var(--font-body);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.pwbc-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy-900);
}

/* ---------- source: _site/sections.css ---------- */
/* ============================================================================
 * PWBC — homepage section layouts
 *
 * SITE-AUTHORED, not part of the imported Claude Design export. These are the
 * layout rules for the homepage sections, transcribed from the inline styles in
 * design-system/ui_kits/website/HomeScreen.jsx so the same visual result can be
 * expressed as reusable classes that Bricks elements reference by name.
 *
 * Everything here uses the design system's own tokens — no new colour or spacing
 * values are introduced.
 * ============================================================================ */

/* ---------- section shells ---------- */
.pwbc-section {
  padding: var(--space-24) var(--gutter);
  background: var(--surface-page);
}
.pwbc-section--tight   { padding: var(--space-20) var(--gutter); }
.pwbc-section--navy    { background: var(--navy-800); color: var(--ink-200); }
.pwbc-section--deep    { background: var(--navy-900); color: var(--ink-200); }
.pwbc-section--amber   { background: var(--amber-500); color: var(--navy-900); }
.pwbc-section--alt     { background: var(--surface-alt); }

/* ---------- ACF section backgrounds ----------
 * The Page Sections "background" field outputs one of these class names.
 * Moved here from Bricks' global custom CSS, re-pointed from --at-* to PWBC tokens. */
/* Layouts without a saved Background Color were transparent, so on a short page the
 * page-intro colorblock (a fixed-height navy block behind the H1) showed through as a
 * navy bar behind them. Give them the same white the other layouts default to.
 * Stays above the .bg_* rules: same specificity, so a chosen colour has to come later. */
.fc-content-cards,
.fc-page-links { background-color: var(--surface-page); }

.bg_white  { background-color: var(--surface-page); }
.bg_light  { background-color: var(--cyan-400); }
.bg_medium { background-color: var(--navy-600); color: var(--white); }
.bg_dark   { background-color: var(--navy-900); color: var(--white); }
.bg_accent { background-color: var(--amber-500); color: var(--navy-900); }

.bg_accent a       { color: var(--navy-900); text-decoration: underline; }
.bg_accent a:hover { color: var(--navy-600); }

/* .btn-primary is already navy, but it's a link, so the Accent link rule above would
 * turn its text navy-on-navy and underline it. Keep button text white. */
.bg_accent a.btn-primary,
.bg_accent a.btn-primary:hover {
  color: var(--white);
  text-decoration: none;
}

.bg_medium a,
.bg_dark a       { color: var(--cyan-400); }
.bg_medium a:hover,
.bg_dark a:hover { color: var(--cyan-300); }

/* ---------- flexible content section padding ----------
 * Template 339 wraps each Page Sections layout in one of these. Moved from Bricks'
 * global custom CSS; still sized by Advanced Themer's section spacing.
 * .fc-pullquote and .fc-heading set their own padding on their Bricks classes. */
.fc-section,
.fc-div       { padding: var(--at-section-padding-block) var(--at-gutter); }
.fc-cta-hero  { padding: calc(var(--at-section-padding-block) * 2) var(--at-gutter); }
.fc-cta-mini  { padding: calc(var(--at-section-padding-block) * 1.5) var(--at-gutter); }

/* The page-intro colorblock is a fixed height (--page-colorblock-height, from Advanced
 * Themer), sized so a hero image beside the intro hangs half off the navy. On phones it
 * shrinks to ~534px while a long intro stacks far taller, so the rest of the white
 * intro text ran onto the white page below (Priority Issues, Safe & Clean Water).
 * Paint the same navy edge to edge behind the title + intro text: the element's own
 * background plus a spread shadow (an outer shadow isn't drawn under the box itself),
 * clipped to the text's height. The navy then always reaches the end of the text, and
 * the colorblock still sets where it ends relative to the hero image. */
.page-intro-container__inner {
  background-color: var(--at-primary);
  box-shadow: 0 0 0 100vmax var(--at-primary);
  clip-path: inset(0 -100vmax);
}

/* A short hero image ends inside the fixed-height colorblock, so the navy ran behind the
 * start of the intro text (Get Help). Paint white edge to edge from the top of the intro
 * so the navy always stops above it, then give the text its own room. Two classes to
 * beat the Bricks rule, which prints after this file. */
.page-intro-container .page-intro-container__intro-content-wrapper {
  padding-top: var(--at-space--xl);
  background-color: var(--surface-page);
  box-shadow: 0 0 0 100vmax var(--surface-page);
  clip-path: inset(0 -100vmax);
}

.pwbc-container         { max-width: var(--content-wide); margin: 0 auto; }
.pwbc-container--narrow { max-width: var(--content-narrow); margin: 0 auto; }
/* Centre the container's CONTENT horizontally. Bricks containers are flex columns by
 * default, so the horizontal axis is the cross axis: align-items, not justify-content.
 * text-align covers inline content (headings, paragraphs) inside the children.
 * Bricks' container defaults sit in @layer bricks, so this unlayered rule wins. */
.pwbc-container--center { align-items: center; text-align: center; }

.pwbc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: flex-start;
}
.pwbc-grid-2--center { align-items: center; }

/* ---------- shared type ---------- */
.pwbc-eyebrow {
  display: block;
  font: var(--weight-bold) var(--size-caption)/1 var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-600);
}
.pwbc-eyebrow--on-dark { color: var(--cyan-400); }

.pwbc-display {
  font: var(--weight-display) var(--size-display-md)/var(--leading-display) var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--text-heading);
  margin: var(--space-3) 0 0;
}
.pwbc-display--on-dark { color: var(--white); }

.pwbc-lede {
  font: var(--weight-body) var(--size-body-md)/var(--leading-body) var(--font-body);
  color: var(--text-body);
}
.pwbc-lede--on-dark  { color: var(--ink-200); }
.pwbc-lede--emphasis { font-weight: var(--weight-semibold); color: var(--white); }

/* ---------- Vision ---------- */
.pwbc-vision{
  display: flex;
  align-items: center;
  text-align: center;
  background-color: var(--cyan-400);
  padding: var(--at-space--s) var(--at-space--xl);
}

/* cyan-400 is a light tint, so the builder's .text-light (white) leaves this at
 * 1.89:1 — unreadable. Dark copy on the same background is 9.22:1. Changing the
 * TEXT colour rather than the brand colour: the cyan is untouched. */
.pwbc-vision.text-light,
.pwbc-vision.text-light .pwbc-vision__heading,
.pwbc-vision.text-light .pwbc-vision__body {
  color: var(--navy-900);
}

.pwbc-vision__text-wrapper {

}

.pwbc-vision__heading {
 text-transform: uppercase;
}
.pwbc-vision__body {

}

/* ---------- Guide ---------- */
.pbwc-guide {
  background-color: var(--navy-800);
}
.pwbc-guide__heading {
  font-size:   var(--size-display-md);
  text-transform: uppercase;
  line-height: var( --leading-tight);
}

/* ---------- The Stakes ---------- */
.pwbc-stakes__intro {
  font: var(--weight-semibold) var(--size-body-md)/1.5 var(--font-body);
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
}
.pwbc-stakes__list {
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pwbc-stakes__item {
  display: flex;
  gap: var(--space-3);
  font: var(--weight-body) var(--size-body-md)/1.5 var(--font-body);
  color: var(--text-body);
}
/* The amber dash that opens each stake — decorative, hidden from screen readers. */
.pwbc-stakes__item::before {
  content: "—";
  color: var(--amber-500);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* ---------- The Plan (three cards) ---------- */
.pwbc-plan__heading {
  text-align: center;
  text-transform: uppercase;
  margin: var(--space-3) 0 var(--space-10);
}
.pwbc-plan__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pwbc-plan__card {
  background: var(--surface-card);
  border: var(--border-thin) solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  text-align: center;
  gap: var(--space-3);
}
.pwbc-plan__icon {
  width: calc(7 * var(--pwbc-rem));
  height: calc(7 * var(--pwbc-rem));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
  background: var(--amber-500);
}
.pwbc-plan__icon img { width: calc(5 * var(--pwbc-rem)); height: calc(5 * var(--pwbc-rem)); object-fit: contain; }
/* Circle colour is chosen per card by the ACF `card_color` select. */
.pwbc-plan__icon--amber { background: var(--amber-500); }
.pwbc-plan__icon--cyan  { background: var(--cyan-500); }
.pwbc-plan__icon--navy  { background: var(--navy-800); }

.pwbc-plan__title {
  font: var(--weight-extrabold) var(--size-body-lg)/1.2 var(--font-body);
  color: var(--text-heading);
  margin: 0;
}
.pwbc-plan__text {
  font: var(--weight-body) var(--size-body-sm)/var(--leading-body) var(--font-body);
  color: var(--text-body);
  flex: 1;
}
.pwbc-plan__cta {
  display: flex;
  flex-direction: row; /* .brxe-block defaults to column */
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin-top: var(--space-10);
}

/* ---------- Get Involved (secondary asks above the email signup) ---------- */
/* Reuses the plan card, icon and text classes; only the size and layout differ. */
.pwbc-involved {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-16);
}
.pwbc-involved__heading { margin: 0 0 var(--space-8); }
.pwbc-involved__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  width: 100%;
  max-width: 760px;
}
.pwbc-plan__icon.pwbc-involved__icon { width: calc(5 * var(--pwbc-rem)); height: calc(5 * var(--pwbc-rem)); }
.pwbc-involved__icon img { width: calc(3.5 * var(--pwbc-rem)); height: calc(3.5 * var(--pwbc-rem)); }
.pwbc-plan__text.pwbc-involved__text { font-size: var(--size-body-md); flex: 0 1 auto; }

/* ---------- Shutoff help ---------- */
/* Row: text block left, button right. It must be stated — without it the Bricks
 * .brxe-container default (column) applies and space-between does nothing sideways.
 * flex-wrap drops the button under the text on narrow screens. */
.pwbc-shutoff {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.pwbc-shutoff__heading {
  font: var(--weight-extrabold) var(--size-display-sm)/1.2 var(--font-body);
  color: var(--navy-900);
  margin: 0 0 var(--space-2);
}
.pwbc-shutoff__body {
  font: var(--weight-medium) var(--size-body-sm)/1.5 var(--font-body);
  color: var(--navy-900);
  margin: 0;
  max-width: 560px;
}

/* ---------- Email capture ---------- */
/* Column is also the Bricks default, but stated here so the layout does not depend
 * on it — the shutoff above shows what happens when a direction is left implicit. */
.pwbc-email { display: flex; flex-direction: column; text-align: center; }
.pwbc-email > .pwbc-display { margin: 0 0 var(--space-2); }
.pwbc-email__heading {
  font: var(--weight-extrabold) var(--size-display-md)/1.2 var(--font-body);
  color: var(--text-heading);
  margin: 0 0 var(--space-2);
}
.pwbc-email__body {
  font: var(--weight-body) var(--size-body-md)/var(--leading-body) var(--font-body);
  color: var(--text-muted);
  margin: 0 0 var(--space-6);
}
.pwbc-email__form { max-width: 440px; margin: 0 auto; }
.pwbc-email__note {
  font: var(--weight-body) var(--size-body-sm)/1.4 var(--font-body);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ---------- responsive ---------- */
/* The design system collapses to a single column below ~860px. */
@media (max-width: 860px) {
  .pwbc-grid-2,
  .pwbc-plan__grid,
  .pwbc-involved__grid { grid-template-columns: 1fr; }
  .pwbc-shutoff { flex-direction: column; align-items: flex-start; }
  .pwbc-section { padding: var(--space-16) var(--gutter); }
}

/* ---------- Wave ---------- */
/* .wave-section is applied conditionally off a body class (summit page as event).
 *
 * This was a bottom border-image, which could not work here for two reasons:
 *   1. border-image cannot be flipped, so one artwork could not serve both edges.
 *   2. background-clip defaults to border-box, so the section's own cyan filled the
 *      border area behind a cyan wave — the wave was invisible.
 *
 * Two pseudo-elements instead. wave.svg is drawn as a TOP wave (transparent
 * above a wavy edge, cyan below, straight bottom), so ::before uses it as-is and
 * ::after mirrors it with scaleY(-1) — straight edge flush against the section,
 * wavy edge dipping into whatever follows.
 *
 * They sit OUTSIDE the box (bottom/top: 100%) and overlap the neighbouring sections,
 * which is what makes it read as a transition rather than a stripe. z-index keeps
 * them above the next section, which would otherwise paint over ::after.
 *
 * The waves are not part of the section's height, so they would cover the bottom of
 * the section above and the top of the one below. Those NEIGHBOURS grow to make room:
 * a transparent border the height of the wave. A border (not margin) keeps the
 * neighbour's own background painting behind the wave — background-clip defaults to
 * border-box — so a navy section stays navy under the curve instead of leaving a
 * white strip. And it adds to whatever padding the neighbour already has, so its
 * content clears the wave without knowing that padding.
 *
 * Needs the neighbours to be DOM siblings of the wave section. --wave-height is on
 * :root so the siblings can read it too. */
:root {
  --wave-height: clamp(calc(5 * var(--pwbc-rem)), 4.464vw + calc(3.571 * var(--pwbc-rem)), calc(10 * var(--pwbc-rem)));
}

.show-wave .wave-section,
.wave {
  position: relative;
  z-index: 1;
}
:is(.show-wave .wave-section, .wave) + * {
  border-top: var(--wave-height) solid transparent;
}
*:has(+ :is(.show-wave .wave-section, .wave)) {
  border-bottom: var(--wave-height) solid transparent;
}

/* Page Sections (template 339): each layout sits alone in its own .fc-loop wrapper,
 * so the wave's siblings are wrappers. The wrappers are transparent, so the border
 * goes on the section INSIDE a neighbouring wrapper, where the background is. */
.fc-loop:has(> .wave) + .fc-loop > :first-child,
.fc-loop:has(> .wave) + :not(.fc-loop) {
  border-top: var(--wave-height) solid transparent;
}
.fc-loop:has(+ .fc-loop > .wave) > :last-child,
:not(.fc-loop):has(+ .fc-loop > .wave) {
  border-bottom: var(--wave-height) solid transparent;
}

/* The wave bands add colour above and below the section, so a waved Page Section with
 * its full padding reads as a much taller block than its neighbours. Halve the block
 * padding of each layout type (two classes, so it beats the single-class Bricks rules).
 * .fc-heading keeps its own small padding. */
.wave.fc-section  { padding-block: calc(var(--at-section-padding-block) * 0.5); }
.wave.fc-pullquote,
.wave.fc-cta-mini { padding-block: calc(var(--at-section-padding-block) * 0.75); }
.wave.fc-cta-hero { padding-block: var(--at-section-padding-block); }

.show-wave .wave-section::before,
.show-wave .wave-section::after,
.wave::before,
.wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--wave-height);
  background-image: url('../wave.svg');
  /* Stretch to the band rather than preserving the 1366:60 ratio, matching the
     border-image-repeat: stretch this replaces. */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Top edge: artwork as drawn — wavy edge up into the previous section.
 * Both waves overlap the section by 1px: --wave-height is a fluid clamp(), so the band
 * and the section can round to different sub-pixels and leave a 1px hairline between
 * them. The overlap sits on the section's own cyan, so nothing visibly moves. */
.show-wave .wave-section::before,
.wave::before { bottom: calc(100% - 1px); }

/* Bottom edge: mirrored on BOTH axes — scale(-1,-1) is a 180deg rotation. scaleY
   puts the straight edge flush against the section with the wave dipping down;
   scaleX additionally flops it left-to-right, so the crests do not sit directly
   under the ones on the top edge. 1px overlap as above. */
.show-wave .wave-section::after,
.wave::after { top: calc(100% - 1px); transform: scale(-1, -1); }

/* ---------- site header ---------- */
/* Header.jsx specifies a solid navy, sticky bar with white uppercase links and a
 * 55px white logo. The MCWC build used a light header with dark links; that is
 * overridden. (Its transparent "overlay header" option for hero pages has been removed
 * entirely — CSS, the Header template attribute and the ACF checkbox.)
 *
 * Selectors are scoped to .brxe-div.nav so they outrank the legacy rules regardless of
 * load order. */

/* --- legacy MCWC header rules (overridden below) ---
 * The `nav__nav-menu` rules from that Bricks global class's custom CSS, moved here so
 * the whole header lives in one place. Kept verbatim; the PWBC rules after them win. */
.nav__nav-menu > nav > ul { align-items: center; }
.nav__nav-menu > nav > ul > li:first-child { margin-left: 0; }

.nav__nav-menu nav:not(.bricks-mobile-menu-wrapper) .cta-nav {
  font-family: var(--body-fonts);
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--at-btn-large-padding-block) var(--at-btn-medium-padding-inline);
  line-height: 1;
  border-radius: var(--at-btn-border-radius);
  background-color: var(--at-action);
  color: var(--at-black);
  box-shadow: var(--at-btn-shadow);
  margin-inline-start: 3em;
  transition: var(--at-btn-transition);
}
.nav__nav-menu nav:not(.bricks-mobile-menu-wrapper) .cta-nav:hover {
  background-color: var(--at-action-hover);
  box-shadow: var(--at-btn-shadow-hover);
  color: var(--at-black);
}
.nav__nav-menu .bricks-nav-menu .sub-menu {
  background-color: var(--secondary);
  border-radius: var(--at-radius--2xs);
}

/* --- PWBC header --- */
/* Bricks wraps the nav in #brx-header and, with its sticky option on, sets
 *   @layer bricks { #brx-header.brx-sticky { position: fixed } }
 * A fixed header is out of flow, so #brx-content starts at y=0 underneath it and the
 * top of every page is hidden behind the bar. Nothing offsets it — Bricks only adds
 * a margin for the LEFT/RIGHT header layouts, not the top one.
 *
 * Header.jsx specifies `position: sticky`, which is in flow: the bar reserves its own
 * height, then pins to the top on scroll. That fixes the overlap at any logo size and
 * every breakpoint without hard-coding a header height anywhere.
 *
 * This must target #brx-header, not the .nav div inside it — setting sticky on a
 * child of a fixed parent does nothing. Bricks' rule sits in `@layer bricks` and this
 * stylesheet is unlayered, so the override wins on layer order alone. */
#brx-header.brx-sticky {
  position: sticky;
}

/* The nav itself must stay IN FLOW inside that sticky header, or #brx-header
 * collapses to 0 height and the overlap comes straight back. `relative` rather than
 * `static` so the element still forms a containing block for the dropdown panels. */
.brxe-div.nav {
  position: relative;
  z-index: 100;
  background: var(--navy-800);
}

/* Top-level links. .cta-nav (Donate) is excluded — it renders as a button.
 * Items WITH a submenu wrap their anchor in .brx-submenu-toggle, so a direct-child
 * selector alone would skip them (Priority Issues). Both shapes are matched. */
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > a,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > .brx-submenu-toggle > a {
  font: var(--weight-bold) var(--size-ui-sm)/1.2 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > a:hover,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > .brx-submenu-toggle > a:hover,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li.current-menu-item:not(.cta-nav) > a,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li.current-menu-item:not(.cta-nav) > .brx-submenu-toggle > a,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu > li.current-menu-ancestor > .brx-submenu-toggle > a {
  color: var(--cyan-400);
}

/* Sticky header once scrolled: the Header template turns the bar white and its links
 * black with ID-level rules (#brx-header.brx-sticky.scrolling …), which also wipe out
 * the hover/current colour above. Restore it at ID level, using the light-surface link
 * cyan (--text-link = cyan-600); cyan-400 is too faint on white. */
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > a:hover,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav) > .brx-submenu-toggle > a:hover,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav):hover > .brx-submenu-toggle > *,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(.cta-nav):hover > .brx-submenu-toggle > button svg,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li.current-menu-item:not(.cta-nav) > a,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li.current-menu-item:not(.cta-nav) > .brx-submenu-toggle > a,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li.current-menu-ancestor > .brx-submenu-toggle > a {
  color: var(--text-link);
}
/* The chevrons are forced white below for the navy bar, which hides them on white.
 * Match the sticky bar's link colour; the hover rule above turns them cyan. */
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(:hover) > .brx-submenu-toggle > button,
#brx-header.brx-sticky.scrolling .nav__nav-menu .bricks-nav-menu > li:not(:hover) > .brx-submenu-toggle > button svg {
  color: var(--at-black);
}

/* DONATE (.cta-nav) is an amber button: its text is always navy-900, the text colour the
 * design system pairs with amber (--action-primary-text). The link colours above skip
 * it, but the nav__nav-menu class's own `li:hover > a` rule and the sticky bar's black
 * links still reach it, so pin it at ID level — (1,4,2) beats the sticky rule's (1,3,2). */
#brx-header.brx-sticky .nav__nav-menu .bricks-nav-menu > li.cta-nav > a,
#brx-header.brx-sticky .nav__nav-menu .bricks-nav-menu > li.cta-nav:hover > a {
  color: var(--action-primary-text);
}

/* The submenu chevron button inherits the old dark colour. */
.brxe-div.nav .nav__nav-menu .brx-submenu-toggle > button,
.brxe-div.nav .nav__nav-menu .brx-submenu-toggle > button svg {
  color: var(--white);
  fill: currentColor;
}

/* Dropdown panel — navy with white links; a hovered link flips to white-on-navy. The
 * cyan border was a Bricks setting on the header's nav element (removed); the
 * nav__nav-menu global class still turns hovered items white-on-cyan, which these
 * rules override. */
.brxe-div.nav .nav__nav-menu .sub-menu {
  background: var(--navy-700);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: var(--space-2) 0;
  /* Bricks shows/hides dropdowns by toggling opacity + visibility (.open); this slows
   * its default transition to a 0.3s fade and adds a short drift down. Bricks positions
   * the panel with left/right, not transform, so translateY is free to use. */
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.brxe-div.nav .nav__nav-menu .bricks-nav-menu li.open > .sub-menu,
.brxe-div.nav .nav__nav-menu .bricks-nav-menu li:hover > .sub-menu {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .brxe-div.nav .nav__nav-menu .sub-menu { transform: none; transition: opacity 0.3s ease, visibility 0.3s ease; }
}
.brxe-div.nav .nav__nav-menu .sub-menu > li,
.brxe-div.nav .nav__nav-menu .sub-menu > li:hover {
  background-color: transparent;
}
.brxe-div.nav .nav__nav-menu .sub-menu > li > a {
  display: block;
  padding: var(--space-4) var(--space-6);
  font: var(--weight-semibold) var(--size-ui-sm)/1.2 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.brxe-div.nav .nav__nav-menu .sub-menu > li:hover > a,
.brxe-div.nav .nav__nav-menu .sub-menu > li > a:hover,
.brxe-div.nav .nav__nav-menu .sub-menu > li > a:focus-visible {
  background-color: var(--white);
  color: var(--navy-900);
  text-decoration: none;
}

.brxe-div.nav .bricks-site-logo {
  height: 55px;
  width: auto;
}

/* ==========================================================================
   ACF Page Sections — layouts added 2026-09-06
   Rendered by Bricks template 339. The classes are registered as empty Bricks
   global classes (builder-pickable hooks); all styling lives here.
   ========================================================================== */

/* --- content_video_embed: the videos repeater ---------------------------- */
/* Videos sit side by side and are centred against each other on a shared midline,
   so a mix of aspect ratios (16:9 next to 9:16) reads as one row rather than a
   ragged one. align-items does the vertical centring; without it the default
   `stretch` makes every item the height of the tallest and the videos sit at the
   top of their cells.

   NB: a Bricks query loop repeats the element CARRYING the loop, so
   .fc-video-embed__videos-loop lands on every item — the grid container has to be
   the wrapper around them. Declaring grid or align-items on the loop class itself
   styles each item in isolation and appears to do nothing. */
.fc-video-embed__video-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  justify-items: center;
  gap: var(--space-6);
  width: 100%;
}
/* Cap matters when there is only one video: auto-fit gives it the whole row. */
.fc-video-embed__videos-loop {
  width: 100%;
  max-width: 900px;
  min-width: 0;
}

/* Aspect ratio is chosen per video in ACF, which stores these class names as its
   field value, so the class arrives on the element already and only needs rules.
   It must be set on the .brxe-video CONTAINER, not on the iframe:
   frontend-layer.min.css has
       :where(.brxe-video)        { aspect-ratio: 16/9; overflow: hidden }
       :where(.brxe-video) iframe { position: absolute; height: 100%; width: 100% }
   so the iframe is stretched to fill a container the ratio already sized. Setting
   aspect-ratio on the iframe does nothing, and setting height there breaks Bricks'
   own fill. (The padding-top variant of the same rule is inside
   `@supports not (aspect-ratio:16/9)`, mirrored below for old browsers.)

   Two selectors each, because the class lands in two places: directly on the video
   in content_video_embed, and on a wrapper around it in content_two_columns.
   :where() is zero-specificity, so a single class is enough to win. */
.brxe-video.fc-video__horiz, .fc-video__horiz .brxe-video { aspect-ratio: 16 / 9; }
.brxe-video.fc-video__vert,  .fc-video__vert  .brxe-video { aspect-ratio: 9 / 16; }
.brxe-video.fc-video__sq,    .fc-video__sq    .brxe-video { aspect-ratio: 1 / 1; }

@supports not (aspect-ratio: 16 / 9) {
  .brxe-video.fc-video__horiz, .fc-video__horiz .brxe-video { padding-top: 56.25%; }
  .brxe-video.fc-video__vert,  .fc-video__vert  .brxe-video { padding-top: 177.78%; }
  .brxe-video.fc-video__sq,    .fc-video__sq    .brxe-video { padding-top: 100%; }
}

/* Bricks already sets overflow:hidden on the container, so this clips the iframe. */
.brxe-video.fc-video__horiz, .fc-video__horiz .brxe-video,
.brxe-video.fc-video__vert,  .fc-video__vert  .brxe-video,
.brxe-video.fc-video__sq,    .fc-video__sq    .brxe-video {
  width: 100%;
  border-radius: var(--radius-md);
}

/* A vertical video at full column width is overwhelming; cap it and centre.
   Applied to whichever element carries the class, so the grid cell narrows too. */
.fc-video__vert { max-width: 420px; margin-inline: auto; }

/* --- content_two_columns -------------------------------------------------- */
.fc-two-columns__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (max-width: 767px) {
  .fc-two-columns__container { grid-template-columns: 1fr; gap: var(--space-8); }
}
.fc-two-columns__col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
/* No font rule: inherits the body type, same as the WYSIWYG row's .fc-wys__content,
 * so text in the two layouts matches. (It was --size-body-md, a size smaller.) */
.fc-two-columns__wysiwyg > :first-child { margin-top: 0; }
.fc-two-columns__wysiwyg > :last-child  { margin-bottom: 0; }
.fc-two-columns__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.fc-two-columns__video-wrapper { width: 100%; }

/* --- content_page_links --------------------------------------------------- */
.fc-page-links__container {
  width: 100%;
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.fc-page-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.fc-page-links__item {
  border-bottom: var(--border-thin) solid var(--border-subtle);
}
.fc-page-links__item:first-child { border-top: var(--border-thin) solid var(--border-subtle); }

.fc-page-links__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  font: var(--weight-semibold) var(--size-body-lg)/1.3 var(--font-body);
  color: var(--navy-800);
  text-decoration: none;
  transition: color var(--duration-fast), background-color var(--duration-fast);
}
/* Chevron affordance, so a bare list of titles reads as navigation. */
.fc-page-links__link::after {
  content: "→";
  flex: none;
  color: var(--cyan-600);
  transition: transform var(--duration-fast);
}
.fc-page-links__link:hover {
  color: var(--cyan-600);
  background: var(--ink-50);
}
.fc-page-links__link:hover::after { transform: translateX(4px); }
.fc-page-links__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Background Color choices. The link text itself follows the .bg_* link rules; these
 * cover the parts that were drawn for white: rules, arrow and hover wash. */
.bg_medium .fc-page-links__item,
.bg_dark .fc-page-links__item { border-color: rgb(255 255 255 / 0.25); }
.bg_medium .fc-page-links__link::after,
.bg_dark .fc-page-links__link::after { color: var(--cyan-400); }
.bg_medium .fc-page-links__link:hover,
.bg_dark .fc-page-links__link:hover { background: rgb(255 255 255 / 0.08); }

.bg_light .fc-page-links__item,
.bg_accent .fc-page-links__item { border-color: rgb(0 26 56 / 0.3); }
.bg_light .fc-page-links__link::after,
.bg_accent .fc-page-links__link::after { color: var(--navy-900); }
.bg_light .fc-page-links__link:hover,
.bg_accent .fc-page-links__link:hover { color: var(--navy-900); background: rgb(255 255 255 / 0.25); }

/* --- older Page Sections layouts ------------------------------------------
 * Moved from the custom CSS on these Bricks global classes (the classes stay,
 * with their other settings). */
.fc-accordion__item { border-top: 0.5px solid var(--at-neutral-d-1); }
.fc-accordion__accordion-loop:last-child { border-bottom: 0.5px solid var(--at-neutral-d-1); }

.fc-gallery__image-gallery img {
  height: var(--grid-gallery-image);
  width: var(--grid-gallery-image);
  object-fit: cover;
}

.fc-testimonial__slide { background-color: transparent !important; }
.fc-testimonial__slider .brxe-slide { background: transparent !important; }
.fc-testimonial__slider .splide__track { overflow: visible; }

.card-grid__card-wrapper {
  position: relative;
  box-shadow: var(--at-shadow--m);
  transition: all 0.3s ease;
}
.card-grid__card-wrapper:hover {
  box-shadow: none;
  transform: scale(.99);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* NOTE: "position: absolute: inset: 0" is one invalid declaration, so this overlay
 * has never covered the card (only the heading link is clickable). Kept as-is to
 * avoid changing behaviour in the move; "position: absolute; inset: 0;" would make
 * the whole card clickable. */
.card-grid__card-wrapper h3 a::before {
  content: "";
  position: absolute: inset: 0;
  z-index: 1;
}

/* ---------- source: _site/content.css ---------- */
/* ============================================================================
 * PWBC — site-wide content styles
 *
 * SITE-AUTHORED. Moved from Bricks' global custom CSS (Settings → Custom code) so
 * all site CSS lives in the build. Covers breadcrumbs, article term lists, images,
 * and the classes editors use inside the WYSIWYG (TinyMCE) fields.
 *
 * Still on --at-* variables where it was before: re-pointing those at PWBC tokens is
 * a design change, not part of the move.
 *
 * rem values here are 16px-based like the rest of the build. Rules that came from
 * the Bricks panel were authored against Advanced Themer's 10px root, so they were
 * converted to keep the same rendered size (e.g. calc(0.5 * var(--pwbc-rem))@10px = 5px = calc(0.3125 * var(--pwbc-rem))).
 * ============================================================================ */

/* ---------- breadcrumbs ---------- */
.breadcrumb {
  color: var(--at-white);
  font-size: var(--at-text--s);
  font-weight: 400;
}
.breadcrumb li a       { color: var(--at-link-dark); }
.breadcrumb li a:hover { color: var(--at-link-dark-hover); }
.breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: calc(0.3125 * var(--pwbc-rem));
}
.breadcrumb--onlight { color: var(--at-neutral-d-1); }

/* ---------- article terms + icons ---------- */
.terms-horizontal {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--at-space--m);
}
.terms-horizontal li {
  display: flex;
  align-items: center;
  gap: calc(0.3125 * var(--pwbc-rem));
}
.term-icon {
  width: 30px;
  height: 30px;
}

/* ---------- media ---------- */
img, figure img, figcaption {
  border-radius: clamp(8px, 1vw, 15px);
}
.wp-caption { border: none; }

/* ---------- layout helpers ---------- */
.row-items {
  display: flex;
  gap: calc(1.25 * var(--pwbc-rem));
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.align-middle { vertical-align: middle; }

/* ---------- lists ---------- */
ol li { margin-bottom: 0.75em; }
ol li:last-child { margin-bottom: 0; }   /* no extra space after the last item */

/* ---------- WYSIWYG (TinyMCE) classes ---------- */
.footnote {
  font-size: calc(0.8125 * var(--pwbc-rem));
  line-height: calc(1.625 * var(--pwbc-rem));
}

.callout {
  color: var(--white);
  padding: var(--at-space--m);
  background-color: var(--navy-600);
  border-radius: var(--at-radius--m);
  width: 30%;
  float: right;
  margin-left: 15px;
  border: 2px solid var(--navy-600);
}
@media (max-width: 767px) {
  .callout {
    width: 95%;
    float: none;
  }
}

.callout--wide {
  width: 95%;
  float: unset;
}

/* Donate page: the parent's flex gap sets the spacing around this WYSIWYG, so the
 * editor content's own outer margins must not add to it. */
.donate-intro-details { width: 100%; }
.donate-intro-details > :first-child { margin-top: 0; }
.donate-intro-details > :last-child { margin-bottom: 0; }

/* ============================================================================
 * Rules moved from the custom CSS on individual Bricks global classes. The classes
 * themselves stay in Bricks (with any other settings they carry).
 * ============================================================================ */

/* ---------- breadcrumbs + terms (class settings) ---------- */
.breadcrumb { line-height: 0; }
.breadcrumb--onlight li a { color: var(--at-action); }
.terms { margin-top: 0; margin-bottom: 0; }
.terms__term-icon { border-radius: 0; }

/* ---------- article template (CPT Article, 592) ---------- */
.author__headshot { transition: all 200ms ease-in-out; }
.author__headshot:hover { transform: scale(0.98); }

.post-nav.brxe-post-navigation .title {
  width: 25ch;
  white-space: wrap;
}
.social-share { gap: var(--at-space--2xs); }

/* ---------- hero image (Home 1681, Donate 2537) ---------- */
.hero-section__hero-image img, figure img::before { border-radius: 0; }

/* ---------- member grid (Members Archive, 3959) ---------- */
.member-grid {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(18 * var(--pwbc-rem))), 1fr));
  align-items: stretch;
  gap: var(--space-4);
  width: 100%;
}
.member-grid__item {
  margin: 0;
  display: flex;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
/* Hover reverses the card to navy with white text, like the header dropdowns.
 * Keyboard focus only: the links open in a new tab, so a mouse click leaves the link
 * focused when the visitor comes back. :focus-within matched that click focus but the
 * white text below (:focus-visible) did not — navy text on a navy card. */
.member-grid__item:hover,
.member-grid__item:has(.member-grid__link:focus-visible) {
  background-color: var(--navy-900);
  border-color: var(--navy-900);
}
.member-grid__link {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-900);
  text-decoration: none;
  transition: color 0.15s ease;
}
.member-grid__item:hover .member-grid__link,
.member-grid__link:focus-visible {
  color: var(--white);
  text-decoration: none;
}

/* ---------- footer (18) ---------- */
.link-dark-bg a      { color: var(--link-dark); }
.link-dark-bg a:hover { color: var(--link-dark-hover); }

/* Bricks colours this menu by element ID, so these need IDs to win. */
#brx-footer #menu-footer a { transition: color var(--duration-fast); }
#brx-footer #menu-footer a:hover,
#brx-footer #menu-footer a:focus-visible { color: var(--cyan-400); }

/* ---------- not used by any published template ----------
 * Candidates for deletion along with their Bricks classes. */
.big-words span {
  font-size: 1.75em;
  font-family: "Comfortaa";
  display: inline-block;
  line-height: 1;
}

.issues-loop {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--at-space--m);
  display: flex;
}
.issues-loop__issue {
  display: flex;
  align-items: center;
  gap: 5px;
}
.issues-loop__svg {
  width: 20px;
  height: 20px;
  padding-right: var(--at-content-gap--xs);
}
.issues-loop__wrapper { margin-right: calc(0.625 * var(--pwbc-rem)); }   /* was calc(1 * var(--pwbc-rem)) at AT's 10px root */

.mc-image-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(15, 135, 154, 0.9);
  z-index: 1;
}

.middle-container__left-column-wys h1,
.middle-container__left-column-wys h2,
.middle-container__left-column-wys h3,
.middle-container__left-column-wys h4,
.middle-container__left-column-wys h5,
.middle-container__left-column-wys h6 { margin-block-end: 1em; }
.middle-container__left-column-wys h3 { font-size: var(--at-heading--s); }

.news-loop__link {
  margin-block-end: 0;
  filter: saturate(2);
}
.news-loop__link i,
.news-loop__link svg { transition: transform 0.2s ease; }
.news-loop__link:hover i,
.news-loop__link:hover svg { transform: translatex(5px); }

.plan__inner ul { padding-inline-start: 10px; }
.plan__inner h4 { font-size: var(--at-heading--m); }
.plan__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 80%;
  background: #000;
  z-index: 0;
}
@media screen and (max-width: 478px) {
  .plan__inner::after { position: relative; }
}

/* ---------- in the media (In the Media template) ----------
 * Coverage of PWBC at outside outlets: the button links out to the story, so the card
 * leads with the outlet name rather than the article type. Featured story on top
 * (.media-feature), every story below (.media-grid of .media-card). */
.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}
.media-feature__image,
.media-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-feature__image { border-radius: var(--radius-md); }

/* Photo + credit line. The images usually come from the story itself, so each one
 * carries a "PHOTO: name" credit when the article has one. */
.media-feature__media,
.media-card__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.media-credit {
  margin: 0;
  font-size: calc(0.6875 * var(--pwbc-rem));
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.media-card .media-credit { padding: 0 var(--space-6); }
/* Bricks' theme styles give every block a ~18px row gap and load after this file, so
 * restate the gaps with the block class for the extra specificity. The card itself has
 * no gap: spacing between photo and text comes from the body padding. */
.brxe-block.media-card { gap: 0; }
.brxe-block.media-feature__media,
.brxe-block.media-card__media { gap: var(--space-2); }
.brxe-block.media-feature__body,
.brxe-block.media-card__body { gap: var(--space-3); }
/* The credit already separates photo from text, so the body needs less top padding */
.media-card__media:has(.media-credit) + .media-card__body { padding-top: var(--space-3); }
.media-feature__body,
.media-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.media-feature__title {
  margin: 0;
  font-size: clamp(calc(1.5 * var(--pwbc-rem)), 2.4vw, calc(2 * var(--pwbc-rem)));
  line-height: 1.2;
  color: var(--text-heading);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  width: 100%;
}
.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s ease;
}
.media-card:hover { box-shadow: var(--shadow-md); }
.media-card__image { border-radius: 0; }   /* the card's own corners clip it */
.media-card__body {
  flex: 1;
  padding: var(--space-6);
}
.media-card__title {
  margin: 0;
  font-size: calc(1.25 * var(--pwbc-rem));
  line-height: 1.3;
  color: var(--text-heading);
}

/* Outlet name as a kicker above the headline */
.media-outlet {
  margin: 0;
  font-size: calc(0.8125 * var(--pwbc-rem));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-600);
}
.media-meta {
  margin: 0;
  font-size: calc(0.875 * var(--pwbc-rem));
  color: var(--text-muted);
}
.media-meta__issues:not(:empty)::before { content: " • "; }
.media-intro {
  margin: 0;
  font-size: calc(0.9375 * var(--pwbc-rem));
}
/* Pin the button to the bottom so buttons line up across a row of cards */
.media-card__button { margin-top: auto; align-self: flex-start; }
.media-feature__button { align-self: flex-start; }

@media (max-width: 991px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .media-feature { grid-template-columns: 1fr; gap: var(--space-6); }
  .media-feature:has(.media-credit) { gap: var(--space-3); }
  .media-grid { grid-template-columns: 1fr; }
}

/* ---------- share pages (CPT Share Page template) ----------
 * Where people land after registering for an event or taking an action: a thank-you
 * matched to what they just did, then a copyable link and share buttons that all point
 * at the page they came from (the Share Page's "Primary Parent"), not the share page. */
.share-body {
  max-width: calc(48 * var(--pwbc-rem));
  margin-inline: auto;
}
.brxe-block.share-thanks {
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
}
.share-thanks__icon {
  flex: none;
  font-size: calc(3.5 * var(--pwbc-rem));
  color: var(--cyan-600);
}
.brxe-block.share-thanks__text { gap: var(--space-3); }
.share-thanks__heading { margin: 0; }
.share-thanks__text p { margin: 0; }

.share-link__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font: inherit;
  color: var(--text-body);
  background: var(--surface-alt);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.share-link__button:hover,
.share-link__button:focus-visible {
  border-color: var(--navy-600);
  background: var(--surface-card);
}
.share-link__url {
  font-weight: 600;
  word-break: break-all;
}
.share-link__hint {
  font-size: calc(0.875 * var(--pwbc-rem));
  color: var(--text-muted);
}
.share-label {
  margin: 0;
  align-self: center;
}

@media (max-width: 478px) {
  .brxe-block.share-thanks { flex-direction: column; text-align: center; }
}

/* ---------- event header (CPT Event, 447) ---------- */
.event-when {
  margin: 0;
  font-size: calc(1.125 * var(--pwbc-rem));
  font-weight: 600;
}

/* ---------- take action page (Take Action template) ----------
 * Open actions, newest first. The coalition rarely runs more than two at once, so each
 * one gets a full-width navy card with the amber ACT NOW button. */
.action-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  width: 100%;
}
.brxe-block.action-card {
  margin: 0;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-12);
  color: var(--text-inverse);
  /* Water photo under a navy wash: solid behind the text on the left, thinning to the
   * right so the ripples show. The photo is in the theme (assets/images), not the media
   * library. Navy stays as the fallback colour. */
  background-color: var(--navy-900);
  background-image:
    linear-gradient(100deg,
      color-mix(in srgb, var(--navy-900) 94%, transparent) 0%,
      color-mix(in srgb, var(--navy-900) 82%, transparent) 50%,
      color-mix(in srgb, var(--navy-900) 55%, transparent) 100%),
    url("../images/water-action-bg.webp");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
}
.action-card__issues {
  margin: 0;
  font-size: calc(0.8125 * var(--pwbc-rem));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.action-card__title {
  margin: 0;
  font-size: clamp(calc(1.75 * var(--pwbc-rem)), 3vw, calc(2.5 * var(--pwbc-rem)));
  line-height: 1.25;
  color: var(--text-inverse);
}
.action-card__intro {
  margin: 0;
  max-width: 60ch;
}
.action-card__deadline {
  margin: 0;
  font-size: calc(0.875 * var(--pwbc-rem));
  font-weight: 600;
  color: var(--amber-400);
}
.action-card__button {
  margin-top: auto;
  align-self: flex-start;
}

/* Amber action button (ACT NOW, Donate): sits on btn-primary for size and shape and
 * swaps its navy for the design system's action colours. */
.brxe-button.btn-primary.btn-amber {
  color: var(--action-primary-text);
  background-color: var(--action-primary);
  border-color: var(--action-primary);
}
.brxe-button.btn-primary.btn-amber:hover,
.brxe-button.btn-primary.btn-amber:focus-visible {
  color: var(--action-primary-text);
  background-color: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}

.take-action-section__heading { margin: 0 0 var(--space-6); }

/* The Page intro's navy colour block is sized to sit behind a hero image. This page
 * usually has no image, so keep the block inside the header instead of letting it run
 * into the actions. */
.take-action-hero {
  position: relative;
  overflow: clip;
}

@media (max-width: 767px) {
  .brxe-block.action-card { padding: var(--space-6); }
}

/* ---------- source: _site/embeds.css ---------- */
/* ============================================================================
 * PWBC — third-party form embeds (Action Network, WS Form)
 *
 * SITE-AUTHORED. The Action Network rules were moved from Bricks' global custom CSS;
 * the WS Form rules were moved from sections.css. Neither plugin's markup can take
 * pwbc-* classes, so these restyle it from outside.
 * ============================================================================ */

/* Font stacks for the Action Network overrides below. Kept as aliases because a
 * WordPress option still references these names; the values are the PWBC tokens. */
:root {
  --header-fonts: var(--font-display);
  --body-fonts: var(--font-body);
}

/* ============================ Action Network ============================ */
/* Mirrors the site's elements: buttons match Bricks' .btn-primary (navy, white text —
 * the --action-secondary tokens), fields follow .pwbc-input, headings use the display
 * face. Amber is reserved for the header DONATE button.
 * Action Network's own stylesheet uses !important throughout, hence the same here. */
.can_embed #can_embed_form,
.can_embed #donate_auto_modal {
  font-family: var(--font-body);
  color: var(--text-body);
}

/* Hide the Action Network logo */
.can_embed #logo_wrap, .action_owner, #action_info {
  display: none !important;
}

/* Hide the "where your donation is going" notice */
#donation_recipient_wrap { display: none; }

/* Buttons — navy, matching .btn-primary */
.can_embed .can_button,
.can_embed #can_embed_form input[type="submit"],
.can_embed #can_embed_form .button,
.can_embed #donate_auto_modal input[type="submit"],
.can_embed #donate_auto_modal .button {
  background: var(--action-secondary) !important;
  border: var(--border-thick) solid var(--action-secondary) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--action-secondary-text) !important;
  font: var(--weight-bold) var(--size-ui-md)/var(--leading-ui) var(--font-body) !important;
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  text-shadow: none !important;
  box-shadow: none !important;
  padding: var(--space-3) var(--space-6) !important;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard) !important;
  box-sizing: border-box;
}
.can_embed .can_button:hover,
.can_embed #can_embed_form input[type="submit"]:hover,
.can_embed #can_embed_form .button:hover,
.can_embed #donate_auto_modal input[type="submit"]:hover,
.can_embed #donate_auto_modal .button:hover {
  background: var(--action-secondary-hover) !important;
  border-color: var(--action-secondary-hover) !important;
}
.can_embed .can_button:active,
.can_embed #can_embed_form input[type="submit"]:active,
.can_embed #can_embed_form .button:active,
.can_embed #donate_auto_modal input[type="submit"]:active,
.can_embed #donate_auto_modal .button:active { transform: scale(0.97); }
.can_embed .can_button:focus-visible,
.can_embed #can_embed_form input[type="submit"]:focus-visible,
.can_embed #can_embed_form .button:focus-visible,
.can_embed #donate_auto_modal input[type="submit"]:focus-visible,
.can_embed #donate_auto_modal .button:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 2px;
}

/* Donation amount choices — outlined navy, filling navy on hover and when selected,
 * so they read as options rather than a second copy of the navy submit button.
 * Action Network adds .donate_amount-selected to the chosen label. */
#can_embed_form.can_float #can_main_col .donate_amount {
  background-color: var(--white) !important;
  border: var(--border-thick) solid var(--action-secondary) !important;
  color: var(--action-secondary) !important;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-sm) !important;
  transition: background-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
#can_embed_form.can_float #can_main_col .donate_amount:hover,
#can_embed_form.can_float #can_main_col .donate_amount-selected {
  background-color: var(--action-secondary) !important;
  color: var(--action-secondary-text) !important;
}

/* Fields — .pwbc-input */
.can_embed #can_embed_form input[type="text"],
.can_embed #can_embed_form input[type="email"],
.can_embed #can_embed_form input[type="tel"],
.can_embed #can_embed_form input[type="number"],
.can_embed #can_embed_form select,
.can_embed #can_embed_form textarea {
  font: var(--weight-body) var(--size-body-sm)/1.2 var(--font-body) !important;
  color: var(--text-body) !important;
  background: var(--white) !important;
  border: var(--border-thin) solid var(--border-default) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  transition: border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.can_embed #can_embed_form input[type="text"]:focus,
.can_embed #can_embed_form input[type="email"]:focus,
.can_embed #can_embed_form input[type="tel"]:focus,
.can_embed #can_embed_form input[type="number"]:focus,
.can_embed #can_embed_form select:focus,
.can_embed #can_embed_form textarea:focus {
  outline: none;
  border-color: var(--cyan-600) !important;
  box-shadow: 0 0 0 3px var(--cyan-100) !important;
}
.can_embed input::placeholder,
.can_embed textarea::placeholder {
  color: var(--text-muted);
}

.can_embed #can_embed_form a { color: var(--text-link); }
.can_embed #can_embed_form a:hover { color: var(--text-link-hover); }

.can_embed #can_sidebar { border-radius: var(--radius-md); }

/* #can_main_col: fundraising forms put their title there, not in the form_inner. */
.can_embed #can_embed_form_inner h2,
.can_embed #can_main_col h2 {
  font-family: var(--font-display) !important;
  font-weight: var(--weight-display) !important;
  font-size: var(--size-display-sm) !important;
  color: var(--text-heading) !important;
}
.can_embed #can_embed_form_inner h4 {
  font-family: var(--font-display) !important;
  font-size: var(--size-body-lg) !important;
  color: var(--text-heading) !important;
}

/* Only used for the "nostyles" AN form */
#can_embed_form #action_welcome_message { color: var(--text-muted); }
#can-form-area-get-our-newsletter-5 li  { list-style-type: none; }
/* Labels were white for the old dark-footer signup form; the footer is moving to WS
 * Form, so AN forms now sit on light backgrounds. */
.can_embed label.control-label          { color: var(--text-heading) !important; }

/* Reveal labels on the footer subscribe form */
@media (min-width: 769px) {
  #form_col1 li.core_field:nth-child(-n+3) .control-label {
    display: block !important;
  }
}

/* ================================ WS Form ================================ */
/* Forms are styled by the WS Form Styler theme (PWBC - Light), not pwbc-* classes.
 * The Styler has no checkbox-label size of its own: checkbox labels share the
 * .wsf-label class with every field label, sized by --wsf-field-label-font-size.
 * This drops only the checkbox labels to the Styler's own Small Font Size, so the
 * value is still controlled from WS Form. (0,4,2) beats WS Form's
 * `.wsf-form label.wsf-label` (0,2,1) without !important. */
.wsf-form input[type=checkbox].wsf-field + label.wsf-label {
  font-size: var(--wsf-form-font-size-small);
}

/* Press feedback on WS Form buttons, matching `.pwbc-btn:active` in components.css.
 * The Styler has hover and focus states but no active state and no transform
 * setting, and WS Form has no custom-CSS field, so this can't live in WS Form.
 *
 * `transition` is a single list, so WS Form's own three entries are restated and
 * transform appended — without it the scale would snap instead of easing. They keep
 * the Styler's --wsf-form-transition, so its speed setting still applies to them;
 * transform uses the same timing as .pwbc-btn so both kinds of button feel alike.
 *
 * :root lifts these to (0,3,1) over WS Form's `.wsf-form button.wsf-button` (0,2,1),
 * so they win regardless of which stylesheet loads last. */
:root .wsf-form button.wsf-button {
  transition: background-color var(--wsf-form-transition),
              border-color var(--wsf-form-transition),
              box-shadow var(--wsf-form-transition),
              transform var(--duration-fast) var(--ease-standard);
}
:root .wsf-form button.wsf-button:active:not(:disabled) { transform: scale(0.97); }

/* ---------- site integration overrides ---------- */

/* Button.jsx defaults to size="md", but in the CSS that padding lives only on the
   .pwbc-btn--md modifier. In Bricks an editor typically applies just
   "pwbc-btn pwbc-btn--primary", which would otherwise render with no padding at all.
   Make md the base default. :where() keeps this at zero specificity so the
   --sm / --lg modifiers still win regardless of source order. */
:where(.pwbc-btn) {
  padding: var(--space-3) var(--space-6);
}

/* Header nav items are flex children with `flex: 0 1 auto`, so when the PWBC menu
   (8 top-level items, including "Policy & Advocacy") is wider than the available
   space they shrink and wrap their labels onto two lines instead of staying on one.
   Keeping labels unbroken lets them lay out on a single row — measured at 827px of
   1065px available, so there is headroom. */
.nav__nav-menu nav ul > li,
.nav__nav-menu nav ul > li > a {
  white-space: nowrap;
}

/* Bricks button variant re-assertion (see note in the build script) */
:root .bricks-button.pwbc-btn.pwbc-btn--primary:not(.outline) {
  background-color: var(--action-primary); border-color: var(--action-primary); color: var(--action-primary-text);
}
:root .bricks-button.pwbc-btn.pwbc-btn--primary:not(.outline):hover {
  background-color: var(--action-primary-hover); border-color: var(--action-primary-hover); color: var(--action-primary-text);
}
:root .bricks-button.pwbc-btn.pwbc-btn--secondary:not(.outline) {
  background-color: var(--action-secondary); border-color: var(--action-secondary); color: var(--action-secondary-text);
}
:root .bricks-button.pwbc-btn.pwbc-btn--secondary:not(.outline):hover {
  background-color: var(--action-secondary-hover); border-color: var(--action-secondary-hover); color: var(--action-secondary-text);
}
:root .bricks-button.pwbc-btn.pwbc-btn--outline:not(.outline) {
  background-color: transparent; border-color: var(--action-secondary); color: var(--action-secondary);
}
:root .bricks-button.pwbc-btn.pwbc-btn--outline:not(.outline):hover {
  background-color: var(--surface-alt); border-color: var(--action-secondary); color: var(--action-secondary);
}
:root .bricks-button.pwbc-btn.pwbc-btn--ghost:not(.outline) {
  background-color: transparent; border-color: transparent; color: var(--action-secondary);
}
:root .bricks-button.pwbc-btn.pwbc-btn--ghost:not(.outline):hover {
  background-color: var(--surface-alt); border-color: transparent; color: var(--action-secondary);
}
:root .bricks-button.pwbc-btn.pwbc-btn--onnavy:not(.outline) {
  background-color: transparent; border-color: rgba(255,255,255,0.5); color: var(--white);
}
:root .bricks-button.pwbc-btn.pwbc-btn--onnavy:not(.outline):hover {
  background-color: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white);
}

/* Bricks button size re-assertion (see note in the build script) */
:root .bricks-button.pwbc-btn {
  padding: var(--space-3) var(--space-6);
}
:root .bricks-button.pwbc-btn.pwbc-btn--sm {
  padding: var(--space-2) var(--space-4);
}
:root .bricks-button.pwbc-btn.pwbc-btn--md {
  padding: var(--space-3) var(--space-6);
}
:root .bricks-button.pwbc-btn.pwbc-btn--lg {
  padding: var(--space-6) var(--space-8);
}

/* Container width re-assertion over Bricks' .brxe-container */
:root .brxe-container.pwbc-container {
  max-width: var(--content-wide);
  margin-inline: auto;
}
:root .brxe-container.pwbc-container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
