:root {
	--eml-header-paper: #faf7f1;
	--eml-header-surface: #ffffff;
	--eml-header-ink: #151515;
	--eml-header-muted: #6a6258;
	--eml-header-rule: #d8d1c6;
	--eml-header-accent: #9f1d1d;
	--eml-header-shadow: 0 8px 24px rgba(22, 19, 14, 0.06);
	--today-news-dark-bg: #111111;
	--today-news-white: #ffffff;
	--today-news-accent: #9f1d1d;
	--today-news-white-transparent2: rgba(255, 255, 255, 0.2);
}

.td-header-template-wrap {
	box-shadow: var(--eml-header-shadow);
	margin-bottom: 28px;
	background: var(--eml-header-surface);
}

.td-header-mobile-wrap .tdi_1_rand_style,
.td-header-desktop-wrap .tdi_14_rand_style,
.td-header-desktop-wrap .tdi_21_rand_style {
	background-color: var(--eml-header-surface) !important;
}

.td-header-mobile-wrap,
.td-header-desktop-wrap {
	color: var(--eml-header-ink);
}

.td-header-desktop-wrap .tdi_17 {
	padding-top: 24px !important;
	padding-bottom: 20px !important;
}

.td-header-desktop-wrap .tdi_20 {
	margin-top: 0 !important;
}

.td-header-desktop-wrap .tdb_header_logo .tdb-logo-a,
.td-header-desktop-wrap .tdb_header_logo h1,
.td-header-mobile-wrap .tdb_header_logo .tdb-logo-a,
.td-header-mobile-wrap .tdb_header_logo h1 {
	justify-content: center;
	align-items: center;
}

.td-header-desktop-wrap .tdb_header_logo .tdb-logo-text-wrap,
.td-header-mobile-wrap .tdb_header_logo .tdb-logo-text-wrap {
	display: none !important;
}

.td-header-desktop-wrap .tdb_header_logo .tdb-logo-img-wrap,
.td-header-mobile-wrap .tdb_header_logo .tdb-logo-img-wrap {
	display: block !important;
}

.td-header-desktop-wrap .tdb_header_logo .tdb-logo-img {
	display: block;
	width: min(760px, calc(100vw - 48px));
	max-width: 100%;
	height: auto;
}

.td-header-mobile-wrap .tdb_header_logo .tdb-logo-img {
	display: block;
	width: min(220px, calc(100vw - 128px));
	max-width: 100%;
	height: auto;
}

.td-header-desktop-wrap .tdi_22 {
	border-top: 1px solid var(--eml-header-rule);
	border-bottom: 1px solid var(--eml-header-rule);
	background: var(--today-news-dark-bg);
	display: flex;
	align-items: center;
}

.td-header-desktop-wrap .tdi_24 {
	flex: 1 1 auto;
}

.td-header-desktop-wrap .tdi_29 {
	flex: 0 0 auto;
}

.td-header-desktop-wrap .tdb_header_menu {
	text-align: center;
}

.td-header-desktop-wrap .tdb_header_menu .tdb-block-inner {
	display: block;
}

.td-header-desktop-wrap .eml-header-search {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0;
}

