/* Keep the page viewport as the sticky header's scrolling ancestor. */
body:where(:has(.m3-shell)) { overflow-x: clip; overflow-y: visible; }

.guide-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: var(--container);
  border-bottom: 1px solid var(--outline);
}
html[data-theme="light"] .guide-header { background: #fff; }
.guide-header .top {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px;
  height: 68px;
  margin-inline: auto;
  padding-inline: 24px;
}
.guide-header .brand {
  min-height: 48px;
  gap: 12px;
  padding-inline-start: 2px;
  font-size: 18px;
  font-weight: 800;
}
.guide-header .brand img { width: 32px; height: 32px; border-radius: 10px; }
.guide-header .brand strong { color: var(--primary); font-weight: inherit; }
.guide-header :is(.brand,.guide-theme-toggle):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html:has(.guide-header),html:has(.m3-shell__header) { scroll-padding-top: 76px; }
@media(max-width: 767px) { .guide-header .top { padding-inline: 16px; } }
