/* custom overrides (loaded last) */
/* a11y: skip-to-content link, hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 10px 16px;
  background: #003e7e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}
/* newsletter: center the Lumistry capture embed within the template's section.
   The embed is server-configured for a right-aligned, two-column inline layout
   and injects its own scoped <style> at runtime, so these overrides use
   !important to force a centered, stacked layout that matches the template. */
/* the template's layoutD puts .blockImg (our form) in a 48%-wide, right-floated
   column meant to sit beside a text column. We removed that text column, so make
   the form block span the full width and center within the section. */
.blockContent.layoutD .blockForm {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
}
.blockForm {
  text-align: center;
}
.blockForm [data-lumistry-capture] {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
  text-align: center;
}
.blockForm .lk-form,
.blockForm .lk-form.lk-ih {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.blockForm .lk-head,
.blockForm .lk-body {
  flex: 0 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
}
.blockForm .lk-title,
.blockForm .lk-sub,
.blockForm .lk-field,
.blockForm .lk-input {
  text-align: center !important;
}
.blockForm .lk-row,
.blockForm .lk-consent {
  justify-content: center !important;
}
/* contact email: allow the address to wrap inside its narrow card so it never
   overflows the line (scoped to page body, footer untouched) */
.primaryContent .contactEmail,
.primaryContent .contactEmail a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* top contact bar (eyebrow): each icon tight against its text, even spacing,
   and the address / phone / hours lines never wrap. */
.secondaryNavContent {
  gap: 2.25em;
  flex-wrap: nowrap;
}
.secondaryNavContent .blockInnerContent,
.secondaryNavContent .blockInnerContent p,
.secondaryNavContent .addressMapLink {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .headerAndNavContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  /* eyebrow (secondary nav) collapses on scroll to reclaim space */
  .secondaryNav {
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .secondaryNav.eyebrow-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
  }
}
