/**
 * BINW shared foundation — appearance-preserving consolidation, 2026-11-30.
 * Canonical primitives below keep existing page aliases compatible.
 * Existing .binw-page foundation is enabled by the unified loader body class.
 * Page files retain their existing selectors and layout.
 * Literal fallbacks support an older shared asset during rollback.
 */

:root {

  /* palette */
  --binw-brand-green: #78A22F;
  --binw-brand-sage: #A7C078;
  --binw-brand-gray: #707372;
  --binw-brand-offwhite: #F3F2F1;
  --binw-brand-teal: #39736E;
  --binw-brand-lime: #C5CF59;
  --binw-brand-brown: #64402A;
  --binw-palette-charcoal: #343538;
  --binw-brand-deepgreen: #0C5C44;
  --binw-palette-white: #FFFFFF;
  --binw-palette-border: #D9DDD7;
  --binw-palette-about-ink: #4F5558;
  --binw-palette-about-border: #D9DDD4;
  --binw-palette-about-background: #F3F3F1;
  --binw-palette-deep-ink: #17251F;
  --binw-palette-opportunities-text: #44534D;
  --binw-palette-opportunities-border: #DCE6D2;
  --binw-palette-opportunities-green-hover: #5E8127;
  --binw-palette-kent-green-dark: #668C27;
  --binw-palette-kent-ink: #343634;
  --binw-palette-kent-text: #4A4C49;
  --binw-palette-seatac-green-dark: #2F6412;
  --binw-palette-oda-brown-dark: #4D3020;
  --binw-palette-oda-teal-dark: #2E625E;
  --binw-palette-notice: #F7F8F4;
  --binw-palette-card-border: #E0E4DC;
  --binw-palette-section-text: #555755;
  --binw-palette-notice-text: #4F5251;

  /* palette-rgb */
  --binw-brand-green-rgb: 120, 162, 47;
  --binw-brand-sage-rgb: 167, 192, 120;
  --binw-brand-gray-rgb: 112, 115, 114;
  --binw-brand-teal-rgb: 57, 115, 110;
  --binw-brand-lime-rgb: 197, 207, 89;
  --binw-brand-brown-rgb: 100, 64, 42;
  --binw-palette-charcoal-rgb: 52, 53, 56;
  --binw-brand-deepgreen-rgb: 12, 92, 68;
  --binw-palette-white-rgb: 255, 255, 255;

  /* font */
  --binw-font-body: "Trebuchet MS", Helvetica, Arial, sans-serif;
  --binw-font-arial: "Trebuchet MS", Arial, sans-serif;
  --binw-font-helvetica: "Trebuchet MS", Helvetica, sans-serif;
  --binw-font-hospitality: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  --binw-font-simple: Trebuchet MS, sans-serif;

  /* spacing */
  --binw-space-8: 8px;
  --binw-space-12: 12px;
  --binw-space-16: 16px;
  --binw-space-18: 18px;
  --binw-space-20: 20px;
  --binw-space-24: 24px;
  --binw-space-28: 28px;
  --binw-space-32: 32px;
  --binw-space-36: 36px;
  --binw-space-40: 40px;
  --binw-space-44: 44px;
  --binw-space-48: 48px;
  --binw-space-52: 52px;
  --binw-space-56: 56px;
  --binw-space-60: 60px;
  --binw-space-64: 64px;
  --binw-space-72: 72px;
  --binw-space-80: 80px;
  --binw-space-88: 88px;
  --binw-space-96: 96px;

  /* type-size */
  --binw-text-12: 12px;
  --binw-text-13: 13px;
  --binw-text-14: 14px;
  --binw-text-15: 15px;
  --binw-text-16: 16px;
  --binw-text-17: 17px;
  --binw-text-18: 18px;
  --binw-text-19: 19px;
  --binw-text-20: 20px;
  --binw-text-22: 22px;
  --binw-text-23: 23px;
  --binw-text-24: 24px;
  --binw-text-25: 25px;
  --binw-text-26: 26px;
  --binw-text-28: 28px;
  --binw-text-29: 29px;
  --binw-text-30: 30px;
  --binw-text-32: 32px;
  --binw-text-34: 34px;
  --binw-text-36: 36px;
  --binw-text-38: 38px;
  --binw-text-39: 39px;
  --binw-text-40: 40px;
  --binw-text-42: 42px;
  --binw-text-44: 44px;
  --binw-text-45: 45px;
  --binw-text-46: 46px;
  --binw-text-48: 48px;
  --binw-text-50: 50px;
  --binw-text-52: 52px;
  --binw-text-54: 54px;
  --binw-text-56: 56px;
  --binw-text-58: 58px;
  --binw-text-60: 60px;
  --binw-text-64: 64px;

  /* radius */
  --binw-radius-4: 4px;
  --binw-radius-6: 6px;
  --binw-radius-8: 8px;
  --binw-radius-9: 9px;
  --binw-radius-10: 10px;
  --binw-radius-12: 12px;
  --binw-radius-14: 14px;
  --binw-radius-16: 16px;
  --binw-radius-18: 18px;
  --binw-radius-20: 20px;
  --binw-radius-22: 22px;
  --binw-radius-24: 24px;
  --binw-radius-26: 26px;
  --binw-radius-28: 28px;
  --binw-radius-30: 30px;
  --binw-radius-32: 32px;
  --binw-radius-34: 34px;
  --binw-radius-999: 999px;

  /* weight */
  --binw-weight-regular: 400;
  --binw-weight-medium: 500;
  --binw-weight-semibold: 600;
  --binw-weight-bold: 700;
  --binw-weight-extrabold: 800;
  --binw-weight-black: 900;

  /* line-height */
  --binw-leading-tight: 1.15;
  --binw-leading-heading: 1.3;
  --binw-leading-compact: 1.5;
  --binw-leading-comfortable: 1.55;
  --binw-leading-body: 1.6;
  --binw-leading-reading: 1.65;

  /* shadow */
  --binw-shadow-card: 0 4px 13px rgba(52,53,56,.035);
  --binw-shadow-card-hover: 0 10px 22px rgba(52,53,56,.08);
  --binw-shadow-about: 0 12px 28px rgba(0,0,0,.05);
}

