/**
 * Business Impact NW | Vancouver loan callout — About Our Loans.
 * /assets/css/about-our-loans-vancouver.css
 * Requires binw-system.css and native SiteOrigin Editor widgets.
 * Only targets the replacement SiteOrigin row: .binw-vancouver-callout-row.
 * Deliberately does not target legacy .binw-vancouver-loan-callout HTML.
 */

/* -------------------------------------------------------
   Outer callout & two-column editable SiteOrigin row
   ------------------------------------------------------- */
#content .binw-page.binw-vancouver-callout-row,
#content .binw-page.binw-vancouver-callout-row > .panel-row-style {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr) !important;
  gap: 34px !important;
  align-items: center !important;
}

#content .binw-page.binw-vancouver-callout-row {
  width: calc(100% - 40px) !important;
  max-width: 1120px !important;
  margin: 46px auto !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border: 1px solid #dfe7d5 !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #f7faf3 0%, #ffffff 58%, #eef4e7 100%) !important;
  box-shadow: 0 14px 32px rgba(48, 55, 53, .08);
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #303735;
}

/* In case SiteOrigin creates an extra row-style wrapper. */
#content .binw-vancouver-callout-row > .panel-row-style {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#content .binw-vancouver-callout-row > .panel-grid-cell,
#content .binw-vancouver-callout-row > .panel-row-style > .panel-grid-cell {
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

#content .binw-vancouver-callout-row .panel-grid-cell > .so-panel {
  margin: 0 !important;
  min-width: 0;
}

/* Keep the two detail widgets vertically centered. */
#content .binw-vancouver-callout-row > .panel-grid-cell:last-child,
#content .binw-vancouver-callout-row > .panel-row-style > .panel-grid-cell:last-child {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

#content .binw-vancouver-callout-row .binw-vancouver-copy,
#content .binw-vancouver-callout-row .binw-vancouver-actions,
#content .binw-vancouver-callout-row .binw-vancouver-detail {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

/* -------------------------------------------------------
   Heading, eyebrow, and editable paragraphs
   ------------------------------------------------------- */
#content .binw-vancouver-callout-row .binw-vancouver-copy .siteorigin-widget-tinymce > p:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #5f8423 !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  line-height: 1.45 !important;
  text-transform: uppercase !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-copy .siteorigin-widget-tinymce > p:first-child::before {
  content: "";
  flex: 0 0 30px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: #78a22f;
}

#content .binw-vancouver-callout-row .binw-vancouver-copy h2 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #303735 !important;
  font: 400 clamp(1.7rem, 2.7vw, 2.4rem)/1.16 "Trebuchet MS", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-copy .siteorigin-widget-tinymce > p:not(:first-child) {
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #3f4544 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-copy .siteorigin-widget-tinymce > p:last-child {
  margin-bottom: 0 !important;
}

/* -------------------------------------------------------
   Visual Editor links styled as buttons.
   Staff edit both links normally using Insert/Edit Link.
   ------------------------------------------------------- */
#content .binw-vancouver-callout-row .binw-vancouver-actions {
  margin-top: 24px !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-actions .siteorigin-widget-tinymce > p {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin: 0 !important;
  padding: 0 !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-actions a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  min-height: 44px;
  min-width: 158px;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  font: 800 .95rem/1.2 "Trebuchet MS", Arial, sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

#content .binw-vancouver-callout-row .binw-vancouver-actions a:first-of-type {
  color: #fff !important;
  background: #78a22f !important;
  box-shadow: 0 10px 20px rgba(120,162,47,.22);
}

#content .binw-vancouver-callout-row .binw-vancouver-actions a:last-of-type:not(:first-of-type) {
  color: #303735 !important;
  background: #fff !important;
  border-color: #dfe7d5 !important;
  box-shadow: none;
}

#content .binw-vancouver-callout-row .binw-vancouver-actions a:hover {
  transform: translateY(-1px);
}
#content .binw-vancouver-callout-row .binw-vancouver-actions a:first-of-type:hover {
  color: #fff !important;
  background: #5f8423 !important;
}
#content .binw-vancouver-callout-row .binw-vancouver-actions a:last-of-type:not(:first-of-type):hover {
  color: #5f8423 !important;
  border-color: #78a22f !important;
}
#content .binw-vancouver-callout-row .binw-vancouver-actions a:focus-visible {
  outline: 3px solid #39736e !important;
  outline-offset: 3px !important;
}

/* -------------------------------------------------------
   Two editable funding/availability detail cards
   ------------------------------------------------------- */
#content .binw-vancouver-callout-row .binw-vancouver-detail {
  box-sizing: border-box;
  width: 100%;
  padding: 19px 20px !important;
  border: 1px solid #dfe7d5;
  border-left: 5px solid #78a22f;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(48,55,53,.06);
}

#content .binw-vancouver-callout-row .binw-vancouver-detail .siteorigin-widget-tinymce > p {
  margin: 0 !important;
  padding: 0 !important;
  color: #707372 !important;
  font-size: .76rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

#content .binw-vancouver-callout-row .binw-vancouver-detail .siteorigin-widget-tinymce strong {
  display: block;
  margin: 2px 0 0;
  color: #303735 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* -------------------------------------------------------
   Responsive layout
   ------------------------------------------------------- */
@media screen and (max-width: 760px) {
  #content .binw-page.binw-vancouver-callout-row,
  #content .binw-page.binw-vancouver-callout-row > .panel-row-style {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 25px !important;
  }
  #content .binw-page.binw-vancouver-callout-row {
    width: calc(100% - 28px) !important;
    margin: 34px auto !important;
    padding: 24px !important;
    border-radius: 22px !important;
  }
  #content .binw-vancouver-callout-row .binw-vancouver-actions .siteorigin-widget-tinymce > p {
    flex-direction: column;
    align-items: stretch;
  }
  #content .binw-vancouver-callout-row .binw-vancouver-actions a {
    width: 100% !important;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #content .binw-vancouver-callout-row .binw-vancouver-actions a {
    transition: none !important;
  }
}
