/* BP Case Study Tomate (Farako-Bâ) widget styles
 *
 * Résultats page "ÉTUDE DE CAS 01 — Tomate" section.
 *
 * REVERSED LAYOUT (compared to the original reference):
 *   - LEFT  = content (eyebrow / title / intro / info / best-result / conclusion / limites)
 *   - RIGHT = tall tomato image + dark-green info footer
 *   - BELOW = full-width yield chart (heading+legend | bar chart)
 *
 *   .bp-case-tomate                       root, 1140px max, centered
 *     .bp-ct__inner
 *       .bp-ct__top                       2-col grid (content | image+footer)
 *         .bp-ct__left                    eyebrow, title, intro, info items, best card, conclusion+limites
 *         .bp-ct__right                   image-frame + dark-green footer strip
 *       .bp-ct__chart                     full-width bar chart panel (2 sub-cols)
 *         .bp-ct__chart-left              heading, unit, text, legend
 *         .bp-ct__chart-right             SVG-less bar chart built with HTML+CSS variables
 *     .bp-ct__decor                       background botanical tomato line-art
 *
 * Approved palette ONLY:
 *   #374F37  dark green
 *   #B8B25A  olive / gold
 *   #EDDBC3  cream
 *   #FBF6EC  light cream surface
 *   #E4DCCB  hairline border
 *   #FFFFFF  white
 *   + existing neutrals (#1F2A1F, #5C6A5C).
 *
 * No animation. All rules use logical CSS properties. Decor
 * sits as a sibling of .bp-ct__inner so it can use negative
 * inset values without ever breaking the 1140px container.
 */

.bp-case-tomate {
	--bp-ct-green:         #374F37;
	--bp-ct-olive:         #B8B25A;
	--bp-ct-cream:         #FBF6EC;
	--bp-ct-cream-dark:    #EDDBC3;
	--bp-ct-white:         #FFFFFF;
	--bp-ct-text:          #1F2A1F;
	--bp-ct-muted:         #5C6A5C;
	--bp-ct-border:        #E4DCCB;
	--bp-ct-surface:       #FBF6EC;
	--bp-ct-bar-neutral:   #E4DCCB;
	--bp-ct-bar-2:         #C5BB8C;
	--bp-ct-bar-3:         #8C9556;
	--bp-ct-bar-4:         #374F37;

	--bp-ct-inner-max:     1140px;
	--bp-ct-font-body:     var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-ct-font-display:  var(--bp-font-display, 'DM Serif Display', Georgia, serif);

	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-block: 80px;
	padding-inline: 0;
	background: transparent;
	color: var(--bp-ct-text);
	font-family: var(--bp-ct-font-body);
	overflow-x: clip;
}

.bp-case-tomate *,
.bp-case-tomate *::before,
.bp-case-tomate *::after {
	box-sizing: border-box;
}

.bp-case-tomate .bp-ct__inner {
	position: relative;
	z-index: 1;
	inline-size: 100%;
	max-inline-size: var(--bp-ct-inner-max);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-inline: 0;
}

/* =========================================================
 * TOP 2-COLUMN COMPOSITION
 * Desktop: content ~58% left, image ~40% right.
 * Because the original reference is IMAGE LEFT / CONTENT RIGHT
 * and we need the OPPOSITE, the .bp-ct__top uses a 12-col grid
 * with explicit grid-column placement so the right-column image
 * naturally anchors to the right edge of the 1140px inner.
 * ========================================================= */
.bp-case-tomate .bp-ct__top {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	column-gap: 40px;
	row-gap: 24px;
	align-items: stretch;
}

