/* The shared header keeps one position and appearance between page loads. */
:root { --site-header-height:72px; --site-gutter:clamp(24px,4.2vw,64px); }
body { padding-top:var(--site-header-height); }
body[class] .site-header { position:fixed; inset:0 0 auto; z-index:80; width:100%; height:var(--site-header-height); min-height:var(--site-header-height); margin:0; padding:0 var(--site-gutter); display:flex; justify-content:space-between; align-items:center; gap:24px; background:#202020; border:0; border-bottom:1px solid #363636; animation:none; opacity:1; transform:none; font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif; }
body[class] .site-header:after { display:none; }
body[class] .site-header .site-name { display:inline-flex; gap:11px; font-size:19px; letter-spacing:0; color:#e3e2d4; }
body[class] .site-header .brand-icon { width:23px; height:31px; }
body[class] .site-header .site-nav { display:flex; grid-column:auto; order:initial; width:auto; margin:0; align-items:center; justify-content:flex-start; gap:clamp(18px,2.5vw,36px); overflow:visible; flex-wrap:nowrap; color:#b7bbb4; font-size:12px; letter-spacing:0; }
body[class] .site-header .site-nav a { min-height:44px; padding:0; font-size:12px; font-weight:400; border:0; border-radius:0; background:transparent; color:#b7bbb4; }
body[class] .site-header .site-nav a:after { display:block; bottom:4px; background:#e4c797; transform:none; transition:opacity 120ms linear; }
body[class] .site-header .site-nav a[aria-current],body[class] .site-header .site-nav a:hover { color:#e4c797; background:transparent; }
.docs-page .doc-sidebar { top:var(--site-header-height); height:calc(100dvh - var(--site-header-height)); }
.docs-page .docs-layout { min-height:calc(100dvh - var(--site-header-height)); }
@media(min-width:761px) { html { scrollbar-gutter:stable; } }
@media(max-width:760px) {
  :root { --site-header-height:104px; --site-gutter:24px; }
  body[class] .site-header { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:48px 44px; gap:0; padding:8px var(--site-gutter) 4px; }
  body[class] .site-header .site-name { font-size:18px; }
  body[class] .site-header .brand-icon { width:21px; height:28px; }
  body[class] .site-header .site-nav { width:100%; gap:clamp(12px,3.4vw,22px); overflow-x:auto; scrollbar-width:none; }
  body[class] .site-header .site-nav a { font-size:11px; min-height:40px; flex-shrink:0; }
  body.console-page { padding-top:0; }
  body.console-page .site-header { display:none; }
  .docs-page .doc-sidebar { top:auto; height:auto; }
}