.td-header-desktop-wrap .eml-header-search .tdb-block-inner {
	width: auto;
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn {
	color: var(--eml-header-ink);
	display: flex;
	align-items: center;
	height: 44px;
	line-height: 44px;
	padding: 0 4px;
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn i,
.td-header-desktop-wrap .eml-header-search .tdb-search-icon-svg {
	width: 44px !important;
	height: 44px !important;
	line-height: 44px !important;
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn:hover,
.td-header-desktop-wrap .eml-header-search .tdb-drop-down-search-open + .tdb-head-search-btn {
	color: var(--eml-header-accent);
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn i,
.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn svg,
.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn svg * {
	color: currentColor;
	fill: currentColor;
}

.td-header-desktop-wrap .eml-header-search .tdb-drop-down-search-inner {
	width: min(420px, calc(100vw - 48px));
	max-width: min(420px, calc(100vw - 48px));
}

.td-header-desktop-wrap .eml-header-search .tdb-drop-down-search {
	top: 100% !important;
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn:after {
	bottom: 0 !important;
}

.td-header-desktop-wrap .eml-header-search .tdb-search-form,
.td-header-desktop-wrap .eml-header-search .tdb-aj-search {
	max-width: 100%;
}

.td-header-desktop-wrap .eml-header-search .tdb-search-form,
.td-header-desktop-wrap .eml-header-search .tdb-aj-search-results,
.td-header-desktop-wrap .eml-header-search .result-msg {
	background: var(--eml-header-surface);
}

.td-header-desktop-wrap .eml-header-search .tdb-search-form {
	border-top-color: var(--eml-header-accent);
}

.td-header-desktop-wrap .eml-header-search .tdb-search-form-inner:after,
.td-header-desktop-wrap .eml-header-search .tdb-aj-search-results {
	border-color: var(--eml-header-rule);
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-form-btn {
	background: var(--eml-header-ink);
}

.td-header-desktop-wrap .eml-header-search .tdb-head-search-form-btn:hover {
	background: var(--eml-header-accent);
}

.td-header-desktop-wrap .tdb_header_menu .tdb-menu-items-dropdown:has(.td-pulldown-filter-list:empty) {
	display: none;
}

.td-header-desktop-wrap .tdi_25 .tdb-menu > li > a,
.td-header-desktop-wrap .tdi_25 .td-subcat-more,
.td-header-desktop-wrap .tdi_25 .td-subcat-more > .tdb-menu-item-text {
	color: var(--eml-header-ink);
}

.td-header-desktop-wrap .tdi_25 .tdb-menu > li > a .tdb-sub-menu-icon-svg svg,
.td-header-desktop-wrap .tdi_25 .tdb-menu > li > a .tdb-sub-menu-icon-svg svg *,
.td-header-desktop-wrap .tdi_25 .td-subcat-more .tdb-menu-more-subicon-svg svg,
.td-header-desktop-wrap .tdi_25 .td-subcat-more .tdb-menu-more-subicon-svg svg * {
	fill: var(--eml-header-ink);
}

.td-header-desktop-wrap .tdi_25 .tdb-menu .tdb-normal-menu ul,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list .sub-menu,
.td-header-desktop-wrap .tdi_25 .tdb-mega-menu .sub-menu > li {
	background: var(--today-news-dark-bg);
}

.td-header-desktop-wrap .tdi_25 .tdb-menu .tdb-normal-menu ul .tdb-menu-item > a,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list li a,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list .sub-menu li a {
	color: var(--today-news-white);
}

.td-header-desktop-wrap .tdi_25 .tdb-menu .tdb-normal-menu ul .tdb-menu-item > a .tdb-sub-menu-icon-svg svg,
.td-header-desktop-wrap .tdi_25 .tdb-menu .tdb-normal-menu ul .tdb-menu-item > a .tdb-sub-menu-icon-svg svg *,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list li a .tdb-sub-menu-icon-svg svg,
.td-header-desktop-wrap .tdi_25 .td-pulldown-filter-list li a .tdb-sub-menu-icon-svg svg * {
	fill: var(--today-news-white);
}

.td-header-mobile-wrap {
	border-bottom: 1px solid var(--eml-header-rule);
	box-shadow: 0 3px 16px rgba(22, 19, 14, 0.05);
}

.td-header-mobile-wrap .tdi_4 {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.td-header-mobile-wrap .tdb-mobile-menu-button,
.td-header-mobile-wrap .tdb-header-search-button-mob {
	color: var(--eml-header-ink) !important;
}

.td-header-mobile-wrap .tdb-mobile-menu-button svg,
.td-header-mobile-wrap .tdb-mobile-menu-button svg *,
.td-header-mobile-wrap .tdb-header-search-button-mob svg,
.td-header-mobile-wrap .tdb-header-search-button-mob svg * {
	fill: var(--eml-header-ink) !important;
}

#td-mobile-nav {
	background: var(--eml-header-paper);
}

#td-mobile-nav .td-mobile-container {
	background: var(--eml-header-paper);
}

#td-mobile-nav .td-menu-socials-wrap,
#td-mobile-nav .td-menu-login-section {
	border-bottom: 1px solid var(--eml-header-rule);
}

#td-mobile-nav .td-mobile-close i,
#td-mobile-nav .td-menu-login a,
#td-mobile-nav .td-mobile-main-menu a,
#td-mobile-nav .td-icon-menu-right {
	color: var(--eml-header-ink);
}

#td-mobile-nav .td-mobile-main-menu > li > a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

#td-mobile-nav .td-mobile-main-menu li {
	border-bottom: 1px solid rgba(216, 209, 198, 0.6);
}

#td-mobile-nav .sub-menu {
	background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
	.td-header-mobile-wrap .tdi_6,
	.td-header-mobile-wrap .tdi_12 {
		width: 22% !important;
	}

	.td-header-mobile-wrap .tdi_9 {
		flex: 1 1 auto;
	}
}


@media (max-width: 1018px) {
	.td-header-desktop-wrap .tdi_17 {
		padding-top: 18px !important;
		padding-bottom: 16px !important;
	}

	.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn {
		height: 40px;
		line-height: 40px;
	}

	.td-header-desktop-wrap .eml-header-search .tdb-head-search-btn i,
	.td-header-desktop-wrap .eml-header-search .tdb-search-icon-svg {
		width: 40px !important;
		height: 40px !important;
		line-height: 40px !important;
	}
}

.eml-search-shell {
	padding-bottom: 18px;
}

.eml-search-category-header {
	margin-bottom: 0;
}

.eml-search-category-header__panel {
	gap: 0;
}

.eml-search-category-header__meta {
	max-width: none;
	margin-top: 12px;
	margin-bottom: 0;
}

.eml-search-form-wrap {
	margin-top: 24px;
	margin-bottom: 0;
	max-width: 920px;
}

.eml-search-form > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px;
	background: var(--eml-header-surface);
	border: 1px solid var(--eml-header-rule);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.eml-search-form .td-widget-search-input {
	flex: 1 1 360px;
	min-height: 52px;
	padding: 0 16px;
	font-size: 16px;
	border: 1px solid var(--eml-header-rule);
	background: #fff;
	color: var(--eml-header-ink);
}

.eml-search-form .btn {
	min-height: 52px;
	padding: 0 20px;
	border: 0;
	background: var(--eml-header-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	box-shadow: none;
	text-shadow: none;
}

.eml-search-form .btn:hover {
	background: var(--eml-header-accent);
}

.eml-search-subtitle {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--eml-header-muted);
}

.eml-search-page .td_module_1 {
	padding: 16px;
	background: var(--eml-header-surface);
	border: 1px solid rgba(216, 209, 198, 0.8);
	box-shadow: 0 12px 24px rgba(22, 19, 14, 0.04);
}

.eml-search-page .td_module_1 .td-module-title {
	margin-bottom: 10px;
}

.eml-search-page .td_module_1 .td-module-title a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.15;
	color: var(--eml-header-ink);
}

