header:where(.public-header) {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.public-header, .public-footer) .header-right {
  display: flex;
  align-items: center;
}
footer:where(.public-footer) {
  border-top: 1px solid #edf1f2;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
footer:where(.public-footer) button {
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
}
@media (max-width: 650px) {
  footer:where(.public-footer) {
    flex-direction: column;
    text-align: center;
  }
}
:where(.public-header, .public-footer) .lang {
  min-height: 38px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
header:where(.public-header) {
  max-width: var(--container-public);
  padding: 23px 38px;
  gap: 22px;
  position: relative;
  background: white;
}
:where(.public-header, .public-footer) .header-right {
  gap: 13px;
}
:where(.public-header, .public-footer) .main-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
:where(.public-header, .public-footer) .main-nav button {
  padding: var(--space-2) 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #53617a;
  white-space: nowrap;
}
:where(.public-header, .public-footer) .main-nav button:hover {
  color: #3658d8;
}
:where(.public-header, .public-footer) .lang {
  border: 0;
  background: #f5f7fb;
  color: #42506a;
  padding: 9px var(--space-2);
  font-size: 13px;
  max-width: 132px;
  border-radius: var(--radius-sm);
}
:where(.public-header, .public-footer) .menu-toggle {
  display: none;
  background: #f3f5fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 21px;
  padding: 3px 9px;
  color: var(--text);
}
footer:where(.public-footer) {
  max-width: var(--container-footer);
  padding: var(--space-6) 38px;
  color: #8893a5;
  font-size: 12px;
}
@media (max-width: 650px) {
  header:where(.public-header) {
    gap: var(--space-2);
  }
  :where(.public-header, .public-footer) .header-right {
    gap: var(--space-2);
  }
  :where(.public-header, .public-footer) .lang {
    max-width: 114px;
    font-size: 12px;
    padding: var(--space-2) 5px;
  }
  footer:where(.public-footer) {
    padding: 22px 19px;
    line-height: 1.7;
  }
}
@media (max-width: 360px) {
  :where(.public-header, .public-footer) .lang {
    max-width: 100px;
  }
  :where(.public-header, .public-footer) .header-right {
    gap: 5px;
  }
}
:where(.public-header, .public-footer) .mobile-account {
  display: none;
}
@media (max-width: 1250px) {
  header:where(.public-header) {
    padding: var(--space-5) 28px;
  }
  :where(.public-header, .public-footer) .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 28px;
    left: 28px;
    z-index: 5;
    background: white;
    box-shadow: 0 12px 35px #17284b18;
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  :where(.public-header, .public-footer) .main-nav.open {
    display: flex;
  }
  :where(.public-header, .public-footer) .main-nav button {
    text-align: left;
    padding: 7px;
  }
  :where(.public-header, .public-footer) .header-right {
    margin-left: auto;
  }
  :where(.public-header, .public-footer) .menu-toggle {
    display: block;
  }
  :where(.public-header, .public-footer) .mobile-account {
    display: flex;
    gap: 22px;
    padding-top: 9px;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 650px) {
  header:where(.public-header) {
    padding: 17px 18px;
  }
  :where(.public-header, .public-footer) .main-nav {
    left: 18px;
    right: 18px;
  }
}
footer:where(.public-footer) a {
  color: var(--text-muted);
}
.landing-page header:where(.public-header) {
  max-width: 1320px;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  z-index: 5;
}
.landing-page :where(.public-header, .public-footer) .main-nav button:hover {
  color: #087787;
}
.landing-page :where(.public-header, .public-footer) .lang {
  background: #f0f6f8;
  color: #173e54;
}
.landing-page footer:where(.public-footer) {
  border-color: #e2ecef;
}
@media (max-width: 650px) {
  .landing-page header:where(.public-header) {
    padding: 17px var(--space-4);
  }
}
@media (max-width: 360px) {
  .landing-page :where(.public-header, .public-footer) .lang {
    max-width: 90px;
  }
}
.landing-page :where(.public-header, .public-footer) .main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #53617a;
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-2) 0;
}
.landing-page :where(.public-header, .public-footer) .main-nav a:hover {
  color: #087787;
}
.landing-page
  :where(.public-header, .public-footer)
  .main-nav
  a[aria-current="page"] {
  color: #087787;
}
.landing-page
  :where(.public-header, .public-footer)
  .main-nav
  a[aria-current="page"] {
  box-shadow: 0 2px 0 #0ca4ee;
}
.landing-page :where(.public-header, .public-footer) .mobile-account a {
  font-weight: 650;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 20;
  background: white;
  color: #082c45;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 1250px) {
  .landing-page :where(.public-header, .public-footer) .main-nav a {
    padding: 9px 5px;
  }
  .content-page
    :where(.public-header, .public-footer)
    .main-nav
    a[aria-current="page"] {
    box-shadow: none;
    background: #eff8fa;
    border-radius: 6px;
  }
  .content-page :where(.public-header, .public-footer) .mobile-account {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .content-page :where(.public-header, .public-footer) .header-right {
    gap: var(--space-2);
  }
}
/* Public navigation has one layout across home and content pages. */
footer:where(.public-footer) nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer:where(.public-footer) nav a {
  text-decoration: none;
}
footer:where(.public-footer) nav a:hover {
  text-decoration: underline;
}
@media (max-width: 650px) {
  .landing-page
    :where(.public-header, .public-footer)
    .header-right
    .header-join,
  .landing-page :where(.public-header, .public-footer) .header-right .sign-in {
    display: none;
  }
  footer:where(.public-footer) nav {
    justify-content: center;
  }
}

/* Crawlable language links complement the existing quick language selector. */
footer.public-footer {
  flex-wrap: wrap;
}
footer.public-footer .public-language-links {
  flex-basis: 100%;
  font-size: 12px;
  gap: 12px 18px;
}
footer.public-footer .public-language-links [aria-current="true"] {
  font-weight: 700;
  color: #087787;
}

@media (max-width: 1250px) {
  .public-header .mobile-account {
    align-items: center;
    justify-content: space-between;
  }
}
@media (max-width: 650px) {
  .public-header .header-right .public-account-menu {
    display: none;
  }
}
