/* Loaded only for opt-in sticky modes. The surface and reserved slot are separate
   so contraction never changes the document position of subsequent content. */
.githeme-sticky-header { --sticky-top: 0px; position: sticky; inset-block-start: var(--sticky-top); z-index: 1000; flex-shrink: 0; border: 0; background: transparent; pointer-events: none; }
.githeme-header-surface { background: var(--color-header-background); border-block-end: 1px solid var(--color-border); pointer-events: auto; }
.admin-bar .githeme-sticky-header { --sticky-top: 32px; }
.githeme-sticky-header.is-sticky-ready { height: var(--sticky-reserved-height); }
.githeme-sticky-header.is-header-compact .header-inner { padding-block: min(var(--space), .5rem); }
.githeme-sticky-header.is-header-compact .custom-logo { max-height: min(var(--logo-max-height), var(--compact-logo-height, 2.5rem)); }
.githeme-compact-only { display: none; }
.is-header-compact .githeme-compact-only { display: inline-block; }
.githeme-sticky-header .primary-navigation:not(.is-compact) .primary-menu > li > ul { max-height: max(8rem, calc(100dvh - var(--sticky-top) - var(--sticky-surface-height, 10rem) - 1rem)); overflow-y: auto; }
.githeme-sticky-header:has(.menu-toggle[aria-expanded="true"]) .githeme-header-surface { max-height: calc(100dvh - var(--sticky-top)); overflow-y: auto; }
html.githeme-has-sticky-header { scroll-padding-block-start: calc(var(--githeme-sticky-obstruction, 0px) + .5rem); }
@media (max-width: 48rem) {
	.githeme-sticky-header:not(.githeme-sticky-mobile) { position: static; height: auto; }
}
@media (max-width: 782px) {
	.admin-bar .githeme-sticky-header { --sticky-top: 46px; }
}
/* The native admin bar scrolls out of view at this breakpoint. */
@media (max-width: 600px) {
	.admin-bar .githeme-sticky-header { --sticky-top: 0px; }
}
/* Preserve a useful reading area at zoom/short viewport sizes, also without JS. */
@media (max-height: 30rem) {
	.githeme-sticky-header { position: static; height: auto; }
}
.githeme-sticky-header.is-sticky-unavailable { position: static; height: auto; }
/* Contraction is immediate, including under prefers-reduced-motion. */