.eml-search-page .td_module_1 .td-module-title a:hover {
	color: var(--eml-header-accent);
}

.eml-search-page .td_module_1 .td-post-category {
	background: var(--eml-header-accent);
}

.eml-search-page .td_module_1 .td-module-meta-info {
	margin-bottom: 10px;
}

.eml-search-result-excerpt {
	margin-top: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--eml-header-muted);
}

.search-results .eml-search-template-masthead {
	margin: 18px 0 24px;
}

.search-results .eml-search-template-masthead > .wpb_column {
	padding: 22px 24px;
	border: 1px solid #ddd3c6;
	background:
		linear-gradient(180deg, rgba(252, 248, 242, 0.98), rgba(247, 241, 232, 0.98)),
		radial-gradient(circle at top right, rgba(159, 29, 29, 0.08), transparent 34%);
	box-shadow: 0 18px 36px rgba(22, 19, 14, 0.08);
}

.search-results .eml-search-template-crumbs {
	margin-bottom: 14px;
}

.search-results .eml-search-template-crumbs,
.search-results .eml-search-template-crumbs a {
	color: #6a6258;
}

.search-results .eml-search-template-title {
	margin-bottom: 0;
	max-width: 840px;
}

.search-results .eml-search-template-title .tdb-add-text {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--eml-header-accent);
}

.search-results .eml-search-template-title .tdb-title-text {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 3.8vw, 40px);
	font-weight: 400;
	line-height: 1.06;
	color: var(--eml-header-ink);
}

.search-results .eml-search-template-form {
	max-width: 920px;
	margin: 18px 0 0;
}

