/* =========================================================
   EDGE HOME LOAN TEAM
   FULL SITE CSS REPLACEMENT
   CLEAN EDGE HOME LOAN TEAM STYLE
========================================================= */

/* =========================
   GLOBAL COLORS
========================= */

:root {
  --ehl-primary: #28266f;
  --ehl-primary-dark: #1f1d5c;
  --ehl-navy: #181743;
  --ehl-text: #3f4960;
  --ehl-muted: #596376;
  --ehl-soft: #f4f4fa;
  --ehl-border: #e5e7f0;
  --ehl-card-border: #e3e5ee;
  --ehl-radius: 20px;
  --ehl-radius-large: 32px;
  --ehl-shadow: 0 14px 34px rgba(31, 31, 80, 0.075);
  --ehl-shadow-strong: 0 22px 54px rgba(31, 31, 80, 0.13);

  /*
   * Compatibility aliases for existing page markup.
   * The bsm-prefixed class names are internal selectors only and can remain
   * in place while the visible site is branded as Edge Home Loan Team.
   */
  --bsm-blue: var(--ehl-primary);
  --bsm-blue-dark: var(--ehl-primary-dark);
  --bsm-navy: var(--ehl-navy);
  --bsm-text: var(--ehl-text);
  --bsm-muted: var(--ehl-muted);
  --bsm-soft: var(--ehl-soft);
  --bsm-border: var(--ehl-border);
  --bsm-card-border: var(--ehl-card-border);
  --bsm-radius: var(--ehl-radius);
  --bsm-radius-large: var(--ehl-radius-large);
  --bsm-shadow: var(--ehl-shadow);
  --bsm-shadow-strong: var(--ehl-shadow-strong);
}

/* =========================================================
   EDGE HOME LOAN TEAM FOOTER
   Single full-width Blocksy widget with a unified three-column grid
   and integrated full-width compliance area
========================================================= */

/* Blocksy footer shell reset */

