/* Action Ads primary navigation — shared across the entire site. */

:root {
	--action-ads-desktop-masthead: 130px;
	--action-ads-desktop-nav: 44px;
	--action-ads-wide-bar-height: 38px;
	--action-ads-desktop-header: 214px;
	--action-ads-mobile-masthead: 126px;
	--action-ads-mobile-header: 167px;
}

.action-ads-header {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	z-index: 1000;
	width: 100%;
	background: var(--paper, #ececec);
	border-bottom: 2px solid var(--ink, #141414);
}

.action-ads-header .action-ads-wide-bar {
	order: 2;
}

.action-ads-header > .container {
	order: 1;
}

.action-ads-header > #mainNav {
	order: 3;
}

body.admin-bar .action-ads-header {
	top: 32px !important;
}

@media (min-width: 783px) {
	body.admin-bar .action-ads-header {
		top: 32px !important;
	}
}

.action-ads-header .masthead-row {
	display: flex;
	align-items: center;
	height: var(--action-ads-desktop-masthead);
	min-height: var(--action-ads-desktop-masthead);
	padding: 6px 0;
}

#primary {
	margin-top: var(--action-ads-desktop-header);
}

.action-ads-header .wordmark,
.action-ads-header .wordmark a {
	display: flex;
	align-items: center;
}

.action-ads-header .wordmark {
	position: relative;
}

.action-ads-header .wordmark a {
	transition: transform .18s ease;
}

.action-ads-header .wordmark::before,
.action-ads-header .wordmark::after {
	position: absolute;
	left: 50%;
	z-index: 1040;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
}

