/*
 * bos-home-search.css
 * Dropdown styles for the homepage hero search field.
 * Loaded on the home page only.
 */

/* ── Layout wrapper ─────────────────────────────────────────────────────── */
/* Wrap input + dropdown so the dropdown can be positioned absolutely
   relative to the input without the button disrupting the flow. */
.hero-search {
	display: flex;
	align-items: stretch;
	position: relative;
}

.hero-search-inner {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.hero-search-inner input {
	width: 100%;
	box-sizing: border-box;
}

/* ── Dropdown container ─────────────────────────────────────────────────── */
.hero-search-dropdown,
#hdrSearchDropdown {
	/* position, top, left, width are set inline by JS (fixed, anchored to input) */
	display: none;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	max-height: 420px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}
.hero-search-dropdown--open,
#hdrSearchDropdown.hero-search-dropdown--open {
	display: block;
}

/* ── Result row ─────────────────────────────────────────────────────────── */
.hsd-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f0ede8;
	transition: background 0.08s;
	cursor: pointer;
}
.hsd-row:last-of-type {
	border-bottom: none;
}
.hsd-row:hover,
.hsd-row--active {
	background: #f7f5f0;
}

/* ── Thumbnail ──────────────────────────────────────────────────────────── */
.hsd-thumb {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
	background: #ede9e2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hsd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Text block ─────────────────────────────────────────────────────────── */
.hsd-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hsd-name {
	font-size: 14px;
	font-weight: 400;
	color: #1c2b42;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hsd-name i { font-style: italic; }

.hsd-meta {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hsd-rank {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a6f62;
	background: #ede9e2;
	border-radius: 3px;
	padding: 1px 5px;
	white-space: nowrap;
	flex-shrink: 0;
}

.hsd-append {
	font-size: 11px;
	color: #7a6f62;
	font-weight: 300;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hsd-append i { font-style: italic; }

/* ── Footer "See all results" ───────────────────────────────────────────── */
.hsd-footer {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	color: #1c2b42;
	text-decoration: none;
	background: #f7f5f0;
	border-top: 1px solid #e2ddd6;
	text-align: center;
	font-weight: 400;
	transition: background 0.1s;
}
.hsd-footer:hover { background: #ede9e2; }
.hsd-footer strong { font-weight: 600; }

/* ── Literature row variant ─────────────────────────────────────────────── */
.hsd-thumb--lit {
	background: #e8eef8;
	color: #1c2b42;
}

/* ── No-results message ─────────────────────────────────────────────────── */
.hsd-empty {
	padding: 14px 16px;
	font-size: 14px;
	color: #7a6f62;
	font-style: italic;
	text-align: center;
}

/* ── Common name ────────────────────────────────────────────────────────── */
.hsd-common {
	font-size: 11px;
	color: #7a6f62;
	font-weight: 300;
}

/* ── Header search dropdown ─────────────────────────────────────────────── */
/* The sticky navbar must not clip the dropdown. */
.search-container {
	position: relative;
}


