.cn-masthead {
	--cn-mh-bg: #ffffff;
	--cn-mh-bg2: #f7f7f5;
	--cn-mh-ink: #111111;
	--cn-mh-ink3: #888888;
	--cn-mh-rule: #e0e0e0;
	--cn-mh-rule2: #cccccc;
	--cn-mh-brand: #a700fd;
	--cn-mh-serif: "Playfair Display", Georgia, serif;
	--cn-mh-mono: "DM Mono", "Courier New", monospace;
	--cn-mh-outer: 40px;
	--cn-mh-max-w: 1400px;
}

.cn-masthead.masthead {
	border-bottom: 1px solid var(--cn-mh-rule);
	background: var(--cn-mh-bg);
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.cn-masthead .mast-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 18px var(--cn-mh-outer) 14px;
	max-width: var(--cn-mh-max-w);
	margin: 0 auto;
}

.cn-masthead .mast-date {
	font-family: var(--cn-mh-mono);
	font-size: 10px;
	color: var(--cn-mh-ink3);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cn-masthead .mast-date__short {
	display: none;
}

.cn-masthead .mast-center {
	text-align: center;
}

.cn-masthead .site-logo {
	line-height: 0;
}

.cn-masthead .site-logo a {
	display: inline-block;
	text-decoration: none;
}

.cn-masthead .site-logo img {
	display: block;
	width: 173px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.cn-masthead .site-name {
	font-family: var(--cn-mh-serif);
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1;
}

.cn-masthead .site-name a {
	color: inherit;
	text-decoration: none;
}

.cn-masthead .site-name a:hover {
	text-decoration: none;
}

.cn-masthead .site-tagline {
	font-family: var(--cn-mh-mono);
	font-size: 9px;
	color: var(--cn-mh-ink3);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 4px;
}

.cn-masthead .mast-right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
}

.cn-masthead .mast-search {
	font-family: var(--cn-mh-mono);
	font-size: 11px;
	color: var(--cn-mh-ink3);
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

.cn-masthead .mast-search:hover {
	color: var(--cn-mh-ink);
}

.cn-masthead .mast-sub {
	font-family: var(--cn-mh-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--cn-mh-brand);
	color: #fff;
	padding: 6px 14px;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
}

.cn-masthead .mast-sub:hover {
	background: #8c00d4;
	text-decoration: none;
	color: #fff;
}

.cn-masthead .mast-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.cn-masthead .mast-menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--cn-mh-ink);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.cn-masthead.is-menu-open .mast-menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.cn-masthead.is-menu-open .mast-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.cn-masthead.is-menu-open .mast-menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.cn-masthead .nav-shell__backdrop {
	display: none;
}

html.cn-masthead-menu-open,
html.cn-masthead-menu-open body {
	overflow: hidden;
}

html.cn-masthead-menu-open body {
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

.cn-masthead .nav-shell {
	border-top: 1px solid var(--cn-mh-rule);
	position: relative;
	z-index: 100;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.cn-masthead .nav-drawer {
	width: 100%;
}

.cn-masthead .nav-bar {
	display: flex;
	justify-content: center;
	max-width: var(--cn-mh-max-w);
	margin: 0 auto;
	padding: 0 var(--cn-mh-outer);
	width: 100%;
}

.cn-masthead .nav-item {
	position: relative;
	display: flex;
	align-items: center;
}

.cn-masthead .nav-link {
	font-family: var(--cn-mh-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--cn-mh-ink);
	padding: 11px 20px;
	border-right: 1px solid var(--cn-mh-rule);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	transition: color 0.12s;
	text-decoration: none;
}

.cn-masthead .nav-item:first-child .nav-link,
.cn-masthead .nav-bar > .nav-item:first-child .nav-link {
	border-left: 1px solid var(--cn-mh-rule);
}

.cn-masthead .nav-link:hover {
	color: var(--cn-mh-ink);
	text-decoration: none;
}

.cn-masthead .nav-link .chev {
	font-size: 9px;
	color: var(--cn-mh-ink3);
	transition: transform 0.2s;
	line-height: 1;
}

.cn-masthead .nav-item:hover .chev {
	transform: rotate(180deg);
}

.cn-masthead .nav-item.active .nav-link {
	border-bottom: 2px solid var(--cn-mh-brand);
}

.cn-masthead .dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 620px;
	background: var(--cn-mh-bg);
	border: 1px solid var(--cn-mh-rule);
	border-top: 2px solid var(--cn-mh-brand);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	z-index: 300;
	padding-top: 4px;
	margin-top: 1px;
}

/* Invisible bridge so hover stays active moving from nav link into dropdown. */
.cn-masthead .dropdown::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 0;
	right: 0;
	height: 6px;
}

.cn-masthead .nav-item:hover .dropdown,
.cn-masthead .nav-item:focus-within .dropdown {
	display: flex;
}

.cn-masthead .dropdown-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
}