.bp-case-tomate .bp-ct__left {
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__right {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-inline-size: 0;
}

/* =========================================================
 * EYEBROW / TITLE / INTRO
 * ========================================================= */
.bp-case-tomate .bp-ct__eyebrow {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--bp-ct-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__eyebrow-line {
	inline-size: 36px;
	block-size: 1px;
	background: var(--bp-ct-green);
	opacity: 0.6;
}

.bp-case-tomate .bp-ct__eyebrow-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 18px;
	block-size: 18px;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__eyebrow-mark svg {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}

.bp-case-tomate .bp-ct__eyebrow-text {
	white-space: nowrap;
}

.bp-case-tomate .bp-ct__title {
	margin: 0;
	font-family: var(--bp-ct-font-display);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -0.005em;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__title-line {
	display: block;
}

.bp-case-tomate .bp-ct__intro {
	margin: 0;
	max-inline-size: 520px;
	font-family: var(--bp-ct-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--bp-ct-text);
}

/* =========================================================
 * STUDY INFORMATION ITEMS (Culture / Objectif / Traitements)
 * No card / no border / no background. Icon + heading + body,
 * laid out as a vertical stack with hairline separators.
 * ========================================================= */
.bp-case-tomate .bp-ct__info {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-block-start: 4px;
}

.bp-case-tomate .bp-ct__info-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: flex-start;
	gap: 16px;
	padding-block-end: 18px;
	border-block-end: 1px solid var(--bp-ct-border);
}

.bp-case-tomate .bp-ct__info-item:last-child {
	border-block-end: none;
	padding-block-end: 0;
}

.bp-case-tomate .bp-ct__info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	border-radius: 50%;
	border: 1.4px solid var(--bp-ct-green);
	color: var(--bp-ct-green);
	background: transparent;
	flex-shrink: 0;
}

.bp-case-tomate .bp-ct__info-icon i,
.bp-case-tomate .bp-ct__info-icon svg {
	display: block;
	inline-size: 20px;
	block-size: 20px;
	color: inherit;
	fill: currentColor;
}

.bp-case-tomate .bp-ct__info-icon i,
.bp-case-tomate .bp-ct__info-icon svg * {
	fill: currentColor;
	stroke: currentColor;
}

.bp-case-tomate .bp-ct__info-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__info-title {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__info-text {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--bp-ct-text);
}

.bp-case-tomate .bp-ct__info-text em {
	font-style: italic;
}

.bp-case-tomate .bp-ct__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bp-case-tomate .bp-ct__bullet {
	position: relative;
	padding-inline-start: 16px;
	font-family: var(--bp-ct-font-body);
	font-size: 14px;
	line-height: 1.55;
	color: var(--bp-ct-text);
}

.bp-case-tomate .bp-ct__bullet::before {
	content: "";
	position: absolute;
	inset-block-start: 0.65em;
	inset-inline-start: 0;
	inline-size: 6px;
	block-size: 6px;
	border-radius: 50%;
	background: var(--bp-ct-olive);
}

/* =========================================================
 * BEST RESULT CARD
 * Cream card with rounded corners + soft downward shadow.
 * ========================================================= */
.bp-case-tomate .bp-ct__best {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: flex-start;
	gap: 18px;
	padding: 22px 24px;
	background: var(--bp-ct-cream);
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(31, 42, 31, 0.08);
}

.bp-case-tomate .bp-ct__best-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	background: rgba(184, 178, 90, 0.18);
	color: var(--bp-ct-olive);
	flex-shrink: 0;
}

.bp-case-tomate .bp-ct__best-icon i,
.bp-case-tomate .bp-ct__best-icon svg {
	display: block;
	inline-size: 22px;
	block-size: 22px;
	color: inherit;
	fill: currentColor;
}

.bp-case-tomate .bp-ct__best-icon i,
.bp-case-tomate .bp-ct__best-icon svg * {
	fill: currentColor;
	stroke: currentColor;
}

.bp-case-tomate .bp-ct__best-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__best-heading {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bp-ct-muted);
}

.bp-case-tomate .bp-ct__best-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-block-start: -2px;
}

.bp-case-tomate .bp-ct__best-value {
	font-family: var(--bp-ct-font-display);
	font-weight: 400;
	font-size: 48px;
	line-height: 1;
	color: var(--bp-ct-green);
	letter-spacing: -0.01em;
}

.bp-case-tomate .bp-ct__best-unit {
	font-family: var(--bp-ct-font-body);
	font-size: 18px;
	font-weight: 600;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__best-text {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--bp-ct-text);
	opacity: 0.92;
}

/* =========================================================
 * CONCLUSION / LIMITES — two compact blocks stacked.
 * Icon + heading + body. No card, no border.
 * ========================================================= */
.bp-case-tomate .bp-ct__blocks {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bp-case-tomate .bp-ct__block {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: flex-start;
	gap: 14px;
}

.bp-case-tomate .bp-ct__block-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 50%;
	border: 1.4px solid var(--bp-ct-green);
	color: var(--bp-ct-green);
	background: transparent;
	flex-shrink: 0;
}

.bp-case-tomate .bp-ct__block-icon i,
.bp-case-tomate .bp-ct__block-icon svg {
	display: block;
	inline-size: 18px;
	block-size: 18px;
	color: inherit;
	fill: currentColor;
}