.action-ads-header .wordmark::before {
	content: '';
	top: calc(100% + 5px);
	border-right: 6px solid transparent;
	border-bottom: 6px solid var(--ink, #141414);
	border-left: 6px solid transparent;
	transform: translateX(-50%);
}

.action-ads-header .wordmark::after {
	content: attr(data-tooltip);
	top: calc(100% + 11px);
	padding: 7px 11px;
	color: var(--paper, #ececec);
	background: var(--ink, #141414);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	white-space: nowrap;
	transform: translate(-50%, -5px);
}

@media (hover: hover) and (min-width: 992px) {
	.action-ads-header .wordmark:hover a {
		transform: translateY(-3px) scale(1.04);
	}

	.action-ads-header .wordmark:hover::before,
	.action-ads-header .wordmark:hover::after {
		opacity: 1;
	}

	.action-ads-header .wordmark:hover::after {
		transform: translate(-50%, 0);
	}
}

@media (min-width: 992px) {
	.action-ads-header .wordmark:focus-within a {
		transform: translateY(-3px) scale(1.04);
	}

	.action-ads-header .wordmark:focus-within::before,
	.action-ads-header .wordmark:focus-within::after {
		opacity: 1;
	}

	.action-ads-header .wordmark:focus-within::after {
		transform: translate(-50%, 0);
	}
}

.action-ads-header .wordmark img {
	display: block;
	width: auto;
	height: 90px;
	max-width: min(400px, 70vw);
}

.action-ads-header .hamburger {
	display: none;
}

.action-ads-header .header-actions {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.action-ads-header .icon-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.action-ads-header .header-icon-link {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.action-ads-header .action-ads-cart-count {
	position: absolute;
	top: -7px;
	right: -9px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid var(--paper, #ececec);
	border-radius: 999px;
	background: #c62828;
	color: #fff;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.action-ads-header .action-ads-cart-count.is-empty {
	display: none;
}

.action-ads-header .header-icon-link::after {
	content: attr(data-tooltip);
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	z-index: 1020;
	width: max-content;
	max-width: 180px;
	padding: 8px 11px;
	color: var(--paper, #ececec);
	background: var(--ink, #141414);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -5px);
	transition: opacity .15s ease, transform .15s ease;
}

.action-ads-header .header-icon-link::before {
	content: '';
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	z-index: 1021;
	border-right: 6px solid transparent;
	border-bottom: 6px solid var(--ink, #141414);
	border-left: 6px solid transparent;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity .15s ease;
}

.action-ads-header .header-icon-link:last-child::after {
	right: 0;
	left: auto;
	transform: translateY(-5px);
}

@media (hover: hover) {
	.action-ads-header .header-icon-link:hover::before,
	.action-ads-header .header-icon-link:hover::after {
		opacity: 1;
	}

	.action-ads-header .header-icon-link:hover::after {
		transform: translate(-50%, 0);
	}

	.action-ads-header .header-icon-link:last-child:hover::after {
		transform: translateY(0);
	}
}

.action-ads-header .header-icon-link:focus-visible::before,
.action-ads-header .header-icon-link:focus-visible::after {
	opacity: 1;
}

.action-ads-header .header-icon-link:focus-visible::after {
	transform: translate(-50%, 0);
}

.action-ads-header .header-icon-link:last-child:focus-visible::after {
	transform: translateY(0);
}

.action-ads-header .header-icon-link img,
.action-ads-header .header-icon-link svg {
	display: block;
	width: 38px;
	height: 38px;
}

.action-ads-header .header-icon-link svg path,
.action-ads-header .header-icon-link svg circle {
	fill: var(--ink, #141414);
	stroke: var(--ink, #141414);
	transition: fill .15s ease, stroke .15s ease;
}

.action-ads-header .header-icon-link:hover svg path,
.action-ads-header .header-icon-link:hover svg circle,
.action-ads-header .header-icon-link:focus svg path,
.action-ads-header .header-icon-link:focus svg circle {
	fill: var(--green, #50a38a);
	stroke: var(--green, #50a38a);
}

.action-ads-header .desktop-actions {
	display: none;
	align-items: center;
	gap: 18px;
	width: max-content;
}

@media (min-width: 992px) {
	.action-ads-header {
		border-bottom: 0;
	}

	.action-ads-header .action-ads-wide-bar {
		order: 1;
	}

	.action-ads-header > .container {
		order: 2;
	}

	.action-ads-header .desktop-actions {
		order: 1;
	}

	.action-ads-header .icon-actions {
		order: 2;
	}

	.action-ads-header #mainNav {
		background: var(--paper, #ececec);
		border-top: 1px solid var(--ink, #141414);
		border-bottom: 1px solid var(--ink, #141414);
	}

	.action-ads-header #mainNav > .container {
		width: 100%;
		max-width: none;
		padding-right: 0;
		padding-left: 0;
	}

	.action-ads-header #mainNav .nav-item > a {
		color: var(--ink, #141414);
		background: var(--paper, #ececec);
	}

	.action-ads-header #mainNav .nav-item:hover > a,
	.action-ads-header #mainNav .nav-item:focus-within > a,
	.action-ads-header #mainNav .nav-item.open > a {
		color: #fff;
		background: var(--red, #c1272d);
	}
}

/* .header-button / -primary / -outline colors now live once in style.css. */

#mainNav .show-mobile {
	display: none;
}

#mainNav {
	display: block;
	width: 100%;
	border-top: 1px solid var(--ink, #141414);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

#mainNav > .container {
	padding-right: 15px;
	padding-left: 15px;
}

#mainNav .action-ads-menu {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

#mainNav .nav-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	border-left: 1px solid var(--grey-line, #d8d3c7);
}

#mainNav .nav-item:last-child {
	border-right: 1px solid var(--grey-line, #d8d3c7);
}

#mainNav .nav-item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--action-ads-desktop-nav);
	height: var(--action-ads-desktop-nav);
	padding: 10px 20px;
	color: var(--ink, #141414);
	text-align: center;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

#mainNav .nav-item:hover > a,
#mainNav .nav-item:focus-within > a,
#mainNav .nav-item.open > a {
	color: var(--paper, #ececec);
	background: var(--ink, #141414);
}

#mainNav .menu-item-has-children > a::after {
	content: '▾';
	margin-left: 7px;
	font-size: 10px;
	line-height: 1;
}

#mainNav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1010;
	width: max-content;
	min-width: 100%;
	max-width: 280px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #3a3a3a;
	border: 1px solid var(--ink, #141414);
}

#mainNav .nav-item:hover > .sub-menu,
#mainNav .nav-item:focus-within > .sub-menu,
#mainNav .nav-item.open > .sub-menu {
	display: block;
}

#mainNav .sub-menu li {
	margin: 0;
}

#mainNav .sub-menu a {
	display: block;
	padding: 14px 18px 14px 30px;
	color: var(--paper, #ececec);
	border-bottom: 1px solid #4d4d4d;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
}

#mainNav .sub-menu li:last-child > a {
	border-bottom: 0;
}

#mainNav .sub-menu a:hover,
#mainNav .sub-menu a:focus {
	color: #fff;
	background: var(--ink, #141414);
}

.action-ads-wide-bar {
	width: 100%;
	height: var(--action-ads-wide-bar-height);
	padding-left: max(15px, calc((100vw - 1140px) / 2 + 15px));
	overflow: hidden;
	color: var(--paper, #ececec);
	background: var(--ink, #141414);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 2.8vw;
	font-weight: 600;
	line-height: var(--action-ads-wide-bar-height);
	letter-spacing: .04em;
	text-transform: none;
	white-space: nowrap;
	transition: height .25s ease, opacity .2s ease, visibility .2s ease;
}

.action-ads-header.ticker-hidden .action-ads-wide-bar {
	height: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (min-width: 600px) {
	.action-ads-wide-bar {
		font-size: 15px;
	}
}

@media (min-width: 768px) {
	.action-ads-wide-bar {
		font-size: 14px;
	}
}

@media (min-width: 992px) {
	.action-ads-wide-bar {
		font-size: 13px;
	}
}

.action-ads-ticker-track {
	display: flex;
	width: max-content;
	animation-name: action-ads-ticker-loop;
	animation-duration: 18s;
	animation-timing-function: linear;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

.action-ads-ticker-set {
	display: flex;
	flex: none;
	align-items: center;
	min-width: 100vw;
}

.action-ads-ticker-set span {
	display: inline-flex;
	align-items: center;
	margin-right: 44px;
}

.action-ads-ticker-set .ticker-mobile-only {
	display: none;
}

.action-ads-ticker-set span::before {
	content: '★';
	margin-right: 10px;
	color: var(--gold, #e7b95d);
}

@keyframes action-ads-ticker-loop {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.action-ads-wide-bar {
		transition: none;
	}

	.action-ads-ticker-track {
		animation: none;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	.action-ads-wide-bar {
		padding-left: calc((100vw - 960px) / 2 + 15px);
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.action-ads-wide-bar {
		padding-left: calc((100vw - 720px) / 2 + 83px);
	}
}

@media (max-width: 991px) {
	.action-ads-header .action-ads-wide-bar {
		padding-left: 0;
		letter-spacing: .025em;
		text-transform: none;
	}

	.action-ads-ticker-set {
		justify-content: center;
	}

	.action-ads-ticker-set span {
		margin-right: 28px;
	}

	.action-ads-ticker-set .ticker-desktop-only {
		display: none;
	}

	.action-ads-ticker-set .ticker-mobile-only {
		display: inline-flex;
	}

	.action-ads-ticker-track.ticker-stopped .ticker-mobile-only:nth-last-child(2) {
		margin-right: 0;
	}

	.action-ads-ticker-set span::before {
		margin-right: 7px;
	}

	.action-ads-ticker-track.ticker-stopped .action-ads-ticker-set span:last-child {
		display: none;
	}

	.action-ads-header .masthead-row {
		position: relative;
		justify-content: center;
		height: var(--action-ads-mobile-masthead);
		min-height: var(--action-ads-mobile-masthead);
		padding: 18px 0;
	}

	#primary {
		margin-top: var(--action-ads-mobile-header);
	}

	.action-ads-header .hamburger {
		display: flex;
		position: absolute;
		left: 0;
		top: 50%;
		z-index: 2;
		width: 48px;
		height: 48px;
		gap: 7px;
		transform: translateY(-50%);
	}

	.action-ads-header .hamburger span {
		width: 28px;
		height: 2px;
	}

	.action-ads-header .hamburger.active span:nth-child(1) {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.action-ads-header .hamburger.active span:nth-child(3) {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.action-ads-header .hamburger:focus,
	.action-ads-header .hamburger:active {
		outline: 0;
		background: transparent;
		box-shadow: none;
	}

	.action-ads-header .hamburger:focus-visible span {
		background: var(--green, #50a38a);
	}

	.action-ads-header .wordmark img {
		height: 90px;
		max-width: 64vw;
	}

	.action-ads-header .wordmark {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.action-ads-header .header-actions {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
	}

	.action-ads-header .icon-actions {
		gap: 12px;
	}

	.action-ads-header .header-icon-link {
		width: 34px;
		height: 38px;
	}

	.action-ads-header .header-icon-link img,
	.action-ads-header .header-icon-link svg {
		width: 32px;
		height: 32px;
	}

	#mainNav {
		display: none;
		position: absolute;
		top: var(--action-ads-mobile-masthead);
		left: 0;
		z-index: 1030;
		max-height: calc(100vh - var(--action-ads-mobile-masthead));
		overflow-y: auto;
		background: var(--ink, #141414);
	}

	#mainNav.mobile-open {
		display: block;
		border-bottom: 0;
	}

	#mainNav .action-ads-menu {
		display: block;
		width: 100%;
		max-width: none;
		padding: 20px 0;
	}

	#mainNav .nav-item,
	#mainNav .nav-item:last-child {
		width: 100%;
		border-right: 0;
		border-left: 0;
		border-bottom: 1px solid #3a3a3a;
	}

	#mainNav .nav-item:last-child,
	#mainNav .nav-item:last-child > a {
		border-bottom: 0 !important;
	}

	#mainNav .nav-item > a {
		justify-content: space-between;
		min-height: 52px;
		padding: 14px 40px;
		color: var(--paper, #ececec);
		background: var(--ink, #141414);
		font-size: 20px;
		text-align: left;
	}

	#mainNav .nav-item:hover > a,
	#mainNav .nav-item:focus-within > a,
	#mainNav .nav-item.open > a {
		color: var(--paper, #ececec);
		background: var(--ink, #141414);
	}

	#mainNav .menu-item-has-children > a::after {
		content: '+';
		margin-left: auto;
		font-size: 21px;
		transition: transform .2s ease;
	}

	#mainNav .menu-item-has-children.open > a::after {
		transform: rotate(45deg);
	}

	#mainNav .nav-item:hover > .sub-menu,
	#mainNav .nav-item:focus-within > .sub-menu {
		display: none;
	}

	#mainNav .nav-item.open > .sub-menu {
		display: block;
	}

	#mainNav .sub-menu {
		position: static;
		width: 100%;
		max-width: none;
		background: var(--ink, #141414);
		border: 0;
		border-top: 1px solid #4d4d4d;
	}

	#mainNav .sub-menu a {
		padding: 14px 56px;
		background: var(--ink, #141414);
		white-space: normal;
	}

	#mainNav .sub-menu a:hover,
	#mainNav .sub-menu a:focus {
		color: var(--paper, #ececec);
		background: var(--ink, #141414);
	}
}

@media (min-width: 768px) {
	#mainNav .nav-item:has(+ .show-mobile),
	#mainNav .nav-item:has(+ .show-mobile) > a {
		border-bottom: 0 !important;
	}
}

@media (min-width: 768px) {
	.action-ads-header .desktop-actions {
		display: flex;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	:root {
		--action-ads-mobile-masthead: 126px;
		--action-ads-mobile-header: 167px;
	}

	.action-ads-header .wordmark,
	.action-ads-header .hamburger {
		top: 50%;
	}

	.action-ads-header .wordmark {
		left: 68px;
		transform: translateY(-50%);
	}

	.action-ads-header .header-actions {
		inset: 0;
		transform: none;
		pointer-events: none;
	}

	.action-ads-header .icon-actions {
		position: absolute;
		top: calc(50% - 14px);
		right: 0;
		gap: 8px;
		pointer-events: auto;
	}

	.action-ads-header .header-icon-link {
		width: 28px;
		height: 28px;
		color: var(--ink, #141414);
	}

	.action-ads-header .header-icon-link img,
	.action-ads-header .header-icon-link svg {
		width: 26px;
		height: 26px;
	}

	.action-ads-header .desktop-actions {
		display: grid;
		position: absolute;
		top: 50%;
		right: 76px;
		bottom: auto;
		left: auto;
		grid-template-columns: repeat(2, 150px);
		gap: 10px;
		width: 310px;
		transform: translateY(-50%);
		pointer-events: auto;
	}

	.action-ads-header .header-button {
		box-sizing: border-box;
		width: 150px;
		min-height: 48px;
		padding: 12px 10px;
		font-size: 14px;
		white-space: nowrap !important;
	}
}

@media (max-width: 767px) {
	.action-ads-header .wordmark {
		left: calc(50% - 10px);
	}

	#mainNav .show-mobile {
		display: block;
	}
}

@media (max-width: 782px) {
	body.admin-bar .action-ads-header {
		top: 46px !important;
	}
}

@media (max-width: 420px) {
	:root {
		--action-ads-mobile-masthead: 110px;
		--action-ads-mobile-header: 151px;
	}

	.action-ads-header .masthead-row {
		height: var(--action-ads-mobile-masthead);
		min-height: var(--action-ads-mobile-masthead);
	}

	.action-ads-header .wordmark img {
		height: 74px;
		max-width: 52vw;
	}

	.action-ads-header .icon-actions {
		gap: 6px;
	}

	.action-ads-header .header-icon-link {
		width: 29px;
	}

	.action-ads-header .header-icon-link img,
	.action-ads-header .header-icon-link svg {
		width: 27px;
		height: 27px;
	}

}

@media (max-width: 340px) {
	:root {
		--action-ads-mobile-masthead: 96px;
		--action-ads-mobile-header: 137px;
	}

	.action-ads-header .masthead-row {
		height: var(--action-ads-mobile-masthead);
		min-height: var(--action-ads-mobile-masthead);
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.action-ads-header .wordmark img {
		height: 68px;
		max-width: 50vw;
	}
}
