/* Live hotfix: applied from footer so upload works even if header.php cache is stale */
.esteem-skip-link {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.esteem-skip-link:focus-visible {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	left: 12px !important;
	top: 0 !important;
	z-index: 100001 !important;
	background: #0e76bb !important;
	color: #fff !important;
	border-radius: 0 0 6px 6px;
}

#header,
#header #logo,
#header #logo a {
	overflow: visible !important;
}
#header #logo img {
	max-height: 52px !important;
	height: auto !important;
	width: auto !important;
	max-width: 200px !important;
	padding: 0 !important;
	margin: 0 !important;
	object-fit: contain !important;
}

#header .row {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto !important;
	align-items: stretch !important;
	overflow: visible !important;
	min-height: 72px !important;
}

#header #nav-menu-container,
.nav-menu,
.nav-menu > li {
	height: 100% !important;
	min-height: 72px !important;
	align-items: stretch !important;
}
.nav-menu {
	display: flex !important;
}
.nav-menu > li {
	display: flex !important;
}
.nav-menu > li > a {
	display: flex !important;
	align-items: center !important;
	align-self: stretch !important;
	height: 100% !important;
	min-height: 72px !important;
	box-sizing: border-box !important;
	box-shadow: inset 0 -3px 0 transparent !important;
}
.nav-menu > li > a:hover,
.nav-menu > li.is-open > a,
.nav-menu > li:hover > a,
.nav-menu > li:focus-within > a {
	color: #0e76bb !important;
	box-shadow: inset 0 -3px 0 #0e76bb !important;
}

.esteem-header-tools {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	align-self: stretch !important;
	gap: 6px !important;
}

.esteem-header-cta {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: center !important;
	flex: 0 0 auto !important;
	margin: 0 4px 0 0 !important;
	padding: 8px 12px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: #0e76bb !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: none !important;
}
.esteem-header-cta:hover,
.esteem-header-cta:focus {
	background: #0a5f96 !important;
	color: #fff !important;
	text-decoration: none !important;
}

html[data-theme="dark"] #header #logo a {
	background: #fff !important;
	border-radius: 12px !important;
	padding: 6px 10px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: visible !important;
}
html[data-theme="dark"] #header #logo img {
	max-height: 44px !important;
	max-width: 180px !important;
}

@media (max-width: 1199.98px) {
	.esteem-header-cta {
		display: none !important;
	}
}

/* Blog listing search — live hotfix (production application.css was missing these rules) */
.blog-search-form {
	margin: 0 0 16px !important;
}
.blog-search-field {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 8px !important;
}
.blog-search-input-wrap {
	position: relative !important;
	flex: 1 1 220px !important;
	min-width: 0 !important;
}
.blog-search-icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #6b7280 !important;
	pointer-events: none !important;
	z-index: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
}
.blog-search-icon .app-icon {
	width: 18px !important;
	height: 18px !important;
}
.blog-search-input,
input.blog-search-input[type="search"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 46px !important;
	padding: 10px 16px 10px 42px !important;
	border: 1px solid #e8ecf0 !important;
	border-radius: 2px !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	color: #111827 !important;
	background: #fff !important;
}
.blog-search-input::-webkit-search-decoration,
.blog-search-input::-webkit-search-cancel-button,
.blog-search-input::-webkit-search-results-button,
.blog-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none !important;
}
.blog-search-clear {
	-webkit-appearance: none !important;
	appearance: none !important;
	min-height: 46px !important;
	padding: 8px 14px !important;
	border: 1px solid #e8ecf0 !important;
	background: #fff !important;
	color: #4b5563 !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	border-radius: 2px !important;
}
.blog-search-submit,
button.blog-search-submit {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 0 0 auto !important;
	min-height: 46px !important;
	padding: 10px 18px !important;
	border: 0 !important;
	background: #0e76bb !important;
	color: #fff !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	border-radius: 2px !important;
	white-space: nowrap !important;
}
.blog-search-submit:hover,
.blog-search-submit:focus {
	background: #0a5f96 !important;
	color: #fff !important;
}
.blog-search-hint {
	margin: 8px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: #6b7280 !important;
	text-align: left !important;
}
.blog-search-hint strong {
	color: #374151 !important;
	font-weight: 600 !important;
}
html[data-theme="dark"] .blog-search-input,
html[data-theme="dark"] input.blog-search-input[type="search"],
html[data-theme="dark"] .blog-search-clear {
	background: var(--esteem-bg-elevated, #1b2430) !important;
	border-color: var(--esteem-border, #3a4654) !important;
	color: var(--esteem-text, #e5e7eb) !important;
}
html[data-theme="dark"] .blog-search-icon {
	color: #9ca3af !important;
}
html[data-theme="dark"] .blog-listing-toolbar {
	background: var(--esteem-bg, #0f1720) !important;
	border-bottom-color: var(--esteem-border, #3a4654) !important;
}