.bp-case-tomate .bp-ct__block-icon i,
.bp-case-tomate .bp-ct__block-icon svg * {
	fill: currentColor;
	stroke: currentColor;
}

.bp-case-tomate .bp-ct__block-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__block-title {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__block-text {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-size: 13px;
	line-height: 1.6;
	color: var(--bp-ct-text);
}

/* =========================================================
 * RIGHT IMAGE + DARK GREEN FOOTER
 * The image-frame stretches to the full column height so the
 * dark green footer strip can pin to the bottom of the column
 * regardless of how tall the content column on the left grows.
 * ========================================================= */
.bp-case-tomate .bp-ct__right {
	position: relative;
}

.bp-case-tomate .bp-ct__image-frame {
	position: relative;
	inline-size: 100%;
	/* Natural tall size: 4:5 aspect ratio. No flex grow, no
	 * min-block-size: 100% — those caused the dark green footer
	 * to overflow the right column and get covered by the chart.
	 * The right column is a plain flex column; image + footer
	 * contribute their natural heights to the parent grid row. */
	aspect-ratio: 4 / 5;
	min-block-size: 420px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(31, 42, 31, 0.14);
	background: var(--bp-ct-border);
}

.bp-case-tomate .bp-ct__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center center;
}

.bp-case-tomate .bp-ct__image-placeholder {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	min-block-size: 360px;
}

/* DARK GREEN INFO FOOTER — 3 equal columns */
.bp-case-tomate .bp-ct__footer {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: var(--bp-ct-green);
	color: var(--bp-ct-cream);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(31, 42, 31, 0.18);
	flex-shrink: 0;
	/* Sits directly under the image in natural flow. The right
	 * column is a plain flex column; image + footer contribute
	 * their natural heights and any leftover grid-row space is
	 * empty (no overflow into the chart). */
}

.bp-case-tomate .bp-ct__footer-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-inline-size: 0;
	padding-inline-end: 12px;
	border-inline-end: 1px solid rgba(237, 219, 195, 0.25);
}

.bp-case-tomate .bp-ct__footer-item:last-child,
.bp-case-tomate .bp-ct__footer-item--last {
	border-inline-end: none;
	padding-inline-end: 0;
}

.bp-case-tomate .bp-ct__footer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 34px;
	block-size: 34px;
	border-radius: 50%;
	background: rgba(237, 219, 195, 0.12);
	color: var(--bp-ct-cream);
	flex-shrink: 0;
}

.bp-case-tomate .bp-ct__footer-icon i,
.bp-case-tomate .bp-ct__footer-icon svg {
	display: block;
	inline-size: 16px;
	block-size: 16px;
	color: inherit;
	fill: currentColor;
}

.bp-case-tomate .bp-ct__footer-icon i,
.bp-case-tomate .bp-ct__footer-icon svg * {
	fill: currentColor;
}

.bp-case-tomate .bp-ct__footer-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__footer-label {
	font-family: var(--bp-ct-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bp-ct-cream);
	opacity: 0.85;
}

.bp-case-tomate .bp-ct__footer-value {
	font-family: var(--bp-ct-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bp-ct-cream);
	white-space: pre-line;
}

/* =========================================================
 * FULL-WIDTH YIELD CHART
 * Cream panel containing a left explanatory column and a
 * right bar-chart column. The chart is built with pure HTML
 * + CSS — no SVG, no JS, no chart library. Bar heights are
 * driven by --bp-ct-bar-h (set inline by the widget from the
 * 4 Elementor-controlled values).
 * ========================================================= */
.bp-case-tomate .bp-ct__chart {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
	column-gap: 40px;
	row-gap: 24px;
	align-items: stretch;
	padding: 32px 36px;
	background: var(--bp-ct-cream);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(31, 42, 31, 0.06);
}

