/* Targeted accessibility and mobile call-bar fixes. Loaded after each page stylesheet. */

:root {
  --global-palette11: #087a53;
}

.entry-content a:not(.kb-button):not(.wp-block-button__link):not(.button),
.footer-html a,
.site-info a,
.zdt-foot-col a.zdt-foot-svc,
.swr-card-src {
  color: #087a53;
}

.entry-content a:not(.kb-button):not(.wp-block-button__link):not(.button):hover,
.swr-card-src:hover {
  color: #065c3e;
}

/* Light text on the navy bands, so the darker link green is not used there. */
.kb-row-layout-wrap.has-theme-palette2-background-colour a:not(.kb-button):not(.wp-block-button__link):not(.button),
.kb-row-layout-wrap.has-theme-palette3-background-colour a:not(.kb-button):not(.wp-block-button__link):not(.button),
.has-theme-palette-9-colour a:not(.kb-button):not(.wp-block-button__link):not(.button) {
  color: #b6f0d8;
}

.swr-card-date {
  color: #3d3d3d;
}

p.kt-adv-heading1777_ea5e5b-28 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

a.button.mobile-header-button.button-size-small {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zdt-sticky-cta {
  display: none;
}

.zdt-credit {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 1025px) {
  .site-footer-bottom-section-3 .content-align-centre,
  .site-footer-bottom-section-3 .footer-html,
  .site-footer-bottom-section-3 .footer-html-inner,
  .site-footer-bottom-section-3 .zdt-credit {
    text-align: right;
  }
}

.zdt-map-ph {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 28px 24px;
  background: #0f1c2e;
  color: #ffffff;
  border: 0;
}

.zdt-map-ph p {
  margin: 0;
  max-width: 28rem;
  background: transparent;
  color: #ffffff;
  padding: 0;
  line-height: 1.5;
}

.zdt-map-kicker {
  color: #15bf86;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zdt-map-btn {
  min-height: 44px;
  padding: 10px 18px;
  background: #15bf86;
  color: #0f1c2e;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.zdt-map-btn:focus-visible,
.zdt-sticky-cta a:focus-visible,
a.button.mobile-header-button:focus-visible {
  outline: 3px solid #087a53;
  outline-offset: 2px;
}

/* Source order puts the quote form first, which is what phones and tablets show.
   Wide screens keep the original side-by-side layout, with the text on the left. */
@media (min-width: 1025px) {
  .kb-row-layout-id352_daa826-57 > .kt-row-column-wrap > .kadence-column352_5d41f7-4d {
    order: -1;
  }
}

@media (max-width: 1024px) {
  .zdt-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #0f1c2e;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  }

  .zdt-sticky-cta a {
    flex: 1 1 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 8px 10px;
    line-height: 1.2;
  }

  .zdt-sticky-call {
    background: #ffffff;
    color: #0f1c2e;
  }

  .zdt-sticky-quote {
    background: #15bf86;
    color: #0f1c2e;
  }

  body {
    padding-bottom: 76px;
  }
}
