/*
 * content.css
 * Independent clean-room implementation from a written spec (no source
 * file was read to produce this). A generic photo + copy grid: a copy
 * column with prose/link/list styling on the left, a media column on
 * the right, collapsing to a single column on narrow viewports.
 *
 * Note: this component is not currently wired up to any template in
 * the theme (no markup emits any of these classes today), so it can't
 * be pixel-verified against a live page -- every declaration below is
 * taken directly from the written spec.
 */

.ocf-content {
	background: var(--ocf-bg);
	overflow: hidden;
	position: relative;
}

.ocf-content__grid {
	align-items: center;
	gap: clamp(2rem, 6vw, 4rem);
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
	display: grid;
}

.ocf-content__copy {
	gap: 1rem;
	display: grid;
}

.ocf-content__body {
	max-width: 68ch;
	gap: 1rem;
	display: grid;
}

.ocf-content__body > * {
	margin: 0;
}

.ocf-content__body strong,
.ocf-content__body b {
	font-weight: var(--font-weight-bold);
	color: var(--ocf-heading);
}

.ocf-content__body a {
	text-underline-offset: 0.18em;
	text-decoration: underline;
	color: var(--ocf-primary);
}

.ocf-content__body ul,
.ocf-content__body ol {
	list-style: none;
	padding: 0;
	margin: 0.25rem 0 0;
	gap: 0.75rem;
	display: grid;
}

.ocf-content__body li {
	padding-left: 2.45rem;
	min-height: 1.4rem;
	position: relative;
}

.ocf-content__body li::before {
	box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--ocf-primary) 22%, transparent);
	background: var(--ocf-primary);
	border-radius: 999px;
	height: 1.25rem;
	width: 1.25rem;
	left: 0;
	top: 0.12em;
	position: absolute;
	content: "";
}

.ocf-content__body li::after {
	transform: rotate(-45deg);
	border-bottom: 2px solid var(--ocf-bg);
	border-left: 2px solid var(--ocf-bg);
	height: 0.26rem;
	width: 0.48rem;
	left: 0.37rem;
	top: 0.49em;
	position: absolute;
	content: "";
}

.ocf-content__media {
	box-shadow: var(--image-shadow);
	background: var(--ocf-bg-alt);
	border-radius: var(--image-radius);
	border: var(--card-border-width) solid var(--card-border-color);
	overflow: hidden;
	position: relative;
}

.ocf-content__media img {
	object-fit: cover;
	aspect-ratio: 4 / 3;
	width: 100%;
}

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