/* V244 — inset About popup and compact regional contact panel. */

#aboutModal.about-modal {
  padding: 16px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#aboutModal .about-modal-backdrop {
  background: rgba(18, 45, 30, .24) !important;
  -webkit-backdrop-filter: blur(12px) saturate(92%);
  backdrop-filter: blur(12px) saturate(92%);
}

#aboutModal .about-dialog {
  width: min(1600px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-width: 1600px;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(250, 253, 251, .9);
  box-shadow:
    0 30px 90px rgba(10, 42, 24, .24),
    inset 0 1px 0 rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
}

#aboutModal .about-frame {
  border-radius: inherit;
  background: rgba(248, 252, 249, .76);
}

#aboutModal .about-close {
  top: 30px;
  right: max(30px, calc((100vw - 1600px) / 2 + 30px));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(40, 157, 80, .22);
  border-radius: 14px;
  color: #168447;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(23, 94, 50, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#aboutModal .about-close:hover,
#aboutModal .about-close:focus-visible {
  color: #fff;
  background: #2fad5b;
}

#aboutModal .about-scroll-controls {
  right: max(30px, calc((100vw - 1600px) / 2 + 30px));
  bottom: 30px;
  padding: 4px;
  border: 1px solid rgba(40, 157, 80, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 28px rgba(23, 94, 50, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#aboutModal .about-scroll-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  color: #168447;
  background: transparent;
  box-shadow: none;
}

#aboutModal .about-scroll-controls button:hover,
#aboutModal .about-scroll-controls button:focus-visible {
  color: #fff;
  background: #2fad5b;
}

html.about-modal-open #dlpk-chat {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.about-embed,
html.about-embed body {
  background: transparent !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero {
  padding: 40px 64px 30px !important;
  border-bottom: 1px solid rgba(40, 142, 77, .13);
  background: rgba(255, 255, 255, .7) !important;
  -webkit-backdrop-filter: blur(14px) saturate(106%);
  backdrop-filter: blur(14px) saturate(106%);
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero .inner {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  text-align: left !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero .section-label {
  margin-bottom: 10px !important;
  font-size: 11px !important;
  letter-spacing: .16em !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero h1 {
  max-width: 820px;
  margin: 0 !important;
  font-size: clamp(36px, 4.2vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
}

html.about-embed body:not(.home-page) .main-shell .subpage-hero p {
  max-width: 760px;
  margin: 14px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

html.about-embed .about-popup-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(40, 142, 77, .12);
  background: rgba(248, 252, 249, .88);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}

html.about-embed .about-popup-nav a {
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #52635a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

html.about-embed .about-popup-nav a:hover,
html.about-embed .about-popup-nav a:focus-visible {
  border-color: rgba(45, 173, 91, .22);
  color: #168447;
  background: rgba(255, 255, 255, .94);
}

html.about-embed .terms-section {
  padding: 18px 0 0 !important;
  background: transparent !important;
}

html.about-embed .terms-document {
  width: min(calc(100% - 32px), 1320px) !important;
  max-width: 1320px !important;
  padding: 26px 38px 46px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 20px 50px rgba(30, 82, 49, .08) !important;
}

html.about-embed .terms-meta {
  margin-bottom: 0 !important;
  padding-bottom: 18px !important;
}

html.about-embed .terms-clause {
  margin: 0 !important;
  padding: 24px 0 0 !important;
}

html.about-embed .terms-clause + .terms-clause {
  margin-top: 24px !important;
  border-top: 1px solid rgba(41, 125, 70, .1);
}

html.about-embed .terms-clause h2 {
  margin: 0 0 12px !important;
  font-size: clamp(24px, 2.2vw, 32px) !important;
  line-height: 1.12 !important;
}

html.about-embed .about-intro {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

html.about-embed .scn-grid,
html.about-embed .partner-grid {
  gap: 12px !important;
  margin-top: 14px !important;
}

html.about-embed .scn,
html.about-embed .partner-card {
  padding: 16px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 10px 24px rgba(25, 85, 48, .05) !important;
}

html.about-embed footer.site {
  display: none !important;
}

/* Regional team: remove empty vertical and horizontal space on desktop. */
body.home-page .contact-build {
  padding: 48px 32px 56px !important;
}

body.home-page .contact-build-panel {
  width: min(calc(100% - 32px), 1720px) !important;
  max-width: 1720px !important;
  padding: 30px 34px !important;
  border-radius: 24px !important;
}

body.home-page .contact-build-head {
  max-width: 1180px !important;
  margin: 0 auto 22px !important;
}

body.home-page .contact-build-eyebrow {
  margin-bottom: 8px !important;
}

body.home-page .contact-build-head h2 {
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.08 !important;
}

body.home-page .contact-build-head p {
  margin-top: 10px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

body.home-page .contact-team-grid {
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  margin-inline: auto !important;
  gap: 16px !important;
}

body.home-page .contact-person {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 0 !important;
  padding: 16px 18px !important;
}

body.home-page .contact-person-top {
  min-width: 0;
  margin-bottom: 0 !important;
}

body.home-page .contact-person-actions {
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

body.home-page .contact-icon-action {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

body.home-page .contact-digital-card {
  min-height: 38px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
}

body.home-page footer.site {
  margin-top: -24px !important;
}

@media (max-width: 900px) {
  #aboutModal.about-modal {
    padding: 10px;
  }

  #aboutModal .about-dialog {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  #aboutModal .about-close {
    top: 20px;
    right: 20px;
  }

  #aboutModal .about-scroll-controls {
    right: 20px;
    bottom: 20px;
  }

  html.about-embed body:not(.home-page) .main-shell .subpage-hero {
    padding: 34px 24px 24px !important;
  }

  html.about-embed .about-popup-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html.about-embed .about-popup-nav::-webkit-scrollbar {
    display: none;
  }

  html.about-embed .terms-document {
    width: calc(100% - 20px) !important;
    padding: 22px 20px 64px !important;
  }

  body.home-page .contact-person {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  #aboutModal.about-modal {
    padding: 0;
  }

  #aboutModal .about-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  #aboutModal .about-close {
    top: 10px;
    right: 10px;
  }

  #aboutModal .about-scroll-controls {
    right: 10px;
    bottom: 10px;
  }

  html.about-embed body:not(.home-page) .main-shell .subpage-hero h1 {
    max-width: calc(100% - 44px);
    font-size: 34px !important;
  }

  html.about-embed .about-popup-nav {
    padding: 8px 12px;
  }

  body.home-page .contact-build {
    padding: 38px 12px 44px !important;
  }

  body.home-page .contact-build-panel {
    width: 100% !important;
    padding: 24px 16px !important;
    border-radius: 20px !important;
  }

  body.home-page .contact-team-grid {
    gap: 12px !important;
  }

  body.home-page .contact-person {
    padding: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aboutModal .about-dialog,
  #aboutModal .about-close,
  html.about-embed .about-popup-nav {
    transition: none !important;
  }
}