.site-footer,
.ct-footer,
footer.ct-footer,
#footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f7f8fb !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.ct-footer [data-row="middle"],
footer.ct-footer [data-row="middle"] {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ct-footer [data-row="middle"] .ct-container,
footer.ct-footer [data-row="middle"] .ct-container,
.site-footer .ct-container,
.ct-footer .ct-container,
.ct-footer-inner-wrap,
.footer-widgets-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ct-footer [data-row="middle"] [data-column],
.ct-footer [data-columns],
.ct-footer .widget-area,
.ct-footer .ct-widget,
.ct-footer .widget,
.ct-footer .textwidget,
.ct-footer .wp-block-html {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The legal area is included in the custom Edge footer HTML. */

.ct-footer [data-row="bottom"],
footer.ct-footer [data-row="bottom"] {
  display: none !important;
}

.ehl-footer,
.ehl-footer * {
  box-sizing: border-box !important;
}

.ehl-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #4f596d !important;
  background: #f7f8fb !important;
  border-top: 1px solid rgba(40, 38, 111, 0.12) !important;
}

/* Main footer grid */

.ehl-footer__main {
  display: grid !important;
  grid-template-columns:
    minmax(300px, 1.15fr)
    minmax(300px, 1fr)
    minmax(180px, 0.68fr) !important;
  column-gap: 54px !important;
  row-gap: 38px !important;
  width: 100% !important;
  max-width: 1290px !important;
  margin: 0 auto !important;
  padding: 46px 28px 38px !important;
}

/* Brand and logo */

.ehl-footer__brand {
  min-width: 0 !important;
  justify-self: start !important;
  text-align: left !important;
}

.ehl-footer__logo-link {
  display: block !important;
  width: 270px !important;
  max-width: 100% !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.ehl-footer__logo-frame {
  display: block !important;
  width: 270px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ehl-footer__logo {
  display: block !important;
  width: 270px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  /* Compensates for transparent space built into the compact PNG. */
  transform: translateX(-32px) !important;
}

.ehl-footer__team-name {
  margin: 0 0 12px !important;
  color: #181743 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

.ehl-footer__brand p {
  max-width: 330px !important;
  margin: 0 0 11px !important;
  color: #596376 !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
}

.ehl-footer__brand .ehl-footer__service-area {
  color: #4a5468 !important;
}

.ehl-footer__brand .ehl-footer__since {
  margin-top: 15px !important;
  margin-bottom: 0 !important;
  color: #28266f !important;
  font-weight: 800 !important;
}

/* Column headings */

@media (min-width: 1151px) {
  .ehl-footer__main > .ehl-footer__brand {
    align-self: start !important;
    position: relative !important;
    top: -22px !important;
    margin-top: 0 !important;
  }

  .ehl-footer__main > .ehl-footer__column {
    align-self: start !important;
    margin-top: 34px !important;
    padding-top: 0 !important;
  }
}

.ehl-footer__column h2 {
  margin: 0 0 18px !important;
  color: #181743 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

/* Contact */

.ehl-footer__person {
  margin: 0 0 20px !important;
}

.ehl-footer__person:last-child {
  margin-bottom: 0 !important;
}

.ehl-footer__person strong {
  display: block !important;
  margin: 0 0 3px !important;
  color: #181743 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

.ehl-footer__person span {
  display: block !important;
  margin: 0 0 7px !important;
  color: #697286 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

.ehl-footer__person a,
.ehl-footer__person a:link,
.ehl-footer__person a:visited {
  display: block !important;
  margin: 3px 0 0 !important;
  color: #28266f !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
}

.ehl-footer__person a:hover,
.ehl-footer__person a:focus-visible {
  color: #1f1d5c !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Navigation */

.ehl-footer__navigation {
  width: 100% !important;
  max-width: 190px !important;
  justify-self: start !important;
}

.ehl-footer__navigation ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ehl-footer__navigation li {
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.ehl-footer__navigation a,
.ehl-footer__navigation a:link,
.ehl-footer__navigation a:visited {
  color: #4f596d !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.ehl-footer__navigation a:hover,
.ehl-footer__navigation a:focus-visible {
  color: #28266f !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.ehl-footer__compliance-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.ehl-footer__equal-housing {
  display: block !important;
  width: 66px !important;
  max-width: 66px !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.ehl-footer__compliance-links a,
.ehl-footer__compliance-links a:link,
.ehl-footer__compliance-links a:visited {
  color: #28266f !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.ehl-footer__compliance-links a:hover,
.ehl-footer__compliance-links a:focus-visible {
  color: #1f1d5c !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Integrated legal area */

.ehl-footer__legal {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 26px 0 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(40, 38, 111, 0.14) !important;
}

.ehl-footer__legal-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ehl-footer__legal p {
  margin: 0 !important;
  color: #5d6679 !important;
  font-size: 12.75px !important;
  line-height: 1.62 !important;
}

.ehl-footer__legal .ehl-footer__transition {
  margin-bottom: 8px !important;
  color: #414b60 !important;
  font-weight: 700 !important;
}

/* Footer tablet */

@media (max-width: 1150px) {
  .ehl-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px 44px !important;
    padding: 40px 28px 34px !important;
  }

  .ehl-footer__brand p {
    max-width: 430px !important;
  }
}

/* Footer mobile */

@media (max-width: 650px) {
  .ehl-footer__main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 34px 22px 30px !important;
  }

  .ehl-footer__logo-frame {
    width: 245px !important;
    height: auto !important;
  }

  .ehl-footer__logo {
    width: 245px !important;
    transform: translateX(-28px) !important;
  }

  .ehl-footer__brand p {
    max-width: none !important;
  }

  .ehl-footer__column h2 {
    margin-bottom: 14px !important;
  }

  .ehl-footer__legal p {
    font-size: 12.5px !important;
  }
}

/* =========================
   GLOBAL CLEANUP
========================= */

.home .entry-header,
.home .page-title {
  display: none !important;
}

html,
body,
.site,
#main,
.site-main,
.content-area {
  background: #ffffff !important;
}

.home,
.home body,
.home .site,
.home #main,
.home .content-area,
.home article,
.home .site-main,
.home .entry-content {
  background: #ffffff !important;
}

.home .site-main {
  padding-top: 0 !important;
}

.home .entry-content > *:first-child {
  margin-top: 0 !important;
}

.home .entry-content,
.home .entry-content > *,
.home .site-main,
.home article {
  overflow: visible !important;
}

.home .wp-block-group,
.home .wp-block-columns,
.home .gb-container,
.home .stk-block,
.home .ct-section,
.home .alignfull,
.home .alignwide {
  background: transparent !important;
}

.home .ct-container,
.home .ct-container-full {
  background: transparent !important;
}

body {
  color: #535d70;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bsm-text);
}

/* =========================================================
   HEADER + MENU FINAL CLEAN VERSION
   Main Edge Home Loan Team site: matches Florida + Maine
   Fixes active blue menu pill and removes conflicting rules
========================================================= */

/* =========================
   HEADER BASE
========================= */

.site-header,
#header,
.ct-header,
header {
  position: relative !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.ct-header,
.ct-header *,
.site-header,
.site-header *,
#header,
#header * {
  box-sizing: border-box !important;
}

.ct-header [data-row],
.ct-header [data-row="middle"],
.ct-header [data-column],
.ct-header .ct-container,
.site-header .ct-container,
#header .ct-container {
  overflow: visible !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ct-header [data-row="top"],
.ct-header [data-row="bottom"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.site-header::before,
.site-header::after,
#header::before,
#header::after,
.ct-header::before,
.ct-header::after,
.ct-sticky-container::before,
.ct-sticky-container::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   DESKTOP HEADER
========================================================= */

@media (min-width: 1000px) {

  .ct-header [data-row],
  .ct-header [data-row="middle"] {
    min-height: 84px !important;
    height: 84px !important;
    max-height: 84px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .site-header .ct-container,
  #header .ct-container,
  .ct-header .ct-container,
  .ct-header [data-row="middle"] .ct-container {
    width: 100% !important;
    max-width: 1380px !important;
    min-height: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
    padding: 0 22px !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 24px !important;
  }

  .ct-header [data-row="middle"] [data-column="start"] {
    width: 220px !important;
    min-width: 0 !important;
    max-width: 220px !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
  }

  .ct-header [data-row="middle"] [data-column="middle"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
  }

  .ct-header [data-row="middle"] [data-column="end"] {
    width: auto !important;
    min-width: 0 !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
  }

  .ct-header [data-row="middle"] .ct-builder-item {
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Logo */
  .ct-header [data-id="logo"],
  header [data-id="logo"],
  .ct-header .site-branding,
  .ct-header .ct-logo,
  .ct-header .site-logo-container {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    transform: none !important;
  }

  .ct-header [data-id="logo"] a,
  .ct-header .site-branding a,
  .ct-header .ct-logo a,
  .ct-header .site-logo-container a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ct-header [data-id="logo"] img,
  .ct-header .site-branding img,
  .ct-header .ct-logo img,
  .ct-header .site-logo-container img,
  .ct-header img.custom-logo,
  .site-branding img,
  .custom-logo,
  .site-logo-container img {
    display: block !important;
    width: auto !important;
    max-width: 215px !important;
    max-height: 58px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Menu structure */
  .ct-header [data-id="menu"],
  .ct-header [data-id="menu-1"],
  .ct-header-navigation {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ct-header .menu,
  .ct-header-navigation .menu,
  .ct-header nav ul,
  #header .menu,
  .site-header .menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .ct-header .menu > li,
  .ct-header-navigation .menu > li,
  #header .menu > li,
  .site-header .menu > li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Default menu links */
  .ct-header .menu > li > a,
  .ct-header-navigation .menu > li > a,
  .ct-header nav .menu > li > a,
  .ct-header nav > ul > li > a,
  #header .menu > li > a,
  .site-header .menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #181743 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    outline: 0 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Active menu pill */
  .ct-header .menu > li.current-menu-item > a,
  .ct-header .menu > li.current_page_item > a,
  .ct-header .menu > li.current-menu-ancestor > a,
  .ct-header .menu > li.current_page_ancestor > a,
  .ct-header .menu > li.current_page_parent > a,
  .ct-header .menu > li[class*="current"] > a,
  .ct-header .menu > li > a[aria-current="page"],
  .ct-header-navigation .menu > li.current-menu-item > a,
  .ct-header-navigation .menu > li.current_page_item > a,
  .ct-header-navigation .menu > li.current-menu-ancestor > a,
  .ct-header-navigation .menu > li.current_page_ancestor > a,
  .ct-header-navigation .menu > li.current_page_parent > a,
  .ct-header-navigation .menu > li[class*="current"] > a,
  .ct-header-navigation .menu > li > a[aria-current="page"],
  #header .menu > li.current-menu-item > a,
  #header .menu > li.current_page_item > a,
  #header .menu > li[class*="current"] > a,
  #header .menu > li > a[aria-current="page"],
  .site-header .menu > li.current-menu-item > a,
  .site-header .menu > li.current_page_item > a,
  .site-header .menu > li[class*="current"] > a,
  .site-header .menu > li > a[aria-current="page"] {
    padding: 10px 16px !important;
    background: #28266f !important;
    background-color: #28266f !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    border: 0 !important;
    text-decoration: none !important;
  }

  /* Hover menu pill */
  .ct-header .menu > li > a:hover,
  .ct-header-navigation .menu > li > a:hover,
  #header .menu > li > a:hover,
  .site-header .menu > li > a:hover {
    padding: 10px 16px !important;
    background: #28266f !important;
    background-color: #28266f !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
  }

  /* Dropdown menu */
  .ct-header .menu > li.menu-item-has-children,
  .ct-header .menu > li.page_item_has_children,
  .ct-header-navigation .menu > li.menu-item-has-children,
  .ct-header-navigation .menu > li.page_item_has_children {
    position: relative !important;
  }

  .ct-header .sub-menu,
  .ct-header .children,
  .ct-header-navigation .sub-menu,
  .ct-header-navigation .children,
  #header .sub-menu,
  .site-header .sub-menu {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    left: 0 !important;
    z-index: 999999 !important;
    display: block !important;
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px rgba(31, 42, 68, 0.12) !important;
    overflow: hidden !important;
  }

  .ct-header .sub-menu li,
  .ct-header .children li,
  .ct-header-navigation .sub-menu li,
  .ct-header-navigation .children li,
  #header .sub-menu li,
  .site-header .sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .ct-header .sub-menu li a,
  .ct-header .children li a,
  .ct-header-navigation .sub-menu li a,
  .ct-header-navigation .children li a,
  #header .sub-menu li a,
  .site-header .sub-menu li a {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 22px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #181743 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .ct-header .sub-menu li a:hover,
  .ct-header .children li a:hover,
  .ct-header-navigation .sub-menu li a:hover,
  .ct-header-navigation .children li a:hover,
  #header .sub-menu li a:hover,
  .site-header .sub-menu li a:hover {
    padding: 12px 22px !important;
    background: #f6f6fa !important;
    background-image: none !important;
    color: #28266f !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  /* Right header CTA */
  .bsm-header-utility {
    display: none !important;
  }

  .bsm-header-contact {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  .bsm-header-contact a,
  .bsm-header-contact a:link,
  .bsm-header-contact a:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 11px 24px !important;
    border-radius: 999px !important;
    background: #28266f !important;
    color: #ffffff !important;
    border: 2px solid #28266f !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .bsm-header-contact a:hover {
    background: #1f1d5c !important;
    border-color: #1f1d5c !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
  }
}

/* Desktop tightening */
@media (min-width: 1000px) and (max-width: 1280px) {
  .site-header .ct-container,
  #header .ct-container,
  .ct-header .ct-container,
  .ct-header [data-row="middle"] .ct-container {
    grid-template-columns: 195px minmax(0, 1fr) auto !important;
    column-gap: 15px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ct-header [data-row="middle"] [data-column="start"],
  .ct-header [data-id="logo"],
  header [data-id="logo"],
  .ct-header .site-branding,
  .ct-header .ct-logo,
  .ct-header .site-logo-container {
    width: 195px !important;
    max-width: 195px !important;
  }

  .ct-header [data-id="logo"] img,
  .ct-header .site-branding img,
  .ct-header .ct-logo img,
  .ct-header .site-logo-container img,
  .ct-header img.custom-logo,
  .site-branding img,
  .custom-logo,
  .site-logo-container img {
    max-width: 190px !important;
    max-height: 54px !important;
  }

  .ct-header .menu,
  .ct-header-navigation .menu,
  .ct-header nav ul,
  #header .menu,
  .site-header .menu {
    gap: 13px !important;
  }

  .ct-header .menu > li > a,
  .ct-header-navigation .menu > li > a,
  .ct-header nav .menu > li > a,
  #header .menu > li > a,
  .site-header .menu > li > a {
    font-size: 12.5px !important;
  }

  .ct-header .menu > li.current-menu-item > a,
  .ct-header .menu > li.current_page_item > a,
  .ct-header .menu > li[class*="current"] > a,
  .ct-header .menu > li > a[aria-current="page"],
  .ct-header-navigation .menu > li.current-menu-item > a,
  .ct-header-navigation .menu > li.current_page_item > a,
  .ct-header-navigation .menu > li[class*="current"] > a,
  .ct-header-navigation .menu > li > a[aria-current="page"] {
    padding: 8px 12px !important;
  }

  .bsm-header-contact a,
  .bsm-header-contact a:link,
  .bsm-header-contact a:visited {
    min-height: 42px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}

/* Early mobile break */
@media (min-width: 1000px) and (max-width: 1080px) {
  .ct-header [data-id="menu"],
  .ct-header [data-id="menu-1"],
  .ct-header-navigation,
  .bsm-header-contact,
  .bsm-header-utility {
    display: none !important;
  }

  .site-header .ct-container,
  #header .ct-container,
  .ct-header .ct-container,
  .ct-header [data-row="middle"] .ct-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .ct-header [data-id="logo"],
  header [data-id="logo"],
  .ct-header .site-branding,
  .ct-header .ct-logo,
  .ct-header .site-logo-container {
    width: auto !important;
    max-width: none !important;
  }

  .ct-header [data-id="trigger"],
  .ct-header .ct-header-trigger,
  .ct-header .ct-trigger {
    display: flex !important;
    margin-left: auto !important;
  }
}

/* Keep header above page content */
.bsm-home-hero,
.bsm-loan-hero,
.bsm-refi-hero,
.bsm-purchase-hero,
.bsm-page,
.entry-content,
.site-main,
#main,
.ct-container-full {
  position: relative !important;
  z-index: 1 !important;
}


/* =========================
   GLOBAL BUTTON SYSTEM
========================= */

.bsm-btn--primary,
.bsm-button--primary,
.bsm-purchase-btn--primary,
.bsm-refi-btn--primary,
.bsm-funnel-btn--primary,
.bsm-about-btn--primary,
.bsm-contact-btn:not(.bsm-contact-btn--outline),
.bsm-me-btn--primary {
  background: var(--bsm-blue) !important;
  color: #ffffff !important;
  border: 2px solid var(--bsm-blue) !important;
  box-shadow: 0 12px 28px rgba(40, 38, 111, 0.22) !important;
}

.bsm-btn--primary:hover,
.bsm-button--primary:hover,
.bsm-purchase-btn--primary:hover,
.bsm-refi-btn--primary:hover,
.bsm-funnel-btn--primary:hover,
.bsm-about-btn--primary:hover,
.bsm-contact-btn:not(.bsm-contact-btn--outline):hover,
.bsm-me-btn--primary:hover {
  background: var(--bsm-blue-dark) !important;
  color: #ffffff !important;
  border-color: var(--bsm-blue-dark) !important;
}

.bsm-btn--outline,
.bsm-button--outline,
.bsm-purchase-btn--outline,
.bsm-refi-btn--outline,
.bsm-about-btn--secondary,
.bsm-about-btn--outline,
.bsm-funnel-btn--secondary,
.bsm-funnel-btn--outline,
.bsm-me-btn--outline,
.bsm-contact-btn--outline {
  background: #ffffff !important;
  color: var(--bsm-blue) !important;
  border: 2px solid var(--bsm-blue) !important;
  box-shadow: none !important;
}

/* =========================
   HERO FULL WIDTH
========================= */

.bsm-home-hero {
  position: relative !important;
  overflow: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 100px 20px 108px !important;
  box-sizing: border-box !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.78)),
    url('https://edgehomeloanteam.com/wp-content/uploads/2026/04/Charming-suburban-neighborhood-in-daylight.png') center center / cover no-repeat !important;
  border-bottom: 1px solid #edf2f8 !important;
}

.bsm-home-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(40, 38, 111, 0.05), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(40, 38, 111, 0.035), transparent 24%) !important;
  pointer-events: none !important;
}

.bsm-home-hero__inner {
  position: relative !important;
  z-index: 2 !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.bsm-home-hero h1 {
  margin: 0 0 24px !important;
  font-size: clamp(52px, 8vw, 92px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  font-weight: 700 !important;
  color: var(--bsm-text) !important;
}

.bsm-home-hero__text {
  max-width: 760px !important;
  margin: 0 auto 36px !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
  line-height: 1.5 !important;
  color: #4f5d74 !important;
}

.bsm-home-hero__buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-bottom: 22px !important;
}

a.bsm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 280px !important;
  padding: 20px 30px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

a.bsm-btn-primary {
  background: var(--bsm-blue) !important;
  color: #ffffff !important;
  border: 2px solid var(--bsm-blue) !important;
  box-shadow: 0 12px 26px rgba(40, 38, 111, 0.18) !important;
}

a.bsm-btn-primary:hover {
  background: var(--bsm-blue-dark) !important;
  border-color: var(--bsm-blue-dark) !important;
  color: #ffffff !important;
}

a.bsm-btn-secondary {
  background: #ffffff !important;
  color: var(--bsm-text) !important;
  border: 2px solid #d3deea !important;
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.05) !important;
}

a.bsm-btn-secondary:hover {
  border-color: var(--bsm-blue) !important;
  color: var(--bsm-blue) !important;
  background: #ffffff !important;
}

.bsm-home-hero__note {
  font-size: 18px !important;
  color: #60708a !important;
  font-weight: 500 !important;
}

/* =========================
   TRUST STRIP FULL WIDTH
========================= */

.bsm-trust-strip {
  position: relative !important;
  overflow: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
  background: #f8f8fc !important;
  border-top: 1px solid #e8eef6 !important;
  border-bottom: 1px solid #e8eef6 !important;
  padding: 20px 20px !important;
}

.bsm-trust-strip__inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  text-align: center !important;
  font-size: 16px !important;
  color: #516075 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* =========================
   STATE ROUTING
========================= */

.bsm-state-routing {
  background: #ffffff !important;
  padding: 0 20px 78px !important;
  border-top: 24px solid #ffffff !important;
}

.bsm-state-routing__inner {
  max-width: 920px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.bsm-state-routing h2 {
  margin: 0 0 14px !important;
  font-size: clamp(34px, 4.5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: var(--bsm-text) !important;
}

.bsm-state-routing p {
  max-width: 760px !important;
  margin: 0 auto 38px !important;
  font-size: 20px !important;
  line-height: 1.5 !important;
  color: #5b6981 !important;
}

.bsm-state-routing__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
}

a.bsm-state-card {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid var(--bsm-card-border) !important;
  border-radius: 20px !important;
  padding: 34px 32px !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.06) !important;
  transition: all 0.2s ease !important;
}

a.bsm-state-card:hover {
  border-color: #d4deea !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(31, 42, 68, 0.09) !important;
}

.bsm-state-card__eyebrow {
  display: inline-block !important;
  margin-bottom: 18px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(40, 38, 111, 0.08) !important;
  color: var(--bsm-blue) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.bsm-state-card__title {
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  color: var(--bsm-text) !important;
  margin-bottom: 14px !important;
}

.bsm-state-card__text {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #617084 !important;
  margin-bottom: 24px !important;
}

.bsm-state-card__cta {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--bsm-blue) !important;
}

/* =========================
   REVIEWS SECTION
========================= */

.bsm-reviews-section {
  background: #fbfdff !important;
  padding: 66px 20px 78px !important;
  border-top: 1px solid #eef3f8 !important;
  border-bottom: 1px solid #eef3f8 !important;
}

.bsm-reviews-section__inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.bsm-reviews-section h2 {
  margin: 0 0 14px !important;
  text-align: center !important;
  font-size: clamp(34px, 4.5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: #1d2742 !important;
}

.bsm-reviews-section p {
  max-width: 700px !important;
  margin: 0 auto 34px !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.5 !important;
  color: #5a6980 !important;
}

.bsm-reviews-section .eapps-widget,
.bsm-reviews-section [class*="elfsight"],
.bsm-reviews-section iframe,
.bsm-reviews-section .wp-block-group,
.bsm-reviews-section .wp-block-column {
  background: transparent !important;
}

/* =========================
   LIVE RATES SECTION
========================= */

.bsm-rates-section {
  background: #ffffff !important;
  border-top: 1px solid #eef3f8 !important;
  padding: 62px 20px 72px !important;
}

.bsm-rates-section__inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.bsm-rates-section__top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
}

.bsm-rates-section h2 {
  margin: 0 !important;
  max-width: 620px !important;
  font-size: clamp(32px, 4.2vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: #1d2742 !important;
}

.bsm-rates-section__link {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--bsm-blue) !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  margin-top: 10px !important;
}

.bsm-rates-section__link:hover {
  text-decoration: underline !important;
}

.bsm-rates-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
  margin-bottom: 24px !important;
}

.bsm-rate-card {
  background: #ffffff !important;
  border: 1px solid var(--bsm-card-border) !important;
  border-radius: 20px !important;
  padding: 24px 24px 22px !important;
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.06) !important;
}

.bsm-rate-card__label {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #5b6980 !important;
  margin-bottom: 24px !important;
}

.bsm-rate-card__value {
  font-size: clamp(42px, 4.8vw, 58px) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  font-weight: 700 !important;
  color: var(--bsm-text) !important;
}

.bsm-rates-note {
  max-width: 980px !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #6a788d !important;
}

/* =========================
   FINAL CTA
========================= */

.bsm-final-cta {
  background: #f9fbfe !important;
  border-top: 1px solid #eef3f8 !important;
  padding: 56px 20px 80px !important;
}

.bsm-final-cta__inner {
  max-width: 900px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.bsm-final-cta h2 {
  margin: 0 0 16px !important;
  font-size: clamp(34px, 4.5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: #1d2742 !important;
}

.bsm-final-cta p {
  max-width: 760px !important;
  margin: 0 auto 30px !important;
  font-size: 22px !important;
  line-height: 1.55 !important;
  color: #5a6980 !important;
}

.bsm-final-cta__buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

/* =========================
   GLOBAL SOFTER CORNERS
========================= */

.wp-block-group,
.wp-block-cover,
.wp-block-column,
.wp-block-media-text,
.wp-block-buttons,
.gb-container,
.gb-inside-container,
.stk-block,
.stk-inner-blocks,
.stk-block-container,
.ct-card,
.ct-box {
  border-radius: 20px !important;
}

/* =========================================================
   LOAN PROGRAMS PAGE
   PAGE ID 943
========================================================= */

.page-id-943 .wp-block-group,
.page-id-943 .wp-block-columns,
.page-id-943 .wp-block-column,
.page-id-943 .wp-block-media-text,
.page-id-943 .gb-container,
.page-id-943 .gb-inside-container,
.page-id-943 .stk-block,
.page-id-943 .stk-inner-blocks,
.page-id-943 .stk-block-container,
.page-id-943 .ct-card,
.page-id-943 [class*="card"],
.page-id-943 [class*="box"] {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.page-id-943 .bsm-loan-programs-hero,
.page-id-943 .bsm-loan-programs-hero__inner,
.page-id-943 .bsm-loan-hero,
.page-id-943 .bsm-loan-hero__inner,
.page-id-943 .bsm-programs-hero,
.page-id-943 .bsm-programs-hero__inner {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.page-id-943 .bsm-loan-card,
.page-id-943 .bsm-program-card,
.page-id-943 .bsm-loan-program-card,
.page-id-943 .bsm-programs-grid > *,
.page-id-943 .bsm-loan-grid > *,
.page-id-943 .bsm-loan-programs-grid > *,
.page-id-943 .bsm-loan-options-grid > * {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.page-id-943 .bsm-loan-cta,
.page-id-943 .bsm-loan-cta__inner,
.page-id-943 .bsm-conversation-section,
.page-id-943 .bsm-conversation-section__inner,
.page-id-943 .bsm-conversation-card,
.page-id-943 .bsm-cta-card,
.page-id-943 .bsm-loan-programs-cta,
.page-id-943 .bsm-loan-programs-cta__inner {
  border-radius: 20px !important;
  overflow: hidden !important;
}

.page-id-943 .wp-element-button,
.page-id-943 .ct-button,
.page-id-943 button,
.page-id-943 input[type="button"],
.page-id-943 input[type="submit"],
.page-id-943 a.bsm-btn,
.page-id-943 a.bsm-action-btn,
.page-id-943 a[class*="btn"] {
  border-radius: 999px !important;
}

.page-id-943 input[type="text"],
.page-id-943 input[type="email"],
.page-id-943 input[type="tel"],
.page-id-943 input[type="search"],
.page-id-943 input[type="number"],
.page-id-943 input[type="url"],
.page-id-943 input[type="password"],
.page-id-943 textarea,
.page-id-943 select {
  border-radius: 14px !important;
}

.page-id-943 .bsm-loan-cta,
.page-id-943 .bsm-conversation-section,
.page-id-943 .bsm-loan-programs-cta {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 12px !important;
}

/* =========================
   RESPONSIVE PAGE SECTIONS
========================= */

@media (max-width: 768px) {
  .bsm-home-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 72px 20px 78px !important;
    background-position: center bottom !important;
  }

  .bsm-trust-strip {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 18px 16px !important;
  }

  .bsm-home-hero__text {
    font-size: 20px !important;
  }

  .bsm-home-hero__buttons,
  .bsm-final-cta__buttons {
    flex-direction: column !important;
    gap: 14px !important;
  }

  a.bsm-btn {
    width: 100% !important;
    max-width: 360px !important;
    min-width: 0 !important;
    font-size: 22px !important;
  }

  .bsm-trust-strip__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    font-size: 15px !important;
  }

  .bsm-state-routing {
    padding: 52px 20px 60px !important;
  }

  .bsm-state-routing p,
  .bsm-reviews-section p {
    font-size: 18px !important;
  }

  .bsm-state-routing__grid {
    grid-template-columns: 1fr !important;
  }

  a.bsm-state-card {
    padding: 28px 24px !important;
  }

  .bsm-state-card__title {
    font-size: 28px !important;
  }

  .bsm-reviews-section,
  .bsm-rates-section,
  .bsm-final-cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .bsm-rates-section__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 22px !important;
  }

  .bsm-rates-section h2 {
    max-width: 100% !important;
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .bsm-rates-section__link {
    font-size: 17px !important;
    margin-top: 0 !important;
  }

  .bsm-rates-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .bsm-rate-card {
    padding: 22px 20px !important;
    border-radius: 20px !important;
  }

  .bsm-rate-card__label {
    font-size: 17px !important;
    margin-bottom: 18px !important;
  }

  .bsm-rate-card__value {
    font-size: clamp(38px, 10vw, 50px) !important;
  }

  .bsm-rates-note {
    font-size: 15px !important;
  }

  .bsm-final-cta p {
    font-size: 18px !important;
  }
}


/* =========================
   Edge Home Loan Team Mobile Final CTA Fix
   Removes divider line and fixes button clipping
========================= */

@media (max-width: 768px) {

  /* Remove the line above the final CTA/state section */
  .bsm-final-cta,
  .bsm-state-routing,
  .bsm-reviews-section,
  .bsm-rates-section {
    border-top: none !important;
    box-shadow: none !important;
  }

  .bsm-final-cta::before,
  .bsm-final-cta::after,
  .bsm-state-routing::before,
  .bsm-state-routing::after,
  .bsm-reviews-section::before,
  .bsm-reviews-section::after,
  .bsm-rates-section::before,
  .bsm-rates-section::after {
    display: none !important;
    content: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Final CTA mobile container */
  .bsm-final-cta {
    padding: 34px 16px 64px !important;
    margin: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .bsm-final-cta__inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 42px 22px 44px !important;
    margin: 0 auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at top left, rgba(40, 38, 111, 0.10), transparent 34%),
      linear-gradient(135deg, #f8f8fc 0%, #eef0f6 52%, #ffffff 100%) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08) !important;
  }

  .bsm-final-cta h2 {
    max-width: 100% !important;
    margin: 0 auto 18px !important;
    font-size: clamp(36px, 10vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    text-align: center !important;
  }

  .bsm-final-cta p {
    max-width: 100% !important;
    margin: 0 auto 28px !important;
    font-size: 21px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  /* Fix Florida / Maine button clipping */
  .bsm-final-cta__buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .bsm-final-cta__buttons a,
  .bsm-final-cta__buttons a:link,
  .bsm-final-cta__buttons a:visited,
  .bsm-final-cta__buttons .bsm-btn,
  .bsm-final-cta__buttons .bsm-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 18px 22px !important;
    border-radius: 999px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .bsm-final-cta__buttons a:first-child,
  .bsm-final-cta__buttons a:first-child:link,
  .bsm-final-cta__buttons a:first-child:visited {
    background: #28266f !important;
    color: #ffffff !important;
    border: 2px solid #28266f !important;
  }

  .bsm-final-cta__buttons a:nth-child(2),
  .bsm-final-cta__buttons a:nth-child(2):link,
  .bsm-final-cta__buttons a:nth-child(2):visited {
    background: #ffffff !important;
    color: #28266f !important;
    border: 2px solid #28266f !important;
  }
}

/* =========================
   Edge Home Loan Team Mobile Final CTA Center Fix
========================= */

@media (max-width: 768px) {

  .bsm-final-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .bsm-final-cta__inner {
    width: min(100%, 640px) !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .bsm-final-cta__buttons {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  .entry-content .bsm-final-cta {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

/* =========================
   Edge Home Loan Team Mobile Hero + Button Tighten
========================= */

@media (max-width: 768px) {

  /* Tighten hero on mobile */
  .bsm-home-hero {
    padding: 38px 18px 52px !important;
    margin-top: 0 !important;
  }

  .bsm-home-hero h1 {
    font-size: clamp(38px, 10.5vw, 52px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
    margin-bottom: 22px !important;
  }

  .bsm-home-hero__text {
    font-size: 19px !important;
    line-height: 1.55 !important;
    margin-bottom: 28px !important;
  }

  /* Reduce all big pill buttons on mobile */
  a.bsm-btn,
  .bsm-btn,
  .bsm-button,
  .bsm-home-hero__buttons a,
  .bsm-final-cta__buttons a,
  .bsm-state-routing a,
  .bsm-state-card,
  .wp-element-button,
  .ct-button {
    min-height: 52px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .bsm-home-hero__buttons,
  .bsm-final-cta__buttons {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  /* Final CTA/state buttons specifically */
  .bsm-final-cta {
    padding: 30px 16px 54px !important;
  }

  .bsm-final-cta__inner {
    padding: 34px 20px 38px !important;
    border-radius: 24px !important;
  }

  .bsm-final-cta h2 {
    font-size: clamp(34px, 9.5vw, 48px) !important;
    line-height: 1.08 !important;
    margin-bottom: 18px !important;
  }

  .bsm-final-cta p {
    font-size: 19px !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
  }

  .bsm-final-cta__buttons a,
  .bsm-final-cta__buttons .bsm-btn,
  .bsm-final-cta__buttons .bsm-button {
    min-height: 54px !important;
    padding: 14px 20px !important;
    font-size: 18px !important;
  }

  /* Trust strip smaller on mobile */
  .bsm-trust-strip__inner {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    gap: 10px !important;
  }
}

/* =========================
   EDGE HOME LOAN TEAM MOBILE BUTTON OVERRIDE
   Stronger fix for oversized mobile buttons
========================= */

@media (max-width: 768px) {

  /* HERO BUTTONS: Florida / Maine */
  .home .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn,
  .home .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn-primary,
  .home .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn-secondary,
  .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn,
  .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn-primary,
  .bsm-home-hero .bsm-home-hero__buttons a.bsm-btn-secondary {
    width: 100% !important;
    max-width: 310px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    font-size: 16.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .home .bsm-home-hero .bsm-home-hero__buttons,
  .bsm-home-hero .bsm-home-hero__buttons {
    width: 100% !important;
    max-width: 310px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 12px !important;
  }

  /* FINAL CTA BUTTONS: Florida / Maine */
  .home .bsm-final-cta .bsm-final-cta__buttons a,
  .home .bsm-final-cta .bsm-final-cta__buttons a.bsm-btn,
  .home .bsm-final-cta .bsm-final-cta__buttons a.bsm-button,
  .bsm-final-cta .bsm-final-cta__buttons a,
  .bsm-final-cta .bsm-final-cta__buttons a.bsm-btn,
  .bsm-final-cta .bsm-final-cta__buttons a.bsm-button {
    width: 100% !important;
    max-width: 310px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    font-size: 16.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .home .bsm-final-cta .bsm-final-cta__buttons,
  .bsm-final-cta .bsm-final-cta__buttons {
    width: 100% !important;
    max-width: 310px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 12px !important;
  }

  /* GENERAL BSM CTA BUTTONS ON MOBILE PAGES */
  .entry-content a.bsm-btn,
  .entry-content a.bsm-btn-primary,
  .entry-content a.bsm-btn-secondary,
  .entry-content a.bsm-button,
  .entry-content a.bsm-button--primary,
  .entry-content a.bsm-button--outline,
  .entry-content a.bsm-contact-btn,
  .entry-content a.bsm-action-btn,
  .entry-content a.bsm-action-btn-primary,
  .entry-content a[class*="btn"]:not(.bsm-state-card),
  .entry-content a[class*="button"]:not(.bsm-state-card) {
    max-width: 310px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    font-size: 16.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  /* Button containers */
  .entry-content .wp-block-buttons,
  .entry-content .bsm-home-hero__buttons,
  .entry-content .bsm-final-cta__buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  /* Do not shrink full cards as if they are buttons */
  .entry-content a.bsm-state-card,
  .bsm-state-routing a.bsm-state-card {
    max-width: 100% !important;
    min-height: auto !important;
    padding: 26px 22px !important;
    font-size: inherit !important;
    border-radius: 20px !important;
  }
}

/* =========================
   Edge Home Loan Team Rate Factors Card Fix
   Prevents text from cutting off
========================= */

.bsm-rate-factors,
.bsm-rate-factors *,
.bsm-rate-section,
.bsm-rate-section *,
.bsm-pricing-factors,
.bsm-pricing-factors *,
.bsm-factor-card,
.bsm-rate-factor-card {
  box-sizing: border-box !important;
  overflow: visible !important;
}

.bsm-rate-factors,
.bsm-rate-section,
.bsm-pricing-factors {
  padding-left: clamp(22px, 5vw, 76px) !important;
  padding-right: clamp(22px, 5vw, 76px) !important;
}

.bsm-factor-card,
.bsm-rate-factor-card,
.bsm-rate-factors .wp-block-column,
.bsm-rate-section .wp-block-column,
.bsm-pricing-factors .wp-block-column {
  min-height: 138px !important;
  height: auto !important;
  padding: 24px 24px 22px !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.bsm-factor-card h3,
.bsm-rate-factor-card h3,
.bsm-rate-factors h3,
.bsm-rate-section h3,
.bsm-pricing-factors h3 {
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.bsm-factor-card p,
.bsm-rate-factor-card p,
.bsm-rate-factors p,
.bsm-rate-section p,
.bsm-pricing-factors p {
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Mobile/tablet card cleanup */
@media (max-width: 900px) {
  .bsm-rate-factors,
  .bsm-rate-section,
  .bsm-pricing-factors {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .bsm-factor-card,
  .bsm-rate-factor-card,
  .bsm-rate-factors .wp-block-column,
  .bsm-rate-section .wp-block-column,
  .bsm-pricing-factors .wp-block-column {
    min-height: 0 !important;
    padding: 22px 20px !important;
  }
}

/* =========================================================
   EDGE GET STARTED FORM
   Final single-source styling for page ID 952
========================================================= */

body.page-id-952 .ehl-start-form,
body.page-id-952 .ehl-start-form * {
  box-sizing: border-box !important;
}

/* Form heading */

body.page-id-952 h2.wp-block-heading {
  max-width: 900px !important;
  margin: 42px auto 8px !important;
  color: #292e5f !important;
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-align: center !important;
}

body.page-id-952 h2.wp-block-heading + p {
  max-width: 760px !important;
  margin: 0 auto 24px !important;
  color: #56688d !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

/* Remove every outer ghost card */

body.page-id-952 .wp-block-jetpack-contact-form,
body.page-id-952 .wp-block-jetpack-contact-form-container,
body.page-id-952 .wp-block-group:has(.wp-block-jetpack-contact-form),
body.page-id-952 .wp-block-columns:has(.wp-block-jetpack-contact-form),
body.page-id-952 .wp-block-column:has(.wp-block-jetpack-contact-form) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
}

/* The form itself is the only card */

body.page-id-952 .wp-block-jetpack-contact-form form,
body.page-id-952 form.contact-form,
body.page-id-952 form.grunion-contact-form {
  width: min(760px, calc(100vw - 48px)) !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 30px 34px !important;
  background: #ffffff !important;
  border: 1px solid #e1e5ed !important;
  border-radius: 16px !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
}

/* Field layout */

body.page-id-952 .jetpack-field,
body.page-id-952 .grunion-field-wrap,
body.page-id-952 [class*="wp-block-jetpack-field"] {
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Labels */

body.page-id-952 form.contact-form label,
body.page-id-952 form.grunion-contact-form label,
body.page-id-952 .grunion-field-label {
  display: block !important;
  margin: 0 0 6px !important;
  color: #292e5f !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

body.page-id-952 .required,
body.page-id-952 [class*="required"] {
  color: #56688d !important;
  font-weight: 400 !important;
}

/* Standard fields receive one border */

body.page-id-952 form.contact-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-id-952 form.contact-form select,
body.page-id-952 form.contact-form textarea,
body.page-id-952 form.grunion-contact-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-id-952 form.grunion-contact-form select,
body.page-id-952 form.grunion-contact-form textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  color: #292e5f !important;
  background: #ffffff !important;
  border: 1px solid #cbd3e1 !important;
  border-radius: 8px !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

body.page-id-952 form.contact-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-id-952 form.contact-form select,
body.page-id-952 form.grunion-contact-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-id-952 form.grunion-contact-form select {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 16px !important;
}

body.page-id-952 form.contact-form textarea,
body.page-id-952 form.grunion-contact-form textarea {
  min-height: 150px !important;
  padding: 14px 16px !important;
  resize: vertical !important;
}

/* Dropdown wrapper owns the only select border */

body.page-id-952 .jetpack-field-dropdown__wrapper {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd3e1 !important;
  border-radius: 8px !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: hidden !important;
}

body.page-id-952 .jetpack-field-dropdown__wrapper select,
body.page-id-952 form.contact-form .jetpack-field-dropdown__wrapper select,
body.page-id-952 form.grunion-contact-form .jetpack-field-dropdown__wrapper select {
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Phone wrapper owns the only telephone border */

body.page-id-952 form.contact-form .iti,
body.page-id-952 form.grunion-contact-form .iti,
body.page-id-952 .iti {
  display: flex !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd3e1 !important;
  border-radius: 8px !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: hidden !important;
}

body.page-id-952 form.contact-form .iti input[type="tel"],
body.page-id-952 form.grunion-contact-form .iti input[type="tel"],
body.page-id-952 .iti input[type="tel"] {
  flex: 1 1 auto !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

body.page-id-952 .iti__country-container,
body.page-id-952 .iti__selected-country {
  color: #ffffff !important;
  background: #292e5f !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Focus without a second outline */

body.page-id-952 form.contact-form input:focus,
body.page-id-952 form.contact-form textarea:focus,
body.page-id-952 form.grunion-contact-form input:focus,
body.page-id-952 form.grunion-contact-form textarea:focus {
  border-color: #292e5f !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.page-id-952 .jetpack-field-dropdown__wrapper:focus-within,
body.page-id-952 .iti:focus-within {
  border-color: #292e5f !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Submit button */

body.page-id-952 form.contact-form button[type="submit"],
body.page-id-952 form.contact-form input[type="submit"],
body.page-id-952 form.grunion-contact-form button[type="submit"],
body.page-id-952 form.grunion-contact-form input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 48px !important;
  margin: 6px 0 0 !important;
  padding: 0 24px !important;
  color: #ffffff !important;
  background: #292e5f !important;
  border: 0 !important;
  border-radius: 8px !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  font-family: "Source Sans 3", sans-serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.page-id-952 form.contact-form button[type="submit"]:hover,
body.page-id-952 form.contact-form button[type="submit"]:focus-visible,
body.page-id-952 form.contact-form input[type="submit"]:hover,
body.page-id-952 form.contact-form input[type="submit"]:focus-visible,
body.page-id-952 form.grunion-contact-form button[type="submit"]:hover,
body.page-id-952 form.grunion-contact-form button[type="submit"]:focus-visible,
body.page-id-952 form.grunion-contact-form input[type="submit"]:hover,
body.page-id-952 form.grunion-contact-form input[type="submit"]:focus-visible {
  color: #ffffff !important;
  background: #20244c !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 767px) {
  body.page-id-952 .wp-block-jetpack-contact-form form,
  body.page-id-952 form.contact-form,
  body.page-id-952 form.grunion-contact-form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 18px !important;
  }

  body.page-id-952 form.contact-form button[type="submit"],
  body.page-id-952 form.contact-form input[type="submit"],
  body.page-id-952 form.grunion-contact-form button[type="submit"],
  body.page-id-952 form.grunion-contact-form input[type="submit"] {
    width: 100% !important;
  }
}

/* =========================
   FIX LOAN PROGRAMS CTA CARD CLIPPING
   Override global card/panel overflow rules
========================= */

.page-id-943 .bsm-loan-cta-band,
.page-id-943 .bsm-loan-cta-band *,
.page-id-943 .bsm-loan-cta-band__inner,
.page-id-943 .bsm-loan-cta-band__panel,
.page-id-943 .bsm-loan-cta-band__left,
.page-id-943 .bsm-loan-cta-band__right,
.page-id-943 .bsm-loan-cta-band__card,
.page-id-943 .bsm-loan-cta-band__card-title,
.page-id-943 .bsm-loan-cta-band__card-text,
.page-id-943 .bsm-loan-cta-band__buttons {
  box-sizing: border-box !important;
}

.page-id-943 .bsm-loan-cta-band,
.page-id-943 .bsm-loan-cta-band__inner,
.page-id-943 .bsm-loan-cta-band__right,
.page-id-943 .bsm-loan-cta-band__card,
.page-id-943 .bsm-loan-cta-band__card-title,
.page-id-943 .bsm-loan-cta-band__card-text,
.page-id-943 .bsm-loan-cta-band__buttons {
  overflow: visible !important;
}

/* Keep the blue panel rounded without clipping the white card */
.page-id-943 .bsm-loan-cta-band__panel {
  overflow: visible !important;
  border-radius: 20px !important;
}

/* Make sure the white card has enough internal space */
.page-id-943 .bsm-loan-cta-band__card {
  width: 100% !important;
  max-width: 430px !important;
  min-height: auto !important;
  height: auto !important;
  padding: 34px 34px 32px !important;
  border-radius: 20px !important;
}

/* Prevent title/text clipping */
.page-id-943 .bsm-loan-cta-band__card-title,
.page-id-943 .bsm-loan-cta-band__card-text {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
}

/* Let the right side card breathe */
.page-id-943 .bsm-loan-cta-band__right {
  max-width: 430px !important;
  min-width: 0 !important;
  justify-self: end !important;
}

/* Desktop layout */
.page-id-943 .bsm-loan-cta-band__panel {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
}

/* Tablet/mobile stack */
@media (max-width: 900px) {
  .page-id-943 .bsm-loan-cta-band__panel {
    grid-template-columns: 1fr !important;
  }

  .page-id-943 .bsm-loan-cta-band__right {
    width: 100% !important;
    max-width: 460px !important;
    justify-self: start !important;
  }

  .page-id-943 .bsm-loan-cta-band__card {
    max-width: 460px !important;
  }
}

@media (max-width: 640px) {
  .page-id-943 .bsm-loan-cta-band__right,
  .page-id-943 .bsm-loan-cta-band__card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-id-943 .bsm-loan-cta-band__card {
    padding: 26px 22px 24px !important;
  }
}

/* ================================
   Edge Global Outline Button Fix
   Thicker Blue Button Border
================================ */

a.bsm-btn-secondary,
a.bsm-btn--secondary,
a.bsm-btn--outline,
a.bsm-button--secondary,
a.bsm-button--outline,
a.bsm-contact-btn--outline,
a.bsm-funnel-btn--secondary,
a.bsm-funnel-btn--outline,
a.bsm-about-btn--secondary,
a.bsm-about-btn--outline,
a.bsm-purchase-btn--outline,
a.bsm-refi-btn--outline,
a.bsm-me-btn--outline,
a.bsm-fl-ship-btn--secondary,
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: #ffffff !important;
  color: #28266f !important;
  border: 2px solid #28266f !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

a.bsm-btn-secondary:hover,
a.bsm-btn--secondary:hover,
a.bsm-btn--outline:hover,
a.bsm-button--secondary:hover,
a.bsm-button--outline:hover,
a.bsm-contact-btn--outline:hover,
a.bsm-funnel-btn--secondary:hover,
a.bsm-funnel-btn--outline:hover,
a.bsm-about-btn--secondary:hover,
a.bsm-about-btn--outline:hover,
a.bsm-purchase-btn--outline:hover,
a.bsm-refi-btn--outline:hover,
a.bsm-me-btn--outline:hover,
a.bsm-fl-ship-btn--secondary:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: #f6f6fa !important;
  color: #1f1d5c !important;
  border-color: #1f1d5c !important;
  text-decoration: none !important;
}

/* REMOVE SMUDGY OUTER SECTION SHADOWS */

body.home .entry-content section,
body.home .wp-block-post-content section {
  box-shadow: none !important;
}

/* REMOVE SHADOW FROM NATIONAL CONNECTION SECTION */

body.home .ehl-national-section,
body.home .ehl-national-section__inner {
  box-shadow: none !important;
}

/* REDUCE SPACE BETWEEN FINAL CONTACT SECTION AND FOOTER */

body.home .ehl-contact-cta {
  margin-bottom: 0 !important;
}

/* Remove Blocksy's extra bottom page spacing */
body.home #main > [data-vertical-spacing*="bottom"],
body.home #main .ct-container-full[data-vertical-spacing*="bottom"],
body.home #main .ct-container[data-vertical-spacing*="bottom"] {
  padding-bottom: 24px !important;
}

/* Keep footer in its normal position */
body.home .site-footer,
body.home .ct-footer,
body.home footer.ct-footer {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  body.home #main > [data-vertical-spacing*="bottom"],
  body.home #main .ct-container-full[data-vertical-spacing*="bottom"],
  body.home #main .ct-container[data-vertical-spacing*="bottom"] {
    padding-bottom: 18px !important;
  }
}

/* EDGE HEADER CONTACT NUMBERS */

.ehl-header-contact {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
}

.ehl-header-contact a,
.ehl-header-contact a:link,
.ehl-header-contact a:visited {
  color: #28266f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.ehl-header-contact a + a {
  margin-left: 16px !important;
  padding-left: 16px !important;
  border-left: 1px solid rgba(40, 38, 111, 0.22) !important;
}

.ehl-header-contact a:hover,
.ehl-header-contact a:focus-visible {
  color: #181743 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* REMOVE HEADER SHADOW */

body .ct-header,
body .site-header,
body #header,
body .ct-header [data-row],
body .ct-header [data-row="middle"] {
  box-shadow: none !important;
  filter: none !important;
}

body .ct-header::before,
body .ct-header::after,
body .ct-header [data-row]::before,
body .ct-header [data-row]::after {
  box-shadow: none !important;
}

/* =====================================
   FOOTER APPLICATION LINKS
===================================== */

.ehl-footer .ehl-footer__apply-link,
.ehl-footer .ehl-footer__apply-link:link,
.ehl-footer .ehl-footer__apply-link:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: fit-content !important;
  min-height: 40px !important;
  margin-top: 11px !important;
  padding: 0 15px !important;

  color: #ffffff !important;
  background: #292e5f !important;

  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;

  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease !important;
}

.ehl-footer .ehl-footer__apply-link:hover,
.ehl-footer .ehl-footer__apply-link:focus-visible {
  color: #ffffff !important;
  background: #20244c !important;

  box-shadow: 0 8px 18px rgba(41, 46, 95, 0.18) !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 600px) {
  .ehl-footer .ehl-footer__apply-link {
    width: 100% !important;
  }
}

/* =====================================
   THINNER DESKTOP MENU CAPSULES
===================================== */

@media (min-width: 1000px) {
  .ct-header [data-id="menu"] .menu > li.current-menu-item > a,
  .ct-header [data-id="menu"] .menu > li.current-menu-ancestor > a,
  .ct-header [data-id="menu"] .menu > li.current_page_item > a,
  .ct-header [data-id="menu"] .menu > li:hover > a,
  .ct-header [data-id="menu"] .menu > li > a:focus-visible {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;

    color: #ffffff !important;
    background: #292e5f !important;

    border: 0 !important;
    border-radius: 999px !important;

    line-height: 1 !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   EDGE HOME LOAN TEAM
   GLOBAL LINK AND BUTTON COLORS
========================================================= */

:root {
  --ehl-brand-blue: #2d295d;
  --ehl-brand-blue-hover: #24214b;

  /* Blocksy and WordPress theme colors */
  --theme-palette-color-1: #2d295d;
  --theme-palette-color-2: #24214b;
  --theme-link-initial-color: #2d295d;
  --theme-link-hover-color: #24214b;
}

/* =========================================================
   STANDARD CONTENT LINKS
========================================================= */

body :is(
  .entry-content,
  .site-main,
  #main,
  .wp-block-post-content
) a:not(.wp-element-button)
  :not(.wp-block-button__link)
  :not(.ct-button)
  :not(.button)
  :not(.btn)
  :not([class*="__button"])
  :not([class*="-btn"]) {
  color: var(--ehl-brand-blue) !important;
  text-decoration-color: currentColor !important;
}

body :is(
  .entry-content,
  .site-main,
  #main,
  .wp-block-post-content
) a:not(.wp-element-button)
  :not(.wp-block-button__link)
  :not(.ct-button)
  :not(.button)
  :not(.btn)
  :not([class*="__button"])
  :not([class*="-btn"]):hover,
body :is(
  .entry-content,
  .site-main,
  #main,
  .wp-block-post-content
) a:not(.wp-element-button)
  :not(.wp-block-button__link)
  :not(.ct-button)
  :not(.button)
  :not(.btn)
  :not([class*="__button"])
  :not([class*="-btn"]):focus {
  color: var(--ehl-brand-blue-hover) !important;
}

/* =========================================================
   GLOBAL BUTTONS
========================================================= */

body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"],
  button[class*="__button"],
  button[class*="-btn"],
  button[type="submit"],
  input[type="submit"],
  input[type="button"]
),
body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"]
):link,
body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"]
):visited {
  color: #ffffff !important;
  background-color: var(--ehl-brand-blue) !important;
  background-image: none !important;

  border: 0 !important;
  border-color: transparent !important;
  border-radius: 10px !important;
  outline: 0 !important;
  box-shadow: none !important;

  text-decoration: none !important;

  transition:
    background-color 0.18s ease,
    transform 0.18s ease !important;
}

/* =========================================================
   BUTTON HOVER, FOCUS AND ACTIVE
========================================================= */

body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"],
  button[class*="__button"],
  button[class*="-btn"],
  button[type="submit"],
  input[type="submit"],
  input[type="button"]
):hover,
body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"],
  button[class*="__button"],
  button[class*="-btn"],
  button[type="submit"],
  input[type="submit"],
  input[type="button"]
):focus,
body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"],
  button[class*="__button"],
  button[class*="-btn"],
  button[type="submit"],
  input[type="submit"],
  input[type="button"]
):focus-visible,
body :is(
  .wp-element-button,
  .wp-block-button__link,
  .wp-block-file__button,
  .ct-button,
  a.button,
  a.btn,
  a[class*="__button"],
  a[class*="-btn"],
  button[class*="__button"],
  button[class*="-btn"],
  button[type="submit"],
  input[type="submit"],
  input[type="button"]
):active {
  color: #ffffff !important;
  background-color: var(--ehl-brand-blue-hover) !important;
  background-image: none !important;

  border: 0 !important;
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;

  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  body :is(
    .wp-element-button,
    .wp-block-button__link,
    .wp-block-file__button,
    .ct-button,
    a.button,
    a.btn,
    a[class*="__button"],
    a[class*="-btn"],
    button[class*="__button"],
    button[class*="-btn"],
    button[type="submit"],
    input[type="submit"],
    input[type="button"]
  ) {
    transition: none !important;
  }

  body :is(
    .wp-element-button,
    .wp-block-button__link,
    .wp-block-file__button,
    .ct-button,
    a.button,
    a.btn,
    a[class*="__button"],
    a[class*="-btn"],
    button[class*="__button"],
    button[class*="-btn"],
    button[type="submit"],
    input[type="submit"],
    input[type="button"]
  ):hover {
    transform: none !important;
  }
}

/* =====================================
   FINAL RESPONSIVE REPAIRS
   Keep this section last in Additional CSS.
===================================== */

/* -------------------------------------
   TABLET AND MOBILE PAGE-TOP CLEARANCE
   Keeps primary hero cards below the header so rounded
   top corners can render fully without changing card width.
------------------------------------- */

@media (max-width: 1024px) {
  body.page #main > .ct-container-full[data-vertical-spacing*="top"] {
    padding-top: 0 !important;
  }

  /* Pages whose outer page wrapper contains the hero */
  body.page .ehl-purchase,
  body.page .ehl-refinance,
  body.page .edge-calc-page,
  body.page .ehl-purchase-page,
  body.page .ehl-refi-page {
    padding-top: 28px !important;
  }

  /* Pages where the hero itself is the top component */
  body.page .ehl-va-hero,
  body.page .ehl-loan-hero,
  body.page .ehl-heloc-hero,
  body.page .ehl-start-hero {
    margin-top: 28px !important;
  }
}

@media (max-width: 767px) {
  body.page .ehl-purchase,
  body.page .ehl-refinance,
  body.page .edge-calc-page,
  body.page .ehl-purchase-page,
  body.page .ehl-refi-page {
    padding-top: 24px !important;
  }

  body.page .ehl-va-hero,
  body.page .ehl-loan-hero,
  body.page .ehl-heloc-hero,
  body.page .ehl-start-hero {
    margin-top: 24px !important;
  }
}

/* -------------------------------------
   IPAD PORTRAIT HOMEPAGE POSITION
------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.home .ehl-hero-v3 {
    margin-top: 20px !important;
  }
}

/* -------------------------------------
   ONE SHARED TABLET AND MOBILE BREAKPOINT
------------------------------------- */

@media (max-width: 1199px) {
  body #header > [data-device="desktop"] {
    display: none !important;
  }

  body #header > [data-device="mobile"] {
    display: block !important;
  }

  body #header > [data-device="mobile"] [data-row="middle"] {
    display: block !important;
    min-height: 94px !important;
    height: 94px !important;
    max-height: none !important;
    background: #ffffff !important;
  }

  body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 94px !important;
    height: 94px !important;
    max-height: none !important;
    padding: 0 clamp(24px, 5vw, 54px) !important;
  }

  body #header > [data-device="mobile"] [data-column="start"],
  body #header > [data-device="mobile"] [data-column="end"] {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body #header > [data-device="mobile"] [data-column="start"] {
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
  }

  body #header > [data-device="mobile"] [data-column="end"] {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  body #header > [data-device="mobile"] [data-column="middle"] {
    display: none !important;
  }

  body #header > [data-device="mobile"] .site-branding,
  body #header > [data-device="mobile"] .site-logo-container {
    display: flex !important;
    align-items: center !important;
    width: 220px !important;
    max-width: min(220px, calc(100vw - 112px)) !important;
    margin: 0 !important;
  }

  body #header > [data-device="mobile"] .site-logo-container img,
  body #header > [data-device="mobile"] .custom-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body #header > [data-device="mobile"] .ct-header-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    inset: auto !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #28266f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 1000002 !important;
  }

  body #header > [data-device="mobile"] .ct-header-trigger svg,
  body #header > [data-device="mobile"] .ct-header-trigger .ct-icon {
    display: block !important;
    width: 28px !important;
    height: 24px !important;
    color: #28266f !important;
    fill: currentColor !important;
  }

  /* Make Blocksy's mobile panel available at the same breakpoint as the trigger. */
  body #offcanvas.ct-panel {
    --side-panel-width: 100vw !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    color: #28266f !important;
    background: #ffffff !important;
    overflow: hidden !important;
    z-index: 1000000 !important;
  }

  body #offcanvas.ct-panel.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body #offcanvas > .ct-panel-content[data-device="desktop"] {
    display: none !important;
  }

  body #offcanvas > .ct-panel-content[data-device="mobile"] {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body #offcanvas > .ct-panel-content[data-device="mobile"]
  > .ct-panel-content-inner {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: calc(86px + env(safe-area-inset-top))
      max(28px, env(safe-area-inset-right))
      calc(38px + env(safe-area-inset-bottom))
      max(28px, env(safe-area-inset-left)) !important;
    background: #ffffff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Always keep the panel's real close button visible. */
  body #offcanvas .ct-panel-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: max(18px, env(safe-area-inset-top)) !important;
    right: max(22px, env(safe-area-inset-right)) !important;
    left: auto !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000003 !important;
  }

  body #offcanvas .ct-toggle-close {
    --theme-icon-color: #28266f !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    inset: auto !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #28266f !important;
    background: #f1f4fa !important;
    border: 1px solid rgba(40, 38, 111, 0.12) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 22px rgba(40, 38, 111, 0.12) !important;
    transform: none !important;
  }

  body #offcanvas .ct-toggle-close svg,
  body #offcanvas .ct-toggle-close .ct-icon,
  body #offcanvas .ct-toggle-close svg path {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    color: #28266f !important;
    fill: currentColor !important;
    opacity: 1 !important;
  }

  /* Mobile navigation and working submenu controls. */
  body #offcanvas nav.mobile-menu,
  body #offcanvas .mobile-menu > ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #28266f !important;
    background: transparent !important;
    text-align: center !important;
    transform: none !important;
    z-index: 1 !important;
  }

  body #offcanvas .mobile-menu li {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body #offcanvas .mobile-menu > ul > li {
    border-bottom: 1px solid rgba(40, 38, 111, 0.12) !important;
  }

  body #offcanvas .mobile-menu > ul > li > a,
  body #offcanvas .mobile-menu .ct-sub-menu-parent > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 12px 4px !important;
    color: #28266f !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  body #offcanvas .mobile-menu .ct-sub-menu-parent {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
  }

  body #offcanvas .mobile-menu .ct-sub-menu-parent > a {
    grid-column: 2 !important;
    justify-self: stretch !important;
  }

  body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static !important;
    grid-column: 3 !important;
    justify-self: end !important;
    inset: auto !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #28266f !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 2 !important;
  }

  body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile svg,
  body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile .ct-icon,
  body #offcanvas .mobile-menu .ct-toggle-dropdown-mobile svg path {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    color: #28266f !important;
    fill: currentColor !important;
    opacity: 1 !important;
  }

  body #offcanvas .mobile-menu .sub-menu {
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body #offcanvas .mobile-menu li.dropdown-active > .sub-menu,
  body #offcanvas .mobile-menu li.active > .sub-menu,
  body #offcanvas .mobile-menu li.ct-active > .sub-menu,
  body #offcanvas .mobile-menu li.open > .sub-menu,
  body #offcanvas .mobile-menu li.is-open > .sub-menu,
  body #offcanvas .mobile-menu li:has(
    > .ct-sub-menu-parent > .ct-toggle-dropdown-mobile[aria-expanded="true"]
  ) > .sub-menu {
    display: block !important;
  }

  body #offcanvas .mobile-menu .sub-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 9px 4px !important;
    color: #28266f !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
  }
}

/* -------------------------------------
   IPAD LANDSCAPE HEADER
------------------------------------- */

@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) {
  body #header > [data-device="mobile"] [data-row="middle"],
  body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    min-height: 116px !important;
    height: 116px !important;
    max-height: 116px !important;
  }

  body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    padding-top: 16px !important;
    padding-right: clamp(54px, 6vw, 76px) !important;
    padding-bottom: 0 !important;
    padding-left: clamp(54px, 6vw, 76px) !important;
  }

  body #header > [data-device="mobile"] .site-branding,
  body #header > [data-device="mobile"] .site-logo-container {
    width: 255px !important;
    max-width: 255px !important;
  }

  body #header > [data-device="mobile"] .ct-header-trigger {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  body #header > [data-device="mobile"] .ct-header-trigger svg,
  body #header > [data-device="mobile"] .ct-header-trigger .ct-icon {
    width: 32px !important;
    height: 26px !important;
  }

  body #offcanvas > .ct-panel-content[data-device="mobile"]
  > .ct-panel-content-inner {
    padding-top: calc(98px + env(safe-area-inset-top)) !important;
    padding-right: max(58px, env(safe-area-inset-right)) !important;
    padding-left: max(58px, env(safe-area-inset-left)) !important;
  }

  body #offcanvas .ct-panel-actions {
    top: max(26px, env(safe-area-inset-top)) !important;
    right: max(58px, env(safe-area-inset-right)) !important;
  }
}

/* -------------------------------------
   IPHONE PORTRAIT HEADER
------------------------------------- */

@media (max-width: 767px) and (orientation: portrait) {
  body #header > [data-device="mobile"] [data-row="middle"],
  body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    min-height: 98px !important;
    height: 98px !important;
  }

  body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    padding-top: 12px !important;
    padding-right: 22px !important;
    padding-bottom: 0 !important;
    padding-left: 22px !important;
  }

  body #header > [data-device="mobile"] .site-branding,
  body #header > [data-device="mobile"] .site-logo-container {
    width: 198px !important;
    max-width: calc(100vw - 104px) !important;
  }
}

/* -------------------------------------
   IPHONE LANDSCAPE MENU
------------------------------------- */

@media (max-width: 899px) and (orientation: landscape) {
  body #offcanvas > .ct-panel-content[data-device="mobile"]
  > .ct-panel-content-inner {
    padding-top: calc(74px + env(safe-area-inset-top)) !important;
    padding-right: max(38px, env(safe-area-inset-right)) !important;
    padding-left: max(38px, env(safe-area-inset-left)) !important;
  }

  body #offcanvas .ct-panel-actions {
    top: max(10px, env(safe-area-inset-top)) !important;
    right: max(30px, env(safe-area-inset-right)) !important;
  }

  body #offcanvas .ct-toggle-close {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  body #offcanvas .mobile-menu > ul > li > a,
  body #offcanvas .mobile-menu .ct-sub-menu-parent > a {
    min-height: 48px !important;
    font-size: 17px !important;
  }
}