.bp-case-tomate .bp-ct__chart-left {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__chart-heading {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__chart-unit {
	margin: 0;
	font-family: var(--bp-ct-font-display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1;
	color: var(--bp-ct-muted);
}

.bp-case-tomate .bp-ct__chart-text {
	margin: 0;
	font-family: var(--bp-ct-font-body);
	font-size: 13px;
	line-height: 1.6;
	color: var(--bp-ct-text);
	max-inline-size: 240px;
}

.bp-case-tomate .bp-ct__chart-legend {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--bp-ct-font-body);
	font-size: 12px;
	color: var(--bp-ct-green);
}

.bp-case-tomate .bp-ct__chart-legend-swatch {
	inline-size: 12px;
	block-size: 12px;
	background: var(--bp-ct-bar-3);
	border-radius: 2px;
}

/* CHART RIGHT */
.bp-case-tomate .bp-ct__chart-right {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__chart-canvas {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	column-gap: 8px;
	min-block-size: 260px;
}

.bp-case-tomate .bp-ct__chart-yaxis {
	display: grid;
	grid-template-rows: repeat(5, 1fr);
	align-items: stretch;
	font-family: var(--bp-ct-font-body);
	font-size: 11px;
	color: var(--bp-ct-muted);
}

.bp-case-tomate .bp-ct__chart-yaxis-tick {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding-block-end: 0;
	line-height: 1;
}

.bp-case-tomate .bp-ct__chart-plot {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__chart-gridlines {
	position: absolute;
	inset: 0 0 0 0;
	display: grid;
	grid-template-rows: repeat(5, 1fr);
	pointer-events: none;
	z-index: 0;
}

.bp-case-tomate .bp-ct__chart-grid {
	display: block;
	inline-size: 100%;
	block-size: 1px;
	background: rgba(55, 79, 55, 0.10);
	align-self: end;
}

.bp-case-tomate .bp-ct__chart-axis {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	block-size: 1px;
	background: rgba(55, 79, 55, 0.25);
	z-index: 1;
}

.bp-case-tomate .bp-ct__chart-bars {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 22px;
	align-items: end;
	justify-items: center;
	padding-block-end: 28px; /* room for x-axis label */
	min-block-size: 220px;
}

.bp-case-tomate .bp-ct__bar {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	inline-size: 100%;
	max-inline-size: 64px;
	block-size: 100%;
	min-inline-size: 0;
}

.bp-case-tomate .bp-ct__bar-shape {
	display: block;
	inline-size: 100%;
	block-size: var(--bp-ct-bar-h, 0%);
	min-block-size: 4px;
	background: var(--bp-ct-bar-neutral);
	border-radius: 6px 6px 0 0;
	transition: block-size 0.4s ease;
}

.bp-case-tomate .bp-ct__bar--1 .bp-ct__bar-shape { background: var(--bp-ct-bar-neutral); }
.bp-case-tomate .bp-ct__bar--2 .bp-ct__bar-shape { background: var(--bp-ct-bar-2); }
.bp-case-tomate .bp-ct__bar--3 .bp-ct__bar-shape { background: var(--bp-ct-bar-3); }
.bp-case-tomate .bp-ct__bar--4 .bp-ct__bar-shape,
.bp-case-tomate .bp-ct__bar--best .bp-ct__bar-shape { background: var(--bp-ct-bar-4); }

.bp-case-tomate .bp-ct__bar-value {
	font-family: var(--bp-ct-font-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--bp-ct-text);
	line-height: 1;
}

.bp-case-tomate .bp-ct__bar-label {
	font-family: var(--bp-ct-font-body);
	font-size: 12px;
	color: var(--bp-ct-text);
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.bp-case-tomate .bp-ct__chart-badge {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	background: var(--bp-ct-green);
	color: var(--bp-ct-cream);
	font-family: var(--bp-ct-font-body);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 999px;
	white-space: nowrap;
	z-index: 3;
}

.bp-case-tomate .bp-ct__chart-badge + .bp-ct__bar-value {
	margin-block-start: 26px;
}

/* Cream value label inside the dark-green bar (5.68 / 6.65)
 * The value sits above the bar-shape in the flex column. We
 * recolor it to cream so it reads as part of the dark-green
 * bar head, and we also widen the gap below the badge so the
 * value no longer crowds the top edge. */
.bp-case-tomate .bp-ct__chart-badge + .bp-ct__bar-value,
.bp-case-tomate .bp-ct__bar--4 .bp-ct__bar-value,
.bp-case-tomate .bp-ct__bar--best .bp-ct__bar-value {
	color: var(--bp-ct-cream);
}

.bp-case-tomate .bp-ct__chart-xaxis {
	margin: 0;
	text-align: center;
	font-family: var(--bp-ct-font-body);
	font-size: 11px;
	color: var(--bp-ct-muted);
	letter-spacing: 0.04em;
}

/* =========================================================
 * BOTANICAL DECOR (background)
 * Sibling of .bp-ct__inner so it can break out without
 * disturbing the 1140px centered content layer. pointer-
 * events: none + z-index 0 so it never blocks clicks.
 * ========================================================= */
.bp-case-tomate .bp-ct__decor {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	inline-size: 280px;
	block-size: auto;
	inset-block-start: 0;
	left: -40px;
	right: auto;
	opacity: 0.45;
	color: var(--bp-ct-olive);
	transform: rotate(0deg);
}

.bp-case-tomate .bp-ct__decor-svg,
.bp-case-tomate .bp-ct__decor-img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	color: inherit;
}

/* =========================================================
 * TABLET
 * ========================================================= */
@media (max-width: 1024px) {
	.bp-case-tomate {
		padding-block: 64px;
	}

	.bp-case-tomate .bp-ct__inner {
		gap: 40px;
	}

	.bp-case-tomate .bp-ct__top {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.bp-case-tomate .bp-ct__title {
		font-size: 34px;
	}

	.bp-case-tomate .bp-ct__right {
		order: 2;
	}

	.bp-case-tomate .bp-ct__image-frame {
		min-block-size: 420px;
	}

	.bp-case-tomate .bp-ct__chart {
		grid-template-columns: 1fr;
		row-gap: 24px;
		padding: 28px 24px;
	}

	.bp-case-tomate .bp-ct__chart-text {
		max-inline-size: 100%;
	}

	.bp-case-tomate .bp-ct__chart-canvas {
		min-block-size: 220px;
	}
}

/* =========================================================
 * MOBILE
 * ========================================================= */
@media (max-width: 640px) {
	.bp-case-tomate {
		padding-block: 48px;
	}

	/* Mobile gutter — authoritative on this widget.
	 * Sits inside the 100 vw section root so the full-bleed
	 * background / botanical decor stay edge-to-edge, but the
	 * content column itself never touches the viewport edge.
	 * Required: ≥ 16 px at 360 px, ≥ 18 px at 390 px,
	 * ≥ 20 px on wider phones, ≥ 24 px on tablet. */
	.bp-case-tomate .bp-ct__inner {
		padding-inline: 20px;
		gap: 32px;
	}

	.bp-case-tomate .bp-ct__title {
		font-size: 28px;
	}

	.bp-case-tomate .bp-ct__left {
		gap: 22px;
	}

	.bp-case-tomate .bp-ct__info-item {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 12px;
	}

	.bp-case-tomate .bp-ct__best {
		padding: 18px 18px;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.bp-case-tomate .bp-ct__best-value {
		font-size: 40px;
	}

	.bp-case-tomate .bp-ct__image-frame {
		min-block-size: 320px;
	}

	.bp-case-tomate .bp-ct__footer {
		grid-template-columns: 1fr;
		row-gap: 12px;
		padding: 14px 16px;
	}

	.bp-case-tomate .bp-ct__footer-item {
		border-inline-end: none;
		border-block-end: 1px solid rgba(237, 219, 195, 0.18);
		padding-inline-end: 0;
		padding-block-end: 12px;
	}

	.bp-case-tomate .bp-ct__footer-item:last-child,
	.bp-case-tomate .bp-ct__footer-item--last {
		border-block-end: none;
		padding-block-end: 0;
	}

	.bp-case-tomate .bp-ct__chart {
		padding: 24px 18px;
	}

	.bp-case-tomate .bp-ct__chart-canvas {
		grid-template-columns: 28px minmax(0, 1fr);
		column-gap: 6px;
		min-block-size: 200px;
	}

	.bp-case-tomate .bp-ct__chart-bars {
		column-gap: 12px;
		min-block-size: 180px;
	}

	.bp-case-tomate .bp-ct__bar {
		max-inline-size: 48px;
	}

	.bp-case-tomate .bp-ct__bar-value {
		font-size: 12px;
	}

	.bp-case-tomate .bp-ct__bar-label {
		font-size: 11px;
	}
}

/* =========================================================
 * NARROW PHONES
 * The 640 px block above already gave the inner column a
 * 20 px gutter. The three blocks below step the gutter down
 * on progressively smaller devices so the inner content
 * never feels cramped, never overflows, and never gets too
 * airy on the tiniest screens. The same 4-stop scale is
 * used across every other BP widget to keep the site
 * visually consistent.
 * ========================================================= */
@media ( max-width: 480px ) {
	.bp-case-tomate .bp-ct__inner {
		padding-inline: 18px;
	}
}

@media ( max-width: 390px ) {
	.bp-case-tomate .bp-ct__inner {
		padding-inline: 18px;
	}
}

@media ( max-width: 360px ) {
	.bp-case-tomate .bp-ct__inner {
		padding-inline: 16px;
	}
}
