vn-docs-header { display: block; position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--vn-docs-page, var(--vn-color-bg)) var(--vn-docs-hdr-alpha), transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } /* slightly see-through: the page shows faintly behind it as it scrolls */
vn-docs-header[static] { position: relative; z-index: auto; }
.vn-docs-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--vn-docs-hdr-h);
  padding: 0 20px;
}
vn-header-actions, .vn-header-actions { flex: none; display: flex; align-items: center; gap: 0; margin-left: auto; }
/* The 32px sun/moon sits in a 44px target; pull it out 6px so the icon meets the edge. */
.vn-docs-header__row vn-theme-toggle { margin-right: -6px; }
/* Desktop: the logo is centered over the contents column, the crumb over the text, and the
   sun/moon ends where the text ends (or starts at the sections text). */
@media (min-width: 721px) {
  .vn-docs-header__row { max-width: var(--vn-docs-frame-w); margin: 0 auto; padding-left: 0; }
  .vn-docs-header__row > .vn-brand,
  .vn-docs-header__row > vn-brand { width: var(--vn-docs-side-w); justify-content: center; }
  vn-docs[has-toc] .vn-docs-header__row { padding-right: 0; }
  vn-docs[has-toc] vn-header-actions,
  vn-docs[has-toc] .vn-header-actions { justify-content: flex-start; box-sizing: border-box; width: var(--vn-docs-side-w); padding-left: 14px; } /* the GitHub glyph starts where the Sections text starts (the column's 20px inset less the button's own 6px) */
  vn-docs[has-toc] .vn-docs-header__row vn-theme-toggle { margin-right: 0; }
}
/* The # Sections button only shows at 720px and under, when the page has sections. */
vn-icon-button[data-toc-toggle] { display: none; }
@media (max-width: 720px) {
  vn-docs[has-toc] vn-icon-button[data-toc-toggle]:not([hidden]) { display: inline-flex; }
  /* The crumb centers on the whole header (row and reading bar), as on Badge. */
  .vn-docs-header__row { position: static; }
}
/* GitHub mark, left of the sun/moon: a 44px target with the official mark. */
.vn-gh { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--vn-color-contrast, var(--vn-color-ink)); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vn-gh img { display: block; width: 28px; height: 28px; }
/* GitHub's official Invertocat: black on light, white on dark (GitHub's logo rules: black or white only). */
.vn-gh__dark { display: none !important; }
html[data-scheme="dark"] .vn-gh__light, html[data-theme="dark"] .vn-gh__light { display: none !important; }
html[data-scheme="dark"] .vn-gh__dark, html[data-theme="dark"] .vn-gh__dark { display: block !important; }
.vn-gh:hover { opacity: .85; }
.vn-gh:focus { outline: none; }
.vn-gh:focus-visible { outline: 2px solid var(--vn-color-ink); outline-offset: 2px; border-radius: 6px; }

/* Header: the logo is --vn-docs-icon (52px); the icon group on the right is --vn-docs-action (40px), all in a 72px header. */
vn-docs-header .vn-brand img { width: var(--vn-docs-icon); height: var(--vn-docs-icon); }
vn-docs-header .vn-icon-button, vn-docs-header .vn-gh, vn-docs-header .vn-theme-toggle__button { width: var(--vn-docs-action); height: var(--vn-docs-action); }
vn-docs-header .vn-icon-button svg { width: 26px; height: 26px; }
vn-docs-header .vn-gh img { width: 28px; height: 28px; }
vn-docs-header .vn-theme-toggle__button svg, vn-docs-header .vn-theme-toggle__icon { width: 32px; height: 32px; }

