/* Career Listings — front-end grid.
 *
 * Column counts are explicit rather than auto-fit: the brief is 3 across on
 * desktop, 2 on tablet, 1 on mobile, and auto-fit would give a different answer
 * inside a narrow content column.
 */

.pcgcl-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 0 0 28px;
}

.pcgcl-card {
	box-sizing: border-box;
	border: 1px solid #d8d8d8;
	background: #fff;
	padding: 28px 26px;
}

.pcgcl-card__title {
	margin: 0 0 22px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: inherit;
}

.pcgcl-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	color: #1667a8;
}

.pcgcl-card__link:hover,
.pcgcl-card__link:focus {
	text-decoration: underline;
}

/* Tablet: 2 across, unless the shortcode asked for 1. */
@media (min-width: 600px) {
	.pcgcl-grid--cols-2,
	.pcgcl-grid--cols-3,
	.pcgcl-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Desktop: whatever the shortcode asked for. */
@media (min-width: 1024px) {
	.pcgcl-grid--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pcgcl-grid--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Themes that don't ship .screen-reader-text would otherwise render the
 * link's context text visibly. Scoped so a theme's own rule still wins nothing
 * it needs to. */
.pcgcl-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
