/* Header search ([dcm_search]) + Autocomplete.js dropdown, dark DCM style.
   The Autocomplete theme is customised only through its documented --aa-* variables. */

.dcmr-search {
	--fmt-article: #2ea3f2; --fmt-video: #f5b044; --fmt-webinar: #3de0a0; --fmt-product: #9b8cf0;
	--fmt-story: #f2795f; --fmt-news: #9ca3af; --fmt-blueprint: #ff8fb1; --fmt-guide: #f7d154; --fmt-event: #b6e35a;
	position: relative;
	width: min(380px, 100%);
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dcmr-search__form {
	display: flex; align-items: center; gap: 10px;
	height: 36px; padding: 0 10px 0 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 6px;
	background: rgba(255, 255, 255, .05);
	color: rgba(255, 255, 255, .55);
	margin: 0;
}
.dcmr-search__form[hidden] { display: none; }
.dcmr-search__input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
	font: inherit; font-size: 13px; color: #fff;
}
.dcmr-search__input::placeholder { color: rgba(255, 255, 255, .45); }
.dcmr-search__kbd {
	font: 600 11px/1 inherit; padding: 3px 6px; border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); background: none;
}

/* Autocomplete.js */
.dcmr-search .aa-Autocomplete,
.aa-Panel,
.aa-DetachedContainer {
	--aa-search-input-height: 36px;
	--aa-input-background-color-rgb: 23, 32, 48;
	--aa-input-border-color-rgb: 255, 255, 255;
	--aa-input-border-color-alpha: .16;
	--aa-text-color-rgb: 255, 255, 255;
	--aa-primary-color-rgb: 232, 152, 31;
	--aa-muted-color-rgb: 180, 190, 205;
	--aa-panel-border-color-rgb: 255, 255, 255;
	--aa-panel-border-color-alpha: .12;
	--aa-background-color-rgb: 19, 31, 46;
	--aa-selected-color-rgb: 255, 255, 255;
	--aa-selected-color-alpha: .07;
	--aa-icon-color-rgb: 180, 190, 205;
	--aa-font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--aa-font-size: 13px;
	--aa-spacing: 12px;
	--aa-panel-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.dcmr-search .aa-Form { border-radius: 6px; }
.aa-Panel { border-radius: 8px; overflow: hidden; z-index: 1000; }

.dcmr-ac-item { display: flex; align-items: center; gap: 10px; width: 100%; color: #fff; text-decoration: none; }
.dcmr-ac-badge {
	flex: none; padding: 2px 6px; border-radius: 3px;
	background: var(--c, #9ca3af); color: #0f1923;
	font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.aa-Panel .dcmr-ac-badge { --fmt-article: #2ea3f2; --fmt-video: #f5b044; --fmt-webinar: #3de0a0; --fmt-product: #9b8cf0; --fmt-story: #f2795f; --fmt-news: #9ca3af; --fmt-blueprint: #ff8fb1; --fmt-guide: #f7d154; --fmt-event: #b6e35a; }
.dcmr-ac-title { flex: 1; line-height: 1.35; }
.dcmr-ac-all, .dcmr-ac-empty { display: block; padding: 10px 12px; font-size: 13px; color: #f5b044; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .08); }
.dcmr-ac-empty { color: rgba(255, 255, 255, .7); border-top: 0; }
.dcmr-ac-empty a { color: #f5b044; }

/* ---------- Site header (block template part with class "dcm-header") ---------- */

.dcm-header {
	--orange: #e8981f;
	background: #0f1923;
	color: #fff;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: relative;
	z-index: 50;
}
.dcm-header a { color: #fff; text-decoration: none; }
.dcm-header__top { border-bottom: 1px solid rgba(255, 255, 255, .07); padding-block: 8px !important; }
.dcm-header__main { padding-block: 14px !important; }
.dcm-header .wp-block-site-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.dcm-header .wp-block-site-title a { color: #fff; }
.dcm-header .wp-block-navigation { font-size: 14.5px; font-weight: 500; gap: 6px; }
.dcm-header .wp-block-navigation .wp-block-navigation-item__content { padding: 8px 10px; border-radius: 6px; }
.dcm-header .wp-block-navigation .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .06); }
.dcm-header .wp-block-navigation__submenu-container {
	background: #131f2e !important; border: 1px solid rgba(255, 255, 255, .12) !important;
	border-radius: 8px; padding: 8px !important; min-width: 240px !important;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.dcm-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 14px; color: rgba(255, 255, 255, .85); }
.dcm-header .wp-block-navigation__responsive-container.is-menu-open { background: #0f1923 !important; color: #fff !important; }
.dcm-header .wp-block-button__link {
	background: var(--orange); color: #fff; border-radius: 6px;
	padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.dcm-header .wp-block-button__link:hover { background: #f5b044; }
@media (max-width: 781px) {
	.dcm-header .wp-block-buttons { display: none; }
	.dcmr-search { width: 100%; }
}
