
/* Candidate V5 — direct overlay, loaded last. */

:root {
  --candidate-blue: #123a56;
}

/* Full-width blue header. */
.site-header,
.site-header.shell {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  background: var(--candidate-blue) !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.site-header .header-inner,
html[data-logo-position="left"] .site-header .header-inner,
html[data-logo-position="center"] .site-header .header-inner {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo centered in the viewport, independent of contacts. */
.site-header .header-brand,
html[data-logo-position="left"] .site-header .header-brand,
html[data-logo-position="center"] .site-header .header-brand {
  position: relative !important;
  display: block !important;
  width: min(40vw, 610px) !important;
  min-width: 500px !important;
  max-width: 610px !important;
  margin: 0 auto 8px !important;
  padding: 0 !important;
}

.site-header .animated-brand {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* User request: founded caption is white. */
.site-header .brand-founded {
  display: block !important;
  width: 100% !important;
  margin: -7px 0 0 !important;
  padding: 0 !important;
  color: #fff !important;
  opacity: 1 !important;
  text-align: center !important;
}

/* Contacts: phone/email baseline is aligned with the founded caption.
   Social icons sit immediately above it. */
.site-header .header-contacts,
html[data-logo-position="left"] .site-header .header-contacts,
html[data-logo-position="center"] .site-header .header-contacts {
  position: absolute !important;
  top: auto !important;
  right: clamp(54px, 5.3vw, 108px) !important;
  bottom: 62px !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.site-header .header-social-links {
  order: -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
}

.site-header .header-contact-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .header-contact-link {
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.site-header .header-social-link {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* White menu bar is fully separate from the blue band and spans 100%. */
.site-header nav,
html[data-logo-position="left"] .site-header nav,
html[data-logo-position="center"] .site-header nav,
html[data-header-nav-align] .site-header nav {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  gap: clamp(26px, 2.3vw, 42px) !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.site-header nav a {
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

@media (max-width: 1100px) {
  .site-header .header-brand {
    width: min(70vw, 520px) !important;
    min-width: 0 !important;
  }

  .site-header .header-contacts,
  html[data-logo-position="left"] .site-header .header-contacts,
  html[data-logo-position="center"] .site-header .header-contacts {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    align-items: center !important;
    margin: 0 auto 10px !important;
  }

  .site-header .header-contact-links,
  .site-header .header-social-links {
    justify-content: center !important;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 84px !important;
  }

  .site-header .header-brand {
    width: min(92vw, 430px) !important;
  }

  .site-header nav,
  html[data-logo-position="left"] .site-header nav {
    display: none !important;
  }
}


/* V6: founded caption must stay white even when legacy designer state says "black". */
html[data-founded-caption] .site-header .header-brand .brand-founded,
html[data-founded-caption="black"] .site-header .header-brand .brand-founded,
.site-header .header-brand .brand-founded {
  color: #fff !important;
  opacity: 1 !important;
}

/* Mobile-only repair: match the desktop selectors' specificity so the
   500px logo minimum cannot enlarge the mobile layout viewport. */
@media (max-width: 760px) {
  .site-header,
  .site-header.shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 16px 24px !important;
  }

  .site-header .header-inner,
  html[data-logo-position="left"] .site-header .header-inner,
  html[data-logo-position="center"] .site-header .header-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header .header-brand,
  html[data-logo-position="left"] .site-header .header-brand,
  html[data-logo-position="center"] .site-header .header-brand {
    width: min(100%, 398px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto 12px !important;
  }

  .site-header .animated-brand,
  .site-header .animated-brand iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header .header-contacts,
  html[data-logo-position="left"] .site-header .header-contacts,
  html[data-logo-position="center"] .site-header .header-contacts {
    position: relative !important;
    inset: auto !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 14px !important;
  }

  .site-header .header-social-links {
    justify-content: center !important;
    gap: 9px !important;
    margin: 0 !important;
  }

  .site-header .header-social-link {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }

  .site-header .header-contact-links {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 18px !important;
  }

  .hero.shell {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
    padding: 32px 18px 64px !important;
  }

  .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(38px, 10.2vw, 44px) !important;
    line-height: 1.03 !important;
  }

  .hero .lead {
    max-width: 100% !important;
    margin-top: 20px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
  }

  .hero-dots {
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
  }

  .floating-cta {
    position: fixed !important;
    inset: auto 16px 16px auto !important;
    z-index: 1000 !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 19px !important;
  }
}
