/* stylelint-disable no-descending-specificity */

/** Wave 1 dossier, hierarchy, equipment, and timeline presentation. */

:where(
.ef-product-spotlight-dossier,
.ef-category-browser,
.ef-equipment-dossier,
.ef-process-timeline
) {
	min-width: 0;
	color: var(--ef-commercial-ink, var(--ef-color-text));
}

:where(
.ef-product-spotlight-dossier,
.ef-category-browser,
.ef-equipment-dossier,
.ef-process-timeline
) > h2 {
	max-inline-size: 16ch;
	margin: 0 0 clamp(2rem, 4vw, 3.75rem);
	font-size: clamp(2rem, 3.5vw, 3.75rem);
	line-height: 1;
}

:where(
.ef-product-spotlight-dossier,
.ef-category-browser,
.ef-equipment-dossier,
.ef-process-timeline
) > h2::before {
	display: block;
	margin-block-end: 0.85rem;
	color: var(--ef-commercial-accent, var(--ef-color-primary));
	font-family: var(--ef-font-technical);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.12em;
}

/* 02 — Product Spotlight: a deep product dossier, not a large card. */
.ef-product-spotlight-dossier {
	display: grid;
	gap: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ef-product-spotlight-dossier__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--ef-commercial-accent, var(--ef-color-primary));
	font-family: var(--ef-font-technical);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ef-product-spotlight-dossier > h2 {
	margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.ef-product-spotlight-dossier > article {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(19rem, 1fr);
	gap: 0;
	min-width: 0;
	background: var(--ef-commercial-paper, var(--ef-color-surface));
	border-block: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

.ef-product-spotlight-dossier > article:not(:has(.ef-product-spotlight-dossier__media)) {
	grid-template-columns: minmax(0, 1fr);
}

.ef-product-spotlight-dossier > article:not(:has(.ef-product-spotlight-dossier__media))
.ef-product-spotlight-dossier__content {
	max-inline-size: 52rem;
	border-inline-start: 0;
}

.ef-product-spotlight-dossier__media {
	min-width: 0;
	margin: 0;
}

.ef-product-spotlight-dossier__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 25rem;
	object-fit: cover;
	border-radius: 0;
}

.ef-product-spotlight-dossier__content {
	display: grid;
	align-content: center;
	gap: clamp(1rem, 2vw, 1.4rem);
	min-width: 0;
	padding: clamp(2rem, 4vw, 3.5rem);
	border-inline-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

.ef-product-spotlight-dossier__content-label {
	margin: 0;
	color: var(--ef-commercial-accent, var(--ef-color-primary));
	font-family: var(--ef-font-technical);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ef-product-spotlight-dossier__content h3 {
	margin: 0;
	font-size: clamp(1.75rem, 2.6vw, 3rem);
	line-height: 1.04;
	overflow-wrap: break-word;
	word-break: normal;
}

.ef-product-spotlight-dossier__content > p:not([class]) {
	margin: 0;
	color: var(--ef-commercial-muted, var(--ef-color-muted));
	line-height: 1.65;
}

.ef-product-spotlight-dossier__facts {
	display: grid;
	margin: 0;
	border-block-end: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

.ef-product-spotlight-dossier__facts > div {
	display: grid;
	grid-template-columns: minmax(6rem, 0.72fr) minmax(0, 1.28fr);
	gap: 1rem;
	padding-block: 0.8rem;
	border-block-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

.ef-product-spotlight-dossier__facts :where(dt, dd) {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.ef-product-spotlight-dossier__facts dt {
	color: var(--ef-commercial-muted, var(--ef-color-muted));
	font-family: var(--ef-font-technical);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
}

.ef-product-spotlight-dossier__action {
	justify-self: start;
}

/* 03 — Category Browser: a navigable taxonomy index. */
.ef-category-browser > h2::before {
	content: "03";
}

.ef-category-browser > nav {
	border-block: 1px solid var(--ef-commercial-rule-strong, var(--ef-color-border));
}

.ef-category-browser > nav > .ef-category-browser__level {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ef-category-browser > nav > .ef-category-browser__level > li {
	min-width: 0;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border-block-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

/* stylelint-disable-next-line @stylistic/max-line-length */
.ef-category-browser > nav > .ef-category-browser__level > li:nth-child(-n + 2) {
	border-block-start: 0;
}

.ef-category-browser > nav > .ef-category-browser__level > li:nth-child(2n) {
	border-inline-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

.ef-category-browser__level .ef-category-browser__level {
	display: grid;
	gap: 0.55rem;
	margin-block-start: 1rem;
	padding-inline-start: 1rem;
	border-inline-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
	list-style: none;
}

.ef-category-browser a {
	color: inherit;
	font-weight: 650;
	text-decoration-color: transparent;
	text-underline-offset: 0.25em;
}

.ef-category-browser a:is(:hover, :focus-visible) {
	color: var(--ef-commercial-accent, var(--ef-color-primary));
	text-decoration-color: currentcolor;
}

.ef-category-browser__count {
	margin-inline-start: 0.35rem;
	color: var(--ef-commercial-muted, var(--ef-color-muted));
	font-family: var(--ef-font-technical);
	font-size: 0.68rem;
}

/* Visual Production Batch 01 — Technical Category Index. */
[data-ef-visual-grammar="technical-category-index"] {
	padding: clamp(var(--ef-primitive-space-8), 5vw, var(--ef-primitive-space-16));
	background: var(--ef-semantic-color-surface);
	border: var(--ef-primitive-border-thin) solid var(--ef-semantic-color-border);
}

[data-ef-visual-grammar="technical-category-index"] > h2 {
	max-inline-size: none;
	margin-block-end: clamp(var(--ef-primitive-space-8), 4vw, var(--ef-primitive-space-12));
}

[data-ef-visual-grammar="technical-category-index"] > h2::before {
	content: "03 / Product taxonomy";
}

[data-ef-visual-grammar="technical-category-index"] > nav > .ef-category-browser__level > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: var(--ef-primitive-space-3);
}

[data-ef-visual-grammar="technical-category-index"] .ef-category-browser__level .ef-category-browser__level {
	grid-column: 1 / -1;
}

/* 06 — Equipment Dossier: compact technical record and honest empty state. */
.ef-equipment-dossier {
	max-inline-size: 62rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.ef-equipment-dossier > h2::before {
	content: "06";
}

.ef-equipment-dossier__content {
	display: grid;
	grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1.58fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
	border-block: 1px solid var(--ef-commercial-rule-strong, var(--ef-color-border));
}

.ef-equipment-dossier dl {
	display: grid;
	gap: 0;
	margin: 0;
	font-family: var(--ef-font-technical);
	font-size: 0.8125rem;
}

.ef-equipment-dossier dl > div {
	display: grid;
	grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
	gap: 1rem;
	padding-block: 0.65rem;
	border-block-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
}

/* 07 — Process Timeline: a vertical manufacturing narrative. */
.ef-process-timeline > h2::before {
	content: "07";
}

.ef-process-timeline .ef-process-steps {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
	counter-reset: ef-process-step;
}

.ef-process-timeline .ef-process-steps > * {
	counter-increment: ef-process-step;
	grid-column: 4 / -1;
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.75rem) 5rem;
	border-block-start: 1px solid var(--ef-commercial-rule-strong, var(--ef-color-border));
}

.ef-process-timeline .ef-process-steps > *::before {
	position: absolute;
	inset: 1.8rem auto auto 0;
	color: var(--ef-commercial-accent, var(--ef-color-primary));
	font-family: var(--ef-font-technical);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	content: counter(ef-process-step, decimal-leading-zero);
}

.ef-process-timeline .ef-process-steps h3 {
	max-inline-size: 20ch;
	margin-block-start: 0;
	font-size: clamp(1.4rem, 2.5vw, 2.35rem);
}

@media (max-width: 56rem) {

	.ef-product-spotlight-dossier > article,
	.ef-category-browser > nav > .ef-category-browser__level,
	.ef-equipment-dossier__content {
		grid-template-columns: minmax(0, 1fr);
	}

	.ef-product-spotlight-dossier__image {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.ef-product-spotlight-dossier__content {
		border-inline-start: 0;
		border-block-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
	}

	.ef-product-spotlight-dossier__facts > div {
		grid-template-columns: minmax(7rem, 0.62fr) minmax(0, 1.38fr);
	}

	.ef-category-browser > nav > .ef-category-browser__level > li,
	.ef-category-browser > nav > .ef-category-browser__level > li:nth-child(2n) {
		border-inline-start: 0;
		border-block-start: 1px solid var(--ef-commercial-rule, var(--ef-color-border));
	}

	.ef-category-browser > nav > .ef-category-browser__level > li:first-child {
		border-block-start: 0;
	}

	.ef-process-timeline .ef-process-steps > * {
		grid-column: 1 / -1;
		padding-inline-start: 4rem;
	}
}

@media (max-width: 30rem) {

	.ef-product-spotlight-dossier__content {
		padding: 1.5rem;
	}

	.ef-product-spotlight-dossier__facts > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3rem;
	}

	.ef-product-spotlight-dossier__action {
		justify-self: stretch;
		text-align: center;
	}
}

/* Process Journey — Owner-approved Process Storyline presentation. */
.ef-process-storyline {
	padding-block: clamp(var(--ef-primitive-space-12), 7vw, var(--ef-primitive-space-24));
	color: var(--ef-semantic-color-text-default);
	background: var(--ef-semantic-color-surface);
}

.ef-process-storyline__frame {
	display: grid;
	gap: clamp(var(--ef-primitive-space-8), 4vw, var(--ef-primitive-space-12));
}

.ef-process-storyline__header {
	display: grid;
	gap: var(--ef-primitive-space-3);
}

.ef-process-storyline__eyebrow,
.ef-process-storyline__panel-label {
	margin: 0;
	color: var(--ef-semantic-color-info-border);
	font-family: var(--ef-font-technical);
	font-size: var(--ef-technical-label-font-size);
	font-weight: var(--ef-technical-label-font-weight);
	letter-spacing: var(--ef-technical-label-letter-spacing);
	text-transform: uppercase;
}

.ef-process-storyline__header h2 {
	max-inline-size: 18ch;
	margin: 0;
	font-size: var(--ef-semantic-typography-size-section-heading);
	line-height: var(--ef-semantic-typography-line-heading);
	letter-spacing: var(--ef-semantic-typography-tracking-hero);
}

.ef-process-storyline__panel {
	min-width: 0;
	padding: clamp(var(--ef-primitive-space-6), 3vw, var(--ef-primitive-space-10));
	color: var(--ef-hero-foreground);
	background: var(--ef-semantic-color-brand-primary-strong);
	border-radius: var(--ef-radius-card);
}

.ef-process-storyline__panel-label {
	margin-block-end: clamp(var(--ef-primitive-space-8), 3vw, var(--ef-primitive-space-12));
}

.ef-process-timeline.ef-process-storyline .ef-process-steps {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: clamp(var(--ef-primitive-space-3), 1.4vw, var(--ef-primitive-space-6));
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step {
	display: grid;
	align-content: start;
	gap: var(--ef-primitive-space-4);
	grid-column: auto;
	min-width: 0;
	padding: 0;
	border: 0;
	position: relative;
}

.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step::before {
	content: none;
}

.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step:not(:last-child)::after {
	content: "";
	position: absolute;
	inset: 2.15rem calc(-1 * clamp(var(--ef-primitive-space-3), 1.4vw, var(--ef-primitive-space-6))) auto calc(2.75rem + var(--ef-primitive-space-3));
	border-block-start: var(--ef-primitive-border-thin) solid var(--ef-hero-muted);
}

.ef-process-storyline__number {
	display: grid;
	place-items: center;
	inline-size: 4.25rem;
	block-size: 4.25rem;
	color: var(--ef-semantic-color-info-border);
	font-family: var(--ef-font-technical);
	font-weight: 700;
	background: var(--ef-semantic-color-brand-primary-strong);
	border: var(--ef-primitive-border-thin) solid var(--ef-hero-muted);
	border-radius: var(--ef-primitive-radius-full);
	position: relative;
	z-index: 1;
}

.ef-process-timeline.ef-process-storyline .ef-process-steps h3 {
	max-inline-size: none;
	margin: 0;
	color: var(--ef-hero-foreground);
	font-size: clamp(0.86rem, 1vw, 1.02rem);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ef-process-storyline .ef-process-timeline__action {
	margin: clamp(var(--ef-primitive-space-8), 3vw, var(--ef-primitive-space-12)) 0 0;
	padding-block-start: var(--ef-primitive-space-6);
	border-block-start: var(--ef-primitive-border-thin) solid var(--ef-hero-muted);
}

.ef-process-storyline .ef-process-timeline__action a {
	color: var(--ef-semantic-color-info-border);
	font-weight: 700;
	text-decoration-thickness: var(--ef-primitive-border-thin);
	text-underline-offset: 0.3em;
}

@media (max-width: 48rem) {

	.ef-process-storyline {
		padding-block: var(--ef-primitive-space-12);
	}

	.ef-process-timeline.ef-process-storyline .ef-process-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step {
		grid-template-columns: 3rem minmax(0, 1fr);
		align-items: center;
		gap: var(--ef-primitive-space-4);
		padding-block: var(--ef-primitive-space-4);
		border-block-start: var(--ef-primitive-border-thin) solid var(--ef-hero-muted);
	}

	.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step:first-child {
		border-block-start: 0;
	}

	.ef-process-timeline.ef-process-storyline .ef-process-steps > .ef-process-storyline__step:not(:last-child)::after {
		content: none;
	}

	.ef-process-storyline__number {
		inline-size: 3rem;
		block-size: 3rem;
	}

	.ef-process-timeline.ef-process-storyline .ef-process-steps h3 {
		font-size: 1rem;
	}
}