/* -------------------------------------
   FOOTER ORIENTATION FIXES
------------------------------------- */

@media (min-width: 651px) and (max-width: 1150px) and (orientation: portrait) {
  .ehl-footer__main > .ehl-footer__contact {
    padding-top: 48px !important;
  }
}

@media (min-width: 651px) and (max-width: 932px) and (orientation: landscape) {
  .ehl-footer__main {
    padding-left: 52px !important;
    padding-right: 16px !important;
  }
}

/* =====================================
   DESKTOP HEADER WIDTH AND SPACING FIX
   Does not affect iPad or iPhone
===================================== */

@media (min-width: 1200px) {

  body #header > [data-device="desktop"]
  [data-row="middle"] > .ct-container {
    width: 100% !important;
    max-width: 1680px !important;
    grid-template-columns:
      220px minmax(0, 1fr) max-content !important;
    column-gap: 20px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  body #header > [data-device="desktop"] .menu {
    justify-content: center !important;
    gap: clamp(10px, 0.8vw, 16px) !important;
  }

  body #header > [data-device="desktop"]
  [data-column="end"] {
    width: max-content !important;
    min-width: max-content !important;
    flex-shrink: 0 !important;
  }

  body #header > [data-device="desktop"]
  .ehl-header-contact {
    width: max-content !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
  }

  body #header > [data-device="desktop"]
  .ehl-header-contact a + a {
    margin-left: 12px !important;
    padding-left: 12px !important;
  }
}

