/* BP Resultats Tabs widget
 *
 * "RÉSULTATS TERRAIN — Des résultats visibles, mesurables et durables."
 * One widget, 5 tabs. Each tab owns a complete dataset (cards +
 * testimonial + summary) that swaps together when the active tab
 * changes.
 *
 * Layout:
 *   .bp-rt                section, full-bleed background
 *     .bp-rt__bg          full-width faded agricultural photo
 *     .bp-rt__inner       1140px content container
 *       .bp-rt__header    eyebrow + serif title + subtitle
 *       .bp-rt__tabs-wrap centered pill tab bar
 *       .bp-rt__panes
 *         .bp-rt__pane    3 or 4 cards (4-col grid, 3-col for "Tous")
 *         .bp-rt__strip   horizontal cream strip:
 *                         LEFT = portrait + quote + author
 *                         RIGHT = summary metrics (equal columns)
 *
 * Approved palette ONLY:
 *   #374F37  deep green
 *   #FBF6EC  cream
 *   #B8B25A  olive / gold
 *   #FFFFFF  white
 *   + existing neutrals (#1F2A1F, #5C6A5C, #E4DCCB, #F3EBD9).
 */

.bp-rt {
	--bp-rt-green:        #374F37;
	--bp-rt-cream:        #FBF6EC;
	--bp-rt-olive:        #B8B25A;
	--bp-rt-white:        #FFFFFF;
	--bp-rt-text:         #1F2A1F;
	--bp-rt-text-muted:   #5C6A5C;
	--bp-rt-border:       rgba(55, 79, 55, 0.10);
	--bp-rt-strip-bg:     #F3EBD9;
	--bp-rt-shadow:       0 10px 28px -10px rgba(31, 42, 31, 0.18), 0 2px 6px rgba(31, 42, 31, 0.06);

	--bp-rt-inner-max:    1140px;
	--bp-rt-card-radius:  14px;
	--bp-rt-card-gap:     20px;
	--bp-rt-ba-radius:    10px;

	--bp-rt-font-body:    var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-rt-font-display: var(--bp-font-display, 'DM Serif Display', Georgia, serif);

	position: relative;
	isolation: isolate;

	/* Full-viewport-width breakout: the section itself spans edge-to-edge
	 * so the agricultural background reaches the screen edge. The inner
	 * wrapper below stays constrained to 1140px. No background color on
	 * the section so the page cream shows through (no boxed panel feel). */
	inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
	background-color: transparent;
	color: var(--bp-rt-text);
	font-family: var(--bp-rt-font-body);
	padding-block: 64px;
	box-sizing: border-box;
}

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

/* =========================================================
 * BACKGROUND IMAGE (full-width, very low opacity)
 * ========================================================= */
.bp-rt__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	pointer-events: none;
}

/* =========================================================
 * INNER WRAPPER (1140px content)
 * ========================================================= */
.bp-rt__inner {
	position: relative;
	z-index: 1;
	max-inline-size: var(--bp-rt-inner-max);
	margin-inline: auto;
	padding-inline: 24px;
}

/* =========================================================
 * HEADER
 * ========================================================= */
.bp-rt__header {
	max-inline-size: 760px;
	margin-inline: auto;
	margin-block-end: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.bp-rt__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: rgba(184, 178, 90, 0.18);
	color: var(--bp-rt-green);
	font-family: var(--bp-rt-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1;
}

.bp-rt__eyebrow-icon {
	color: var(--bp-rt-olive);
}

.bp-rt__title {
	margin: 6px 0 0;
	font-family: var(--bp-rt-font-display);
	font-weight: 400;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.18;
	letter-spacing: -0.005em;
	color: var(--bp-rt-green);
}

.bp-rt__title-line {
	display: block;
}

.bp-rt__title-gold {
	color: var(--bp-rt-olive);
}

.bp-rt__subtitle {
	margin: 0;
	max-inline-size: 720px;
	color: var(--bp-rt-text);
	font-family: var(--bp-rt-font-body);
	font-size: 16px;
	line-height: 1.65;
}

/* =========================================================
 * TABS (one rounded pill container)
 * ========================================================= */
.bp-rt__tabs-wrap {
	display: flex;
	justify-content: center;
	margin-block-end: 32px;
}

.bp-rt__tabs {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	padding: 6px;
	border-radius: 999px;
	background-color: var(--bp-rt-white);
	box-shadow: var(--bp-rt-shadow);
}

.bp-rt__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	/* Each tab sizes to its own content (icon + gap + label +
	 * padding) so the longest labels — "Fourragères" (11 chars)
	 * and "Arboriculture" (13 chars) — always fit fully without
	 * truncation. The 5 tabs together are still narrower than
	 * the 1140px inner container, so the strip stays centered
	 * and on a single row. */
	flex: 0 0 auto;
	padding: 12px 22px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--bp-rt-green);
	font-family: var(--bp-rt-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.bp-rt__tab:hover {
	background-color: rgba(55, 79, 55, 0.06);
}

.bp-rt__tab:focus-visible {
	outline: 2px solid var(--bp-rt-green);
	outline-offset: 2px;
}

.bp-rt__tab.is-active {
	background-color: var(--bp-rt-green);
	color: var(--bp-rt-cream);
}

.bp-rt__tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;     /* never let the icon slot shrink inside the flex tab */
	min-inline-size: 18px;
	block-size: 18px;
	font-size: 16px;
	line-height: 1;
	color: currentColor;
}

