/* Standards-based fixes layered over the legacy generated stylesheet. */
.site-shell {
  text-align: center;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20000;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #233269;
  border: 2px solid #ffffff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

a[role="button"]:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7eb8e4 !important;
  outline-offset: 4px !important;
}

button.btn-submit {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.btn-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Keep empty-field labels on their text bars, then lift them only while the
   field is focused or contains a value. */
.cform .fx-field {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 0 2.25rem !important;
}

.cform .fx-field > label {
  position: absolute !important;
  top: 0.65rem !important;
  left: 0 !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: #eef2f7 !important;
  background: transparent !important;
  line-height: 1.4 !important;
  transform: none !important;
  transform-origin: left center !important;
  transition: top 0.2s ease, transform 0.2s ease, background-color 0.2s ease !important;
}

.cform .fx-field .fx-input:focus ~ label,
.cform .fx-field .fx-input.hasData ~ label {
  top: -0.9rem !important;
  left: 0 !important;
  padding: 0 0.4rem 0 0 !important;
  background: #233269 !important;
  transform: scale(0.8) !important;
}

.cform .fx-field .fx-input {
  width: 100% !important;
  box-sizing: border-box;
  padding: 0.65rem 0 !important;
}

.cform .fx-field textarea.fx-input {
  min-height: 5.5rem;
  resize: vertical;
}

.cform .form-help,
.cform .form-privacy {
  max-width: 44rem;
  color: #d2d8e2 !important;
  font-size: 0.86em;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  text-transform: none;
}

.cform .form-help {
  margin: 0 0 3rem;
  text-align: left;
}

.cform .form-privacy {
  position: relative;
  z-index: 1;
  clear: both;
  margin: 0 0 1.5rem;
}

.cform .form-privacy a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cform .msg {
  min-height: 1.5em;
  margin-top: 1em;
}

.cform .msg.is-error {
  color: #ffffff;
  font-weight: 500;
}

.cform .msg.is-success {
  color: #ffffff;
  font-weight: 500;
}

/* Let the expanded intake form determine the panel height. The original
   660px fixed height predates the privacy and anti-bot controls. */
.s22 .map1,
.s22 .map2 {
  height: auto !important;
  min-height: 820px !important;
}

.s22 .map1 > .content {
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .s22 .map1 > .content {
    display: grid !important;
    grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    min-height: 820px;
    padding: 4.5rem 0 !important;
  }

  .s22 .map1 > .content > .c {
    width: auto !important;
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  .s22 .map1,
  .s22 .map2 {
    min-height: 0 !important;
  }

  .s22 .map1 > .content {
    padding: 4rem 0 !important;
  }

  .s22 .map1 > .content > .c {
    margin-top: 0 !important;
  }

  .s22 .map1 > .content > .c + .c {
    margin-top: 3.5rem !important;
  }

  .s22 .map2 {
    min-height: 32rem !important;
  }

  .cform .form-help {
    margin-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Cloudflare Turnstile is injected by the Worker only when production keys are configured. */
.turnstile-wrap {
  display: block !important;
  position: relative;
  clear: both;
  width: 100%;
  min-height: 65px !important;
  margin: 0.25rem 0 0.75rem !important;
}

.turnstile-wrap .cf-turnstile,
.turnstile-wrap iframe {
  display: block !important;
  max-width: 100%;
}

/* Keep the shared page frame centered at every viewport width. */
:root {
  --site-gutter: clamp(1.25rem, 4vw, 4.75rem);
  --content-width: 75rem;
}

html,
body,
.site-shell,
#container {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

#container .content,
footer .content {
  box-sizing: border-box;
  width: min(calc(100% - (2 * var(--site-gutter))), var(--content-width)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

#container section > h2 {
  box-sizing: border-box;
  width: min(calc(100% - (2 * var(--site-gutter))), var(--content-width));
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  font-size: clamp(2rem, 5vw, 4.5rem) !important;
  overflow-wrap: anywhere;
  text-align: center !important;
}

#container .s1 .smcontent {
  box-sizing: border-box;
  left: 50% !important;
  width: min(calc(100% - (2 * var(--site-gutter))), var(--content-width)) !important;
  max-width: var(--content-width) !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  transform: translateX(-50%) !important;
}

/* The header uses the viewport frame so its controls stay at the true edges. */
header > .content {
  display: flex;
  align-items: center;
  width: calc(100% - (2 * var(--site-gutter))) !important;
  max-width: none !important;
}

header > .content .logo {
  flex: 0 0 auto;
  margin-right: auto;
}

header > .content #btn-menu {
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%);
}

header > .content > .btn-pop {
  top: 50% !important;
  right: calc(40px + clamp(1.25rem, 2.5vw, 2.5rem)) !important;
  transform: translateY(-50%);
  white-space: nowrap;
}

/* Center every full-screen navigation label within a balanced grid. */
.nav-on header .nav {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  align-content: stretch !important;
  justify-content: stretch !important;
}

.nav-on header .nav li {
  display: flex;
  width: auto !important;
  height: auto !important;
  align-items: stretch;
  align-self: stretch !important;
  justify-self: stretch;
}

.nav-on header .nav li > a {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: flex !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  padding: 1rem !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-on header .nav li > a > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav-on header .nav li:nth-child(2) { grid-area: 1 / 1 / 2 / span 2; }
.nav-on header .nav li:nth-child(3) { grid-area: 1 / 3 / 2 / span 2; }
.nav-on header .nav li:nth-child(4) { grid-area: 1 / 5 / 2 / span 2; }
.nav-on header .nav li:nth-child(5) { grid-area: 1 / 7 / 2 / span 2; }
.nav-on header .nav li:nth-child(6) { grid-area: 2 / 2 / 3 / span 2; }
.nav-on header .nav li:nth-child(7) { grid-area: 2 / 4 / 3 / span 2; }
.nav-on header .nav li:nth-child(8) { grid-area: 2 / 6 / 3 / span 2; }

@media (min-width: 768px) and (max-width: 1100px) {
  .nav-on header .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  }

  .nav-on header .nav li:nth-child(n + 2):nth-child(-n + 7) {
    grid-area: auto;
  }

  .nav-on header .nav li:nth-child(8) {
    grid-area: auto / 1 / auto / -1;
  }
}

@media (max-width: 767px) {
  .nav-on header .nav {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
  }

  .nav-on header .nav li,
  .nav-on header .nav li:nth-child(n) {
    grid-area: auto / 1;
  }

  .nav-on header .nav .mobile-popup {
    display: flex !important;
  }

  header > .content .logo {
    width: min(200px, 62vw) !important;
  }
}
