/* Shared public-page header. Keep every selector scoped to the header or skip link
   so Swagger UI and hosted-page styles remain untouched. */
.site-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  background: #003087;
  color: #fff;
  font: 700 14px/1.2 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 140ms ease;
}

.site-skip-link:focus {
  transform: translateY(0);
}

.site-header {
  box-sizing: border-box;
  width: 100%;
  border-bottom: 1px solid #dce3ed;
  background: #fafbfe;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header__inner {
  display: flex;
  width: min(100%, 848px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__wordmark {
  flex: none;
  color: #0a1530;
  font: 700 15px/1.2 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  font: 600 12px/1.4 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__nav a {
  padding: 4px 0;
  color: #475569;
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-header__nav a:hover {
  color: #004cb3;
}

.site-header__wordmark[aria-current='page'],
.site-header__nav a[aria-current='page'] {
  color: #003087;
}

.site-header__nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-header__wordmark:focus-visible,
.site-header__nav a:focus-visible,
.site-skip-link:focus-visible {
  outline: 3px solid #006fcd;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .site-header__inner {
    display: grid;
    width: 100%;
    padding: 18px 0 0;
    gap: 12px;
  }

  .site-header__wordmark {
    margin: 0 20px;
    justify-self: start;
  }

  .site-header__nav {
    width: 100%;
    padding: 0 20px 16px;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .site-header__nav a {
    min-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-skip-link {
    transition: none;
  }
}
