/* Header editorial — ecomNinja */
:root {
	--en-ink: #171817;
	--en-cream: #f7f3e8;
	--en-cream-deep: #eee7d7;
	--en-amber: #d8932e;
	--en-dark: #121310;
}

.container {
	width: 100% !important;
	max-width: 1600px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 24px !important;
	padding-left: 24px !important;
}

#site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 243, 232, 0.94);
	border-bottom: 1px solid rgba(23, 24, 23, 0.12);
	backdrop-filter: blur(18px) saturate(135%);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
}

.header-inner {
	display: flex;
	align-items: center;
	height: 72px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
	gap: 24px;
}

.header-logo {
	flex: 0 0 auto;
	margin-right: 12px;
}

.header-wordmark,
.mob-wordmark {
	display: inline-flex;
	align-items: baseline;
	color: var(--en-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.055em;
	line-height: 1;
	text-decoration: none;
}

.header-wordmark__accent,
.mob-wordmark__accent {
	color: var(--en-amber);
}

.en-footer-wordmark {
	display: inline-flex;
	align-items: baseline;
	margin-bottom: 20px;
	color: var(--en-ink);
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.055em;
	line-height: 1;
	text-decoration: none;
}

.en-footer-wordmark:hover,
.en-footer-wordmark:focus-visible {
	color: var(--en-ink);
}

.en-footer-wordmark__accent {
	color: var(--en-amber);
}

.mn-nav {
	display: flex;
	align-items: center;
}

.mn-root {
	display: flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mn-item {
	position: relative;
}

.mn-has-mega {
	position: static;
}

.mn-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(23, 24, 23, 0.68);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease, background-color 160ms ease;
}

.mn-link:hover,
.mn-link:focus-visible,
.mn-item.mn-open > .mn-link {
	background: rgba(216, 147, 46, 0.12);
	color: var(--en-ink);
	outline: none;
}

.mn-active {
	background: rgba(216, 147, 46, 0.16);
	color: var(--en-ink);
}

.mn-arrow {
	width: 11px;
	height: 11px;
	opacity: 0.52;
	transition: transform 180ms ease;
}

.mn-item.mn-open .mn-arrow {
	transform: rotate(180deg);
}

.mn-drop {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 210;
	min-width: 230px;
	padding: 8px;
	border: 1px solid rgba(23, 24, 23, 0.12);
	border-radius: 14px;
	background: #fffdf7;
	box-shadow: 0 22px 55px rgba(35, 31, 20, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.mn-has-drop.mn-open .mn-drop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mn-drop-link {
	display: block;
	padding: 9px 11px;
	border-radius: 8px;
	color: rgba(23, 24, 23, 0.72);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.mn-drop-link:hover,
.mn-drop-link:focus-visible {
	background: var(--en-cream);
	color: var(--en-ink);
	outline: none;
}

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

.header-search-button,
.header-menu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(23, 24, 23, 0.14);
	border-radius: 999px;
	background: transparent;
	color: var(--en-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.header-search-button:hover,
.header-search-button:focus-visible,
.header-menu-button:hover,
.header-menu-button:focus-visible {
	border-color: rgba(23, 24, 23, 0.28);
	background: rgba(255, 255, 255, 0.5);
	outline: none;
}

.header-search-button svg,
.header-menu-button svg {
	width: 16px;
	height: 16px;
}

.header-directory-cta {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--en-ink);
	color: #fffdf7;
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.header-directory-cta:hover,
.header-directory-cta:focus-visible {
	background: #343630;
	transform: translateY(-1px);
	outline: none;
}

#hdr-search {
	display: grid;
	grid-template-rows: 0fr;
	border-top: 0 solid rgba(23, 24, 23, 0.1);
	transition: grid-template-rows 200ms ease, border-width 200ms ease;
}

#hdr-search.open {
	grid-template-rows: 1fr;
	border-top-width: 1px;
}

.hdr-search-clip {
	overflow: hidden;
}

.hdr-search-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 11px 24px;
}

.hdr-search-inner svg {
	width: 17px;
	height: 17px;
	color: rgba(23, 24, 23, 0.46);
}

.hdr-search-inner input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--en-ink);
	font-size: 14px;
	outline: none;
}

.hdr-search-inner input::placeholder {
	color: rgba(23, 24, 23, 0.46);
}

.hdr-search-close {
	padding: 5px 8px;
	border: 1px solid rgba(23, 24, 23, 0.14);
	border-radius: 6px;
	background: transparent;
	color: rgba(23, 24, 23, 0.58);
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
}

/* Mega menu: dark editorial layer on a light shell. */
.mn-mega {
	position: fixed;
	top: 72px;
	left: 0;
	right: 0;
	z-index: 300;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: #121310;
	box-shadow: 0 30px 70px rgba(16, 15, 11, 0.36);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity 210ms ease, transform 210ms ease, visibility 210ms;
}

.mn-mega::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 4%, var(--en-amber) 28%, rgba(216, 147, 46, 0.18) 72%, transparent 96%);
}

.mn-has-mega.mn-open .mn-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mn-mega-inner {
	max-width: 1480px;
	margin: 0 auto;
	padding: 34px 48px 30px;
}

.mn-mega-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(270px, 0.9fr);
	gap: 42px;
}

.mn-col-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: #df9d3c;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.mn-col-head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.09);
}

