.ohso-search-results {
	--search-content-width: var(--wide-size);
	--search-gutter: max(var(--section-gutter), 1rem);
	--search-hero-frame-width: 85.5625rem;
	--search-hero-frame-offset: max(
		var(--section-gutter),
		calc((100% - var(--search-hero-frame-width)) / 2)
	);
	--search-hero-content-width: min(
		calc(100% - (var(--section-gutter) * 2)),
		var(--search-hero-frame-width)
	);
	background: var(--base);
}

.ohso-search-results__hero {
	position: relative;
	display: flex;
	box-sizing: border-box;
	min-height: 22rem;
	padding: 8.4375rem 0 4.21875rem;
	overflow: hidden;
	background: linear-gradient(180deg, var(--base) 0%, var(--secondary-ultra-light) 100%);
}

.ohso-search-results__hero-pattern,
.ohso-search-results__hero-ellipse {
	position: absolute;
	pointer-events: none;
	user-select: none;
}

.ohso-search-results__hero-pattern {
	top: -14rem;
	left: -21.5rem;
	width: 55.825rem;
	max-width: none;
	height: 54.25rem;
	opacity: 0.2;
}

.ohso-search-results__hero-ellipse {
	bottom: -36.0625rem;
	left: -37rem;
	width: 199.125rem;
	max-width: none;
	height: 41.6875rem;
}

.ohso-search-results__hero-inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(var(--search-hero-content-width), 44.375rem);
	margin-inline-start: var(--search-hero-frame-offset);
}

.ohso-search-results__eyebrow,
.ohso-search-results__title,
.ohso-search-results__result-count,
.ohso-search-results__result-total,
.ohso-search-results__card-type,
.ohso-search-results__card-title,
.ohso-search-results__card-excerpt,
.ohso-search-results__empty h2,
.ohso-search-results__empty p {
	margin: 0;
}

.ohso-search-results__eyebrow {
	margin-bottom: var(--space-xxs);
	color: var(--primary);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.ohso-search-results__title {
	color: var(--primary-dark);
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: 400;
	line-height: 1.3;
}

.ohso-search-results__content {
	padding: var(--section-padding) var(--search-gutter);
}

.ohso-search-results__inner {
	display: flex;
	width: min(100%, var(--search-content-width));
	margin-inline: auto;
	flex-direction: column;
	gap: var(--column-gap);
}

.ohso-search-results__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	padding-bottom: var(--space-s);
	border-bottom: 0.0625rem solid var(--secondary);
}

.ohso-search-results__result-count,
.ohso-search-results__empty h2 {
	color: var(--primary-dark);
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 400;
	line-height: 1.3;
}

.ohso-search-results__result-total {
	margin-top: 0.5rem;
	color: var(--neutral-dark);
	font-family: var(--font-body);
	font-size: var(--text-s);
	line-height: 1.5;
}

.ohso-search-results__form {
	display: flex;
	box-sizing: border-box;
	width: min(100%, 25rem);
	height: 3.375rem;
	align-items: center;
	padding: 0.25rem;
	border: 0.125rem solid var(--primary);
	border-radius: var(--radius-full);
}

.ohso-search-results__form input {
	width: 100%;
	min-width: 0;
	padding: 0 1rem;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--contrast);
	font-family: var(--font-body);
	font-size: var(--text-m);
	line-height: 1.5;
}

.ohso-search-results__form button,
.ohso-search-results__browse-link {
	display: inline-flex;
	min-height: 2.625rem;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--primary);
	color: var(--base);
	font-family: var(--font-heading);
	font-size: var(--text-s);
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.ohso-search-results__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--column-gap) var(--grid-gap);
}

.ohso-search-results__card {
	display: flex;
	min-width: 0;
	min-height: 18rem;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--space-s);
	border-radius: var(--radius-s);
	background: linear-gradient(180deg, var(--base) 0%, var(--secondary-ultra-light) 100%);
}

.ohso-search-results__card-type {
	margin-bottom: 1rem;
	color: var(--primary-dark);
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
}

.ohso-search-results__card-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
}

.ohso-search-results__card-title a {
	color: var(--primary);
	text-decoration: none;
}

.ohso-search-results__card-excerpt {
	margin-top: 1.25rem;
	color: var(--neutral-dark);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ohso-search-results__card-link {
	margin-top: auto;
	padding-top: 1.25rem;
	color: var(--primary-dark);
	font-family: var(--font-heading);
	font-size: var(--text-s);
	line-height: 1.3;
}

.ohso-search-results__empty {
	display: flex;
	min-height: 18rem;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--space-s);
	padding: var(--space-m);
	border-radius: var(--radius-m);
	background: var(--secondary-ultra-light);
}

.ohso-search-results__empty p {
	max-width: 36rem;
	color: var(--neutral-dark);
	font-family: var(--font-body);
	font-size: var(--text-m);
	line-height: 1.5;
}

@media (hover: hover) {
	.ohso-search-results__card-title a:hover,
	.ohso-search-results__card-link:hover {
		color: var(--primary-dark);
	}

	.ohso-search-results__form button:hover,
	.ohso-search-results__browse-link:hover {
		background: var(--primary-dark);
		color: var(--base);
	}
}

.ohso-search-results :is(a, button, input):focus-visible {
	outline: 0.1875rem solid var(--primary-dark);
	outline-offset: 0.1875rem;
}

@media (max-width: 62rem) {
	.ohso-search-results__hero {
		min-height: 18rem;
		padding-block: clamp(3.5rem, 10vw, 5rem);
	}

	.ohso-search-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 42rem) {
	.ohso-search-results__hero-pattern {
		left: -30rem;
	}

	.ohso-search-results__hero-ellipse {
		left: 50%;
		transform: translateX(-50%);
	}

	.ohso-search-results__content {
		padding-block: var(--space-l);
	}

	.ohso-search-results__summary {
		align-items: stretch;
		flex-direction: column;
	}

	.ohso-search-results__form {
		width: 100%;
	}

	.ohso-search-results__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