/* Hide phone numbers only on narrower desktop screens */
@media (min-width: 1200px) and (max-width: 1399px) {

  body #header > [data-device="desktop"]
  .ehl-header-contact {
    display: none !important;
  }

  body #header > [data-device="desktop"]
  [data-row="middle"] > .ct-container {
    grid-template-columns: 200px minmax(0, 1fr) !important;
    column-gap: 18px !important;
  }
}

/* ========================================
   EDGE HOME FINANCE RECRUITING LANDING PAGE
======================================== */

:root {
  --edge-navy: #2d295d;
  --edge-ink: #2d295d;
  --edge-text: #4f4d62;
  --edge-muted: #6b6979;
  --edge-soft: #ffffff;
  --edge-soft-navy: #f5f4f8;
  --edge-white: #ffffff;
  --edge-border: #dedde6;
  --edge-radius: 22px;
  --edge-shadow: 0 18px 44px rgba(45, 41, 93, 0.08);
  --edge-strong-shadow: 0 26px 64px rgba(45, 41, 93, 0.12);
}

.edge-recruit-page,
.edge-recruit-page * {
  box-sizing: border-box;
}

.edge-recruit-page {
  width: 100%;
  padding: 34px 20px 12px;
  background: var(--edge-white) !important;
  color: var(--edge-text);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.edge-recruit-page__wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.edge-recruit-page h1,
.edge-recruit-page h2,
.edge-recruit-page h3,
.edge-recruit-page p,
.edge-recruit-page figure,
.edge-recruit-page ul,
.edge-recruit-page ol {
  margin-top: 0;
}

.edge-recruit-page h1,
.edge-recruit-page h2,
.edge-recruit-page h3 {
  color: var(--edge-ink);
}

.edge-recruit-page p,
.edge-recruit-page li {
  color: var(--edge-text);
}

.edge-recruit-kicker {
  margin: 0 0 14px !important;
  color: var(--edge-navy) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
}

.edge-recruit-section-heading {
  max-width: 850px;
  margin: 0 0 28px;
}

.edge-recruit-section-heading h2,
.edge-recruit-story h2,
.edge-recruit-fit h2,
.edge-recruit-information h2 {
  margin: 0 0 16px;
  color: var(--edge-ink);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.edge-recruit-section-heading > p:last-child,
.edge-recruit-fit__intro > p:last-child,
.edge-recruit-information__content > p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.72;
}

/* HERO */

.edge-recruit-hero {
  position: relative;
  padding: 54px;
  background: var(--edge-white);
  border: 1px solid var(--edge-border);
  border-radius: var(--edge-radius);
  box-shadow: var(--edge-strong-shadow);
  overflow: hidden;
}

.edge-recruit-hero::after {
  content: none;
}

.edge-recruit-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.edge-recruit-hero h1 {
  max-width: 720px;
  margin: 0 0 38px !important;
  font-size: clamp(42px, 4.5vw, 62px) !important;
  line-height: 1.055 !important;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.edge-recruit-hero__lead {
  max-width: 740px;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.78 !important;
}

.edge-recruit-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.edge-recruit-page .edge-recruit-proof {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 46px 0 0 !important;
  padding: 0;
  list-style: none;
}

.edge-recruit-proof li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  min-height: 92px;
  padding: 15px 13px;
  background: var(--edge-white);
  border: 1px solid var(--edge-border);
  border-radius: 14px;
  color: var(--edge-navy);
  box-shadow: 0 8px 22px rgba(45, 41, 93, 0.07);
}

.edge-recruit-proof li::before {
  content: none !important;
}

.edge-recruit-proof__icon {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--edge-soft);
  color: var(--edge-navy);
  border-radius: 10px;
}

