/**
 * Komorebi Feature band (inc/elementor/widgets/feature-band.php), Figma "V6 Feature band · How
 * to eat" (18:6424): desktop, an ink panel (520, padding 48) centred on the full photo; tablet
 * and phone, the photo on top and the text under it on ink.
 */

.km-feature {
	display: flex;
	align-items: center;
	min-height: var(--km-feature-h, 680px);
	background: var(--km-c-ink);
	color: var(--km-text);
	overflow: hidden;
}

.km-feature__media {
	position: absolute;
	inset: 0;
	background: var(--km-c-ink);
}

.km-feature .km-feature__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.km-feature__stage {
	position: relative;
}

.km-feature__panel {
	width: min(var(--km-feature-panel, 520px), 100%);
	padding: 48px;
	background: var(--km-feature-panel-bg, var(--km-c-ink));
}

/* Shippori Mincho 40 / 36 / 28, line-height 120%. */
.km-feature .km-feature__title {
	color: var(--km-heading);
	font-family: var(--km-serif);
	font-size: 40px;
	line-height: 1.2;
	font-weight: 400;
}

.km-feature .km-feature__text {
	margin-top: 16px;
	color: var(--km-text);
}

/* Steps: icon 24 (4 down), Shippori 22 label 12 to its right, rows 18 apart. */
.km-feature__steps {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 28px;
}

.km-feature__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.km-feature__icon {
	flex: none;
	margin-top: 4px;
}

.km-feature__label {
	font-family: var(--km-serif);
	font-size: 22px;
	line-height: 1.2;
}

.km-feature .km-feature__caption {
	margin-top: 30px;
	color: var(--km-text);
}

/* ------------------------------------------------------------------ */
/* Tablet (834): photo 520 on top, text under it, steps across        */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.km-feature {
		display: block;
		min-height: 0;
		padding-top: var(--km-pad-t, 0px);
	}

	.km-feature__media {
		position: relative;
		inset: auto;
		height: var(--km-feature-h, 520px);
	}

	.km-feature__panel {
		width: auto;
		margin-top: 40px;
		padding: 0;
		background: transparent;
	}

	.km-feature .km-feature__title {
		font-size: 36px;
	}

	.km-feature__steps {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
		margin-top: 24px;
	}

	.km-feature__step {
		gap: 10px;
	}

	.km-feature__label {
		font-size: 20px;
	}

	.km-feature .km-feature__caption {
		margin-top: 24px;
	}
}

/* ------------------------------------------------------------------ */
/* Phone (390): photo 420, steps down                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.km-feature__media {
		height: var(--km-feature-h, 420px);
	}

	.km-feature__panel {
		margin-top: 32px;
	}

	.km-feature .km-feature__title {
		font-size: 28px;
	}

	.km-feature .km-feature__text {
		margin-top: 12px;
	}

	.km-feature__steps {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
}
