/**
 * Editable article-body components used inside the Phase 2 Post Content canvas.
 */

:where(.article-single, .editor-styles-wrapper) .article-introduction {
	box-sizing: border-box;
	margin-block: 0 clamp(5rem, 9vw, 9rem);
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__columns {
	align-items: flex-start;
	gap: clamp(2.5rem, 7vw, 7rem);
	margin-block: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__meta {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.045em;
	line-height: 1.4;
	text-transform: uppercase;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__meta p,
:where(.article-single, .editor-styles-wrapper) .article-introduction__date,
:where(.article-single, .editor-styles-wrapper) .article-introduction__byline,
:where(.article-single, .editor-styles-wrapper) .article-publication-meta {
	margin-block: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__meta .wp-block-paragraph,
:where(.article-single, .editor-styles-wrapper) .article-publication-meta p {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__byline {
	gap: 0.35em;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__publication,
:where(.article-single, .editor-styles-wrapper) .article-publication-meta {
	border-top: 1px solid currentColor;
	margin-block-start: 1.25rem;
	padding-block-start: 1.25rem;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__publication {
	display: grid;
	gap: 0.35rem;
}

:where(.article-single, .editor-styles-wrapper) .article-publication-meta {
	display: grid;
	gap: 0.18rem;
}

:where(.article-single, .editor-styles-wrapper) .article-publication-meta__placeholder {
	font-style: italic;
	text-transform: none;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__copy {
	font-family: var(--wp--preset--font-family--primary);
	line-height: 1.55;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__copy > p:not(.article-introduction__lead) {
	font-size: var(--wp--preset--font-size--normal);
	font-family: var(--wp--preset--font-family--primary);
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__copy > p {
	margin-block: 0 1.4em;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__lead {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

:where(.article-single, .editor-styles-wrapper) .article-introduction__copy > p:last-child {
	margin-block-end: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-section {
	margin-block: clamp(5rem, 10vw, 10rem);
}

:where(.article-single, .editor-styles-wrapper) .article-section__label,
:where(.article-single, .editor-styles-wrapper) .article-figure__label,
:where(.article-single, .editor-styles-wrapper) .article-figure__caption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xx-small);
	letter-spacing: 0.045em;
	line-height: 1.35;
	text-transform: uppercase;
}

:where(.article-single, .editor-styles-wrapper) .article-section__label {
	margin: 0 0 var(--wp--preset--spacing--small);
}

:where(.article-single, .editor-styles-wrapper) .article-section__heading {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--font-weight--bold, 700);
	letter-spacing: -0.025em;
	line-height: 1;
	margin-block: 0 var(--wp--preset--spacing--medium);
}

:where(.article-single, .editor-styles-wrapper) .article-section__deck {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	margin-block: 0 var(--wp--preset--spacing--large);
}

:where(.article-single, .editor-styles-wrapper) .article-section__body {
	line-height: 1.65;
	margin-block: 0 1.5em;
}

:where(.article-single, .editor-styles-wrapper) p.article-section__body {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--normal);
}

:where(.article-single, .editor-styles-wrapper) .article-section__intro {
	margin-block-end: var(--wp--preset--spacing--x-large);
}

.article-single .article-figure,
.editor-styles-wrapper .article-figure {
	box-sizing: border-box;
	margin-block: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-figure__label,
:where(.article-single, .editor-styles-wrapper) .article-figure__caption {
	color: var(--wp--preset--color--primary);
	margin-block: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-figure__label {
	margin-block-end: 0.75rem;
}

:where(.article-single, .editor-styles-wrapper) .article-figure__caption {
	margin-block-start: 0.75rem;
}

:where(.article-single, .editor-styles-wrapper) .article-figure__media,
:where(.article-single, .editor-styles-wrapper) .article-figure__media img {
	box-sizing: border-box;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.article-single .article-figure__media,
.editor-styles-wrapper .article-figure__media {
	margin-block: var(--wp--preset--spacing--x-large);
}

:where(.article-single, .editor-styles-wrapper) .article-figure__media img {
	margin-block: 0;
}

.editor-styles-wrapper .article-figure__media {
	min-height: 12rem;
}

:where(.article-single, .editor-styles-wrapper) .wp-block-quote.article-editorial-quote {
	margin-block: 2rem;
}

:where(.article-single, .editor-styles-wrapper) .wp-block-quote.article-editorial-quote > p {
	font-size: var(--wp--preset--font-size--large);
}

/*
 * General article stage cards.
 * The card owns the perimeter; the header and number own one separator each.
 * No two bordered elements share an edge, so every visible rule stays 2px.
 */
:where(.article-single, .editor-styles-wrapper) .article-stage-grid {
	--article-stage-number-box: clamp(5.5rem, 7vw, 6.25rem);
	align-items: stretch;
	gap: clamp(1.25rem, 2.2vw, 1.75rem);
	margin-inline: 0;
	margin-block: clamp(2.5rem, 5vw, 4.5rem);
	max-width: none;
	width: 100%;
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card {
	background: var(--wp--preset--color--page-white);
	border: 2px solid var(--wp--preset--color--purple);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__header {
	border-bottom: 2px solid var(--wp--preset--color--purple);
	display: grid;
	grid-template-columns: var(--article-stage-number-box) minmax(0, 1fr);
	margin: 0;
	min-height: var(--article-stage-number-box);
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__number {
	align-items: center;
	aspect-ratio: 1;
	border-right: 2px solid var(--wp--preset--color--purple);
	box-sizing: border-box;
	color: var(--wp--preset--color--purple);
	display: flex;
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(2.25rem, 3.5vw, 3rem);
	font-weight: 400;
	height: var(--article-stage-number-box);
	justify-content: center;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0;
	padding: 0.75rem;
	width: var(--article-stage-number-box);
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__title,
:where(.article-single, .editor-styles-wrapper) .article-stage-card__body {
	box-sizing: border-box;
	gap: 0;
	margin: 0;
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__title {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1rem clamp(1.25rem, 2vw, 1.75rem);
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__body {
	flex: 1;
	min-height: clamp(9rem, 12vw, 11rem);
	padding: clamp(1.25rem, 2.25vw, 2rem);
}

:where(.article-single, .editor-styles-wrapper) p.article-stage-card__eyebrow {
	color: var(--wp--preset--color--purple);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.045em;
	line-height: 1.2;
	margin: 0 0 0.25rem;
	text-transform: uppercase;
}

:where(.article-single, .editor-styles-wrapper) .article-stage-card__heading {
	color: var(--wp--preset--color--purple);
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.1;
	margin: 0;
}

:where(.article-single, .editor-styles-wrapper) p.article-stage-card__description {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
}

@media (max-width: 781px) {
	:where(.article-single, .editor-styles-wrapper) .article-introduction__columns {
		gap: var(--wp--preset--spacing--large);
	}

	:where(.article-single, .editor-styles-wrapper) .article-stage-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	:where(.article-single, .editor-styles-wrapper) .article-stage-card__title,
	:where(.article-single, .editor-styles-wrapper) .article-stage-card__body {
		padding-inline: 1.15rem;
	}
}
