/* One header for public and account pages, matching the production homepage. */
.site-header {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.site-header-logo {
  display: block;
  flex-shrink: 0;
}

.site-header-logo img {
  display: block;
  width: auto;
  height: 58px;
}

.site-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 58px;
  gap: 1rem 2rem;
}

.site-header-links,
.site-header-actions,
.site-account-navigation {
  display: flex;
  align-items: center;
}

.site-header-links {
  justify-content: center;
  gap: 1.1rem;
}

.site-header-links a,
.site-account-navigation a {
  color: #66728d;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  color: #3651a8;
}

.site-header a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.site-header-actions {
  gap: 0.7rem;
}

.site-header-button,
.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #10131f;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: #10131f;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-button-dark {
  border-color: #000;
  background: #000;
  color: #fff;
}

.site-header .site-header-button-dark:hover,
.site-header .site-header-button-dark[aria-current="page"] {
  border-color: #3651a8;
  background: #3651a8;
  color: #fff;
}

.site-account-navigation {
  grid-column: 1 / -1;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dce0e9;
}

.site-account-navigation a {
  font-size: 0.9rem;
}

.site-menu-toggle {
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.site-header [hidden] {
  display: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #3651a8;
  outline-offset: 5px;
}

/* Match the breakpoint in site-header.js; collapse before links crowd the logo. */
@media (width <= 1150px) {
  .site-header {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .site-navigation {
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0.5rem 0;
  }

  .site-header-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem 1.8rem;
  }

  .site-header-actions,
  .site-account-navigation {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (width <= 575px) {
  .site-header {
    gap: 1.25rem 0.25rem;
  }

  .site-header-logo img {
    height: 50px;
  }

  .site-header-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header-button {
    padding: 0.75rem 1.25rem;
  }
}
