.cpjobs-wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cpjobs-card {
	background: var(--cpjobs-bg, #fff);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 14px;
	padding: 22px;
}

/* Make entire card clickable */
.cpjobs-card {
	position: relative;
	cursor: pointer;
}

/* Overlay click target */
.cpjobs-card[data-url]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Ensure inner elements stay clickable */
.cpjobs-card a, .cpjobs-card button {
	position: relative;
	z-index: 2;
}

/* Clickable card affordance */
.cpjobs-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Hover for mouse users */
.cpjobs-card[data-url]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.12);
	border-color: rgba(0,0,0,0.18);
}

/* Keyboard accessibility */
.cpjobs-card[data-url]:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.cpjobs-title {
	margin: 0 0 14px 0;
	line-height: 1.2;
	color: var(--cpjobs-h, #111);
}

.cpjobs-title a {
	color: inherit;
	text-decoration: none;
}

/* Title link cue */
.cpjobs-card[data-url]:hover .cpjobs-title a {
	text-decoration: underline;
}

/* Optional subtle arrow indicator */
.cpjobs-card[data-url] .cpjobs-title::after {
	content: " →";
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	transform: translateX(-4px);
}

.cpjobs-card[data-url]:hover .cpjobs-title::after {
	opacity: 1;
	transform: translateX(0);
}

.cpjobs-toprow {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
	color: var(--cpjobs-p, #333);
}

.cpjobs-featured {
	font-weight: 600;
	color: #2b5fff;
	white-space: nowrap;
}

/* FIX: keep salary pinned right even if meta is empty */
.cpjobs-midrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--cpjobs-p, #333);
}

.cpjobs-meta {
	flex: 1;
	min-width: 0;
}

.cpjobs-salary {
	margin-left: auto;
	white-space: nowrap;
	text-align: right;
	font-weight: 600;
}

.cpjobs-divider {
	height: 1px;
	background: rgba(0,0,0,.10);
	margin: 14px 0;
}

.cpjobs-desc {
	margin: 0;
	color: var(--cpjobs-p, #333);
	line-height: 1.55;
}

/* Responsive */
@media (max-width: 640px) {
	.cpjobs-toprow {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Stack meta + salary but keep salary on the right */
	.cpjobs-midrow {
		flex-direction: column;
		align-items: flex-start;
	}

	.cpjobs-salary {
		margin-left: 0;
		align-self: flex-end;
		white-space: normal;
		text-align: right;
	}
}