/*
 * Podim Site Header — what podim.org needs on top of header.css.
 *
 * header.css is a verbatim copy of mu-plugins/podim-platform-ui/assets/header.css (keep the two in sync).
 * The platform runs on Bricks; podim.org runs Hello Elementor + the Elementor kit, whose global rules style every
 * <a> and <button> (colours, red hover, borders, padding, typography). Those rules are as specific as ours or more,
 * so everything the header relies on is restated here with a higher specificity (html body .pui-header.pui-header--site …).
 */

html body .pui-header.pui-header--site {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #000;
	color: #fff;
	font-family: "Geist Var", "Geist", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

html body.admin-bar .pui-header.pui-header--site {
	top: 32px;
}

@media (max-width: 782px) {
	html body.admin-bar .pui-header.pui-header--site {
		top: 46px;
	}
}

@media (max-width: 600px) {
	html body.admin-bar .pui-header.pui-header--site {
		top: 0;
	}
}

html body .pui-header.pui-header--site a,
html body .pui-header.pui-header--site button {
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
}

/* ------------------------------------------------------------------ top-level menu items */

html body .pui-header.pui-header--site .pui-menu__top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #bebebe;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

html body .pui-header.pui-header--site .pui-menu__top:hover,
html body .pui-header.pui-header--site .pui-menu__top:focus,
html body .pui-header.pui-header--site .pui-menu__top:active {
	background: none;
	color: #bebebe;
}

/* a plain link in the top level (no dropdown) has no caret */
html body .pui-header.pui-header--site .pui-menu__link::after {
	display: none;
}

@media (min-width: 901px) {
	html body .pui-header.pui-header--site .pui-menu__item:hover > .pui-menu__top,
	html body .pui-header.pui-header--site .pui-menu__item:focus-within > .pui-menu__top {
		color: #fff;
	}
}

html body .pui-header.pui-header--site .pui-menu__item.is-open > .pui-menu__top {
	color: #fff;
}

/* ------------------------------------------------------------------ dropdown */

html body .pui-header.pui-header--site .pui-menu__sub {
	margin: 0;
}

html body .pui-header.pui-header--site .pui-menu__sub li {
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .pui-header.pui-header--site .pui-menu__sub a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	background: none;
	color: #bebebe;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

html body .pui-header.pui-header--site .pui-menu__sub a:hover,
html body .pui-header.pui-header--site .pui-menu__sub a:focus,
html body .pui-header.pui-header--site .pui-menu__sub a:active {
	background: #1d1d1d;
	color: #fff;
}

/* ------------------------------------------------------------------ pills */

html body .pui-header.pui-header--site .pui-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 32px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 20px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

html body .pui-header.pui-header--site .pui-pill--white {
	min-width: 94px;
	background: #fff;
	color: #000;
}

html body .pui-header.pui-header--site .pui-pill--white:hover,
html body .pui-header.pui-header--site .pui-pill--white:focus,
html body .pui-header.pui-header--site .pui-pill--white:active {
	background: #ff003b;
	color: #fff;
}

html body .pui-header.pui-header--site .pui-pill--dark {
	background: #262626;
	color: #bebebe;
	font-size: 14px;
	font-weight: 400;
}

html body .pui-header.pui-header--site .pui-pill--dark:hover,
html body .pui-header.pui-header--site .pui-pill--dark:focus,
html body .pui-header.pui-header--site .pui-pill--dark:active {
	background: #3a3a3a;
	color: #fff;
}

html body .pui-header.pui-header--site .pui-pill--login {
	padding: 0 12px 0 11px;
}

html body .pui-header.pui-header--site .pui-pill img {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	max-width: none;
}

/* ------------------------------------------------------------------ logo, burger */

html body .pui-header.pui-header--site .pui-logo img {
	display: block;
	width: 110px;
	max-width: none;
	height: auto;
}

html body .pui-header.pui-header--site .pui-burger {
	width: 37px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #262626;
	color: #bebebe;
}

html body .pui-header.pui-header--site .pui-burger:hover,
html body .pui-header.pui-header--site .pui-burger:focus,
html body .pui-header.pui-header--site .pui-burger:active {
	background: #3a3a3a;
	color: #fff;
}

/* ------------------------------------------------------------------ mobile (the rules above out-rank header.css, so repeat its mobile values) */

@media (max-width: 900px) {
	/* the Login pill in the bar is hidden on phones; the one in the burger panel replaces it */
	html body .pui-header.pui-header--site .pui-actions .pui-account--desktop {
		display: none;
	}

	html body .pui-header.pui-header--site .pui-pill--white {
		min-width: 0;
		padding: 0 16px;
	}

	html body .pui-header.pui-header--site .pui-nav__account .pui-pill {
		flex: 1 1 0;
		height: 40px;
	}

	html body .pui-header.pui-header--site .pui-menu__top {
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		border-bottom: 1px solid #1d1d1d;
	}

	html body .pui-header.pui-header--site .pui-menu__sub a {
		padding: 9px 12px;
	}
}

@media (max-width: 380px) {
	html body .pui-header.pui-header--site .pui-logo img {
		width: 96px;
	}

	html body .pui-header.pui-header--site .pui-pill--white {
		padding: 0 12px;
	}
}
