:root {
  --header-height: 70px;
  --site-header-blue: #004dd6;
  --site-header-blue-dark: #003ca8;
  --site-header-ink: #0b1324;
  --site-header-muted: #566176;
  --site-header-border: #c8d3e1;
  --site-header-surface: #ffffff;
  --site-header-soft: #f2f6fb;
}

body.site-header-menu-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: var(--header-height);
  border: 0;
  border-bottom: 1px solid rgba(200, 211, 225, 0.88);
  border-radius: 0;
  background: #ffffff;
  color: var(--site-header-ink);
  box-shadow: none;
  backdrop-filter: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  align-items: center;
  margin-inline: auto;
  padding: 0;
}

.site-header__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--site-header-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header__brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
}

.site-header__brand strong {
  color: var(--site-header-blue);
}

.site-header__nav {
  position: absolute;
  left: 50%;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.site-header__nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  color: var(--site-header-muted);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header__nav-link::after {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 2px;
  background: var(--site-header-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link[aria-current="page"] {
  color: var(--site-header-ink);
}

.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after,
.site-header__nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-header__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-header__button:hover {
  transform: translateY(-1px);
}

.site-header a.site-header__button--primary,
.site-header a.site-header__button--primary:link,
.site-header a.site-header__button--primary:visited,
.site-header a.site-header__button--primary:active {
  background: var(--site-header-blue);
  color: #ffffff;
}

.site-header a.site-header__button--primary:hover,
.site-header a.site-header__button--primary:focus-visible {
  background: var(--site-header-blue-dark);
  color: #ffffff;
}

.site-header__button--secondary {
  border-color: var(--site-header-border);
  background: var(--site-header-surface);
  color: var(--site-header-ink);
}

.site-header__button--secondary:hover {
  border-color: #9eb0c7;
  background: var(--site-header-soft);
  color: var(--site-header-ink);
}

.site-header__menu-button,
.site-header__mobile {
  display: none;
}

.site-header__mobile[hidden] {
  display: none !important;
}

.site-header :focus-visible {
  outline: 3px solid #79a9ff;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header__actions .site-header__button--secondary {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  /* A filtered ancestor becomes the containing block for fixed descendants.
     The mobile navigation must remain viewport-sized, so keep the compact
     mobile header free of backdrop filtering. */
  .site-header {
    backdrop-filter: none;
  }

  .site-header__inner {
    width: min(100% - 40px, 760px);
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__menu-button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--site-header-ink);
    cursor: pointer;
  }

  .site-header__menu-button span {
    width: 20px;
    height: 2px;
    flex: 0 0 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header__menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__mobile {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-top: 1px solid var(--site-header-border);
    background: var(--site-header-surface);
    overflow-y: auto;
  }

  .site-header__mobile-link {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid #dce3ec;
    color: var(--site-header-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;
  }

  .site-header__mobile-link[aria-current="page"] {
    color: var(--site-header-blue);
  }

  .site-header__mobile .site-header__button {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    width: calc(100% - 40px);
  }

  .site-header__brand {
    font-size: 19px;
  }
}

@media (max-width: 370px) {
  .site-header__inner {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition-duration: 0.01ms !important;
  }
}