.edge-recruit-proof__icon svg,
.edge-recruit-transition__icon svg,
.edge-recruit-transition__arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edge-recruit-proof__copy {
  display: block;
  min-width: 0;
}

.edge-recruit-proof__copy strong,
.edge-recruit-proof__copy span {
  display: block;
}

.edge-recruit-proof__copy strong {
  margin-bottom: 4px;
  color: var(--edge-navy);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.edge-recruit-proof__copy span {
  color: var(--edge-muted);
  font-size: 12px;
  line-height: 1.38;
  font-weight: 650;
}

.edge-recruit-hero__media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.edge-recruit-hero__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  padding: 44px 38px;
  background: var(--edge-white);
  border: 1px solid var(--edge-border);
  border-radius: var(--edge-radius);
  box-shadow: 0 18px 42px rgba(45, 41, 93, 0.1);
}

.edge-recruit-hero__media--logo img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* BUTTONS */

.edge-recruit-page .edge-recruit-btn,
.edge-recruit-page .edge-recruit-btn:link,
.edge-recruit-page .edge-recruit-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 54px !important;
  padding: 0 26px !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

.edge-recruit-page .edge-recruit-btn:hover,
.edge-recruit-page .edge-recruit-btn:focus-visible {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.edge-recruit-page .edge-recruit-btn--primary,
.edge-recruit-page .edge-recruit-btn--primary:link,
.edge-recruit-page .edge-recruit-btn--primary:visited {
  background: var(--edge-navy) !important;
  border-color: var(--edge-navy) !important;
  color: var(--edge-white) !important;
  box-shadow: 0 12px 28px rgba(45, 41, 93, 0.22) !important;
}

.edge-recruit-page .edge-recruit-btn--primary:hover,
.edge-recruit-page .edge-recruit-btn--primary:focus-visible {
  background: var(--edge-navy) !important;
  border-color: var(--edge-navy) !important;
  color: var(--edge-white) !important;
}

.edge-recruit-page .edge-recruit-btn--secondary,
.edge-recruit-page .edge-recruit-btn--secondary:link,
.edge-recruit-page .edge-recruit-btn--secondary:visited {
  background: var(--edge-white) !important;
  border-color: var(--edge-navy) !important;
  color: var(--edge-navy) !important;
}

.edge-recruit-page .edge-recruit-btn--secondary:hover,
.edge-recruit-page .edge-recruit-btn--secondary:focus-visible {
  background: var(--edge-soft) !important;
  border-color: var(--edge-navy) !important;
  color: var(--edge-navy) !important;
}

.edge-recruit-page .edge-recruit-btn--light,
.edge-recruit-page .edge-recruit-btn--light:link,
.edge-recruit-page .edge-recruit-btn--light:visited {
  background: var(--edge-white) !important;
  border-color: var(--edge-white) !important;
  color: var(--edge-navy) !important;
  box-shadow: 0 12px 26px rgba(45, 41, 93, 0.18) !important;
}

.edge-recruit-page .edge-recruit-btn--ghost,
.edge-recruit-page .edge-recruit-btn--ghost:link,
.edge-recruit-page .edge-recruit-btn--ghost:visited {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  color: var(--edge-white) !important;
}

.edge-recruit-page .edge-recruit-btn--ghost:hover,
.edge-recruit-page .edge-recruit-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--edge-white) !important;
}