.bp-rt__tab-icon i,
.bp-rt__tab-icon svg {
	display: block;
	inline-size: 18px;
	block-size: 18px;
	flex-shrink: 0;
}

.bp-rt__tab-icon i,
.bp-rt__tab-icon svg,
.bp-rt__tab-icon svg * {
	color: currentColor;
	fill: currentColor;
	stroke: currentColor;
}

.bp-rt__tab-icon svg {
	stroke-width: 1.8;
}

/* Label: allow it to size to its full content. With the tab
 * now using flex: 0 0 auto, the label gets all the room it
 * needs and never needs to truncate. */
.bp-rt__tab-label {
	min-inline-size: 0;
	max-inline-size: 100%;
	white-space: nowrap;
}

/* =========================================================
 * PANES (one per tab, only one visible)
 * ========================================================= */
.bp-rt__panes {
	position: relative;
}

.bp-rt__pane {
	display: block;
	animation: bp-rt-fade 320ms ease both;
}

.bp-rt__pane[hidden] {
	display: none !important;
}

@keyframes bp-rt-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* =========================================================
 * CARDS GRID
 *   - 4 cards (one row) for category tabs
 *   - 3 cards (one row) for "Tous"
 * ========================================================= */
.bp-rt__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bp-rt-card-gap);
	margin-block-end: 28px;
}

.bp-rt__cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-rt__card {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
	padding: 18px;
	background-color: var(--bp-rt-white);
	border: 1px solid var(--bp-rt-border);
	border-radius: var(--bp-rt-card-radius);
	box-shadow: var(--bp-rt-shadow);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.bp-rt__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -10px rgba(31, 42, 31, 0.22), 0 3px 8px rgba(31, 42, 31, 0.08);
}

/* --- card top (icon + name/sub + yield badge) --- */
.bp-rt__card-top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	margin-block-end: 14px;
}

.bp-rt__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	min-inline-size: 44px;
	border-radius: 50%;
	background-color: rgba(184, 178, 90, 0.22);
	color: var(--bp-rt-green);
	font-size: 18px;
}

.bp-rt__card-icon i,
.bp-rt__card-icon svg,
.bp-rt__card-icon svg * {
	color: var(--bp-rt-green);
	fill: currentColor;
	stroke: currentColor;
}

.bp-rt__card-icon svg {
	width: 22px;
	height: 22px;
	stroke-width: 1.8;
}

.bp-rt__card-id {
	min-inline-size: 0;
}

/* --- Card title alignment (non-Tous tabs) ---
 * The narrow card-id column (~88px on desktop) forces longer
 * names like "Pomme de terre" and subtitles like "Pousse rapide
 * et dense" to wrap. We simply reduce the title typography on
 * non-Tous cards so the natural header height is compact and
 * consistent across every card in a row. The Tous tab is
 * untouched and remains the visual reference. */
.bp-rt__pane:not([data-pane="tous"]) .bp-rt__card-title {
	font-size: 16px;
	line-height: 1.15;
}

/* Fourragères + Cultures only: their longest titles still wrap,
 * so nudge the title 1px smaller for them. Céréales and
 * Arboriculture keep the 16px rule above untouched. */
.bp-rt__pane[data-pane="fourrageres"] .bp-rt__card-title,
.bp-rt__pane[data-pane="cultures"] .bp-rt__card-title {
	font-size: 15px;
	line-height: 1.12;
}

/* Fourragères + Cultures only: shrink the subtitle so the
 * 2-line subtitles ("Pousse rapide et dense", "Culture
 * industrielle", ...) take less vertical space and the image
 * tops align with the other cards. Céréales, Arboriculture
 * and Tous keep the default 13px subtitle. Titles untouched. */