.search-results .eml-search-template-form .tdb-search-form-inner {
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-results .eml-search-template-form .tdb-search-form-input,
.search-results .eml-search-template-form .tdb-search-form-placeholder {
	font-size: 16px;
}

.search-results .eml-search-template-form .tdb-search-form-btn {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.search-results .eml-search-template-results {
	margin-bottom: 8px;
}

.search-results .eml-search-template-loop .tdb_module_loop .td-module-container {
	padding: 16px;
	background: var(--eml-header-surface);
	border: 1px solid rgba(216, 209, 198, 0.8);
	box-shadow: 0 12px 24px rgba(22, 19, 14, 0.04);
}

.search-results .eml-search-template-loop .tdb_module_loop .td-module-title {
	margin-bottom: 10px;
}

.search-results .eml-search-template-loop .tdb_module_loop .td-module-title a {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.15;
	color: var(--eml-header-ink);
}

.search-results .eml-search-template-loop .tdb_module_loop .td-module-title a:hover {
	color: var(--eml-header-accent);
}

.search-results .eml-search-template-loop .tdb_module_loop .td-excerpt {
	margin-top: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--eml-header-muted);
}

.search-results .eml-search-template-loop .page-nav {
	margin-top: 24px;
	padding: 18px 0 0 !important;
	border-top: 1px solid var(--eml-header-rule);
}

.search-results .eml-search-template-loop .page-nav .current,
.search-results .eml-search-template-loop .page-nav a:hover {
	background-color: var(--eml-header-accent);
	border-color: var(--eml-header-accent);
}

.search-results .eml-home-footer {
	width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding-right: 24px;
	padding-left: 24px;
}

.search-results .eml-home-footer__inner {
	max-width: 1068px;
	margin: 0 auto;
}

.eml-search-page .page-nav {
	margin-top: 24px;
	padding: 18px 0 0 !important;
	border-top: 1px solid var(--eml-header-rule);
}

.eml-search-page .page-nav .current,
.eml-search-page .page-nav a:hover {
	background-color: var(--eml-header-accent);
	border-color: var(--eml-header-accent);
}

@media (max-width: 767px) {
	.eml-search-form > div {
		padding: 12px;
	}

	.eml-search-form .td-widget-search-input,
	.eml-search-form .btn {
		width: 100%;
	}

	.search-results .eml-search-template-masthead > .wpb_column {
		padding: 20px 16px;
	}

	.search-results .eml-search-template-title .tdb-title-text {
		font-size: clamp(22px, 7vw, 30px);
		line-height: 1.08;
	}

	.search-results .eml-search-template-form {
		margin-top: 18px;
	}

	.search-results .eml-search-template-form .tdb-search-form-inner {
		flex-wrap: wrap;
	}

	.search-results .eml-search-template-form .tdb-search-form-btn {
		width: 100%;
		min-height: 52px;
	}

	.eml-search-page .td_module_1 .td-module-title a {
		font-size: 22px;
	}

	.search-results .eml-search-template-loop .tdb_module_loop .td-module-title a {
		font-size: 22px;
	}
}

/* =========================================================================
   Top utility bar — PHP-rendered via td_wp_body_open, sits above the header
   ========================================================================= */

.eml-topbar {
	background: #ffffff;
	border-bottom: 1px solid var(--eml-header-rule);
	font-size: 11px;
	line-height: 1;
}

.eml-topbar__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.eml-topbar__date {
	color: var(--eml-header-muted);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	letter-spacing: 0.01em;
}

.eml-topbar__social {
	display: flex;
	align-items: center;
	gap: 2px;
}

.eml-topbar__icon {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 7px;
	color: var(--eml-header-muted);
	border-radius: 3px;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
	flex-shrink: 0;
}

.eml-topbar__icon:hover {
	color: var(--eml-header-ink);
	background-color: rgba(21, 21, 21, 0.06);
}

.eml-topbar__icon svg {
	width: 14px;
	height: 14px;
	display: block;
	fill: currentColor;
	flex-shrink: 0;
}

.eml-topbar__icon-label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.eml-topbar__date {
		display: none;
	}

	.eml-topbar__inner {
		justify-content: flex-end;
		height: 30px;
	}

	.eml-topbar__icon-label {
		display: none;
	}

	.eml-topbar__icon {
		padding: 0 5px;
	}
}

/* --- Mobile (inside #td-mobile-nav .td-menu-socials-wrap) --- */
.eml-social-icons-bar--mobile {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 8px 10px 4px;
}

.eml-social-icons-bar--mobile .eml-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--eml-header-ink);
	border-radius: 4px;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
	flex-shrink: 0;
}

.eml-social-icons-bar--mobile .eml-social-icon:hover {
	color: var(--eml-header-accent);
	background-color: rgba(159, 29, 29, 0.06);
}

.eml-social-icons-bar--mobile .eml-social-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}
