/* A fixed surface avoids the existing body's overflow-x clipping sticky positioning. */
.hg-header-slot { height: 74px; }
body header.site-header.hg-scroll-header {
  --hg-header-slot: 74px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: var(--hg-header-slot);
  min-height: var(--hg-header-slot);
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.hg-scroll-header > .hg-header-surface {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  height: var(--hg-header-slot);
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border: 1px solid transparent;
  border-bottom-color: rgba(226, 232, 236, .8);
  border-radius: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 rgba(27, 35, 43, 0);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(0);
  pointer-events: auto;
  transition: width 460ms cubic-bezier(.22, 1, .36, 1),
    height 460ms cubic-bezier(.22, 1, .36, 1),
    padding 460ms cubic-bezier(.22, 1, .36, 1),
    gap 460ms cubic-bezier(.22, 1, .36, 1),
    transform 460ms cubic-bezier(.22, 1, .36, 1),
    border-radius 460ms cubic-bezier(.22, 1, .36, 1),
    border-color 360ms ease, background-color 360ms ease, box-shadow 460ms ease;
}
.hg-header-surface > .brand { order: 0; flex: 0 0 auto; }
.hg-header-surface > .ai-network { order: 1; flex: 0 0 auto; margin: 0; }
.hg-header-surface > .main-nav {
  order: 2;
  flex: 0 1 auto;
  max-width: 600px;
  white-space: nowrap;
  transition: max-width 380ms ease, opacity 180ms ease;
}
.hg-header-surface > .header-actions {
  order: 3;
  flex: 0 0 auto;
  margin-left: auto;
  transition: gap 380ms ease;
}
.hg-header-surface .header-actions > .text-link {
  max-width: 80px;
  white-space: nowrap;
  transition: max-width 380ms ease, opacity 180ms ease;
}
.hg-header-surface .header-actions > .button {
  transition: background-color 360ms ease, color 360ms ease,
    border-radius 380ms ease, box-shadow 360ms ease, padding 380ms ease;
}
.hg-scroll-header.is-scrolled > .hg-header-surface {
  width: min(1360px, calc(100% - 48px));
  height: 64px;
  padding: 0 26px;
  gap: 12px;
  transform: translateY(8px);
  border-color: rgba(137, 145, 130, .25);
  border-radius: 21px;
  background: rgba(250, 251, 248, .94);
  box-shadow: 0 12px 32px rgba(34, 43, 33, .10), 0 1px 3px rgba(34, 43, 33, .03);
}
.hg-scroll-header.is-scrolled .main-nav {
  order: 1;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hg-scroll-header.is-scrolled .ai-network { order: 2; margin-left: auto; }
.hg-scroll-header.is-scrolled .ai-network > summary {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 12px;
}
.hg-scroll-header.is-scrolled .header-actions { margin-left: 0; gap: 0; }
.hg-scroll-header.is-scrolled .header-actions > .text-link {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hg-scroll-header.is-scrolled .header-actions > .button {
  min-height: 44px;
  padding: 0 21px;
  border-radius: 12px;
  background: #24282e;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
.hg-scroll-header.is-scrolled .header-actions > .button:hover { background: #363b43; }
html:has(.hg-scroll-header) { scroll-padding-top: 96px; }
@media (min-width: 768px) and (max-width: 1100px) {
  .hg-header-slot { height: 110px; }
  body header.site-header.hg-scroll-header { --hg-header-slot: 110px; }
  .hg-scroll-header > .hg-header-surface {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 44px 36px;
    gap: 8px 16px;
    padding: 10px 18px;
  }
  .hg-header-surface > .brand { grid-column: 1; grid-row: 1; }
  .hg-header-surface > .ai-network { grid-column: 2; grid-row: 1; justify-self: end; }
  .hg-header-surface > .header-actions { grid-column: 3; grid-row: 1; margin: 0; }
  .hg-header-surface > .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; max-width: none; }
  .hg-scroll-header.is-scrolled > .hg-header-surface { display: flex; }
  .hg-scroll-header.is-scrolled .main-nav { flex: 0 0 0; max-width: 0; }
}
@media (max-width: 767px) {
  .hg-header-slot { height: 112px; }
  body header.site-header.hg-scroll-header { --hg-header-slot: 112px; }
  .hg-scroll-header > .hg-header-surface {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 40px 40px;
    gap: 8px;
    padding: 10px;
  }
  .hg-header-surface > .brand { grid-column: 1; grid-row: 1; }
  .hg-header-surface > .ai-network { grid-column: 2; grid-row: 1; justify-self: end; }
  .hg-header-surface > .header-actions { grid-column: 1 / -1; grid-row: 2; margin: 0; width: 100%; }
  .hg-header-surface .header-actions > .button { width: 100%; min-height: 40px; margin: 0; }
  .hg-scroll-header.is-scrolled > .hg-header-surface {
    display: flex;
    width: calc(100% - 16px);
    height: 62px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 18px;
  }
  .hg-scroll-header.is-scrolled .brand { font-size: 22px; }
  .hg-scroll-header.is-scrolled .ai-network > summary {
    min-height: 38px;
    padding: 9px 10px;
    gap: 5px;
    font-size: 12px;
  }
  .hg-scroll-header.is-scrolled .header-actions { width: auto; }
  .hg-scroll-header.is-scrolled .header-actions > .button {
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
  }
  html:has(.hg-scroll-header) { scroll-padding-top: 88px; }
}
@media (max-width: 359px) {
  .hg-scroll-header.is-scrolled .ai-network > summary > span { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hg-scroll-header.is-scrolled > .hg-header-surface { background: #fafbf8; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-scroll-header > .hg-header-surface,
  .hg-header-surface > .main-nav,
  .hg-header-surface > .header-actions,
  .hg-header-surface .header-actions > .text-link,
  .hg-header-surface .header-actions > .button { transition: none; }
}
