/* custom overrides (loaded last) */
@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;
  }
}

/* eyebrow contact bar: each icon sits tight against its text with the same
   gap, vertically centered, and items never wrap mid-line */
.secondaryNavContent {
  gap: clamp(1.25em, 2.5vw, 3em);
  flex-wrap: nowrap;
}
.secondaryNavContent .blockInnerContent {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.secondaryNavContent .blockInnerContent > p {
  margin: 0;
  white-space: nowrap;
}
.secondaryNavContent .blockInnerContent:before {
  position: static !important;
  left: auto !important;
  margin: 0 8px 0 0 !important;
  flex: 0 0 auto;
}
.secondaryNavContent .blockText br {
  display: none;
}
@media only screen and (max-width: 1024px) {
  .secondaryNavContent .blockInnerContent {
    justify-content: center;
  }
}

/* larger header logo: fill the .logo container (base rules render it ~2/3
   size); div.logo selectors match the base stylesheet's specificity */
@media only screen and (min-width: 768px) {
  .headerContent div.logo {
    max-width: 300px;
  }
  .headerContent div.logo a {
    display: block;
    width: 100%;
  }
  .headerContent div.logo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* visually-hidden heading (screen readers + SEO only, zero visual impact) */
.srOnly {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lumistry newsletter capture embed fills the form slot the demo form held */
[data-lumistry-capture] {
  width: 100%;
}

/* newsletter block: single Lumistry form, centered within its section (the
   block's own duplicate title is removed at build time) */
.newsletterCentered .blockImg.blockForm {
  float: none !important;
  width: 100% !important;
  max-width: 640px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
