/* Keep the full header on one line only when there is enough room. */
.site-header .site-header-links {
  display: none;
}

/* CTA styles are scoped so the rest of the landing remains unchanged. */
.header-cta-group,
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta-group {
  flex-shrink: 0;
  margin-left: auto;
}

.landing-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 0;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 300ms, border-color 300ms, color 300ms;
}

.header-cta {
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

.landing-cta-primary {
  background: #0862a6;
  border-color: #0862a6;
  color: #fff;
}

.landing-cta-primary:hover {
  background: #07538d;
  border-color: #07538d;
}

.landing-cta-secondary {
  background: transparent;
  border-color: currentColor;
  color: #fff;
}

.header-cta-light .landing-cta-secondary {
  color: #0862a6;
}

.landing-cta-secondary:hover {
  background: rgb(8 98 166 / 15%);
}

.landing-cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.hero-cta {
  height: 54px;
  min-width: 0;
  padding: 0 24px;
  font-size: 18px;
}

@media (max-width: 639px) {
  .hero-cta-group {
    gap: 12px;
  }

  .hero-cta {
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 14px;
  }
}

.site-header .site-header-menu-toggle {
  display: inline-flex;
}

.site-header .site-header-mobile-menu {
  display: block;
}

@media (min-width: 1280px) {
  /* Keep navigation from shrinking into the logo when space gets tight. */
  .site-header nav > div:first-child > button:first-child {
    flex-shrink: 0;
    margin-right: 1.5rem;
  }

  .site-header .site-header-links {
    display: flex;
    gap: 0.475rem;
  }

  .site-header .site-header-links > * {
    margin-left: 0;
    margin-right: 0;
  }

  .site-header .site-header-menu-toggle,
  .site-header .site-header-mobile-menu {
    display: none;
  }
}
