/* RC30.1: requirement catalog additions built on the shared machinery catalog UI. */
.om-requirements-catalog {
	--req-orange: #f47a20;
	--req-green: #167344;
}

.om-requirements-hero {
	position: relative;
	overflow: hidden;
	border-top-color: var(--req-orange);
}

.om-requirements-hero::after {
	position: absolute;
	right: -72px;
	top: -86px;
	width: 235px;
	height: 235px;
	border: 46px solid rgb(19 94 174 / 5%);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.om-requirements-hero > * {
	position: relative;
	z-index: 1;
}

.om-requirements-hint {
	margin: 18px 0 !important;
	padding: 10px 13px;
	border-left: 3px solid var(--blue);
	background: #f5f8fb;
	color: var(--muted);
	font-size: 11px;
}

.om-requirements-tip {
	border-top: 3px solid var(--blue);
}

.om-opportunity-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.om-opportunity-card {
	min-width: 0;
	border: 1px solid var(--line);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.om-opportunity-card:hover {
	border-color: #96b2ce;
	box-shadow: 0 12px 28px rgb(20 45 69 / 9%);
	transform: translateY(-2px);
}

.om-opportunity-link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: var(--ink) !important;
	text-decoration: none !important;
}

.om-opportunity-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
	padding: 13px 17px;
	border-bottom: 1px solid var(--line);
	background: #f7f9fb;
}

.om-opportunity-status,
.om-opportunity-modality {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 10px;
	font-weight: 760;
}

.om-opportunity-status {
	color: var(--req-green);
}

.om-opportunity-status i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #20a464;
}

.om-opportunity-modality {
	padding: 3px 8px;
	background: #e8f2fc;
	color: var(--blue);
}

.om-opportunity-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.om-opportunity-category {
	margin-bottom: 6px !important;
	color: var(--blue);
	font-size: 10px;
	font-weight: 760;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.om-opportunity-body h3 {
	min-height: 48px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 730;
	line-height: 1.35;
	letter-spacing: -.018em;
	overflow-wrap: anywhere;
}

.om-opportunity-description {
	display: -webkit-box;
	min-height: 63px;
	margin-top: 9px !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
}

.om-opportunity-location {
	display: flex;
	gap: 7px;
	align-items: flex-start;
	min-height: 40px;
	margin: 14px 0 !important;
	color: #425a70;
	font-size: 12px;
}

.om-opportunity-location > span {
	flex: 0 0 auto;
	color: var(--req-orange);
	font-size: 16px;
	line-height: 1.2;
}

.om-opportunity-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: auto 0 0 !important;
	padding-top: 14px;
	border-top: 1px solid #edf1f4;
}

.om-opportunity-specs > div {
	min-width: 0;
}

.om-opportunity-specs dt {
	color: var(--muted);
	font-size: 9px;
	text-transform: uppercase;
}

.om-opportunity-specs dd {
	margin: 3px 0 0;
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.om-opportunity-services {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.om-opportunity-services > span {
	padding: 4px 8px;
	background: #f0f3f6;
	color: #66798a;
	font-size: 9px;
	font-weight: 680;
}

.om-opportunity-services > span.is-requested {
	background: #edf7f1;
	color: var(--req-green);
}

.om-opportunity-cta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--blue);
	font-size: 12px;
	font-weight: 780;
}

.om-requirements-catalog .obraymaq-pagination {
	margin-top: 34px;
}

@media (max-width: 1100px) {
	.om-opportunity-grid {
		grid-template-columns: 1fr;
	}

	.om-opportunity-body h3,
	.om-opportunity-description,
	.om-opportunity-location {
		min-height: 0;
	}
}

@media (max-width: 760px) {
	.om-opportunity-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.om-opportunity-body {
		padding: 16px;
	}
}

@media (max-width: 560px) {
	.om-opportunity-grid {
		grid-template-columns: 1fr;
	}

	.om-opportunity-top {
		padding: 12px 15px;
	}

	.om-opportunity-specs {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.om-opportunity-card {
		transition: none;
	}
}