.bp-rt__pane[data-pane="fourrageres"] .bp-rt__card-subtitle,
.bp-rt__pane[data-pane="cultures"] .bp-rt__card-subtitle {
	font-size: 12px;
	line-height: 1.18;
}

.bp-rt__card-title {
	margin: 0;
	font-family: var(--bp-rt-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.15;
	color: var(--bp-rt-green);
	letter-spacing: -0.005em;
}

.bp-rt__card-subtitle {
	margin: 2px 0 0;
	font-family: var(--bp-rt-font-body);
	font-size: 13px;
	line-height: 1.35;
	color: var(--bp-rt-text-muted);
}

.bp-rt__yield {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-inline-size: 78px;
	padding: 8px 12px;
	border-radius: 999px;
	background-color: rgba(184, 178, 90, 0.20);
	color: var(--bp-rt-green);
	text-align: center;
	line-height: 1.1;
}

.bp-rt__yield-value {
	font-family: var(--bp-rt-font-display);
	font-weight: 400;
	font-size: 18px;
	color: var(--bp-rt-green);
}

/* --- Yield badge typography (Fourragères, Céréales, Cultures) ---
 * Compact the value + label further so the badge takes less
 * horizontal/visual space inside the card-top grid, giving
 * the title+subtitle more breathing room. Badge shape, padding,
 * and the Arboriculture / Tous tabs are left untouched. */
.bp-rt__pane:not([data-pane="arboriculture"]):not([data-pane="tous"]) .bp-rt__yield-value {
	font-size: 13px;
	line-height: 1;
}

.bp-rt__pane:not([data-pane="arboriculture"]):not([data-pane="tous"]) .bp-rt__yield-label {
	font-size: 8px;
	line-height: 1.05;
	letter-spacing: 0;
}

.bp-rt__yield-label {
	font-family: var(--bp-rt-font-body);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--bp-rt-text);
	text-transform: lowercase;
}

/* --- BEFORE / AFTER --- */
.bp-rt__ba {
	position: relative;
	inline-size: 100%;
	aspect-ratio: 1.55 / 1;
	overflow: hidden;
	border-radius: var(--bp-rt-ba-radius);
	background-color: #E4DCCB;
	touch-action: none;
	user-select: none;
	cursor: ew-resize;
}

.bp-rt__ba-pane {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.bp-rt__ba-pane--after {
	z-index: 1;
	clip-path: inset(0 0 0 50%);
}

.bp-rt__ba-pane--before {
	z-index: 2;
	clip-path: inset(0 50% 0 0);
}

.bp-rt__ba-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
}

.bp-rt__ba-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 100%;
	background-image: linear-gradient(135deg, #E4DCCB 0%, #FBF6EC 100%);
	color: var(--bp-rt-text-muted);
	font-family: var(--bp-rt-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.bp-rt__ba-label {
	position: absolute;
	top: 10px;
	z-index: 4;
	padding: 4px 10px;
	border-radius: 6px;
	background-color: rgba(31, 42, 31, 0.78);
	color: var(--bp-rt-white);
	font-family: var(--bp-rt-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	pointer-events: none;
}

.bp-rt__ba-label--before { inset-inline-start: 10px; }
.bp-rt__ba-label--after  { inset-inline-end: 10px; }

.bp-rt__ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	inline-size: 36px;
	block-size: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background-color: var(--bp-rt-white);
	color: var(--bp-rt-green);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	cursor: ew-resize;
	transform: translate(-50%, -50%);
	transition: transform 180ms ease;
}

.bp-rt__ba-handle:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

.bp-rt__ba-handle svg {
	color: var(--bp-rt-green);
	stroke: currentColor;
	fill: none;
}

.bp-rt__ba-handle::before,
.bp-rt__ba-handle::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	inline-size: 2px;
	background-color: var(--bp-rt-white);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
	pointer-events: none;
}

.bp-rt__ba-handle::before { inset-inline-start: 50%; margin-inline-start: -1px; }
.bp-rt__ba-handle::after  { inset-inline-start: 50%; margin-inline-start: 1px; }

/* --- METRICS (3 across) --- */
.bp-rt__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 14px;
	margin-block: 14px 12px;
	padding-block: 12px 0;
	border-top: 1px solid var(--bp-rt-border);
}

.bp-rt__metric {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	min-inline-size: 0;
	text-align: center;
}

.bp-rt__metric-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bp-rt-green);
	font-size: 14px;
	line-height: 1;
}

.bp-rt__metric-icon i,
.bp-rt__metric-icon svg,
.bp-rt__metric-icon svg * {
	color: var(--bp-rt-green);
	fill: currentColor;
	stroke: currentColor;
}

