/* Page header: the tile logo, a breadcrumb, and a group of icon buttons, some of which open a dropdown (vn-menu).

     <header class="vn-page-header">
       <a class="vn-page-header__brand" href="/" aria-label="Home"><img src="logo.png" alt="" width="36" height="36"></a>
       <nav class="vn-page-header__crumb" aria-label="Breadcrumb">
         <a href="/">Author</a><span class="vn-page-header__sep" aria-hidden="true">/</span><span aria-current="page">Untitled</span>
       </nav>
       <div class="vn-page-header__actions">
         <button class="vn-page-header__icon" aria-label="Search">…svg…</button>
         <vn-menu data-align="end"><button class="vn-page-header__icon" data-vn-menu-trigger aria-label="Account">…svg…</button>
           <div class="vn-menu-panel" data-vn-menu-panel>…vn-menu-item…</div></vn-menu>
       </div>
     </header>

   Icon buttons are 44px targets, drawn like the docs header (25px, 1.2 stroke). Hover and press tint the icon; an open dropdown (aria-expanded="true") keeps it tinted.
   Add the class vn-page-header--fixed to pin it to the top of the page. Sizes: --_h (row height).
   vn-page-header--compact makes a 48px row; vn-page-header--center centers a vn-page-header__title between the start and the actions. */

.vn-page-header {
  --_h: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: var(--_h);
  padding: 0 8px 0 16px;
  background: var(--vn-docs-page, var(--vn-color-bg, #fff));
  color: var(--vn-color-ink, #1d1f24);
  font-family: var(--vn-font-sans, "General Sans", system-ui, sans-serif);
}
.vn-page-header--fixed { position: sticky; top: 0; z-index: var(--vn-z-nav, 30); padding-top: env(safe-area-inset-top, 0px); }

.vn-page-header__brand { flex: none; display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.vn-page-header__brand img { display: block; width: 36px; height: 36px; }
/* A mark with no tile (black lines, like the bare Sequence mark): 32px, turned light in dark mode. */
.vn-page-header .vn-page-header__brand--mark img { width: 32px; height: 32px; }
html[data-scheme="dark"] .vn-page-header__brand--mark img, html[data-theme="dark"] .vn-page-header__brand--mark img { filter: invert(1); }

.vn-page-header__crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 19px; font-weight: 400; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.vn-page-header__crumb a { color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; }
.vn-page-header__crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vn-page-header__crumb [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; } /* keeps descenders inside the clip */
.vn-page-header__sep { color: var(--vn-color-quiet, #8a8d94); }

.vn-page-header__actions { flex: none; display: flex; align-items: center; gap: 0; margin-left: auto; }
.vn-page-header__icon {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--vn-color-ink, #1d1f24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease-out, background 120ms ease-out;
}
.vn-page-header__icon svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.vn-page-header__icon:hover, .vn-page-header__icon:active, .vn-page-header__icon[aria-expanded="true"] { color: var(--vn-color-accent, #1976d2); }
.vn-page-header__icon:focus { outline: none; }
.vn-page-header__icon:focus-visible { outline: 2px solid var(--vn-color-ink, #1d1f24); outline-offset: 2px; }
.vn-page-header__actions vn-menu { display: inline-flex; }
/* An action that is a logo mark (for example the transparent Badge mark): the light file on light pages, the dark file on dark pages. */
.vn-page-header__icon--mark img { display: block; width: 24px; height: 24px; }
.vn-page-header__icon--mark img.vn-page-header__mark-dark { display: none; }
html[data-scheme="dark"] .vn-page-header__icon--mark img.vn-page-header__mark-light, html[data-theme="dark"] .vn-page-header__icon--mark img.vn-page-header__mark-light { display: none; }
html[data-scheme="dark"] .vn-page-header__icon--mark img.vn-page-header__mark-dark, html[data-theme="dark"] .vn-page-header__icon--mark img.vn-page-header__mark-dark { display: block; }
/* The sun/moon toggle (<vn-theme-toggle>) sits last in the actions, sized like the other icons. */
.vn-page-header__actions .vn-theme-toggle__button { width: 44px; height: 44px; }
.vn-page-header__actions .vn-theme-toggle__button svg { width: 32px; height: 32px; } /* the docs header's size: smaller, the rays thin out to nothing */
.vn-page-header--compact .vn-page-header__actions .vn-theme-toggle__button { width: 40px; height: 40px; }

/* Compact: a 48px row. Smaller logo, crumb and icons; the icon buttons stay 40px targets. */
.vn-page-header--compact { --_h: 48px; gap: var(--vn-space-8); padding: 0 var(--vn-space-4) 0 var(--vn-space-12); }
.vn-page-header--compact .vn-page-header__brand img { width: 24px; height: 24px; }
.vn-page-header--compact .vn-page-header__crumb { gap: var(--vn-space-8); font-size: var(--vn-text-md, 15px); }
.vn-page-header--compact .vn-page-header__icon { width: 40px; height: 40px; }
.vn-page-header--compact .vn-page-header__icon svg { width: 20px; height: 20px; stroke-width: 1.4; }

/* Centered: start, a centered title, and actions at the end (three columns, so the title stays centered). */
.vn-page-header--center { display: grid; grid-template-columns: 1fr auto 1fr; }
.vn-page-header--center > :first-child { justify-self: start; }
.vn-page-header--center .vn-page-header__actions { grid-column: 3; justify-self: end; margin-left: 0; }
.vn-page-header__title { min-width: 0; margin: 0; overflow: hidden; font-size: var(--vn-text-md, 15px); font-weight: var(--vn-weight-medium, 500); letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 520px) { .vn-page-header { padding: 0 4px 0 12px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .vn-page-header__icon { transition: none; } }
