/* Keep the header in the page flow and above content while scrolling. */
body #masthead.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	box-shadow: 0 4px 16px rgba(28, 27, 27, 0.08);
}

/* Leave room for the header when following links to sections of a page. */
html {
	scroll-padding-top: calc(96px + var(--wp-admin--admin-bar--height, 0px));
}

@media (max-width: 600px) {
	/* WordPress's small-screen admin toolbar scrolls away with the page. */
	body.admin-bar #masthead.site-header {
		top: 0;
	}
}

/* Use the same light header on the homepage, posts, and other site pages. */
body #masthead.site-header .ast-primary-header-bar {
	background-color: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(28, 27, 27, 0.1);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body #masthead.site-header .site-title a,
body #masthead.site-header .main-header-menu > .menu-item > .menu-link {
	color: var(--ast-global-color-2, #1c1b1b);
}

body #masthead.site-header .site-title a:hover,
body #masthead.site-header .site-title a:focus-visible,
body #masthead.site-header .main-header-menu > .menu-item > .menu-link:hover,
body #masthead.site-header .main-header-menu > .menu-item > .menu-link:focus-visible,
body #masthead.site-header .main-header-menu > .current-menu-item > .menu-link,
body #masthead.site-header .main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--ast-global-color-0, #a44228);
}

body #masthead.site-header .main-header-menu-toggle {
	color: var(--ast-global-color-2, #1c1b1b);
	border-color: rgba(28, 27, 27, 0.3);
}

body #masthead.site-header .main-header-menu-toggle .ast-mobile-svg {
	fill: currentColor;
}

body #masthead.site-header .ast-mobile-header-content {
	background-color: rgba(255, 255, 255, 0.97);
}

/* The decorative GitHub mark follows the link's normal and hover colors. */
.menu-link .pl-github-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-inline-end: 0.4em;
	vertical-align: -0.125em;
	flex-shrink: 0;
	fill: currentColor;
}
