/* The Postibo menu block: a plain list styled as a row of links, taking its
   colour and font from the block's own settings (or the header around it). */
.postibo-menu {
	color: inherit;
	position: relative;
}

.postibo-menu__list,
.postibo-menu__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.postibo-menu__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 1.5em;
}

.postibo-menu--right .postibo-menu__list {
	justify-content: flex-end;
}

.postibo-menu--center .postibo-menu__list {
	justify-content: center;
}

.postibo-menu--left .postibo-menu__list {
	justify-content: flex-start;
}

.postibo-menu--vertical .postibo-menu__list,
.postibo-menu--columns .postibo-menu__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
}

.postibo-menu__list li {
	position: relative;
	margin: 0;
}

.postibo-menu__list a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	padding: 0.25em 0;
}

.postibo-menu__list a:hover,
.postibo-menu__list a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.postibo-menu__list .current-menu-item > a,
.postibo-menu__list .current_page_item > a {
	font-weight: 600;
}

/* One level of dropdown, opened on hover or keyboard focus. */
.postibo-menu--horizontal .postibo-menu__list .sub-menu,
.postibo-menu--horizontal .postibo-menu__list .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 12em;
	padding: 0.5em 0.9em;
	background: #fff;
	color: #111;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.12 );
	z-index: 20;
}

.postibo-menu--horizontal .postibo-menu__list li:hover > .sub-menu,
.postibo-menu--horizontal .postibo-menu__list li:focus-within > .sub-menu,
.postibo-menu--horizontal .postibo-menu__list li:hover > .children,
.postibo-menu--horizontal .postibo-menu__list li:focus-within > .children {
	display: block;
}

/* Footer columns: a top-level item heads each column. */
.postibo-menu__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 2em 3em;
}

.postibo-menu__column {
	min-width: 9em;
}

.postibo-menu__heading {
	display: block;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.9em;
	opacity: 0.85;
}

/* The small-screen toggle, shown by menu-front.js. */
.postibo-menu__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5em;
	height: 2.5em;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.postibo-menu__bars,
.postibo-menu__bars::before,
.postibo-menu__bars::after {
	display: block;
	width: 1.1em;
	height: 2px;
	background: currentColor;
	position: relative;
}

.postibo-menu__bars::before,
.postibo-menu__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.postibo-menu__bars::before {
	top: -6px;
}

.postibo-menu__bars::after {
	top: 6px;
}

@media ( max-width: 782px ) {
	.postibo-menu--horizontal.has-toggle .postibo-menu__toggle {
		display: inline-flex;
	}

	.postibo-menu--horizontal.has-toggle .postibo-menu__list {
		display: none;
		position: absolute;
		top: calc( 100% + 0.5em );
		right: 0;
		min-width: 14em;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5em 0;
		background: #111;
		color: #fff;
		border-radius: 8px;
		box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.25 );
		z-index: 30;
	}

	.postibo-menu--left.has-toggle .postibo-menu__list {
		right: auto;
		left: 0;
	}

	.postibo-menu--horizontal.has-toggle.is-open .postibo-menu__list {
		display: flex;
	}

	.postibo-menu--horizontal.has-toggle .postibo-menu__list a {
		display: block;
		padding: 0.6em 1.2em;
	}

	.postibo-menu--horizontal.has-toggle .postibo-menu__list .sub-menu,
	.postibo-menu--horizontal.has-toggle .postibo-menu__list .children {
		display: block;
		position: static;
		background: transparent;
		color: inherit;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 1em;
	}
}
