/* ==========================================================================
   FORC Testimonies
   Restyle by changing the variables in the first block. Nothing else needed.
   ========================================================================== */

.forc-t-grid {
	--forc-t-accent: #1f5aa6;      /* change to your church brand colour */
	--forc-t-border: #e4e7ec;
	--forc-t-muted: #667085;
	--forc-t-radius: 12px;
	--forc-t-gap: 28px;

	display: grid;
	gap: var(--forc-t-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 2rem 0;
}

.forc-t-cols-1 { grid-template-columns: minmax(0, 1fr); }
.forc-t-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.forc-t-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.forc-t-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.forc-t-cols-3,
	.forc-t-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.forc-t-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Card ---------------------------------------------------------------- */

.forc-t-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--forc-t-border);
	border-radius: var(--forc-t-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.forc-t-card:hover {
	box-shadow: 0 8px 24px rgba(16, 24, 40, .09);
	transform: translateY(-2px);
}

/* --- Photo --------------------------------------------------------------- */

.forc-t-photo {
	display: block;
	line-height: 0;
	background: #f2f4f7;
}

.forc-t-photo img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* --- Body ---------------------------------------------------------------- */

.forc-t-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 22px;
}

.forc-t-tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--forc-t-accent);
	background: color-mix(in srgb, var(--forc-t-accent) 10%, #fff);
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 12px;
}

.forc-t-title {
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 0 0 10px;
}

.forc-t-title a {
	color: inherit;
	text-decoration: none;
}

.forc-t-title a:hover { color: var(--forc-t-accent); }

.forc-t-excerpt {
	color: var(--forc-t-muted);
	font-size: .95rem;
	line-height: 1.65;
	margin-bottom: 16px;
}

.forc-t-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
	font-size: .875rem;
	margin: auto 0 14px;
	padding-top: 14px;
	border-top: 1px solid var(--forc-t-border);
}

.forc-t-person {
	font-weight: 600;
	color: #101828;
}

.forc-t-location {
	color: var(--forc-t-muted);
}

.forc-t-location::before {
	content: "\00b7";
	margin-right: 8px;
}

.forc-t-more {
	align-self: flex-start;
	font-size: .9rem;
	font-weight: 600;
	color: var(--forc-t-accent);
	text-decoration: none;
}

.forc-t-more:hover { text-decoration: underline; }

.forc-t-more::after {
	content: " \2192";
}

/* --- Single testimony page ---------------------------------------------- */

.forc-t-single-byline {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #e4e7ec;
	font-weight: 600;
	color: #101828;
}

.forc-t-single-byline .forc-t-location {
	font-weight: 400;
	color: #667085;
}

.forc-t-empty {
	color: #667085;
	font-style: italic;
}

/* --- Screen readers only ------------------------------------------------- */

.forc-t-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * No prefers-color-scheme block on purpose. The theme is light-only, so
 * recolouring the cards for a visitor whose phone is in dark mode leaves the
 * headings and the byline unreadable against the theme's white page.
 */
