/*
 * WordPress-only fixes. The original design CSS (index.css) is loaded unchanged before this file.
 */

/* Fixed header sits below the WordPress admin bar when logged in. */
.admin-bar #root > header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #root > header { top: 46px; }
}
@media screen and (max-width: 600px) {
	.admin-bar #root > header { top: 0; }
}

/* Optional top bar (Customizer > Monaci Theme > Top bar). */
#root > header [data-topbar] {
	background-color: var(--color-maroon);
	color: color-mix(in oklab, var(--color-cream) 75%, transparent);
	font-size: 12px;
	letter-spacing: .05em;
	padding-block: .5rem;
}

/* Dropdown menus (menu items with children). */
#root > header [data-dropdown] { position: relative; }
#root > header nav.hidden [data-dropdown] { display: flex; }
#root > header nav.hidden [data-dropdown] > [data-submenu] {
	position: absolute;
	top: 100%;
	left: -1.25rem;
	z-index: 50;
	min-width: 15rem;
	margin-top: .75rem;
	padding: .75rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	background-color: color-mix(in oklab, var(--color-maroon-deep) 95%, transparent);
	border-top: 1px solid var(--color-tan);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .3s, transform .3s, visibility .3s;
}
#root > header nav.hidden [data-dropdown] > [data-submenu]::before {
	content: "";
	position: absolute;
	inset: -.75rem 0 auto 0;
	height: .75rem;
}
#root > header nav.hidden [data-dropdown]:hover > [data-submenu],
#root > header nav.hidden [data-dropdown]:focus-within > [data-submenu] {
	opacity: 1;
	visibility: visible;
	transform: none;
}
#root > header aside nav [data-dropdown] { display: flex; flex-direction: column; }
#root > header aside nav [data-submenu] { display: flex; flex-direction: column; padding-left: 1rem; }
#root > header aside nav [data-submenu] a { font-size: 1rem; }

/* Inline images inserted by editors behave like the design's images. */
main img { max-width: 100%; }