.cn-masthead .dd-cats {
	padding: 20px 0;
	border-right: 1px solid var(--cn-mh-rule);
}

.cn-masthead .dd-cats-label {
	font-family: var(--cn-mh-mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cn-mh-ink3);
	padding: 0 20px 10px;
	border-bottom: 1px solid var(--cn-mh-rule);
	margin-bottom: 4px;
}

.cn-masthead .dd-cat-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 20px;
	font-family: var(--cn-mh-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cn-mh-ink);
	transition: background 0.1s, color 0.1s;
	text-decoration: none;
}

.cn-masthead .dd-cat-link:hover {
	background: var(--cn-mh-bg2);
	color: var(--cn-mh-brand);
	text-decoration: none;
}

.cn-masthead .dd-cat-link .arr {
	color: var(--cn-mh-rule2);
	font-size: 12px;
	transition: color 0.1s;
}

.cn-masthead .dd-cat-link:hover .arr {
	color: var(--cn-mh-brand);
}

.cn-masthead .dd-most-read {
	padding: 20px;
	background: var(--cn-mh-bg2);
}

.cn-masthead .dd-mr-label {
	font-family: var(--cn-mh-mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cn-mh-ink3);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--cn-mh-rule);
	margin-bottom: 12px;
}

.cn-masthead .dd-mr-item {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 8px;
	align-items: start;
	padding: 7px 0;
	border-bottom: 1px solid var(--cn-mh-rule);
}

.cn-masthead .dd-mr-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.cn-masthead .dd-mr-item:hover .dd-mr-hed {
	color: var(--cn-mh-brand);
}

.cn-masthead .dd-mr-num {
	font-family: var(--cn-mh-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--cn-mh-rule2);
	line-height: 1.1;
}

.cn-masthead .dd-mr-hed {
	font-family: var(--cn-mh-serif);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cn-mh-ink);
	transition: color 0.12s;
	text-decoration: none;
}

.cn-masthead .dd-mr-hed:hover {
	text-decoration: none;
}

.cn-masthead .cn-masthead-search-panel {
	display: none;
	padding: 0 var(--cn-mh-outer) 12px;
	max-width: var(--cn-mh-max-w);
	margin: 0 auto;
}

.cn-masthead .cn-masthead-search-panel.is-open {
	display: block;
}

.cn-masthead .cn-masthead-search-panel form {
	display: flex;
	gap: 8px;
}

.cn-masthead .cn-masthead-search-panel input[type="search"] {
	flex: 1;
	font-family: var(--cn-mh-mono);
	font-size: 12px;
	padding: 8px 10px;
	border: 1px solid var(--cn-mh-rule);
}

