/**
 * Cards X-Up (Text) (inc/blocks-layout/cards-x-up-text.php) — a repeater
 * of Title (optionally linked) + Text cards, pre-chunked in PHP into rows
 * of up to 5 (see that file's doc comment for the row-distribution math).
 * Each .cxu-row is its own flex container, so a row of 3 divides into
 * thirds and a row of 4 into quarters, independent of any other row.
 * Stacks to one card per line below 900px regardless of row size.
 *
 * Padding Top / Padding Bottom are independent per-block choices
 * (.cxu-pad-top-0/2/4, .cxu-pad-bottom-0/2/4); side padding and the
 * 75rem max-width are fixed.
 */

.cards-x-up-text-block {
	max-width: 75rem;
	margin: 0 auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.cxu-pad-top-0 {
	padding-top: 0;
}

.cxu-pad-top-2 {
	padding-top: 2rem;
}

.cxu-pad-top-4 {
	padding-top: 4rem;
}

.cxu-pad-bottom-0 {
	padding-bottom: 0;
}

.cxu-pad-bottom-2 {
	padding-bottom: 2rem;
}

.cxu-pad-bottom-4 {
	padding-bottom: 4rem;
}

.cxu-rows {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
  border-top: 1px solid #cacaca;
  padding-top: 1.25rem;
}

.cxu-row {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.cxu-row {
		flex-direction: row;
		gap: 2rem;
	}

	.cxu-card {
		flex: 1 1 0%;
	}
}

.cxu-card-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-bold);
	font-style: normal;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--room-ink);
}

.cxu-card-title-link {
	color: inherit;
	text-decoration: none;
}

.cxu-card-title-link:hover {
	text-decoration: underline;
}

.cxu-card-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333333;
}