:root { --site-header-height: 88px; }
html { scroll-padding-top: calc(var(--site-header-height) + 16px); }
.header {
  position: sticky; top: 0; z-index: 100;
  width: 100%; min-height: 88px; margin: 0;
  padding: 12px max(56px, calc((100% - 1440px) / 2));
  background: #171c19; border-bottom: 1px solid #45483e;
  transition: transform 220ms ease;
}
.header.header-hidden { transform: translateY(calc(-100% - 1px)); pointer-events: none; }
.header.header-keyboard { transition: none; }
.header a:focus-visible { outline-offset: 3px; }
.skip { z-index: 101; }
@media (max-width: 1100px) { .header { padding-inline: 32px; } }
@media (max-width: 760px) {
  :root { --site-header-height: 106px; }
  .header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 20px; min-height: 106px; }
  .header .wordmark { min-height: 44px; font-size: 16px; gap: 8px; }
  .header .brand-crest { width: 30px; height: 30px; }
  .header > .parent { margin: 0; grid-column: 2; grid-row: 1; }
  .header nav { grid-column: 1 / -1; grid-row: 2; order: initial; gap: 8px; }
  .header nav a { min-height: 44px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }
@media print { .header { position: static; transform: none !important; } }