/* STORY */

.edge-recruit-story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: start;
  margin-top: 30px;
  padding: 44px;
  background: var(--edge-white);
  border-radius: var(--edge-radius);
  box-shadow: var(--edge-shadow), inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-story__content p:not(.edge-recruit-kicker) {
  margin: 0 0 17px;
  font-size: 17px;
  line-height: 1.75;
}

.edge-recruit-story__content p:last-child {
  margin-bottom: 0;
}

.edge-recruit-story__aside {
  padding: 28px;
  background: #f2f7fa;
  color: #4d5966;
  border: 1px solid #d4e1e9;
  border-top: 5px solid #3e7399;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(31, 55, 75, 0.1);
}

.edge-recruit-transition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 25px;
}

.edge-recruit-transition__step {
  display: flex;
  min-width: 0;
  min-height: 98px;
  padding: 14px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #ffffff;
  color: #334252;
  border: 1px solid #d6e0e7;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(31, 55, 75, 0.06);
  font-size: 11px;
  line-height: 1.28;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.edge-recruit-transition__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e7f0f6;
  color: #326b94;
  border-radius: 10px;
}

.edge-recruit-transition__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3e7399;
}

.edge-recruit-transition__arrow svg {
  width: 38px;
  height: 24px;
}

.edge-recruit-story__aside-label {
  display: block;
  margin-bottom: 8px;
  color: #52738c;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edge-recruit-story__aside strong {
  display: block;
  margin: 0 0 12px;
  color: #203040;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.edge-recruit-story__aside p {
  margin: 0;
  color: #4d5966;
  font-size: 15px;
  line-height: 1.65;
}

