/* Only El proyecto: shared theme tokens, editable native blocks. */
.dm-project-page {
	box-sizing: border-box;
	margin-block: 0;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--wp--custom--article--gutter) clamp(3.5rem, 7vw, 6rem);
	color: var(--wp--custom--article--ink);
	font-family: var(--wp--preset--font-family--system);
	font-size: var(--wp--preset--font-size--article-body);
	line-height: 1.7;
}

.dm-project-page > .wp-block-post-title {
	margin-block: 0;
	font-family: var(--wp--preset--font-family--editorial);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: pretty;
}

.dm-project-page > .wp-block-post-content {
	margin-block-start: 1.5rem;
}

.dm-project {
	color: var(--wp--custom--article--ink, #292b29);
	font-family: var(--wp--preset--font-family--system, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 1.125rem;
	line-height: 1.7;
}

.dm-project :where(p, ol, ul) {
	margin-block: 1.1em 0;
	overflow-wrap: break-word;
}

.dm-project .dm-project-intro {
	margin-block: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	line-height: 1.5;
	text-wrap: pretty;
}

.dm-project .dm-project-section {
	margin-block: clamp(2.75rem, 5vw, 3.75rem) 0;
}

.dm-project h2 {
	margin-block: 0 1rem;
	font-family: var(--wp--preset--font-family--editorial, Georgia, "Times New Roman", serif);
	font-size: clamp(1.75rem, 1.6rem + 0.5vw, 2rem);
	font-weight: 400;
	line-height: 1.25;
	text-wrap: pretty;
}

.dm-project h2 + p {
	margin-block-start: 0;
}

.dm-project h3 {
	margin-block: 1.75rem 0.75rem;
	font-family: var(--wp--preset--font-family--editorial, Georgia, "Times New Roman", serif);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.3;
	text-wrap: pretty;
}

.dm-project h3 + p {
	margin-block-start: 0;
}

.dm-project .dm-project-flow-label {
	margin-block-start: 2rem;
	color: var(--wp--custom--article--link, #365b49);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Editable groups distinguish the recorded information from its two uses. */
.dm-project .dm-project-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: center;
	gap: 2rem;
	margin-block: 0.75rem 0;
	padding-block: 1.75rem;
	border-block: 1px solid #dce5df;
	font-size: 1rem;
	line-height: 1.6;
}

.dm-project .dm-project-flow-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	min-width: 0;
	margin-block: 0;
	padding-inline-start: 1.75rem;
	border-inline-start: 1px solid #dce5df;
}

.dm-project .dm-project-flow-step {
	min-width: 0;
	margin-block: 0;
}

.dm-project-flow-register {
	--dm-project-accent: #d47476;
	--dm-project-icon: url("../editorial/project-register.svg");
}

.dm-project-flow-consult {
	--dm-project-accent: #365b49;
	--dm-project-icon: url("../editorial/project-consult.svg");
}

.dm-project-flow-explore {
	--dm-project-accent: #6b999b;
	--dm-project-icon: url("../editorial/project-explore.svg");
}

.dm-project-flow-step::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-block-end: 1rem;
	background-color: var(--dm-project-accent);
	-webkit-mask: var(--dm-project-icon) center / contain no-repeat;
	mask: var(--dm-project-icon) center / contain no-repeat;
}

.dm-project .dm-project-flow h3 {
	margin-block: 0;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
}

.dm-project .dm-project-flow p {
	margin-block: 0.5rem 0;
	font-size: 1rem;
	line-height: 1.6;
}

.dm-project .dm-project-flow .dm-project-flow-context {
	grid-column: 1 / -1;
	margin-block: 0;
	color: var(--wp--custom--article--muted, #656963);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.dm-project .dm-project-explore {
	padding-block-start: 2rem;
	border-block-start: 1px solid #dce5df;
}

.dm-project .dm-project-explore-links {
	margin-block: 0;
	padding-inline-start: 1.25em;
}

.dm-project .dm-project-explore-links li + li {
	margin-block-start: 0.5rem;
}

.dm-project a {
	color: var(--wp--custom--article--link, #365b49);
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.dm-project a:hover {
	text-decoration-thickness: 2px;
}

.dm-project a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Stack the origin and both alternatives at the theme's mobile breakpoint. */
@media (max-width: 781px) {
	.dm-project .dm-project-flow {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.dm-project .dm-project-flow-options {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
		padding-block-start: 1.25rem;
		padding-inline-start: 0;
		border-block-start: 1px solid #dce5df;
		border-inline-start: 0;
	}

	.dm-project .dm-project-flow-step {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 1rem;
	}

	.dm-project-flow-step::before {
		grid-row: 1 / span 2;
		margin-block-end: 0;
	}

	.dm-project .dm-project-flow-step > :is(h3, p) {
		grid-column: 2;
	}
}

@media (min-width: 782px) {
	.dm-project-page > .wp-block-post-title {
		font-size: clamp(2.2rem, 1.76rem + 1.76vw, 3.08rem);
	}
}