.mn-col-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mn-col-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 7px;
	border-radius: 7px;
	color: rgba(255, 255, 255, 0.67);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color 140ms ease, background-color 140ms ease, padding-left 140ms ease;
}

.mn-col-link::after {
	content: "→";
	color: var(--en-amber);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 140ms ease, transform 140ms ease;
}

.mn-col-link:hover,
.mn-col-link:focus-visible {
	padding-left: 11px;
	background: rgba(255, 255, 255, 0.055);
	color: #fff;
	outline: none;
}

.mn-col-link:hover::after,
.mn-col-link:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

.mn-editorial {
	padding-left: 30px;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mn-editorial-kicker {
	margin: 0 0 10px;
	color: #df9d3c;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.mn-editorial-title {
	max-width: 280px;
	margin: 0 0 9px;
	color: #fffdf7;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.18;
}

.mn-editorial-copy {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	line-height: 1.6;
}

.mn-tool-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 6px 7px 6px 13px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
}

.mn-tool-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 12px;
	outline: none;
}

.mn-tool-search input::placeholder {
	color: rgba(255, 255, 255, 0.38);
}

.mn-tool-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	border: 0;
	border-radius: 50%;
	background: var(--en-amber);
	color: var(--en-dark);
	cursor: pointer;
}

.mn-tool-search svg {
	width: 14px;
	height: 14px;
}

.mn-editorial-link,
.mn-all-tools {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #f0b35b;
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.mn-editorial-link:hover,
.mn-editorial-link:focus-visible,
.mn-all-tools:hover,
.mn-all-tools:focus-visible {
	color: #ffd08a;
	outline: none;
}

.mn-mega-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	padding-top: 19px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.mn-mega-note {
	color: rgba(255, 255, 255, 0.36);
	font-size: 11px;
}

/* Mobile drawer */
#mob-toggle,
#mob-overlay,
#mob-drawer {
	display: none;
}

#mob-overlay {
	position: fixed;
	inset: 0;
	z-index: 398;
	background: rgba(16, 16, 14, 0.5);
	backdrop-filter: blur(4px);
}

#mob-overlay.open {
	display: block;
}

#mob-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 399;
	width: 340px;
	max-width: 92vw;
	flex-direction: column;
	background: var(--en-dark);
	color: #fff;
	transform: translateX(100%);
	transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

#mob-drawer.open {
	transform: translateX(0);
}

.mob-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.mob-wordmark {
	color: #fffdf7;
	font-size: 22px;
}

.mob-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.mob-close svg {
	width: 16px;
	height: 16px;
}

.mob-search-wrap {
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mob-search-inner {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
}

.mob-search-inner svg {
	width: 15px;
	height: 15px;
	color: rgba(255, 255, 255, 0.46);
}

.mob-search-inner input {
	min-width: 0;
	flex: 1;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 13px;
	outline: none;
}

.mob-nav-wrap {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px 24px;
}

.mob-link,
.mob-group-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.mob-link:hover,
.mob-group-btn:hover,
.mob-group-btn[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.mob-chevron {
	width: 12px;
	height: 12px;
	transition: transform 180ms ease;
}

.mob-group-btn[aria-expanded="true"] .mob-chevron {
	transform: rotate(180deg);
}

.mob-group-panel {
	margin: 2px 0 8px 12px;
	padding: 4px 0 6px 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mob-group-panel[hidden] {
	display: none;
}

.mob-sub-head {
	margin: 12px 10px 5px;
	color: #d99a3b;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mob-sub-link {
	display: block;
	padding: 8px 10px;
	border-radius: 7px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 13px;
	text-decoration: none;
}

.mob-sub-link:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.mob-sub-all {
	color: #edac4a;
	font-weight: 650;
}

.mob-directory-cta {
	display: block;
	margin: 10px 0 0;
	padding: 12px;
	border-radius: 999px;
	background: var(--en-amber);
	color: var(--en-dark);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

@media (min-width: 768px) {
	.container,
	.header-inner,
	.hdr-search-inner {
		padding-right: 32px !important;
		padding-left: 32px !important;
	}
}

@media (min-width: 1280px) {
	.container,
	.header-inner,
	.hdr-search-inner {
		padding-right: 48px !important;
		padding-left: 48px !important;
	}
}

@media (max-width: 1180px) {
	.header-inner {
		gap: 10px;
	}

	.header-logo {
		margin-right: 4px;
	}

	.mn-link {
		padding: 0 9px;
		font-size: 12px;
	}

	.header-directory-cta {
		padding: 0 13px;
	}

	.header-search-label {
		display: none;
	}

	.header-search-button {
		width: 40px;
		padding: 0;
	}
}

@media (max-width: 1023px) {
	.mn-nav,
	.header-directory-cta {
		display: none;
	}

	.header-inner {
		height: 64px;
	}

	.header-logo {
		margin-right: 0;
	}

	.header-search-button {
		display: none;
	}

	#mob-toggle {
		display: inline-flex;
	}

	#mob-drawer {
		display: flex;
	}
}

@media (max-width: 520px) {
	.header-inner {
		padding-right: 18px;
		padding-left: 18px;
	}

	.header-wordmark {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mn-mega,
	.mn-drop,
	#mob-drawer,
	.mn-arrow,
	.mob-chevron {
		transition-duration: 0.01ms !important;
	}
}