.cn-masthead .cn-masthead-search-panel button {
	font-family: var(--cn-mh-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: var(--cn-mh-brand);
	color: #fff;
	border: 0;
	padding: 8px 14px;
	cursor: pointer;
}

@media (min-width: 901px) and (max-width: 1320px) {
	.cn-masthead {
		--cn-mh-outer: 16px;
	}

	.cn-masthead .nav-shell {
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.cn-masthead .nav-shell::-webkit-scrollbar {
		display: none;
	}

	.cn-masthead .nav-bar {
		justify-content: flex-start;
		width: max-content;
		min-width: 100%;
		max-width: none;
	}

	.cn-masthead .nav-link {
		font-size: 10px;
		padding: 11px 14px;
	}
}

@media (max-width: 1100px) {
	.cn-masthead {
		--cn-mh-outer: 24px;
	}
}

@media (min-width: 901px) {
	.cn-masthead .nav-shell {
		overflow: visible;
		z-index: 200;
	}

	.cn-masthead .nav-link {
		font-size: 12px;
		font-weight: 600;
		padding: 12px 20px;
		border-bottom-width: 3px;
	}

	.cn-masthead .nav-link .chev {
		font-size: 10px;
	}

	.cn-masthead .nav-item.active .nav-link {
		border-bottom: 3px solid var(--cn-mh-brand);
	}

	.cn-masthead .nav-bar > .nav-item:first-child .nav-link {
		border-left: 1px solid var(--cn-mh-rule);
	}

	.cn-masthead .nav-item:hover .dropdown,
	.cn-masthead .nav-item:focus-within .dropdown {
		display: flex;
	}
}

.elementor-location-header .elementor-sticky--active:has(.cn-masthead),
.elementor-location-header .e-con.e-parent:has(.cn-masthead) {
	overflow: visible !important;
}

.elementor-location-header:has(.cn-masthead.is-menu-open) {
	z-index: 100002 !important;
}

.elementor-sticky--active .cn-masthead.is-menu-open .mast-top,
.elementor-sticky--active:has(.cn-masthead.is-menu-open) {
	z-index: 100010 !important;
}

/* Tablet / mobile masthead + hamburger drawer */
@media (max-width: 900px) {
	.cn-masthead {
		--cn-mh-outer: 16px;
		--cn-mh-mobile-head: 60px;
	}

	.cn-masthead.masthead {
		border-bottom: 2px solid var(--cn-mh-brand);
	}

	.cn-masthead .mast-top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 14px var(--cn-mh-outer);
		max-width: none;
	}

	.cn-masthead .mast-date {
		display: none;
	}

	.cn-masthead .mast-center {
		flex: 1;
		min-width: 0;
		text-align: left;
	}

	.cn-masthead .site-logo img {
		width: auto;
		max-width: min(52vw, 200px);
		max-height: 36px;
		height: auto;
		margin: 0;
		object-fit: contain;
		object-position: left center;
	}

	.cn-masthead .site-tagline {
		display: none;
	}

	.cn-masthead .mast-right {
		flex-shrink: 0;
		justify-content: flex-end;
		align-items: center;
		gap: 10px;
		position: relative;
		z-index: 100004;
	}

	.cn-masthead .mast-search {
		display: none;
	}

	.cn-masthead .mast-menu-toggle {
		display: flex;
		position: relative;
		z-index: 100004;
	}

	.cn-masthead .mast-sub {
		font-size: 9px;
		padding: 7px 12px;
		white-space: nowrap;
		border-radius: 4px;
	}

	.cn-masthead .cn-masthead-search-panel {
		display: none !important;
	}

	.cn-masthead.is-menu-open {
		position: relative;
		z-index: 100001;
	}

	.cn-masthead.is-menu-open .mast-top {
		position: relative;
		z-index: 100005;
		background: var(--cn-mh-bg);
		isolation: isolate;
	}

	.cn-masthead .nav-shell {
		position: fixed;
		top: var(--cn-mh-mobile-head, 60px);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100001;
		border-top: 0;
		overflow: hidden;
		pointer-events: none;
		visibility: hidden;
	}

	.cn-masthead.is-menu-open .nav-shell {
		visibility: visible;
	}

	.cn-masthead .nav-shell__backdrop {
		position: absolute;
		inset: 0;
		z-index: 1;
		display: block;
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
		border: 0;
		background: rgba(17, 17, 17, 0.45);
		opacity: 0;
		transition: opacity 0.25s ease;
		cursor: pointer;
		pointer-events: none;
	}

	.cn-masthead.is-menu-open .nav-shell__backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.cn-masthead .nav-drawer {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 2;
		width: min(340px, 92vw);
		max-width: none;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		background: var(--cn-mh-bg);
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
		transform: translateX(100%);
		transition: transform 0.28s ease;
		pointer-events: none;
	}

	.cn-masthead.is-menu-open .nav-drawer {
		transform: translateX(0);
		pointer-events: auto;
	}

	.cn-masthead .nav-bar {
		position: static;
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		align-items: stretch;
		justify-content: flex-start;
		background: transparent;
		box-shadow: none;
		transform: none;
	}

	.cn-masthead .nav-item {
		flex: 0 0 auto;
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--cn-mh-rule);
	}

	.cn-masthead .nav-item:first-child .nav-link,
	.cn-masthead .nav-bar > .nav-item:first-child .nav-link {
		border-left: 0;
	}

	.cn-masthead .nav-item:first-child .nav-link,
	.cn-masthead .nav-item:last-child .nav-link {
		margin-left: 0;
		margin-right: 0;
	}

	.cn-masthead .nav-link {
		width: 100%;
		font-size: 11px;
		padding: 14px 16px;
		letter-spacing: 0.06em;
		border-right: 0;
		border-left: 0;
		border-bottom: 0;
		justify-content: space-between;
	}

	.cn-masthead .nav-item.active .nav-link {
		border-bottom: 0;
		color: var(--cn-mh-brand);
	}

	.cn-masthead .nav-item:hover .dropdown {
		display: none;
	}

	.cn-masthead .nav-item.is-open .dropdown {
		display: flex;
	}

	.cn-masthead .nav-item.is-open .nav-link .chev {
		transform: rotate(180deg);
	}

	.cn-masthead .dropdown::before {
		display: none;
	}

	.cn-masthead .dropdown {
		position: static;
		left: auto;
		right: auto;
		top: auto;
		width: 100%;
		max-width: none;
		max-height: none;
		transform: none;
		border: 0;
		border-top: 1px solid var(--cn-mh-rule);
		box-shadow: none;
		overflow: visible;
	}

	.cn-masthead .dropdown-inner {
		grid-template-columns: 1fr;
	}

	.cn-masthead .dd-cats {
		border-right: 0;
		border-bottom: 1px solid var(--cn-mh-rule);
		padding: 4px 0 10px;
	}

	.cn-masthead .dd-cats-label {
		display: none;
	}

	.cn-masthead .dd-cat-link {
		font-size: 10px;
		padding: 10px 16px;
	}

	.cn-masthead .dd-most-read {
		padding: 16px;
	}

	.cn-masthead .dd-mr-hed {
		font-size: 13px;
	}
}

