/**
 * Business Impact NW Shared Components
 *
 * Reusable presentation patterns for migrated BINW pages.
 * Requires binw-system.css.
 */


/* =========================================================
   CONTAINER
   ========================================================= */

.binw-container:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  width: 100%;
  max-width: 1180px;

  margin-left: auto;
  margin-right: auto;

  padding-left: var(--binw-space-24, 24px);
  padding-right: var(--binw-space-24, 24px);
}


/* =========================================================
   STANDARD SECTION
   ========================================================= */

.binw-section:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding-top: 54px;
  padding-bottom: var(--binw-space-60, 60px);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.binw-page .binw-section-heading:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  max-width: 720px;
  margin-bottom: 30px;
}

.binw-page .binw-section-heading h2:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0 0 9px;

  color: var(--binw-charcoal);

  font-size: var(--binw-text-34, 34px);
  line-height: var(--binw-leading-tight, 1.15);
  font-weight: var(--binw-weight-semibold, 600);

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

.binw-page .binw-section-heading p:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0;

  color: var(--binw-palette-section-text, #555755);

  font-size: var(--binw-text-17, 17px);
  line-height: var(--binw-leading-comfortable, 1.55);
}


/* =========================================================
   KICKER
   Widget class: binw-kicker
   Works on Editor / Headline widgets.
   ========================================================= */

.binw-page .binw-kicker:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: var(--binw-space-12, 12px);
}

.binw-page .binw-kicker:where(body.binw-components-active *, .binw-shared, .binw-shared *)::before {
  content: "";

  display: block;
  flex: 0 0 auto;

  width: 28px;
  height: 3px;

  background: var(--binw-green);
  border-radius: var(--binw-radius-999, 999px);
}

.binw-page .binw-kicker p:where(body.binw-components-active *, .binw-shared, .binw-shared *),
.binw-page .binw-kicker .sow-headline:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0 !important;

  color: var(--binw-charcoal) !important;

  font-size: var(--binw-text-13, 13px) !important;
  line-height: var(--binw-leading-heading, 1.3) !important;
  font-weight: var(--binw-weight-bold, 700) !important;

  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}


/* =========================================================
   CARD
   Widget class: binw-card
   ========================================================= */

.binw-page .binw-card:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding: var(--binw-space-24, 24px);

  background: var(--binw-white);

  border: 1px solid var(--binw-palette-card-border, #E0E4DC);
  border-radius: var(--binw-radius-9, 9px);

  box-shadow:var(--binw-shadow-card, 0 4px 13px rgba(52, 53, 56, 0.035));
}

.binw-page .binw-card--interactive:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.binw-page .binw-card--interactive:hover:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  transform: translateY(-3px);
  box-shadow:var(--binw-shadow-card-hover, 0 10px 22px rgba(52, 53, 56, .08));
}


/* =========================================================
   NOTICE / INFORMATION CALLOUT
   Widget class: binw-notice
   ========================================================= */

.binw-page .binw-notice:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding: 26px 29px;

  background: var(--binw-palette-notice, #F7F8F4);

  border-left: 5px solid var(--binw-green);
  border-radius: 0 var(--binw-radius-8, 8px) var(--binw-radius-8, 8px) 0;
}

.binw-page .binw-notice h2:where(body.binw-components-active *, .binw-shared, .binw-shared *),
.binw-page .binw-notice h3:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0 0 9px;

  color: var(--binw-charcoal);

  font-weight: var(--binw-weight-semibold, 600);
  text-transform: none;
}

.binw-page .binw-notice p:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0;

  color: var(--binw-palette-notice-text, #4F5251);

  font-size: var(--binw-text-17, 17px);
  line-height: var(--binw-leading-reading, 1.65);
}


/* =========================================================
   FACT STRIP

   Row classes:
   binw-page binw-facts

   Each Editor widget:
   binw-fact

   Each Editor should contain:
   paragraph 1 = label
   paragraph 2 = value
   ========================================================= */

.binw-page.binw-facts:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  width: 100%;
  max-width: 1100px;

  margin-left: auto;
  margin-right: auto;

  padding: 25px var(--binw-space-24, 24px);

  border-top: 1px solid var(--binw-border);
  border-bottom: 1px solid var(--binw-border);
}

.binw-page.binw-facts > .panel-grid-cell:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding-left: 26px;
  padding-right: 26px;
}

.binw-page.binw-facts > .panel-grid-cell:first-child:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding-left: 0;
}

.binw-page.binw-facts > .panel-grid-cell:last-child:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  padding-right: 0;
}

.binw-page.binw-facts > .panel-grid-cell + .panel-grid-cell:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  border-left: 1px solid var(--binw-border);
}

.binw-page .binw-fact p:first-child:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0 0 7px;

  color: var(--binw-gray);

  font-size: var(--binw-text-13, 13px);
  line-height: var(--binw-leading-heading, 1.3);
  font-weight: var(--binw-weight-bold, 700);

  letter-spacing: .07em;
  text-transform: uppercase;
}

.binw-page .binw-fact p:last-child:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
  margin: 0;

  color: var(--binw-charcoal);

  font-size: var(--binw-text-18, 18px);
  line-height: 1.35;
  font-weight: var(--binw-weight-semibold, 600);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .binw-container:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    padding-left: var(--binw-space-18, 18px);
    padding-right: var(--binw-space-18, 18px);
  }

  .binw-section:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    padding-top: var(--binw-space-44, 44px);
    padding-bottom: var(--binw-space-52, 52px);
  }

  .binw-page .binw-section-heading h2:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    font-size: var(--binw-text-29, 29px);
  }

  .binw-page .binw-notice:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    padding: 23px 22px;
  }

  .binw-page.binw-facts:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    padding-top: 0;
    padding-bottom: 0;
  }

  .binw-page.binw-facts > .panel-grid-cell:where(body.binw-components-active *, .binw-shared, .binw-shared *),