/**
 * Business Impact NW Design System
 *
 * Shared foundation for pages migrated to the BINW page system.
 * Legacy WordPress / SiteOrigin Custom CSS remains in place during migration.
 */


/* =========================================================
   1. CANONICAL BRAND + SEMANTIC TOKENS
   ========================================================= */

:root {
  --binw-green: var(--binw-brand-green, #78A22F);
  --binw-sage: var(--binw-brand-sage, #A7C078);
  --binw-gray: var(--binw-brand-gray, #707372);
  --binw-offwhite: var(--binw-brand-offwhite, #F3F2F1);
  --binw-teal: var(--binw-brand-teal, #39736E);
  --binw-lime: var(--binw-brand-lime, #C5CF59);
  --binw-brown: var(--binw-brand-brown, #64402A);
  --binw-charcoal: var(--binw-palette-charcoal, #343538);
  --binw-deepgreen: var(--binw-brand-deepgreen, #0C5C44);
  --binw-white: var(--binw-palette-white, #FFFFFF);

  --binw-text: var(--binw-charcoal);
  --binw-muted: var(--binw-gray);
  --binw-border: var(--binw-palette-border, #D9DDD7);
  --binw-surface: var(--binw-offwhite);
}


/* =========================================================
   2. MIGRATED PAGE SCOPE

   Add .binw-page only to rows/pages that have entered
   the new system.
   ========================================================= */

:where(body.binw-foundation) .binw-page {
  color: var(--binw-text);
  font-family: var(--binw-font-body, "Trebuchet MS", Helvetica, Arial, sans-serif);
}

:where(body.binw-foundation) .binw-page,
:where(body.binw-foundation) .binw-page *,
:where(body.binw-foundation) .binw-page *::before,
:where(body.binw-foundation) .binw-page *::after {
  box-sizing: border-box;
}


/* =========================================================
   3. SCOPED TYPOGRAPHY FOUNDATION
   Neutralize legacy global heading rules.
   ========================================================= */

:where(body.binw-foundation) .binw-page h1,
:where(body.binw-foundation) .binw-page h2,
:where(body.binw-foundation) .binw-page h3,
:where(body.binw-foundation) .binw-page h4,
:where(body.binw-foundation) .binw-page h5,
:where(body.binw-foundation) .binw-page h6 {
  padding-top: 0;
  padding-left: 0;

  font-family: inherit;
  color: var(--binw-text);

  text-transform: none;
  letter-spacing: normal;
}


/* Remove legacy SiteOrigin headline decoration when a
   migrated component provides its own visual hierarchy. */

:where(body.binw-foundation) .binw-page .sow-headline-container .decoration {
  display: none !important;
}
/* Shared defaults for the explicit native Button widget pattern. */
:root {
  --binw-button-hover: #688D28;
  --binw-button-padding-block: 14px;
  --binw-button-padding-inline: 20px;
  --binw-button-min-height: 44px;
}
