﻿/* CleanRating: logo descriptor + header company search. Brand: #4a72ff, ink #000b2f. */

/* ---------- logo descriptor (desktop header only) ---------- */
.cr-logo-desc {
	display: none;
}
@media (min-width: 1400px) {
	html body.cr-site-chrome header.header > .container > .logo {
		max-width: 480px !important;
	}
	html body.cr-site-chrome header.header > .container > .logo > a {
		display: flex !important;
		align-items: center !important;
		gap: 12px !important;
	}
	html body.cr-site-chrome header.header > .container > .logo > a > .cr-logo-desc {
		display: flex !important;
		flex-direction: column;
		gap: 2px;
		padding-left: 12px;
		border-left: 1px solid #dfe5f7;
		white-space: nowrap;
		font-size: 12px;
		line-height: 1.25;
		color: #6b7694;
	}
	html body.cr-site-chrome header.header > .container > .logo > a > .cr-logo-desc > span {
		display: block !important;
	}
	html body.cr-site-chrome header.header > .container > .logo > a > .cr-logo-desc > .cr-logo-desc__l1 {
		font-weight: 600;
		color: #34406a;
	}
}

/* ---------- search: trigger ---------- */
.cr-hsearch__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #000b2f;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease;
}
.cr-hsearch__trigger:hover,
.cr-hsearch__trigger:focus-visible {
	color: #4a72ff;
	outline: none;
}
.cr-hsearch__ic {
	flex: none;
	width: 28px;
	height: 28px;
	background: url("img/cr-nav-search.svg") center / contain no-repeat;
}

/* ---------- search: panel ---------- */
.cr-hsearch__panel {
	display: none;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	height: 48px;
	padding: 0 6px 0 16px;
	background: #fff;
	border: 1.5px solid #c9d5ff;
	border-radius: 14px;
	color: #7d8bb0;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cr-hsearch__panel:focus-within {
	border-color: #4a72ff;
	box-shadow: 0 0 0 4px rgba(74, 114, 255, 0.12);
}
.cr-hsearch__panel > .cr-hsearch__icon {
	flex: none;
}
.cr-hsearch__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #000b2f;
	-webkit-appearance: none;
	appearance: none;
}
.cr-hsearch__input::placeholder {
	color: #9aa6c4;
	font-weight: 400;
}
.cr-hsearch__input::-webkit-search-cancel-button {
	display: none;
}
.cr-hsearch__close {
	flex: none;
	padding: 8px 12px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #4a72ff;
	cursor: pointer;
	border-radius: 10px;
}
.cr-hsearch__close:hover {
	background: #eef2ff;
}

/* ---------- search: results ---------- */
.cr-hsearch__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 1500;
	box-sizing: border-box;
	max-height: min(70vh, 540px);
	overflow-y: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid #e3e9fb;
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(11, 20, 64, 0.16);
	text-align: left;
}
.cr-hsearch__results[hidden] {
	display: none;
}
.cr-hsearch__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 12px;
	color: #000b2f;
	text-decoration: none;
	transition: background 0.12s ease;
}
.cr-hsearch__item:hover,
.cr-hsearch__item.is-active {
	background: #f1f4ff;
}
.cr-hsearch__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f6fb;
	color: #4a72ff;
	font-weight: 700;
	font-size: 18px;
}
.cr-hsearch__logo img {
	width: 100%;
	height: 100%;
	padding: 4px;
	box-sizing: border-box;
	object-fit: contain;
}
.cr-hsearch__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.cr-hsearch__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cr-hsearch__title mark {
	padding: 0;
	background: none;
	color: #4a72ff;
	font-weight: 700;
}
.cr-hsearch__level {
	font-size: 12.5px;
	line-height: 1.2;
	color: #7d8bb0;
}
.cr-hsearch__score {
	min-width: 38px;
	padding: 3px 10px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #3fb34f;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}
.cr-hsearch__more {
	display: block;
	margin-top: 4px;
	padding: 10px;
	border-radius: 12px;
	color: #4a72ff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.cr-hsearch__more:hover {
	background: #f1f4ff;
}
.cr-hsearch__empty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f1f4fb;
	color: #000b2f;
}
.cr-hsearch__empty strong {
	font-size: 15px;
}
.cr-hsearch__empty span {
	font-size: 13px;
	color: #6b7694;
}
.cr-hsearch__empty a {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #4a72ff;
	text-decoration: none;
}

/* ---------- desktop: the panel overlays the header row (JS moves it into .container) ---------- */
@media (min-width: 1400px) {
	html body.cr-site-chrome header.header > .container > .cr-hsearch__panel {
		position: absolute;
		top: 50%;
		left: var(--cr-hs-left, 260px);
		right: 20px;
		z-index: 1400;
		transform: translateY(-50%);
	}
	html body.cr-site-chrome header.header.cr-hsearch-open > .container > .cr-hsearch__panel {
		display: flex;
	}
	html body.cr-site-chrome header.header > .container > .cr-hsearch__panel > .cr-hsearch__results {
		top: calc(100% + 10px);
	}
}

/* ---------- below 1400px: inline field inside the menu drawer ---------- */
@media (max-width: 1399px) {
	.cr-hsearch__trigger {
		display: none;
	}
	.cr-hsearch__panel {
		display: flex;
		position: relative;
		margin: 6px 0 4px;
		width: 100%;
	}
	.cr-hsearch__close {
		display: none;
	}
	.cr-hsearch__results {
		top: calc(100% + 6px);
		max-height: 45vh;
	}
	li.cr-menu-search {
		width: 100%;
		list-style: none;
	}
}

/* ---------- guard against theme menu-link styles inside the drawer ---------- */
html body .cr-hsearch__results a.cr-hsearch__item {
	display: grid !important;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: auto !important;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 0 !important;
	box-shadow: none !important;
	text-align: left !important;
	font-size: 15px;
	font-weight: 400;
	color: #000b2f;
}
html body .cr-hsearch__results a.cr-hsearch__item:hover,
html body .cr-hsearch__results a.cr-hsearch__item.is-active {
	background: #f1f4ff;
}
html body .cr-hsearch__results a.cr-hsearch__more {
	display: block !important;
	width: auto !important;
	margin: 4px 0 0 !important;
	padding: 10px !important;
	border: 0 !important;
	text-align: center !important;
	font-size: 14px;
	color: #4a72ff;
}
html body .cr-hsearch__results .cr-hsearch__empty a {
	display: inline !important;
	width: auto !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	text-align: left !important;
	font-size: 14px;
	color: #4a72ff;
}
html body .cr-hsearch__results .cr-hsearch__title,
html body .cr-hsearch__results .cr-hsearch__level {
	text-align: left !important;
}