/* Lite Related Posts — front-end cards
   Desktop: 4 columns · Tablet: 2 · Mobile: 1
   Square thumbnail, full title, 12-word excerpt. */

.lrp-related {
	margin: 48px 0 16px;
	clear: both;
}

.lrp-related__title {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 20px;
	color: #1d3557;
}

.lrp-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 18px;
}

.lrp-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	border: 1px solid #e7eaf0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	height: 100%;
}

.lrp-card:hover,
.lrp-card:focus-visible {
	transform: translateY( -3px );
	box-shadow: 0 10px 24px rgba( 29, 53, 87, 0.12 );
	border-color: #cfd6e4;
}

.lrp-card:focus-visible {
	outline: 2px solid #1d3557;
	outline-offset: 2px;
}

/* Square image holder */
.lrp-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f1f3f7;
	overflow: hidden;
}

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

/* Placeholder for items without a featured image (e.g. taxonomies) */
.lrp-card__thumb--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b3bccd;
	background: linear-gradient( 135deg, #eef1f6 0%, #e3e8f1 100% );
}

.lrp-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 14px 16px;
}

.lrp-card__title {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1d3557;
}

.lrp-card:hover .lrp-card__title,
.lrp-card:focus-visible .lrp-card__title {
	color: #14233b;
}

.lrp-card__excerpt {
	font-size: 0.85rem;
	line-height: 1.5;
	color: #5b6473;
}

/* Tablet */
@media ( max-width: 900px ) {
	.lrp-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* Mobile */
@media ( max-width: 600px ) {
	.lrp-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.lrp-related__title {
		font-size: 1.3rem;
	}
}

/* Respect reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.lrp-card {
		transition: none;
	}
	.lrp-card:hover,
	.lrp-card:focus-visible {
		transform: none;
	}
}
