/*
 * commitments.css
 * Independent clean-room implementation from a written spec (no source
 * file was read to produce this). Homepage "why us" / commitments
 * section: a numbered list of promises with a connecting vertical
 * line, plus an image column.
 *
 * The double-underscore selectors ("__grid", "__list", "__media") are
 * kept alongside the single-hyphen ones for parity with the spec, but
 * no template in this theme emits them today -- only the hyphenated
 * names are live.
 */

.ocf-commitments {
	background: var(--ocf-bg-alt);
}

.ocf-commitments-grid,
.ocf-commitments__grid {
	gap: clamp(2rem, 6vw, 4rem);
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	align-items: start;
	display: grid;
}

.ocf-commitments-content {
	gap: clamp(1.85rem, 3vw, 2.4rem);
	display: grid;
}

.ocf-commitments-description {
	max-width: 58ch;
	margin: 1rem 0 0;
}

.ocf-commitments-list,
.ocf-commitments__list {
	gap: 0;
	display: grid;
}

.ocf-commitments .ocf-commitments-list,
.ocf-commitments .ocf-commitments__list {
	position: relative;
}

.ocf-commitment {
	padding: 1.2rem 0;
	background: transparent;
	border: 0;
	gap: clamp(1rem, 2vw, 1.35rem);
	grid-template-columns: auto 1fr;
	align-items: start;
	display: grid;
}

.ocf-commitment:first-child {
	padding-top: 0;
}

.ocf-commitment:last-child {
	padding-bottom: 0;
}

.ocf-commitments .ocf-commitment {
	position: relative;
}

.ocf-commitments .ocf-commitment:not(:last-child)::before {
	background: var(--ocf-primary);
	width: 2px;
	left: calc(1.625rem - 1px);
	bottom: calc(-1.2rem - 1px);
	top: calc(3.25rem - 1px);
	z-index: 2;
	position: absolute;
	content: "";
}

.ocf-commitments .ocf-commitment:not(:last-child)::after {
	background: var(--ocf-border-light);
	height: 1px;
	left: calc(3.25rem + clamp(1rem, 2vw, 1.35rem));
	bottom: -1px;
	right: 0;
	z-index: 3;
	position: absolute;
	content: "";
}

.ocf-commitment + .ocf-commitment {
	border-top: 1px solid var(--ocf-border-light);
}

.ocf-commitment-num {
	line-height: 1;
	font-weight: var(--font-weight-bold);
	font-size: var(--font-h3-size);
	color: var(--ocf-primary-contrast, var(--ocf-heading-alt));
	background: var(--ocf-primary);
	border-radius: var(--radius-full);
	block-size: 3.25rem;
	inline-size: 3.25rem;
	place-items: center;
	display: inline-grid;
	z-index: 3;
	position: relative;
}

.ocf-commitment h3 {
	font-weight: var(--font-weight-bold);
	font-size: var(--font-h3-size);
	color: var(--ocf-heading);
	margin: 0 0 0.35rem;
}

.ocf-commitment p {
	color: var(--ocf-body);
	margin: 0;
}

.ocf-commitments-image,
.ocf-commitments__media {
	box-shadow: var(--image-shadow);
	background: var(--ocf-bg);
	border-radius: var(--image-radius);
	border: var(--card-border-width) solid var(--card-border-color);
	overflow: hidden;
}

.ocf-commitments-image img,
.ocf-commitments__media img {
	object-fit: cover;
	aspect-ratio: 1 / 1;
	width: 100%;
}

@media (max-width: 860px) {
	.ocf-commitments-grid,
	.ocf-commitments__grid {
		grid-template-columns: 1fr;
	}
}