.bp-rt__metric-icon svg {
	width: 16px;
	height: 16px;
	stroke-width: 1.8;
}

.bp-rt__metric-value {
	font-family: var(--bp-rt-font-display);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	color: var(--bp-rt-green);
}

.bp-rt__metric-label {
	font-family: var(--bp-rt-font-body);
	font-size: 11px;
	line-height: 1.3;
	color: var(--bp-rt-text);
}

/* --- CARD FOOTER (location + season) --- */
.bp-rt__card-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-block-start: 4px;
	padding-block-start: 12px;
	border-top: 1px solid var(--bp-rt-border);
	font-family: var(--bp-rt-font-body);
	font-size: 12px;
	line-height: 1.4;
	color: var(--bp-rt-text);
}

.bp-rt__card-loc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bp-rt-text);
}

.bp-rt__card-loc svg {
	color: var(--bp-rt-green);
	stroke: currentColor;
	fill: none;
}

.bp-rt__card-sep {
	inline-size: 1px;
	block-size: 12px;
	background-color: var(--bp-rt-border);
}

.bp-rt__card-season {
	color: var(--bp-rt-text);
}

/* =========================================================
 * TESTIMONIAL + SUMMARY STRIP
 *   Left: portrait + quote + name + role
 *   Right: 4–5 equal summary columns
 * ========================================================= */
.bp-rt__strip {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
	gap: 28px;
	align-items: center;
	padding: 26px 32px;
	background-color: var(--bp-rt-strip-bg);
	border-radius: 14px;
}

.bp-rt__testimonial {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	min-inline-size: 0;
}

.bp-rt__portrait {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 76px;
	block-size: 76px;
	min-inline-size: 76px;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--bp-rt-cream);
	color: var(--bp-rt-text);
	font-size: 28px;
	box-shadow: 0 4px 10px rgba(31, 42, 31, 0.10);
}

.bp-rt__portrait img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.bp-rt__portrait-placeholder {
	inline-size: 100%;
	block-size: 100%;
	background-image: linear-gradient(135deg, #E4DCCB 0%, #FBF6EC 100%);
}

.bp-rt__quote-wrap {
	position: relative;
	min-inline-size: 0;
	padding-inline-start: 18px;
}

.bp-rt__quote-mark {
	position: absolute;
	left: 0;
	right: auto;
	inset-block-start: -8px;
	color: var(--bp-rt-olive);
	font-family: var(--bp-rt-font-display);
	font-size: 38px;
	line-height: 1;
}

.bp-rt__quote {
	margin: 0 0 6px;
	color: var(--bp-rt-text);
	font-family: var(--bp-rt-font-body);
	font-style: italic;
	font-size: 13.5px;
	line-height: 1.55;
}

.bp-rt__author {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
}

.bp-rt__name {
	font-family: var(--bp-rt-font-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--bp-rt-green);
}

.bp-rt__role {
	font-family: var(--bp-rt-font-body);
	font-size: 13px;
	color: var(--bp-rt-text-muted);
}

.bp-rt__summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.bp-rt__summary:has(.bp-rt__sum-item:nth-child(5)) {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bp-rt__sum-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	min-inline-size: 0;
	text-align: center;
}

.bp-rt__sum-item + .bp-rt__sum-item {
	position: relative;
	padding-inline-start: 16px;
}

.bp-rt__sum-item + .bp-rt__sum-item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 8px;
	inset-block-end: 8px;
	inline-size: 1px;
	background-color: var(--bp-rt-border);
}

.bp-rt__sum-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bp-rt-green);
	font-size: 20px;
	line-height: 1;
}

.bp-rt__sum-icon i,
.bp-rt__sum-icon svg,
.bp-rt__sum-icon svg * {
	color: var(--bp-rt-green);
	fill: currentColor;
	stroke: currentColor;
}

.bp-rt__sum-icon svg {
	width: 22px;
	height: 22px;
	stroke-width: 1.8;
}

.bp-rt__sum-value {
	font-family: var(--bp-rt-font-display);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.2;
	color: var(--bp-rt-green);
}

.bp-rt__sum-label {
	font-family: var(--bp-rt-font-body);
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--bp-rt-text);
}

/* =========================================================
 * TABLET (≤1024px) — 2 cards per row, tabs horizontal scroll
 * ========================================================= */