/* SHARED SECTION SPACING */

.edge-recruit-benefits,
.edge-recruit-fit,
.edge-recruit-process,
.edge-recruit-faq {
  margin-top: 64px;
}

/* BENEFIT CARDS */

.edge-recruit-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.edge-recruit-card {
  position: relative;
  min-height: 100%;
  padding: 28px 24px;
  background: var(--edge-white);
  border-radius: var(--edge-radius);
  box-shadow: var(--edge-shadow), inset 0 0 0 1px var(--edge-border);
  overflow: hidden;
}

.edge-recruit-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--edge-soft-navy);
  border-radius: 13px;
  color: var(--edge-navy);
  font-size: 13px;
  font-weight: 900;
}

.edge-recruit-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 900;
}

.edge-recruit-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
}

/* OFFICIAL INFORMATION BAND */

.edge-recruit-official {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  padding: 38px 40px;
  background: var(--edge-navy);
  border-radius: var(--edge-radius);
  box-shadow: 0 20px 46px rgba(45, 41, 93, 0.18);
}

.edge-recruit-official .edge-recruit-kicker,
.edge-recruit-cta .edge-recruit-kicker {
  color: var(--edge-soft-navy) !important;
}

.edge-recruit-official h2 {
  margin: 0 0 12px;
  color: var(--edge-white) !important;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.edge-recruit-official p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 16px;
  line-height: 1.7;
}

/* FIT */

.edge-recruit-fit__intro {
  max-width: 880px;
  margin-bottom: 28px;
}

.edge-recruit-fit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.edge-recruit-list-card {
  padding: 34px 32px;
  background: var(--edge-white);
  border-top: 4px solid var(--edge-navy);
  border-radius: var(--edge-radius);
  box-shadow: var(--edge-shadow), inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-list-card h3 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
}

.edge-recruit-list-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edge-recruit-list-card li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.58;
}

.edge-recruit-list-card li:last-child {
  margin-bottom: 0;
}

.edge-recruit-list-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--edge-navy);
  font-weight: 900;
}

/* PROCESS */

.edge-recruit-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edge-recruit-process__grid li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 26px 24px;
  background: var(--edge-white);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-process__grid li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--edge-navy);
  border-radius: 50%;
  color: var(--edge-white);
  font-size: 16px;
  font-weight: 900;
}

.edge-recruit-process__grid h3 {
  margin: 1px 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.edge-recruit-process__grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
}

/* INFORMATION AND FORM */

.edge-recruit-information {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: start;
  margin-top: 64px;
  padding: 48px;
  background: var(--edge-white);
  border: 1px solid var(--edge-border);
  border-radius: var(--edge-radius);
  box-shadow: inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-information > * {
  min-width: 0;
}

.edge-recruit-direct-contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  width: 100%;
  margin-top: 34px;
}

.edge-recruit-direct-contact > div {
  width: 100%;
  padding: 22px 24px;
  background: var(--edge-white);
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-direct-contact strong,
.edge-recruit-direct-contact span,
.edge-recruit-direct-contact a {
  display: block;
}

.edge-recruit-direct-contact strong {
  margin-bottom: 4px;
  color: var(--edge-navy);
  font-size: 16px;
}

.edge-recruit-direct-contact span {
  margin-bottom: 9px;
  color: var(--edge-muted);
  font-size: 12px;
}

.edge-recruit-direct-contact a {
  margin-top: 4px;
  color: var(--edge-navy) !important;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.edge-recruit-direct-contact a[href^="mailto:"] {
  white-space: nowrap;
}

.edge-recruit-form-card {
  padding: 30px;
  background: var(--edge-white);
  border-radius: var(--edge-radius);
  box-shadow: var(--edge-shadow), inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-form-card__logo {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin: 0 auto 26px;
}

.edge-recruit-form-placeholder {
  padding: 30px 24px;
  background: var(--edge-white);
  border: 2px dashed rgba(45, 41, 93, 0.34);
  border-radius: 16px;
  text-align: center;
}

.edge-recruit-form-placeholder > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--edge-navy);
  font-size: 20px;
  line-height: 1.25;
}

.edge-recruit-form-placeholder p {
  margin: 0 0 20px;
  color: var(--edge-muted);
  font-size: 14px;
  line-height: 1.62;
}

/* Generic styling for an approved form inserted into the card */

.edge-recruit-form-card form {
  margin: 0;
}

.edge-recruit-form-card form p {
  margin: 0 0 17px;
}

.edge-recruit-form-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--edge-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.edge-recruit-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.edge-recruit-form-card select,
.edge-recruit-form-card textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--edge-soft);
  color: var(--edge-ink);
  border: 1px solid var(--edge-border);
  border-radius: 10px;
  box-shadow: none;
  font: inherit;
}

.edge-recruit-form-card textarea {
  min-height: 105px;
  resize: vertical;
}

.edge-recruit-form-card input:focus,
.edge-recruit-form-card select:focus,
.edge-recruit-form-card textarea:focus {
  border-color: var(--edge-navy);
  outline: 3px solid rgba(45, 41, 93, 0.14);
}

.edge-recruit-form-card input[type="submit"],
.edge-recruit-form-card button[type="submit"] {
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  background: var(--edge-navy);
  color: var(--edge-white);
  border: 2px solid var(--edge-navy);
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

/* FAQ */

.edge-recruit-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edge-recruit-faq details {
  padding: 22px 24px;
  background: var(--edge-white);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--edge-border);
}

.edge-recruit-faq summary {
  color: var(--edge-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  cursor: pointer;
}

.edge-recruit-faq details p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.67;
}

.edge-recruit-faq a {
  color: var(--edge-navy) !important;
  font-weight: 800;
}

/* FINAL CTA */

.edge-recruit-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 34px;
  align-items: center;
  margin-top: 58px;
  padding: 44px 40px;
  background: var(--edge-navy);
  border-radius: var(--edge-radius);
  box-shadow: 0 22px 52px rgba(45, 41, 93, 0.2);
}

.edge-recruit-cta h2 {
  margin: 0 0 13px;
  color: var(--edge-white) !important;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.edge-recruit-cta p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 17px;
  line-height: 1.7;
}

.edge-recruit-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
}

/* DISCLOSURE */

.edge-recruit-disclosure {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--edge-soft);
  border-radius: 13px;
}

.edge-recruit-disclosure p {
  margin: 0;
  color: var(--edge-muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.edge-recruit-disclosure a {
  color: var(--edge-navy) !important;
  font-weight: 800;
}

/* SMALL DESKTOP AND TABLET LANDSCAPE */

@media (max-width: 1100px) {
  .edge-recruit-hero {
    padding: 44px;
  }

  .edge-recruit-hero__grid,
  .edge-recruit-story,
  .edge-recruit-information,
  .edge-recruit-cta {
    grid-template-columns: 1fr;
  }

  .edge-recruit-hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 6.2vw, 58px) !important;
  }

  .edge-recruit-hero__lead {
    max-width: 800px;
  }

  .edge-recruit-hero__media--logo {
    min-height: 280px;
  }

  .edge-recruit-benefits__grid,
  .edge-recruit-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edge-recruit-official {
    grid-template-columns: 1fr;
  }

  .edge-recruit-official .edge-recruit-btn {
    justify-self: start;
  }

  .edge-recruit-cta__actions {
    max-width: 100%;
    margin-left: 0;
  }
}

/* TABLET */

