/* BEC Tab Explorer
   Performance: switching only changes colours and opacity. All panes share one grid cell,
   so the card keeps the height of the longest item and the page never reflows. */
.bec-tx {
	--bec-tx-tabs-w: 48%;
	--bec-tx-icon: 32px;
	--bec-tx-fade: 300ms;
	--bec-tx-lift: -3px;
	display: grid;
	grid-template-columns: var(--bec-tx-tabs-w) minmax(0, 1fr);
	grid-template-areas: "tabs panel";
	gap: 20px;
	align-items: stretch;
	text-align: left;
}
.bec-tx, .bec-tx *, .bec-tx *::before, .bec-tx *::after { box-sizing: border-box; }

/* tabs */
.bec-tx__tabs {
	grid-area: tabs;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 10px;
	contain: layout;
}
.bec-tx__item { margin: 0; padding: 0; min-width: 0; }
.bec-tx .bec-tx__tab {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 76px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	row-gap: 14px;
	padding: 14px 28px 14px 16px;
	margin: 0;
	text-align: left;
	font: inherit;
	color: #14110A;
	background-color: #FBF6EE;
	border: 1.5px solid #073D30;
	border-radius: 14px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s cubic-bezier(.22, .8, .2, 1);
}
.bec-tx .bec-tx__tab:hover { transform: translateY(var(--bec-tx-lift)); }
.bec-tx .bec-tx__tab:focus-visible { outline: 3px solid #FF662F; outline-offset: 3px; }
.bec-tx .bec-tx__tab[aria-selected="true"] { background-color: #073D30; color: #FBF6EE; }
.bec-tx-icon-top .bec-tx .bec-tx__tab { grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: center; }

.bec-tx__icon { display: inline-flex; align-items: center; justify-content: center; width: var(--bec-tx-icon); height: var(--bec-tx-icon); font-size: var(--bec-tx-icon); line-height: 1; color: inherit; }
.bec-tx__icon svg { width: var(--bec-tx-icon); height: var(--bec-tx-icon); fill: currentColor; }
.bec-tx__icon img { width: 100%; height: 100%; object-fit: contain; display: block; filter: brightness(0); transition: filter .2s ease; }
.bec-tx .bec-tx__tab[aria-selected="true"] .bec-tx__icon.is-image img { filter: brightness(0) invert(1); }

.bec-tx__label { display: block; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; font-size: 16px; line-height: 1.2; }
.bec-tx__num { position: absolute; top: 8px; right: 12px; font-size: 11px; line-height: 1; letter-spacing: .06em; opacity: .55; font-variant-numeric: tabular-nums; pointer-events: none; }

/* card */
.bec-tx__panel {
	grid-area: panel;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	min-width: 0;
	min-height: 420px;
	padding: 48px;
	border-radius: 24px;
	background-color: #B7F2E4;
	color: #073D30;
}
.bec-tx__panes { display: grid; }
.bec-tx__pane {
	grid-area: 1 / 1;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--bec-tx-fade) ease, visibility 0s linear var(--bec-tx-fade);
}
.bec-tx__pane.is-active { opacity: 1; visibility: visible; transition: opacity var(--bec-tx-fade) ease, visibility 0s; }

.bec-tx__counter { display: inline-block; margin-bottom: 20px; padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 12px; letter-spacing: .14em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.bec-tx__title { margin: 0 0 16px; color: inherit; font-weight: 400; }
.bec-tx__text { max-width: 56ch; }
.bec-tx__text p { margin: 0 0 1em; text-align: inherit; }
.bec-tx__text > :last-child { margin-bottom: 0; }

/* navigation */
.bec-tx__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bec-tx .bec-tx__arrow {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: inherit;
	background: transparent;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bec-tx .bec-tx__arrow svg { width: 16px; height: 16px; fill: currentColor; }
.bec-tx .bec-tx__arrow:hover { background-color: rgba(7, 61, 48, .1); }
.bec-tx .bec-tx__arrow:focus-visible { outline: 3px solid #FF662F; outline-offset: 3px; }
.bec-tx .bec-tx__arrow:disabled { opacity: .35; cursor: default; }
.bec-tx__link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 400; }
.bec-tx__link-icon { display: inline-flex; transition: transform .25s cubic-bezier(.22, .8, .2, 1); }
.bec-tx__link-icon svg { width: 1em; height: 1em; fill: currentColor; }
.bec-tx__link:hover .bec-tx__link-icon { transform: translateX(4px); }
.bec-tx-link-below .bec-tx__link { margin-left: 0; flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) {
	.bec-tx .bec-tx__tab, .bec-tx__pane, .bec-tx .bec-tx__arrow, .bec-tx__link-icon, .bec-tx__icon img { transition: none !important; }
	.bec-tx .bec-tx__tab:hover { transform: none; }
}

@media (max-width: 767px) {
	.bec-tx { --bec-tx-icon: 24px; }
	.bec-tx .bec-tx__tab { padding: 12px 24px 12px 12px; column-gap: 10px; }
	.bec-tx__label { font-size: 14px; }
}

/* Neutralise theme button resets (e.g. Hello Elementor reset.css loads after this file) */
.bec-tx .bec-tx__tab, .bec-tx .bec-tx__arrow {
	-webkit-appearance: none; appearance: none;
	font: inherit; letter-spacing: inherit; text-transform: none; text-decoration: none; text-shadow: none;
	box-shadow: none;
}
.bec-tx .bec-tx__tab { display: grid; white-space: normal; text-align: left; width: 100%; height: 100%; }
.bec-tx-icon-top .bec-tx .bec-tx__tab { justify-items: start; }
.bec-tx .bec-tx__arrow { display: inline-grid; white-space: nowrap; }
.bec-tx .bec-tx__tab:focus:not(:focus-visible), .bec-tx .bec-tx__arrow:focus:not(:focus-visible) { outline: none; }
/* low-specificity defaults: beat the theme's button:hover/focus, but not the colours set in Elementor */
.bec-tx :where(.bec-tx__tab):hover, .bec-tx :where(.bec-tx__tab):focus { background-color: #FBF6EE; color: #14110A; border-color: #073D30; }
.bec-tx :where(.bec-tx__tab[aria-selected="true"]):hover, .bec-tx :where(.bec-tx__tab[aria-selected="true"]):focus { background-color: #073D30; color: #FBF6EE; }
/* arrow colours come from variables set in Elementor; the high specificity keeps the theme's button:hover/:focus from repainting them */
.bec-tx button.bec-tx__arrow, .bec-tx button.bec-tx__arrow:focus { color: var(--bec-tx-arrow-c, inherit); background-color: var(--bec-tx-arrow-bg, transparent); border-color: var(--bec-tx-arrow-bd, currentColor); }
.bec-tx button.bec-tx__arrow:hover { color: var(--bec-tx-arrow-c-h, var(--bec-tx-arrow-c, inherit)); background-color: var(--bec-tx-arrow-bg-h, var(--bec-tx-arrow-bg, rgba(7, 61, 48, .1))); border-color: var(--bec-tx-arrow-bd-h, var(--bec-tx-arrow-bd, currentColor)); }
.bec-tx button.bec-tx__arrow:disabled { background-color: var(--bec-tx-arrow-bg, transparent); }
.bec-tx :where(.bec-tx__link), .bec-tx :where(.bec-tx__link):hover, .bec-tx :where(.bec-tx__link):focus { color: inherit; }
.bec-tx .bec-tx__label br { display: block; }
