.header-search-results {
	position: fixed;
	z-index: 10000;
	box-sizing: border-box;
	padding: 4px;
	background: #fff;
	border: 1px solid #263c30;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
	text-align: left;
}

.header-search-result {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 8px;
	align-items: center;
	padding: 7px 8px;
	color: #333 !important;
	text-decoration: none !important;
}

.header-search-result:hover,
.header-search-result:focus,
.header-search-result-active {
	background: #ffea9c;
	color: #111 !important;
}

.header-search-result-type {
	grid-row: span 2;
	padding: 2px 5px;
	border-radius: 4px;
	background: #385947;
	color: #fff;
	font-size: 10px;
	white-space: nowrap;
}

.header-search-result-thread .header-search-result-type { background: #426276; }
.header-search-result-category .header-search-result-type { background: #6d5545; }
.header-search-result-forum .header-search-result-type { background: #48715b; }
.header-search-result-subforum .header-search-result-type { background: #2d9595; }

.header-search-result-title,
.header-search-result-context {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-search-result-title {
	font-weight: bold;
}

.header-search-result-context {
	color: #777;
	font-size: 11px;
}

.header-search-message {
	padding: 9px 8px;
	color: #555;
}

.header-search-message-error {
	color: #a5161a;
}

/* Keep the existing desktop header in three non-overlapping zones. */
@media only screen and (min-width: 1101px) {
	#panel .newheader {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: max-content minmax(0, 1fr) max-content;
		align-items: center;
		column-gap: 20px;
		width: 100%;
	}

	#panel .newheader > .header-nav-left {
		display: flex;
		align-items: center;
		column-gap: 20px;
		grid-column: 1;
		min-width: 0;
		white-space: nowrap;
	}

	#panel .newheader > .header-nav-left > * {
		flex: 0 0 auto;
	}

	#panel .newheader > .header-brand {
		position: relative;
		grid-column: 2;
		min-width: 0;
		width: 100%;
		height: 60px;
	}

	#panel .newheader > .header-brand .future {
		position: absolute;
		left: 50%;
		top: 50%;
		margin: 0;
		max-width: 100%;
		font-size: clamp(75px, 10vw, 200px);
		transform: translate(-50%, -50%) skew(-5deg, -5deg);
		white-space: nowrap;
	}

	#panel .newheader > form,
	#panel .newheader > div:not(.header-nav-left):not(.header-brand) {
		grid-column: 3;
		justify-self: end;
		min-width: 0;
	}

	#panel .newheader > .header-brand.future-cop {
		position: relative;
	}

	body:has(.newheader > .header-brand) .future-cop:not(.header-brand) {
		display: none;
	}
}

@media only screen and (max-width: 1100px) {
	#panel .newheader > .header-nav-left {
		display: contents;
	}

	#panel .newheader > .header-brand {
		display: none;
	}
}
