.ftb-tree-wrapper {
	width: 100%;
	overflow-x: auto;
	padding: 20px 10px 40px;
	-webkit-overflow-scrolling: touch;
}

.ftb-tree, .ftb-tree ul, .ftb-tree li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ftb-tree {
	display: inline-block;
	min-width: 100%;
	text-align: center;
}

.ftb-tree ul {
	padding-top: 30px;
	position: relative;
	display: flex;
	justify-content: center;
}

.ftb-tree li {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	padding: 30px 14px 0 14px;
	vertical-align: top;
}

/* connecting lines */
.ftb-tree li::before,
.ftb-tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 2px solid #c9ccd1;
	width: 50%;
	height: 30px;
}
.ftb-tree li::after {
	right: auto;
	left: 50%;
	border-left: 2px solid #c9ccd1;
}
.ftb-tree li:only-child::after,
.ftb-tree li:only-child::before {
	display: none;
}
.ftb-tree li:only-child {
	padding-top: 0;
}
.ftb-tree li:first-child::before,
.ftb-tree li:last-child::after {
	border: 0 none;
}
.ftb-tree li:last-child::before {
	border-right: 2px solid #c9ccd1;
	border-radius: 0 5px 0 0;
}
.ftb-tree li:first-child::after {
	border-radius: 5px 0 0 0;
}
.ftb-tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 2px solid #c9ccd1;
	width: 0;
	height: 30px;
}
.ftb-tree > ul {
	padding-top: 0;
}
.ftb-tree > ul::before {
	display: none;
}

/* couple wrapper: two cards side by side */
.ftb-couple {
	display: flex;
	gap: 10px;
	justify-content: center;
}

/* card */
.ftb-card {
	position: relative;
	width: 130px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	text-align: center;
	flex-shrink: 0;
}

.ftb-card-highlight .ftb-name,
.ftb-card-highlight .ftb-years {
	color: #fff;
}

.ftb-badge {
	position: absolute;
	top: 8px;
	right: -30px;
	transform: rotate(45deg);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 3px 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	text-transform: uppercase;
	z-index: 2;
}

.ftb-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #eef0f2;
	overflow: hidden;
}

.ftb-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ftb-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aab0b8;
}

.ftb-info {
	padding: 8px 6px 12px;
}

.ftb-name {
	font-size: 12px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.ftb-years {
	font-size: 10px;
	color: #8a8f98;
	margin-top: 2px;
}

@media (max-width: 600px) {
	.ftb-card {
		width: 100px;
	}
	.ftb-name {
		font-size: 11px;
	}
}
