.ad-site-header {
	background: var(--ad-press-header-bg, #fff);
	border-bottom: 1px solid #dbdbdb;
	border-bottom-color: color-mix(in srgb, currentColor 16%, transparent);
	color: var(--ad-press-header-text, #141414);
	position: relative;
	z-index: 2;
}

.ad-header-inner {
	align-items: center;
	display: flex;
	gap: clamp(12px, 2vw, 32px);
	min-height: 56px;
}

.ad-site-branding {
	flex: none;
	max-width: min(38vw, 205px);
	padding-block: 8px;
}

.ad-site-branding .custom-logo-link,
.ad-site-branding .custom-logo {
	display: block;
}

.ad-site-branding .custom-logo {
	height: auto;
	max-height: 80px;
	max-width: min(100%, 150px);
	object-fit: contain;
	width: auto;
}

.ad-site-name {
	color: inherit;
	display: inline-block;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.ad-site-tagline {
	font-size: .8rem;
	line-height: 1.3;
	margin: 4px 0 0;
	overflow-wrap: anywhere;
}

.ad-header-panel {
	align-items: center;
	display: flex;
	flex: 1;
	gap: clamp(12px, 2vw, 30px);
	justify-content: flex-end;
	min-width: 0;
}

.ad-primary-menu,
.ad-primary-menu :where(.sub-menu, .children),
.ad-footer-menu,
.ad-footer-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ad-primary-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(12px, 1.8vw, 26px);
	justify-content: flex-end;
}

.ad-primary-menu li {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	position: relative;
}

.ad-primary-menu a {
	color: inherit;
	display: block;
	font-size: .97rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
	padding-block: 14px;
	text-decoration: none;
}

.ad-primary-menu a:hover {
	color: color-mix(in srgb, var(--ad-press-accent, #a50912) 70%, var(--ad-press-header-text, #141414));
}

.ad-primary-menu .current-menu-item > a,
.ad-primary-menu .current_page_item > a {
	font-weight: 700;
}

.ad-submenu-toggle,
.ad-header-toggle,
.ad-menu-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	padding: 0;
}

.ad-submenu-toggle {
	min-height: 32px;
	width: 28px;
}

.ad-submenu-toggle::after {
	border: solid currentColor;
	border-width: 0 1.6px 1.6px 0;
	content: '';
	height: 6px;
	transform: translateY(-2px) rotate(45deg);
	width: 6px;
}

.ad-submenu-toggle[aria-expanded="true"]::after {
	transform: translateY(2px) rotate(225deg);
}

.ad-header-search {
	flex: 0 1 218px;
	min-width: 150px;
}

.ad-search-form {
	align-items: stretch;
	background: color-mix(in srgb, currentColor 4%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 999px;
	color: inherit;
	display: flex;
	margin: 0;
	max-width: 100%;
}

.ad-search-input {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.ad-search-form input[type="search"] {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px 0 0 999px;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	min-height: 40px;
	min-width: 0;
	padding: 7px 0 7px 14px;
	width: 100%;
}

.ad-search-form input::placeholder {
	color: inherit;
	opacity: .75;
}

.ad-search-form button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0 999px 999px 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex: none;
	justify-content: center;
	min-height: 40px;
	min-width: 44px;
	padding: 0;
}

.ad-search-form button:hover {
	background: color-mix(in srgb, currentColor 9%, transparent);
}

.ad-header-panel-close,
.ad-mobile-menu:not([open]) {
	display: none;
}

.ad-header-toggle {
	margin-inline-start: auto;
	min-height: 48px;
	min-width: 48px;
	text-decoration: none;
}

.ad-menu-icon,
.ad-menu-icon::before,
.ad-menu-icon::after {
	background: currentColor;
	border-radius: 2px;
	height: 3px;
	width: 26px;
}

.ad-menu-icon {
	display: block;
	position: relative;
}

.ad-menu-icon::before,
.ad-menu-icon::after {
	content: '';
	inset-inline-start: 0;
	position: absolute;
}

.ad-menu-icon::before { inset-block-start: -8px; }
.ad-menu-icon::after { inset-block-start: 8px; }

.ad-site-header :where(a, button, input):focus-visible,
.ad-site-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.ad-site-footer {
	border-top: 3px solid var(--ad-press-accent, #b50916);
}

.ad-site-footer a {
	color: inherit;
	text-decoration: none;
}

.ad-footer-main {
	background: var(--ad-press-footer-bg, #000);
	color: var(--ad-press-footer-text, #fff);
	padding-block: 34px 18px;
}

.ad-footer-row {
	align-items: center;
	display: grid;
	gap: 10px clamp(18px, 3vw, 42px);
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	min-height: 42px;
}

.ad-footer-logo {
	font-size: 1.12rem;
	font-weight: 800;
	justify-self: start;
	letter-spacing: -.025em;
	line-height: 1.08;
	max-width: min(36vw, 240px);
	overflow-wrap: anywhere;
}

.ad-footer-logo img {
	display: block;
	height: auto;
	max-height: 56px;
	max-width: min(100%, 92px);
	object-fit: contain;
	width: auto;
}

.ad-footer-links,
.ad-footer-social-nav {
	grid-column: 2;
	justify-self: end;
	min-width: 0;
}

.ad-footer-links {
	background: var(--ad-press-footer-links-bg, transparent);
	border-radius: 6px;
	color: var(--ad-press-footer-links-text, inherit);
	text-align: end;
}

.ad-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	justify-content: flex-end;
}

.ad-footer-menu li {
	max-width: 100%;
}

.ad-footer-links a {
	align-items: center;
	border-radius: 5px;
	display: inline-flex;
	min-height: 44px;
	overflow-wrap: anywhere;
	padding-inline: 8px;
}

.ad-footer-links a:hover,
.ad-footer-social a:hover {
	background-color: color-mix(in srgb, currentColor 12%, transparent);
}

.ad-footer-social {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	justify-content: flex-end;
}

.ad-footer-social a {
	align-items: center;
	border-radius: 5px;
	display: flex;
	font-size: .9rem;
	gap: 8px;
	min-height: 44px;
}

.ad-footer-copyright {
	color: var(--ad-press-footer-muted, #ababab);
	font-size: .97rem;
	margin: clamp(20px, 4vw, 40px) 0 0;
	text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
	.ad-primary-menu a {
		transition: color .15s ease;
	}

	.ad-footer-links a,
	.ad-footer-social a {
		transition: background-color .15s ease;
	}
}

@media (min-width: 1040px) {
	.ad-header-toggle {
		display: none;
	}

	.ad-primary-menu :where(.sub-menu, .children) {
		background: var(--ad-press-header-bg, #fff);
		border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
		border-radius: 6px;
		box-shadow: 0 6px 20px #0002;
		display: none;
		inset-block-start: 100%;
		inset-inline-start: 0;
		min-width: 205px;
		padding: 5px 0;
		position: absolute;
		width: max-content;
		z-index: 1;
	}

	.ad-primary-menu :where(.sub-menu, .children) a {
		flex: 1;
		max-width: 245px;
		padding: 8px 14px;
	}

	.ad-primary-menu :where(.sub-menu, .children) :where(.sub-menu, .children) {
		border: 0;
		border-inline-start: 1px solid color-mix(in srgb, currentColor 20%, transparent);
		border-radius: 0;
		box-shadow: none;
		flex-basis: 100%;
		margin-inline-start: 14px;
		min-width: 0;
		position: static;
	}

	.ad-site-header:not([data-ad-menu-enhanced]) .ad-primary-menu li:is(:hover, :focus-within) > :where(.sub-menu, .children),
	.ad-submenu-toggle[aria-expanded="true"] + :where(.sub-menu, .children) {
		display: block;
	}
}

@media (max-width: 1039.98px) {
	.ad-header-inner {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.ad-site-branding {
		max-width: 72%;
	}

	.ad-header-panel {
		align-items: stretch;
		flex: 1 0 100%;
		flex-direction: column;
		justify-content: flex-start;
		padding-block-end: 14px;
	}

	.ad-header-panel .ad-header-search {
		flex: none;
		min-width: 0;
	}

	.ad-header-inner > .ad-header-panel:target .ad-header-panel-close {
		align-self: flex-end;
		align-items: center;
		display: inline-flex;
		min-height: 44px;
	}

	.ad-mobile-menu[open] {
		background: var(--ad-press-header-bg, #fff);
		border: 0;
		box-sizing: border-box;
		color: var(--ad-press-header-text, #141414);
		display: flex;
		flex-direction: column;
		gap: 12px;
		height: 100%;
		inset: 0;
		margin: 0;
		max-height: none;
		max-width: none;
		overscroll-behavior: contain;
		padding: 12px max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
		position: fixed;
		width: 100%;
	}

	html:has(.ad-mobile-menu[open]) {
		overflow: hidden;
	}

	.ad-mobile-menu-top {
		display: flex;
		justify-content: flex-end;
	}

	.ad-menu-close {
		font-size: .94rem;
		gap: 12px;
		min-height: 48px;
		padding-inline: 8px;
	}

	.ad-menu-close span {
		font-size: 1.9rem;
		line-height: 1;
	}

	.ad-mobile-menu .ad-header-panel {
		flex: 1 0 auto;
		gap: 24px;
		padding-block-end: 0;
	}

	.ad-mobile-menu .ad-header-search {
		margin-block-start: auto;
	}

	.ad-mobile-menu input[type="search"],
	.ad-mobile-menu .ad-search-form button {
		min-height: 48px;
	}

	.ad-primary-menu {
		align-items: stretch;
		display: block;
	}

	.ad-primary-menu li {
		border-block-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ad-primary-menu .ad-submenu-toggle {
		min-height: 44px;
		width: 44px;
	}

	.ad-primary-menu :where(.sub-menu, .children) {
		grid-column: 1 / -1;
		padding-inline-start: 16px;
	}

	.ad-submenu-toggle[aria-expanded="false"] + :where(.sub-menu, .children) {
		display: none;
	}
}

@media (max-width: 768px) {
	.ad-footer-main {
		padding-block: 28px 14px;
	}

	.ad-footer-row {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.ad-footer-row > * {
		grid-column: 1;
		justify-self: center;
	}

	.ad-footer-logo {
		max-width: 100%;
	}

	.ad-footer-logo img {
		margin-inline: auto;
	}

	.ad-footer-links {
		font-size: .94rem;
		text-align: center;
	}

	.ad-footer-menu,
	.ad-footer-social {
		justify-content: center;
	}

	.ad-footer-social {
		gap: 3px;
	}

	.ad-footer-social a {
		justify-content: center;
		min-width: 44px;
	}

	.ad-footer-social span {
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}
}
