/* Canonical public-site header geometry.
   Load after page-specific styles so page layouts cannot move the header. */
:root {
  --site-header-width: 1440px;
  --site-header-gutter: clamp(20px, 4vw, 48px);
}

.top-banner {
  display: block;
  width: 100%;
  padding: 1.25rem 0;
  background: var(--primary);
  color: #fff;
}

.top-banner .container,
.logo-header .container {
  width: 100%;
  max-width: var(--site-header-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--site-header-gutter);
  padding-left: var(--site-header-gutter);
}

.top-banner .container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-menu a {
  padding: .25rem .5rem;
  border-radius: .25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-menu a:hover,
.top-menu a:focus-visible { background: rgba(255, 255, 255, .2); }

.top-menu a[aria-current="page"] { font-weight: 700; }

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1.5;
  cursor: pointer;
}

.top-phone {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.top-phone a,
.top-phone a:visited,
.top-phone a:hover,
.top-phone a:active,
.top-phone a:focus {
  color: #fff;
  text-decoration: none;
}

.logo-header {
  display: block !important;
  width: 100%;
  background: #fff;
}

.logo-header .container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.logo-header .logo {
  flex: 0 0 auto;
  margin: 0;
  transform: translateY(2px);
}

.logo-header .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 385px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.logo-header .logo .site-logo__tote {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-header .logo .site-logo__tote {
  flex: 0 0 auto;
  height: 84px;
}

.logo-header .logo .site-logo__wordmark,
.logo-header .logo .prototype-logo__wordmark {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: #003f63;
  font-family: 'Poppins', sans-serif;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: .9;
  white-space: nowrap;
}

.logo-header--dark .site-logo__wordmark,
.logo-header--dark .prototype-logo__wordmark {
  color: #fff;
}

.logo-header .elevator-pitch {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0 auto !important;
  padding: 8px 13px;
  border: 1px solid rgba(0, 63, 99, .1);
  border-radius: 999px;
  background: #eaf5fb;
  color: #003f63;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 63, 99, .05);
}

.logo-header .elevator-pitch::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FD3B26' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E");
  content: "";
}

@media (max-width: 768px) {
  .top-banner .container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
    align-self: stretch;
    margin-right: auto;
    text-align: left;
  }

  .top-menu {
    display: none;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    margin: .5rem 0;
    gap: 1rem;
  }

  .top-menu.open { display: flex !important; }

  .top-phone {
    align-self: center;
    margin: .75rem 0 0;
  }

  .logo-header .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }

  .logo-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo-header .site-logo {
    width: min(100%, 319px);
    gap: 7px;
  }

  .logo-header .logo .site-logo__tote { height: 64px; }

  .logo-header .logo .site-logo__wordmark,
  .logo-header .logo .prototype-logo__wordmark {
    font-size: 56px;
    letter-spacing: -2px;
  }

  .logo-header .elevator-pitch {
    width: max-content;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 7px 11px;
    font-size: .88rem;
    line-height: 1.3;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .top-banner .container,
  .logo-header .container {
    padding-right: 20px;
    padding-left: 20px;
  }
}
