:root {
  --site-header-height: 84px;
}

.site-header-global {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 16px;
  color: #172033;
  pointer-events: none;
}

.admin-bar .site-header-global {
  top: 32px;
}

.site-header-global__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  max-width: 100%;
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  pointer-events: auto;
  background: rgba(248, 251, 255, 0.88);
  border: 1px solid rgba(191, 219, 254, 0.68);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(1.12);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.site-header-global.is-scrolled .site-header-global__inner {
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.site-header-global__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  text-decoration: none;
}

.site-header-global__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-header-global__nav {
  min-width: 0;
}

.site-header-global__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header-global__menu .menu-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.site-header-global__menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 clamp(8px, 0.8vw, 13px);
  color: #526276;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header-global__menu a:hover,
.site-header-global__menu a:focus-visible,
.site-header-global__menu .current-menu-item > a,
.site-header-global__menu .current-menu-ancestor > a,
.site-header-global__menu .is-section-current > a {
  color: #0f5fca;
  background: rgba(219, 234, 254, 0.68);
  outline: none;
}

.site-header-global__menu .current-menu-item > a,
.site-header-global__menu .is-section-current > a {
  box-shadow: inset 0 -2px 0 rgba(26, 115, 232, 0.72);
}

.site-header-global__menu .sub-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 5;
  display: grid;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.site-header-global__menu .menu-item:hover > .sub-menu,
.site-header-global__menu .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header-global__menu .sub-menu a {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.site-header-global__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-header-global__toc-slot {
  display: none;
}

.site-header-global .site-actions {
  flex: 0 0 auto;
}

.site-header-global .site-settings__trigger {
  border-radius: 50%;
  box-shadow: none;
}

.site-header-global .site-settings__panel {
  right: -11px;
}

.site-landing main.page {
  margin-top: calc(-1 * var(--site-header-height));
}

.site-landing #hero.screen {
  padding-top: calc(24px + var(--site-header-height));
}

.site-header-global + .release-page,
.site-header-global + main {
  margin-top: calc(-1 * var(--site-header-height));
  padding-top: calc(var(--site-header-content-padding-top, 0px) + var(--site-header-height));
}

.site-header-global + .ppc-wp-content {
  --site-header-content-padding-top: 72px;
}

.site-header-global + .ppc-wp-content--not-found {
  --site-header-content-padding-top: 0px;
}

html[data-theme="dark"] .site-header-global__inner {
  color: #eef4ff;
  background: rgba(55, 65, 81, 0.88);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .site-header-global.is-scrolled .site-header-global__inner {
  background: rgba(31, 41, 55, 0.96);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .site-header-global__menu a {
  color: #b8c5d9;
}

html[data-theme="dark"] .site-header-global__menu a:hover,
html[data-theme="dark"] .site-header-global__menu a:focus-visible,
html[data-theme="dark"] .site-header-global__menu .current-menu-item > a,
html[data-theme="dark"] .site-header-global__menu .current-menu-ancestor > a,
html[data-theme="dark"] .site-header-global__menu .is-section-current > a {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.16);
}

html[data-theme="dark"] .site-header-global__menu .sub-menu {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .site-header-global.has-mobile-article-toc .site-header-global__toc-slot {
  border-top-color: rgba(148, 163, 184, 0.2);
}

@media (max-width: 820px) {
  .site-header-global {
    padding-inline: 10px;
  }

  .site-header-global__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(4px, 1.6vw, 8px);
    width: 100%;
    padding: 7px 8px 7px 10px;
  }

  .site-header-global .site-settings__panel {
    right: -9px;
  }

  .site-header-global__nav {
    min-width: 0;
  }

  .site-header-global__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
  }

  .site-header-global__menu .menu-item {
    min-width: 0;
  }

  .site-header-global__menu a {
    min-height: 40px;
    padding-inline: clamp(5px, 1.8vw, 10px);
    font-size: clamp(10px, 2.75vw, 13px);
    text-align: center;
  }

  .site-header-global__menu .sub-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --site-header-height: 76px;
  }

  .site-header-global {
    padding-block: 8px;
  }

  .site-header-global__logo {
    width: 36px;
    height: 36px;
  }

  .site-header-global .site-settings__panel {
    right: -9px;
  }
}

@media (max-width: 760px) {
  .site-header-global.has-mobile-article-toc .site-header-global__inner {
    row-gap: 0;
    border-radius: 28px;
  }

  .site-header-global.has-mobile-article-toc .site-header-global__toc-slot {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(191, 219, 254, 0.68);
  }

  .site-landing #hero.screen {
    padding-top: calc(28px + var(--site-header-height));
  }

  .site-header-global + .ppc-wp-content {
    --site-header-content-padding-top: 44px;
  }

  .site-header-global + .ppc-wp-content--not-found {
    --site-header-content-padding-top: 0px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header-global {
    top: 46px;
  }
}

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