.binw-page.binw-facts > .panel-grid-cell:first-child:where(body.binw-components-active *, .binw-shared, .binw-shared *),
.binw-page.binw-facts > .panel-grid-cell:last-child:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    padding: 19px 0;

    border-left: 0;
  }

  .binw-page.binw-facts > .panel-grid-cell + .panel-grid-cell:where(body.binw-components-active *, .binw-shared, .binw-shared *) {
    border-top: 1px solid var(--binw-border);
    border-left: 0;
  }

}
/* =========================================================
   EXPLICIT SHARED PATTERNS FOR FUTURE CONTENT
   None of these new classes occur in the supplied page styles.
   Use on opted-in pages, within .binw-page.binw-shared rows.
   Existing page button variants retain their current selectors.
   ========================================================= */
:where(body.binw-release) .binw-page .binw-prose {
  font-family: var(--binw-font-body, "Trebuchet MS", Helvetica, Arial, sans-serif);
  font-size: var(--binw-text-17, 17px);
  line-height: 1.6;
  color: var(--binw-palette-charcoal, #343538);
}
:where(body.binw-release) .binw-page .binw-prose :is(h1,h2,h3,h4) {
  padding: 0;
  margin: 0 0 var(--binw-space-12, 12px);
  font-family: inherit;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
}
:where(body.binw-release) .binw-page .binw-prose h1 { font-size: clamp(32px, 4vw, 44px); }
:where(body.binw-release) .binw-page .binw-prose h2 { font-size: clamp(26px, 3vw, 34px); }
:where(body.binw-release) .binw-page .binw-prose h3 { font-size: var(--binw-text-22, 22px); }
:where(body.binw-release) .binw-page .binw-prose p { margin: 0 0 var(--binw-space-16, 16px); }
:where(body.binw-release) .binw-page .binw-prose p:last-child { margin-bottom: 0; }
:where(body.binw-release) .binw-page .binw-prose :is(ul,ol) { margin: 0 0 var(--binw-space-16, 16px); padding-left: 1.4em; }
:where(body.binw-release) .binw-page .binw-prose li + li { margin-top: var(--binw-space-8, 8px); }

/* Native SiteOrigin Button widget. Keep both anchor and button support. */
:where(body.binw-release) #content .binw-page .binw-button .ow-button-base :is(a,button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--binw-space-12, 12px);
  box-sizing: border-box;
  max-width: 100%;
  min-height: var(--binw-button-min-height, 44px);
  padding: var(--binw-button-padding-block, 14px) var(--binw-button-padding-inline, 20px);
  border: 2px solid var(--binw-brand-green, #78a22f);
  border-radius: var(--binw-radius-6, 6px);
  background: var(--binw-brand-green, #78a22f);
  color: var(--binw-palette-white, #fff);
  font-family: var(--binw-font-body, "Trebuchet MS", Helvetica, Arial, sans-serif);
  font-size: var(--binw-text-17, 17px);
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
:where(body.binw-release) #content .binw-page .binw-button .ow-button-base :is(a,button):hover {
  background: var(--binw-button-hover, #688d28);
  border-color: var(--binw-button-hover, #688d28);
}
:where(body.binw-release) #content .binw-page .binw-button--secondary .ow-button-base :is(a,button) {
  background: var(--binw-palette-white, #fff);
  border-color: var(--binw-brand-teal, #39736e);
  color: var(--binw-brand-teal, #39736e);
}
:where(body.binw-release) #content .binw-page .binw-button--secondary .ow-button-base :is(a,button):hover {
  background: var(--binw-brand-offwhite, #f3f2f1);
  border-color: var(--binw-brand-teal, #39736e);
}
:where(body.binw-release) #content .binw-page .binw-button--text .ow-button-base :is(a,button) {
  background: transparent;
  border-color: transparent;
  color: var(--binw-brand-teal, #39736e);
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
}
:where(body.binw-release) #content .binw-page .binw-button--text .ow-button-base :is(a,button):hover {
  background: transparent;
  border-color: transparent;
  color: var(--binw-brand-teal, #39736e);
}
:where(body.binw-release) .binw-page .binw-text-link {
  color: var(--binw-brand-teal, #39736e);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
:where(body.binw-release) #content .binw-page .binw-button .ow-button-base :is(a,button):focus-visible,
:where(body.binw-release) .binw-page .binw-text-link:focus-visible,
:where(body.binw-release) .binw-page .binw-disclosure > summary:focus-visible {
  outline: 3px solid var(--binw-brand-deepgreen, #0c5c44);
  outline-offset: 4px;
}
:where(body.binw-release) .binw-page .binw-disclosure {
  padding: var(--binw-space-20, 20px) var(--binw-space-24, 24px);
  border: 1px solid var(--binw-palette-border, #d9ddd7);
  border-radius: var(--binw-radius-9, 9px);
  background: var(--binw-palette-white, #fff);
}
:where(body.binw-release) .binw-page .binw-disclosure > summary { cursor: pointer; font-weight: 700; }
:where(body.binw-release) .binw-page .binw-disclosure[open] > summary { margin-bottom: var(--binw-space-16, 16px); }

/* Motion preference applies only to explicitly shared new rows. */
@media (prefers-reduced-motion: reduce) {
  :where(body.binw-release) .binw-shared .binw-card--interactive { transition: none; }
  :where(body.binw-release) .binw-shared .binw-card--interactive:hover { transform: none; }
}