@media (max-width: 991px) {
  .edge-recruit-page {
    padding: 28px 18px 10px;
  }

  .edge-recruit-hero {
    padding: 36px;
  }

  .edge-recruit-hero__grid,
  .edge-recruit-story,
  .edge-recruit-information,
  .edge-recruit-cta {
    grid-template-columns: 1fr;
  }

  .edge-recruit-benefits__grid,
  .edge-recruit-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edge-recruit-process__grid {
    grid-template-columns: 1fr;
  }

  .edge-recruit-official {
    grid-template-columns: 1fr;
  }

  .edge-recruit-official .edge-recruit-btn {
    justify-self: start;
  }

  .edge-recruit-cta__actions {
    max-width: 100%;
    margin-left: 0;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .edge-recruit-page {
    padding: 20px 14px 8px;
  }

  .edge-recruit-hero,
  .edge-recruit-story,
  .edge-recruit-official,
  .edge-recruit-information,
  .edge-recruit-cta {
    padding: 25px 20px;
  }

  .edge-recruit-hero h1 {
    font-size: 38px !important;
    line-height: 1.08 !important;
  }

  .edge-recruit-hero__lead {
    margin-top: 0 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .edge-recruit-hero h1 {
    margin-bottom: 28px !important;
  }

  .edge-recruit-hero__lead,
  .edge-recruit-story__content p:not(.edge-recruit-kicker),
  .edge-recruit-section-heading > p:last-child,
  .edge-recruit-fit__intro > p:last-child,
  .edge-recruit-information__content > p,
  .edge-recruit-cta p:last-child {
    font-size: 16px;
    line-height: 1.68;
  }

  .edge-recruit-hero__actions,
  .edge-recruit-benefits__grid,
  .edge-recruit-fit__grid,
  .edge-recruit-direct-contact,
  .edge-recruit-faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .edge-recruit-page .edge-recruit-proof {
    grid-template-columns: 1fr;
    margin-top: 34px !important;
  }

  .edge-recruit-page .edge-recruit-btn {
    width: 100% !important;
  }

  .edge-recruit-hero__media--logo {
    min-height: 230px;
    padding: 30px 22px;
  }

  .edge-recruit-benefits,
  .edge-recruit-fit,
  .edge-recruit-process,
  .edge-recruit-information,
  .edge-recruit-faq {
    margin-top: 48px;
  }

  .edge-recruit-card,
  .edge-recruit-list-card,
  .edge-recruit-form-card {
    padding: 24px 20px;
  }

  .edge-recruit-direct-contact > div {
    padding: 20px 18px;
  }

  .edge-recruit-direct-contact a {
    font-size: 13px;
  }

  .edge-recruit-direct-contact a[href^="mailto:"] {
    white-space: normal;
    overflow-wrap: anywhere !important;
  }
}

/* DESKTOP HEADER: SHORTER WORK AT EDGE PILL */

@media (min-width: 1000px) {
  #header nav a[href*="/work-at-edge"],
  #header nav a[href*="/contact"],
  header nav a[href*="/work-at-edge"],
  header nav a[href*="/contact"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 15px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .edge-recruit-page .edge-recruit-btn {
    transition: none !important;
  }
}

.ehl-footer__apply-link {
  box-sizing: border-box !important;
  width: 172px !important;
  min-width: 172px !important;
  max-width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* WORK AT EDGE FORM CHECKBOX FIX */

body.page-id-949 .edge-recruit-form-card .grunion-field-checkbox-wrap {
  display: block !important;
  width: 100% !important;
  margin: 18px 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

body.page-id-949 .edge-recruit-form-card
.grunion-field-checkbox-wrap
.contact-form__checkbox-wrap {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  column-gap: 11px !important;
  align-items: start !important;
  width: 100% !important;
}

body.page-id-949 .edge-recruit-form-card
.grunion-field-checkbox-wrap label {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #343852 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

body.page-id-949 .edge-recruit-form-card
.grunion-field-checkbox-wrap input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #292e5f !important;
}

body.page-id-949 .edge-recruit-form-card
.grunion-field-checkbox-wrap .grunion-label-required {
  display: inline !important;
  margin-left: 6px !important;
  white-space: nowrap !important;
}

body.page-id-949 .edge-recruit-form-card
.grunion-field-checkbox-wrap .clear-form {
  display: none !important;
}

/* Remove accidental empty spacer blocks */
body.page-id-949 .edge-recruit-form-card form p:empty {
  display: none !important;
  margin: 0 !important;
}

/* Restore full-width submit button */
body.page-id-949 .edge-recruit-form-card .wp-block-button,
body.page-id-949 .edge-recruit-form-card button[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-id-949 .edge-recruit-form-card .wp-block-button {
  margin: 18px 0 0 !important;
}

/* UNIFIED FOOTER LEGAL SPACING */

/* Keep the company copyright line as the final item in the legal area. */
.ehl-footer__legal,
.ehl-footer__legal-inner {
  display: flex !important;
  flex-direction: column !important;
}

.ehl-footer__legal .ehl-footer__company-line,
.ehl-footer__legal .ehl-footer__copyright {
  order: 99 !important;
  margin: 18px 0 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(40, 38, 111, 0.12) !important;
  color: #181743 !important;
}

.ehl-footer__legal .ehl-footer__compliance-links {
  margin: 0 0 18px !important;
}

.ehl-footer__legal .ehl-footer__government-disclaimer {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ehl-footer__legal .ehl-footer__lending-disclaimer {
  margin: 11px 0 0 !important;
}

@media (max-width: 1150px) {
  .ehl-footer__legal {
    margin-top: 0 !important;
    padding-top: 24px !important;
  }
}

@media (max-width: 650px) {
  .ehl-footer__legal {
    padding-top: 21px !important;
  }

  .ehl-footer__legal .ehl-footer__compliance-links {
    align-items: flex-start !important;
    gap: 9px !important;
    margin-bottom: 16px !important;
  }

  .ehl-footer__legal .ehl-footer__government-disclaimer,
  .ehl-footer__legal .ehl-footer__lending-disclaimer {
    font-size: 12.25px !important;
    line-height: 1.65 !important;
  }
}

/* Blue Stripe Mortgage transition notice */
.bsm-transition-banner {
    background-color: #2D295D !important;
}


/* =========================================================
   CONSISTENT PRIMARY PAGE EYEBROWS
   Matches the homepage eyebrow on every primary page.
   The deliberately specific selectors override each page's
   embedded !important rules, even when those styles load later.
========================================================= */

html body.home .entry-content .ehl-hero-v3 .ehl-hero-v3__eyebrow,
html body.page .entry-content .ehl-purchase-hero .ehl-purchase__label,
html body.page .entry-content .ehl-refinance-hero .ehl-refinance__label,
html body.page .entry-content .ehl-va-hero .ehl-va-label,
html body.page .entry-content .ehl-loan-hero .ehl-loan-hero__label,
html body.page .entry-content .ehl-heloc-hero .ehl-heloc-label,
html body.page .entry-content .edge-calc-page .edge-calc-intro .edge-calc-intro__label,
html body.page .entry-content .ehl-start-hero .ehl-start-label,
html body.page .entry-content .edge-recruit-page .edge-recruit-hero .edge-recruit-kicker {
  display: block !important;
  color: #3d3f88 !important;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.105em !important;
  text-transform: uppercase !important;
}

/* =========================================================
   FINAL PRIMARY HERO TOP CLEARANCE
   Intentionally last. Moves only the top presentation down.
   Does not alter hero width, max-width, horizontal margins,
   border radius, grid/flex layout, or overflow.
========================================================= */

@media (max-width: 1024px) {
  html body.page .entry-content .ehl-purchase,
  html body.page .entry-content .ehl-refinance,
  html body.page .entry-content .edge-calc-page,
  html body.page .entry-content .ehl-purchase-page,
  html body.page .entry-content .ehl-refi-page {
    padding-top: 28px !important;
  }

  html body.page .entry-content .ehl-va-hero,
  html body.page .entry-content .ehl-loan-hero,
  html body.page .entry-content .ehl-heloc-hero,
  html body.page .entry-content .ehl-start-hero {
    margin-top: 28px !important;
  }
}

@media (max-width: 767px) {
  html body.page .entry-content .ehl-purchase,
  html body.page .entry-content .ehl-refinance,
  html body.page .entry-content .edge-calc-page,
  html body.page .entry-content .ehl-purchase-page,
  html body.page .entry-content .ehl-refi-page {
    padding-top: 24px !important;
  }

  html body.page .entry-content .ehl-va-hero,
  html body.page .entry-content .ehl-loan-hero,
  html body.page .entry-content .ehl-heloc-hero,
  html body.page .entry-content .ehl-start-hero {
    margin-top: 24px !important;
  }
}

/* =========================================================
   IPHONE HEADER / PAGE SEPARATION
   Creates real space below the mobile header.
   Does NOT resize or reposition individual hero cards.
========================================================= */

@media (max-width: 767px) {

  /* Give the page canvas real clearance below the mobile header */
  body.page #main,
  body.page .site-main {
    padding-top: 18px !important;
  }

  /* Do not let Blocksy add or subtract competing top spacing */
  body.page #main > .ct-container-full[data-vertical-spacing*="top"],
  body.page #main > .ct-container[data-vertical-spacing*="top"] {
    padding-top: 0 !important;
  }

  /* Remove the extra per-page offsets we were using */
  body.page .ehl-purchase,
  body.page .ehl-refinance,
  body.page .edge-calc-page,
  body.page .ehl-purchase-page,
  body.page .ehl-refi-page {
    padding-top: 0 !important;
  }

  body.page .ehl-va-hero,
  body.page .ehl-loan-hero,
  body.page .ehl-heloc-hero,
  body.page .ehl-start-hero {
    margin-top: 0 !important;
  }
}

/* =========================================================
   FINAL IPHONE HEADER BASE
   One continuous white header surface eliminates the
   stepped/Tetris edge created by Blocksy header layers.
========================================================= */

@media (max-width: 767px) {

  /* -----------------------------------------
     ONE HEADER ENVELOPE
  ----------------------------------------- */

  html body #header {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 0 14px !important;

    background: #ffffff !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;

    z-index: 99999 !important;
  }


  /* -----------------------------------------
     BLOCKSY MOBILE HEADER
  ----------------------------------------- */

  html body #header > [data-device="mobile"] {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
  }


  html body #header > [data-device="mobile"]
  [data-row="middle"] {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 98px !important;
    height: 98px !important;
    max-height: 98px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
  }


  html body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 98px !important;
    height: 98px !important;
    max-height: 98px !important;

    margin: 0 !important;

    padding-top: 12px !important;
    padding-right: 22px !important;
    padding-bottom: 0 !important;
    padding-left: 22px !important;

    background: #ffffff !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
  }


  /* -----------------------------------------
     HEADER COLUMNS
     No individual background layers.
  ----------------------------------------- */

  html body #header > [data-device="mobile"] [data-column],
  html body #header > [data-device="mobile"] [data-column="start"],
  html body #header > [data-device="mobile"] [data-column="middle"],
  html body #header > [data-device="mobile"] [data-column="end"] {
    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    transform: none !important;
  }


  /* -----------------------------------------
     LOGO
  ----------------------------------------- */

  html body #header > [data-device="mobile"] .site-branding,
  html body #header > [data-device="mobile"] .site-logo-container,
  html body #header > [data-device="mobile"] [data-id="logo"] {
    position: relative !important;

    width: 198px !important;
    max-width: calc(100vw - 104px) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    overflow: visible !important;

    transform: none !important;
  }


  html body #header > [data-device="mobile"] .site-logo-container img,
  html body #header > [data-device="mobile"] .custom-logo,
  html body #header > [data-device="mobile"] [data-id="logo"] img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    border: 0 !important;
    box-shadow: none !important;

    transform: none !important;
  }


  /* -----------------------------------------
     HAMBURGER
  ----------------------------------------- */

  html body #header > [data-device="mobile"] .ct-header-trigger {
    position: relative !important;

    width: 50px !important;
    min-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    transform: none !important;
  }


  /* -----------------------------------------
     REMOVE ALL HEADER DECORATION
  ----------------------------------------- */

  html body #header::before,
  html body #header::after,
  html body #header > [data-device="mobile"]::before,
  html body #header > [data-device="mobile"]::after,
  html body #header > [data-device="mobile"]
  [data-row="middle"]::before,
  html body #header > [data-device="mobile"]
  [data-row="middle"]::after,
  html body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container::before,
  html body #header > [data-device="mobile"]
  [data-row="middle"] > .ct-container::after {
    content: none !important;
    display: none !important;

    border: 0 !important;
    box-shadow: none !important;
  }


  /* -----------------------------------------
     PAGE START
     Header now owns its own 14px white separation.
  ----------------------------------------- */

  html body.page #main,
  html body.page .site-main,
  html body.home #main,
  html body.home .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }


  /* Homepage hero must never rise behind header */
  html body.home .ehl-hero-v3 {
    margin-top: 0 !important;
  }


  /* Preserve comfortable top space inside homepage hero */
  html body.home .ehl-hero-v3__inner {
    padding-top: 38px !important;
  }
}