/* TS Tabs */
.ts-tabs {
	--ts-tabs-gap: 10px;
	--ts-tabs-bar-space: 36px;
	--ts-tabs-panel-gap: 44px;
	--ts-tabs-radius: 28px;
	--ts-tabs-pic-h: 280px;
	/* Tab button colours (controls set these; empty controls keep the scheme's values). */
	--ts-tab-fg: var(--ts-muted);
	--ts-tab-bg: transparent;
	--ts-tab-bd: var(--ts-line);
	--ts-tab-on-fg: #fff;
	--ts-tab-on-bg: var(--ts-esp);
	--ts-tab-on-bd: var(--ts-esp);
}

/* ---------- Tab buttons ---------- */
.ts-tabs__bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ts-tabs-gap);
	margin-bottom: var(--ts-tabs-bar-space);
}

/* Theme and kit styles for <button> (including hover/focus) are overridden here. */
.ts-w .ts-tabs__tab,
.ts-w .ts-tabs__tab:hover,
.ts-w .ts-tabs__tab:focus {
	flex: var(--ts-tab-grow, 0) 1 auto;
	margin: 0;
	padding: 12px 22px;
	border: 2px solid var(--ts-tab-bd);
	border-radius: 100px;
	background: var(--ts-tab-bg);
	box-shadow: none;
	color: var(--ts-tab-fg);
	font-family: var(--ts-font-body);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
}

.ts-w .ts-tabs__tab[aria-selected="true"],
.ts-w .ts-tabs__tab[aria-selected="true"]:hover,
.ts-w .ts-tabs__tab[aria-selected="true"]:focus {
	border-color: var(--ts-tab-on-bd);
	background: var(--ts-tab-on-bg);
	color: var(--ts-tab-on-fg);
}

.ts-w .ts-tabs__tab:focus-visible {
	outline: 3px solid var(--ts-tq);
	outline-offset: 2px;
}

/* ---------- Panels ---------- */
.ts-tabs__panel {
	/* Arrangement (control) switches this between side by side and stacked. */
	--ts-tabs-cols: minmax(0, var(--ts-tabs-txt, 1fr)) minmax(0, var(--ts-tabs-pic, 1fr));
	display: grid;
	grid-template-columns: var(--ts-tabs-cols);
	gap: var(--ts-tabs-panel-gap);
	align-items: var(--ts-tabs-valign, center);
}

.ts-tabs__panel[hidden] {
	display: none;
}

.ts-tabs__panel:focus-visible {
	outline: 3px solid var(--ts-tq);
	outline-offset: 6px;
}

.ts-tabs__panel--pic-left {
	--ts-tabs-cols: minmax(0, var(--ts-tabs-pic, 1fr)) minmax(0, var(--ts-tabs-txt, 1fr));
	--ts-tabs-side-order: -1;
}

.ts-tabs__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.ts-tabs__media {
	display: flex;
	flex-direction: column;
	order: var(--ts-tabs-media-order, var(--ts-tabs-side-order, 0));
	min-width: 0;
}

/* ---------- Picture ---------- */
.ts-tabs__frame {
	position: relative;
	flex: 1 1 auto;
	min-height: var(--ts-tabs-pic-h);
	overflow: hidden;
	border-radius: var(--ts-tabs-radius);
	background: linear-gradient(150deg, var(--ts-a, #807A67), var(--ts-b, #382520));
}

/* .ts-w raises this above Elementor's ".elementor img { height: auto }". */
.ts-w .ts-tabs__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--ts-tabs-fit, cover);
}

/* ---------- Text ---------- */
.ts-tabs__kicker {
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.62;
	text-transform: uppercase;
	color: var(--ts-terra-d);
}

.ts-tabs__title {
	--ts-fs: 26px;
	--ts-lh: 1.25;
	font-size: var(--ts-fs);
	line-height: var(--ts-lh);
}

.ts-tabs__text {
	--ts-fs: 16px;
	--ts-lh: 1.62;
	max-width: 440px;
	margin-top: 14px;
	font-size: var(--ts-fs);
	line-height: var(--ts-lh);
	color: var(--ts-muted);
}

.ts-tabs__note {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin-top: 22px;
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--ts-sand);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.62;
	color: var(--ts-esp);
}

.ts-tabs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

/* ---------- Light text for dark backgrounds ---------- */
.ts-tabs--light {
	--ts-tab-fg: rgba(255, 255, 255, .72);
	--ts-tab-bd: rgba(255, 255, 255, .2);
	--ts-tab-on-fg: var(--ts-esp);
	--ts-tab-on-bg: #fff;
	--ts-tab-on-bd: #fff;
}

.ts-tabs--light .ts-tabs__kicker {
	color: var(--ts-gold);
}

.ts-tabs--light .ts-tabs__title {
	color: #fff;
}

.ts-tabs--light .ts-tabs__text {
	color: rgba(255, 255, 255, .72);
}

.ts-tabs--light .ts-tabs__note {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
