/* Shared homepage navigation for secondary pages. */
.sticky-stack {
  z-index: 100;
}

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

.sticky-stack .site-header {
  position: relative;
  top: 0;
  height: 95px;
  padding-top: 12px;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1214px, calc(100% - 48px));
  height: 75px;
  margin-inline: auto;
  padding: 0 14px 0 18px;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(137deg, rgba(21, 28, 37, 0.78) 4.87%, rgba(11, 17, 24, 0.91) 75.88%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  gap: 9px;
  color: #f5f7fa;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  opacity: 0.85;
  transform-origin: left center;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.site-header .brand::before {
  display: none;
  content: none;
}

.site-header .brand img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
}

.site-header .brand span {
  display: inline;
  white-space: nowrap;
}

.site-header .brand:hover {
  color: #f5f7fa;
  text-decoration: none;
  opacity: 1;
  transform: scale(1.03);
}

.site-header .brand:focus-visible {
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
  opacity: 1;
}

.site-header .primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  gap: 2px;
}

.site-header .primary-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #aeb7c3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease-in-out;
}

.site-header .primary-nav a:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
}

.site-header .primary-nav a:focus-visible {
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.site-header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}

.site-header .button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.site-header .button:active {
  transform: translateY(0);
}

.site-header .button svg {
  display: block;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  fill: currentColor;
}

.site-header .button-primary {
  border-color: #2f86ff;
  background: #2f86ff;
  color: #fff;
}

.site-header .button-header {
  min-height: 42px;
  padding: 9px 15px;
  border-color: rgba(128, 185, 255, 0.48);
  border-radius: 11px;
  background: linear-gradient(180deg, #4193ff, #2879eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(47, 134, 255, 0.22);
}

.site-header .button-primary.button-header:hover {
  border-color: rgba(166, 208, 255, 0.66);
  background: linear-gradient(180deg, #5ba3ff, #3689f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(47, 134, 255, 0.3);
}

.site-header .button-header svg {
  width: 16px;
  height: 16px;
  margin-right: 7px;
}

.site-header .button:focus-visible,
.site-header .menu-button:focus-visible {
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
}

.site-header .menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 42px;
  height: 42px;
  padding: 0;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: #f5f7fa;
  font: inherit;
  cursor: pointer;
}

.site-header .menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.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);
}

/* Compact, visible hierarchy for indexable secondary pages. */
.page-breadcrumbs,
.page-breadcrumbs *,
.page-breadcrumbs *::before,
.page-breadcrumbs *::after {
  box-sizing: border-box;
}

.page-breadcrumbs {
  position: absolute;
  z-index: 4;
  top: 95px;
  left: 50%;
  width: min(1214px, calc(100% - 48px));
  transform: translateX(-50%);
  color: #7f8b99;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-breadcrumbs ol {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 8px 18px 4px;
  gap: 8px;
  list-style: none;
}

.page-breadcrumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.page-breadcrumbs li + li::before {
  content: "/";
  flex: 0 0 auto;
  margin-right: 8px;
  color: #4f5c6b;
}

.page-breadcrumbs a {
  color: #8f9baa;
  text-decoration: none;
  transition: color 160ms ease-out;
}

.page-breadcrumbs a:hover {
  color: #d7e0ea;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-breadcrumbs a:focus-visible {
  border-radius: 3px;
  outline: 2px solid #80b9ff;
  outline-offset: 3px;
}

.page-breadcrumbs [aria-current="page"] {
  overflow: hidden;
  color: #aeb9c6;
  text-overflow: ellipsis;
}

@media (max-width: 1060px) {
  .sticky-stack .site-header {
    height: 80px;
    padding-top: 8px;
  }

  .site-header .header-inner {
    height: 64px;
    padding: 0 10px 0 12px;
    gap: 12px;
    border-radius: 16px;
  }

  .site-header .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .site-header .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 48px));
    margin-left: 0;
    padding: 8px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(12, 16, 22, 0.96);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
  }

  .site-header .primary-nav.is-open {
    display: flex;
  }

  .site-header .primary-nav a {
    min-height: 48px;
    padding: 11px 14px;
  }

  .page-breadcrumbs {
    top: 80px;
  }
}

@media (max-width: 620px) {
  .sticky-stack .site-header {
    height: 72px;
    padding-top: 6px;
  }

  .site-header .header-inner {
    width: calc(100% - 40px);
    height: 60px;
    padding: 0 8px;
    gap: 10px;
    border-radius: 15px;
  }

  .site-header .brand span {
    display: inline;
    font-size: 16px;
  }

  .site-header .brand img {
    width: 44px;
    height: 44px;
  }

  .site-header .button-header {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .site-header .button-header svg {
    width: 16px;
    height: 16px;
    margin-right: 7px;
  }

  .site-header .primary-nav {
    width: calc(100vw - 40px);
  }

  .page-breadcrumbs {
    top: 72px;
    width: calc(100% - 40px);
    font-size: 11px;
  }

  .page-breadcrumbs ol {
    min-height: 30px;
    padding: 6px 8px 3px;
    gap: 6px;
  }

  .page-breadcrumbs li + li::before {
    margin-right: 6px;
  }
}

@media (max-width: 420px) {
  .site-header .brand span {
    display: none;
  }
}

@media (max-width: 340px) {
  .site-header .button-header {
    width: 44px;
    padding: 0;
  }

  .site-header .button-header span {
    display: none;
  }

  .site-header .button-header svg {
    width: 18px;
    height: 18px;
    margin: 0;
  }
}

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