/*
 * Search Results page (templates/search-results.php).
 *
 * Template-scoped on purpose — oc-custom.css ships site-wide, this is one
 * page. Visual vocabulary matches the header search modal so the "See all"
 * hand-off feels like the same feature: card borders/radius, tinted section
 * headers, 44px circle / 60x45 square thumbs.
 */

.oc-sr {
	max-width: 860px;
	margin: 0 auto;
}

/* --- Form --- */

.oc-sr__form {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.oc-sr__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 54px;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 16px;
}

.oc-sr__submit {
	appearance: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	border-radius: 12px;
	padding: 0 22px;
	font-size: 15px;
	font-weight: 600;
	color: var(--neutral--800);
	cursor: pointer;
}

.oc-sr__submit:hover {
	background: rgba(0, 0, 0, 0.04);
}

.oc-sr__status {
	margin: 14px 0 24px;
	font-size: 14px;
	color: var(--neutral--600);
}

/* --- Sections --- */

.oc-sr__section {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 22px;
	/* Anchored from the modal's "See all" links; clear the fixed header. */
	scroll-margin-top: 90px;
}

.oc-sr__heading {
	margin: 0;
	padding: 12px 16px;
	background: rgba(236, 242, 255, 0.65);
	font-size: 18px;
	font-weight: 700;
	color: var(--neutral--800);
}

.oc-sr__count {
	font-weight: 400;
	font-size: 14px;
	opacity: 0.7;
}

.oc-sr__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oc-sr__item {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.oc-sr__item:first-child {
	border-top: 0;
}

.oc-sr__link {
	display: block;
	padding: 13px 16px;
}

.oc-sr__link:hover {
	background: rgba(0, 0, 0, 0.04);
}

.oc-sr__item--withthumb .oc-sr__link {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.oc-sr__thumb {
	flex: 0 0 auto;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.06);
}

.oc-sr__thumb--circle {
	width: 44px;
	height: 44px;
	border-radius: 999px;
}

.oc-sr__thumb--square {
	width: 60px;
	height: 45px;
	border-radius: 10px;
}

.oc-sr__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oc-sr__text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.oc-sr__title {
	display: block;
	font-weight: 700;
	color: var(--neutral--800);
}

.oc-sr__meta {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--neutral--600);
}

.oc-sr__range {
	margin: 0;
	padding: 10px 16px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 13px;
	color: var(--neutral--600);
}

/* --- Per-section pager --- */

.oc-sr__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 10px 16px 14px;
}

.oc-sr__pager-num,
.oc-sr__pager-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: 14px;
	color: var(--neutral--800);
}

a.oc-sr__pager-num:hover,
a.oc-sr__pager-step:hover {
	background: rgba(0, 0, 0, 0.04);
}

.oc-sr__pager-num.is-current {
	background: var(--neutral--800);
	border-color: var(--neutral--800);
	color: #fff;
	font-weight: 700;
}

.oc-sr__pager-step.is-disabled {
	opacity: 0.4;
}

.oc-sr__pager-gap {
	padding: 0 2px;
	color: var(--neutral--600);
}

@media (max-width: 479px) {
	/* Keep the number row usable on a phone: arrows lose their words. */
	.oc-sr__pager-word {
		display: none;
	}
}

@media (max-width: 479px) {
	.oc-sr__form {
		flex-direction: column;
	}

	.oc-sr__submit {
		height: 48px;
	}
}
