/* Shared persistent site header for home and every secondary page.
   Sticky preserves document flow: no hero jump or obscured first section. */
:root{--gp-sticky-header-height:94px}
html{scroll-padding-top:calc(var(--gp-sticky-header-height) + 16px)}
body>.topbar{
 position:sticky!important;top:0!important;z-index:1000!important;
 isolation:isolate;
 background:linear-gradient(180deg,rgba(8,13,19,.97),rgba(9,14,20,.96));
 border-bottom:1px solid rgba(199,157,94,.23);
 box-shadow:0 10px 28px #0005;
 backdrop-filter:blur(16px);
 -webkit-backdrop-filter:blur(16px);
}
body>.topbar::before{
 content:"";position:absolute;top:0;bottom:-1px;left:50%;width:100vw;
 transform:translateX(-50%);z-index:-1;
 background:linear-gradient(180deg,rgba(8,13,19,.985),rgba(9,14,20,.965));
 border-bottom:1px solid rgba(199,157,94,.17);
 pointer-events:none;
}
body>.topbar .mobile-site-nav{z-index:1001}
[id]{scroll-margin-top:calc(var(--gp-sticky-header-height) + 16px)}
@media(max-width:760px){:root{--gp-sticky-header-height:80px}}
@supports not (backdrop-filter:blur(1px)){body>.topbar{background:#090e14}}

/* V2 — identical header geometry on home, catalog, rankings, and honors.
   Fix shifting caused by page-specific max-width/padding and flexible nav. */
@media(min-width:1061px){
 body>.topbar{
   box-sizing:border-box!important;
   width:100%!important;
   max-width:1160px!important;
   height:94px!important;
   padding:0 18px!important;
   margin:0 auto!important;
   display:grid!important;
   grid-template-columns:220px minmax(0,1fr) 160px!important;
   column-gap:16px!important;
   align-items:center!important;
   justify-content:stretch!important;
 }
 body>.topbar>.brand-logo{
   grid-column:1;
   width:220px!important;
   margin:0!important;
   justify-self:start!important;
 }
 body>.topbar>.brand-logo img{
   display:block;
   width:280px!important; /* reversible visual-size experiment */
   height:auto!important;
   max-width:none!important;
   max-height:none!important;
   object-fit:contain;
 }
 body>.topbar>.desktop-nav{
   grid-column:2;
   display:flex!important;
   flex:initial!important;
   width:100%!important;
   justify-content:center!important;
   gap:clamp(10px,1.3vw,22px)!important;
 }
 body>.topbar>.top-actions{
   grid-column:3;
   display:flex;
   justify-content:flex-end!important;
   width:160px!important;
   margin:0!important;
 }
}

/* V3: uniform vertical navigation slots on all four pages.
   Links and current-page spans must share identical line boxes. */
body>.topbar .desktop-nav{
  align-items:center!important;
}
body>.topbar .desktop-nav>a,
body>.topbar .desktop-nav>.nav-current{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  vertical-align:middle!important;
  height:44px!important;
  min-height:44px!important;
  line-height:20px!important;
  margin:0!important;
  padding:0 7px!important;
  font-size:14px!important;
  font-weight:600!important;
  border:0!important;
  position:relative;
}
body>.topbar .desktop-nav>a::before,
body>.topbar .desktop-nav>.nav-current::after{
  bottom:2px!important;
}

/* V4 typography contract: all four navigation labels use the same font metrics,
   regardless of link/current-item element or page-specific inherited rules. */
html body>.topbar nav.desktop-nav{
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:20px!important;
}
html body>.topbar nav.desktop-nav > a,
html body>.topbar nav.desktop-nav > span.nav-current{
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif!important;
  font-size:14px!important;
  font-weight:600!important;
  font-style:normal!important;
  letter-spacing:0!important;
  text-transform:none!important;
  line-height:20px!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  text-shadow:none;
}
html body>.topbar nav.desktop-nav > span.nav-current{
  text-shadow:0 0 12px #9c723b55;
}
