/* =============================================================
 * Vendavo Team Members widget
 * Desktop : two-column — list (left) + sticky detail stage (right)
 * Mobile  : single column — detail panel expands inline under its row
 * ============================================================= */

.vtm {
	--vtm-list-width: 38%;
	--vtm-columns-gap: 40px;
	display: flex;
	align-items: flex-start;
	gap: var(--vtm-columns-gap);
	box-sizing: border-box;
}

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

/* ── List column ─────────────────────────────────────────────── */
.vtm-list {
	flex: 0 0 var(--vtm-list-width);
	width: var(--vtm-list-width);
	min-width: 0;
}

.vtm-row {
	border-bottom: 1px solid #e4e4ea;
}

.vtm-row:last-child {
	border-bottom: none;
}

/* Row header (clickable) */
.vtm-row__head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 8px 12px 0;
	margin: 0;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease;
}

.vtm-row__name,
.vtm-row__job {
	transition: color .2s ease;
}

.vtm-row__head:focus-visible {
	background: none !important;
	outline-offset: 2px;
	border-radius: 4px;
}
.vtm-row__head:focus{
	background: none !important;
}

/* Thumbnail */
.vtm-row__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	overflow: hidden;
	background: #ececf0;
	line-height: 0;
}

.vtm-row__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vtm-row__img--ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #d9d9e0, #c4c4ce);
}

/* Name + job */
.vtm-row__meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.vtm-row__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: #2d234b;
}

.vtm-row__job {
	margin-top: 3px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #5c5870;
	text-wrap: auto;
}

.vtm-row.is-active .vtm-row__name,
.vtm-row.is-active .vtm-row__job {
	color: #e1614e;
}

/* Toggle icon */
.vtm-row__toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.4em;
	height: 1.4em;
	font-size: 16px;
	line-height: 1;
	color: #9a97a8;
}

.vtm-row__toggle svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.vtm-row__toggle i {
	font-size: inherit;
	line-height: 1;
}

.vtm-row__toggle-expanded {
	display: none;
}

.vtm-row.is-active .vtm-row__toggle-collapsed {
	display: none;
}

.vtm-row.is-active .vtm-row__toggle-expanded {
	display: inline-flex;
}

.vtm-row.is-active .vtm-row__toggle {
	color: #e1614e;
}

/* ── Detail panel (shared) ───────────────────────────────────── */
.vtm-detail__photo {
	overflow: hidden;
	line-height: 0;
	margin-bottom: 22px;
}

.vtm-detail__img {
	width: 100%;
	height: auto;
	display: block;
}

.vtm-detail__img--ph {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	background: linear-gradient(135deg, #d9d9e0, #c4c4ce);
}

.vtm-detail__title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 400;
}

/* Stacked layout — job title drops to its own line, no separator. */
.vtm-detail__title--stacked .vtm-detail__job {
	display: block;
	margin-top: 4px;
}

.vtm-detail__name {
	font-weight: 700;
	color: #2d234b;
}

.vtm-detail__sep {
	color: #c9c7d2;
	margin: 0 4px;
}

.vtm-detail__job {
	font-weight: 400;
	color: #5c5870;
}

.vtm-detail__bio {
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.65;
	color: #3d3a4b;
}

.vtm-detail__bio p {
	margin: 0 0 1em;
}

.vtm-detail__bio p:last-child {
	margin-bottom: 0;
}

/* Connect button */
.vtm-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 26px;
	border-radius: 40px;
	background: #f1f0f3;
	color: #2d234b;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.vtm-detail__link:hover {
	background: #e1614e;
	color: #fff;
}

.vtm-detail__link-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: 0 0 auto;
}

/* ── Desktop stage ───────────────────────────────────────────── */
.vtm-stage {
	flex: 1 1 auto;
	min-width: 0;
	position: sticky;
	top: 24px;
}

/* Inline detail panels live in the list — hidden on desktop, the
   sticky stage is used instead. */
.vtm-detail--inline {
	display: none;
}

.vtm-detail[hidden] {
	display: none;
}

/* ── Responsive : tablet / mobile ────────────────────────────── */
@media (max-width: 1024px) {
	.vtm {
		--vtm-columns-gap: 28px;
	}
}

@media (max-width: 767px) {
	.vtm {
		flex-direction: column;
		gap: 0;
	}

	.vtm-list {
		flex: 1 1 100%;
		width: 100%;
	}

	/* On mobile the sticky stage is dropped; inline panels are used. */
	.vtm-stage {
		display: none;
	}

	.vtm-detail--inline {
		display: block;
	}

	.vtm-detail--inline[hidden] {
		display: none;
	}

	.vtm-detail--inline {
		padding: 4px 0 22px;
	}

	.vtm-detail__title {
		font-size: 19px;
	}

	.vtm-detail__bio {
		font-size: 15px;
	}
}

/* Editor empty-state notice */
.vtm-empty {
	padding: 16px;
	background: #f6f6f8;
	border: 1px dashed #c9c7d2;
	border-radius: 6px;
	color: #5c5870;
	font-size: 14px;
}
