/* Rankzix Content System — shared article-card component.
   Used by BOTH Related Articles (single posts) and the Author archive
   grid, loaded on both — one definition, no duplicated card CSS.
   Brand font: Manrope (reused from the site's existing global font
   load — no new Google Fonts request is made here). */

.rzcs-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: stretch;
	font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rzcs-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.rzcs-card:hover {
	border-color: #2563EB;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}
.rzcs-card-thumb {
	display: block;
}
.rzcs-card-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	aspect-ratio: 16 / 9;
}
.rzcs-card-thumb-fallback {
	position: relative;
	height: 160px;
	display: flex;
	align-items: flex-end;
	padding: 16px;
	box-sizing: border-box;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 15%, rgba(37,99,235,0.35) 0%, transparent 55%),
		linear-gradient(155deg, #0F172A 0%, #172554 100%);
}
.rzcs-fallback-pattern {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(96,165,250,0.35) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
	background-position: -4px -4px;
	opacity: 0.5;
	pointer-events: none;
}
.rzcs-fallback-category {
	position: relative;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #60A5FA;
}
.rzcs-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}
.rzcs-card-category {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #2563EB;
	text-decoration: none;
	align-self: flex-start;
}
.rzcs-card-category:hover {
	text-decoration: underline;
}
.rzcs-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #0F172A;
	text-decoration: none;
	line-height: 1.35;
}
.rzcs-card-title:hover {
	color: #2563EB;
}
.rzcs-card-excerpt {
	font-size: 13px;
	color: #64748B;
	margin: 0;
	line-height: 1.5;
}
.rzcs-card-meta {
	font-size: 12px;
	color: #94A3B8;
	margin-top: 4px;
}
.rzcs-card-readmore {
	font-size: 13px;
	font-weight: 600;
	color: #2563EB;
	text-decoration: none;
	margin-top: auto;
	padding-top: 6px;
}
.rzcs-card-readmore:hover {
	text-decoration: underline;
}
.rzcs-card a:focus-visible {
	outline: 2px solid #2563EB;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
	.rzcs-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop: 3 columns */
@media (min-width: 1200px) {
	.rzcs-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