@media (max-width: 600px) {
	.cn-masthead {
		--cn-mh-outer: 14px;
		--cn-mh-mobile-head: 54px;
	}

	.cn-masthead .mast-top {
		padding: 12px var(--cn-mh-outer);
	}

	.cn-masthead .site-logo img {
		max-height: 32px;
	}

	.cn-masthead .mast-sub {
		font-size: 8px;
		padding: 6px 10px;
	}

	.cn-masthead .mast-menu-toggle {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 380px) {
	.cn-masthead .mast-right {
		gap: 8px;
	}

	.cn-masthead .mast-sub {
		font-size: 8px;
		padding: 6px 9px;
	}
}

/* Elementor Theme Builder header — flush shortcode widget (no extra padding). */
.elementor-location-header .elementor-widget-shortcode:has(.cn-masthead) > .elementor-widget-container,
.elementor-location-header .elementor-widget-shortcode:has(.cn-masthead) {
	padding: 0 !important;
	margin: 0 !important;
}

.elementor-location-header .elementor-element:has(.cn-masthead) {
	--padding-top: 0 !important;
	--padding-bottom: 0 !important;
	--padding-left: 0 !important;
	--padding-right: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	overflow: visible !important;
}

.elementor-location-header .e-con:has(.cn-masthead),
.elementor-location-header .elementor-widget-shortcode:has(.cn-masthead) {
	max-width: 100% !important;
	width: 100% !important;
	overflow: visible !important;
}
