/* TAVOFIGURA Site Search */

.tf-search {
	position: relative;
	display: inline-block;
}

.tf-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 4px;
	cursor: pointer;
	color: inherit;
	line-height: 0;
}
.tf-search-toggle:hover {
	opacity: .7;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.tf-search-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(360px, 90vw);
	background: var(--tf-search-bg, #fff);
	color: var(--tf-search-color, #111);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
	border-radius: 8px;
	padding: 12px;
	z-index: 9999;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
}
.tf-search[class~="is-open"] .tf-search-panel {
	opacity: 1;
	transform: translateY(0);
}
.tf-search-panel[hidden] {
	display: none;
}

.tf-search-field {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
	padding-bottom: 8px;
}

.tf-search-input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	font-size: 15px;
	padding: 6px 2px;
	background: transparent;
	color: inherit;
}

.tf-search-close {
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: .6;
	padding: 2px 4px;
}
.tf-search-close:hover {
	opacity: 1;
}

.tf-search-results {
	max-height: 60vh;
	overflow-y: auto;
	margin-top: 8px;
}

.tf-search-status {
	margin: 10px 4px;
	font-size: 13px;
	opacity: .7;
}

.tf-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-search-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
}
.tf-search-item a:hover {
	background: rgba(0, 0, 0, .05);
}

.tf-search-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: #eee;
}

.tf-search-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tf-search-title {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tf-search-meta {
	font-size: 12px;
	opacity: .65;
}
.tf-search-meta ins {
	text-decoration: none;
}

@media (prefers-color-scheme: dark) {
	.tf-search-panel {
		--tf-search-bg: #1e1e1e;
		--tf-search-color: #f2f2f2;
	}
}
