/* ---------- Segre Search ---------- */
.segre-search {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	font-family: 'Raleway', Arial, sans-serif;
}

.segre-search-field {
	position: relative;
	display: flex;
	align-items: center;
}

.segre-search-input {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 44px 14px 16px;
	font-size: 18px;
	font-weight: 400;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.segre-search-input:focus {
	border-color: #0daf2b;
	box-shadow: 0 0 0 3px rgba(13, 175, 43, 0.15);
}
.segre-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.segre-search-clear {
	position: absolute;
	right: 8px;
	background: transparent;
	border: 0;
	color: #999;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 10px;
}
.segre-search-clear:hover { color: #1a1a1a; }

.segre-search-status {
	min-height: 1.2em;
	margin: 10px 4px 0;
	font-size: 13px;
	color: #888;
	text-align: center;
}
.segre-search-status:empty { margin: 0; }

.segre-search-results {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
}
.segre-search-results:empty { display: none; }

.segre-search-result {
	border-bottom: 1px solid #f0f0f0;
}
.segre-search-result:last-child { border-bottom: 0; }

.segre-search-result-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	text-decoration: none;
	color: #1a1a1a;
	transition: background-color 0.1s ease;
}
.segre-search-result-link:hover,
.segre-search-result-link:focus {
	background: #f7f7f7;
	color: #0daf2b;
}

.segre-search-result-thumb {
	width: 48px;
	height: 48px;
	border-radius: 4px;
	object-fit: cover;
	background: #eee;
	flex-shrink: 0;
}
.segre-search-result-thumb-placeholder { display: inline-block; }

.segre-search-result-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}
.segre-search-result-title mark {
	background: rgba(13, 175, 43, 0.2);
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}