@media (max-width: 1024px) {
	.bp-rt {
		padding-block: 52px;
	}

	.bp-rt__inner {
		padding-inline: 20px;
	}

	.bp-rt__cards,
	.bp-rt__cards--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bp-rt__tabs-wrap {
		margin-inline: -20px;
		padding-inline: 20px;
		overflow-x: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.bp-rt__tabs {
		max-inline-size: 100%;
	}

	.bp-rt__tab {
		flex: 0 0 auto;
		padding: 11px 18px;
		font-size: 14px;
	}

	.bp-rt__strip {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 24px 26px;
	}

	.bp-rt__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 24px;
	}

	.bp-rt__summary:has(.bp-rt__sum-item:nth-child(5)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bp-rt__sum-item + .bp-rt__sum-item::before {
		display: none;
	}

	.bp-rt__sum-item {
		padding-inline-start: 0 !important;
	}
}

/* =========================================================
 * MOBILE (≤640px) — 1 card per row, full stack
 * ========================================================= */
@media (max-width: 640px) {
	.bp-rt {
		padding-block: 44px;
	}

	.bp-rt__inner {
		padding-inline: 20px;
	}

	.bp-rt__header {
		margin-block-end: 22px;
		gap: 10px;
	}

	.bp-rt__title {
		font-size: clamp(24px, 7vw, 32px);
	}

	.bp-rt__subtitle {
		font-size: 15px;
	}

	.bp-rt__tabs-wrap {
		margin-inline: -16px;
		padding-inline: 16px;
		justify-content: flex-start;
		overflow-x: auto;
	}

	.bp-rt__tabs {
		padding: 5px;
	}

	.bp-rt__tab {
		padding: 10px 16px;
		font-size: 13.5px;
		gap: 8px;
	}

	.bp-rt__tab-icon {
		min-inline-size: 16px;
		block-size: 16px;
		font-size: 14px;
	}

	.bp-rt__tab-icon i,
	.bp-rt__tab-icon svg {
		inline-size: 16px;
		block-size: 16px;
	}

	.bp-rt__cards,
	.bp-rt__cards--3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-block-end: 22px;
	}

	.bp-rt__card {
		padding: 16px;
	}

	.bp-rt__card-icon {
		inline-size: 40px;
		block-size: 40px;
		min-inline-size: 40px;
	}

	.bp-rt__card-icon svg {
		width: 20px;
		height: 20px;
	}

	.bp-rt__card-title {
		font-size: 19px;
	}

	.bp-rt__card-subtitle {
		font-size: 12px;
	}

	.bp-rt__yield {
		min-inline-size: 70px;
		padding: 6px 10px;
	}

	.bp-rt__yield-value {
		font-size: 16px;
	}

	.bp-rt__ba {
		aspect-ratio: 16 / 10;
	}

	.bp-rt__strip {
		padding: 22px 20px;
		gap: 18px;
	}

	.bp-rt__testimonial {
		grid-template-columns: auto 1fr;
		gap: 14px;
	}

	.bp-rt__portrait {
		inline-size: 62px;
		block-size: 62px;
		min-inline-size: 62px;
	}

	.bp-rt__quote {
		font-size: 13px;
	}

	.bp-rt__name {
		font-size: 13px;
	}

	.bp-rt__role {
		font-size: 12px;
	}

	.bp-rt__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 18px;
	}

	.bp-rt__sum-icon {
		font-size: 18px;
	}

	.bp-rt__sum-icon svg {
		width: 20px;
		height: 20px;
	}

	.bp-rt__sum-value {
		font-size: 16px;
	}

	.bp-rt__sum-label {
		font-size: 11px;
	}
}

/* Narrow-phone gutter scale (authoritative on this widget). */
@media ( max-width: 480px ) {
	.bp-rt__inner {
		padding-inline: 18px;
	}

	/* Mobile tabs: wrapper must fully contain the white pill
	 * behind every category label. Tabs wrap to multiple lines
	 * so nothing escapes the white background. */
	.bp-rt__tabs-wrap {
		width: 100% !important;
		max-width: 100% !important;
		min-inline-size: 0 !important;
		box-sizing: border-box !important;
		margin-inline: 0 !important;
		padding-inline: 0 !important;
		justify-content: center !important;
		overflow: visible !important;
		height: auto !important;
	}
	.bp-rt__tabs {
		flex-wrap: wrap !important;
		justify-content: center !important;
		width: 100% !important;
		max-width: 100% !important;
		min-inline-size: 0 !important;
		box-sizing: border-box !important;
	}
	.bp-rt__tab {
		flex: 0 0 auto !important;
	}
}

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

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

/* =========================================================
 * RTL
 * ========================================================= */
[dir="rtl"] .bp-rt__ba-handle svg {
	transform: scaleX(-1);
}
