.tfot-team {
	--tfot-columns-desktop: 3;
	--tfot-columns-tablet: 2;
	--tfot-columns-mobile: 1;
	--tfot-image-size: 180px;
	--tfot-gap: 24px;
	--tfot-name-size: 20px;
	--tfot-designation-size: 15px;
	--tfot-card-bg: #fff;
	--tfot-text: #111827;
	--tfot-muted: #6b7280;
	--tfot-accent: #0f766e;
	--tfot-popup-bg: #fff;
	color: var(--tfot-text);
}

.tfot-team-track {
	display: grid;
	grid-template-columns: repeat(var(--tfot-columns-desktop), minmax(0, 1fr));
	gap: var(--tfot-gap);
}

.tfot-member-card {
	min-width: 0;
	background: var(--tfot-card-bg);
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.tfot-card-trigger {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 22px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: inherit;
	text-decoration: none;
	cursor: pointer;
}

div.tfot-card-trigger {
	cursor: default;
}

.tfot-card-trigger:focus-visible,
.tfot-detail-link:focus-visible,
.tfot-detail-social a:focus-visible,
.tfot-carousel-button:focus-visible,
.tfot-modal-close:focus-visible {
	outline: 3px solid var(--tfot-accent);
	outline-offset: 3px;
}

.tfot-card-photo {
	position: relative;
	width: var(--tfot-image-size);
	max-width: 100%;
	aspect-ratio: 1;
	margin: 0 auto 16px;
	overflow: hidden;
	background: #e5e7eb;
}

.tfot-member-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.tfot-member-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0f2fe, #dcfce7);
	color: #0f172a;
	font-weight: 800;
	font-size: calc(var(--tfot-image-size) / 4);
}

.tfot-image--circle .tfot-card-photo,
.tfot-image--circle .tfot-member-photo {
	border-radius: 50%;
}

.tfot-image--rounded .tfot-card-photo,
.tfot-image--rounded .tfot-member-photo {
	border-radius: 8px;
}

.tfot-image--square .tfot-card-photo,
.tfot-image--square .tfot-member-photo {
	border-radius: 0;
}

.tfot-has-overlay .tfot-card-photo::after {
	position: absolute;
	inset: 0;
	content: "";
	background: rgba(15, 118, 110, 0.18);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.tfot-member-card:hover .tfot-card-photo::after,
.tfot-member-card:focus-within .tfot-card-photo::after {
	opacity: 1;
}

.tfot-has-zoom .tfot-member-card:hover .tfot-member-photo,
.tfot-has-zoom .tfot-member-card:focus-within .tfot-member-photo {
	transform: scale(1.04);
}

.tfot-card-social {
	position: absolute;
	inset: auto 12px 12px;
	z-index: 1;
	display: flex;
	justify-content: center;
	gap: 6px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
}

.tfot-card-social span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	color: var(--tfot-accent);
	font-size: 12px;
	font-weight: 700;
}

.tfot-member-card:hover .tfot-card-social,
.tfot-member-card:focus-within .tfot-card-social {
	opacity: 1;
	transform: translateY(0);
}

.tfot-card-body {
	min-width: 0;
}

.tfot-card-name {
	margin: 0;
	color: var(--tfot-text);
	font-size: var(--tfot-name-size);
	line-height: 1.25;
	letter-spacing: 0;
}

.tfot-card-designation {
	margin: 6px 0 0;
	color: var(--tfot-muted);
	font-size: var(--tfot-designation-size);
	line-height: 1.45;
}

.tfot-align--left .tfot-card-trigger {
	text-align: left;
}

.tfot-align--right .tfot-card-trigger {
	text-align: right;
}

.tfot-align--center .tfot-card-trigger {
	text-align: center;
}

.tfot-team--list .tfot-team-track {
	display: flex;
	flex-direction: column;
}

.tfot-team--list .tfot-card-trigger {
	display: flex;
	align-items: center;
	gap: 18px;
	text-align: left;
}

.tfot-team--list .tfot-card-photo {
	flex: 0 0 min(var(--tfot-image-size), 132px);
	width: min(var(--tfot-image-size), 132px);
	margin: 0;
}

.tfot-carousel-shell {
	position: relative;
}

.tfot-team--carousel .tfot-team-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding: 2px;
}

.tfot-team--carousel .tfot-member-card {
	flex: 0 0 calc((100% - ((var(--tfot-columns-desktop) - 1) * var(--tfot-gap))) / var(--tfot-columns-desktop));
	scroll-snap-align: start;
}

.tfot-carousel-button {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 50%;
	background: #fff;
	color: var(--tfot-text);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
	transform: translateY(-50%);
	cursor: pointer;
}

.tfot-carousel-prev {
	left: -12px;
}

.tfot-carousel-next {
	right: -12px;
}

.tfot-empty {
	margin: 0;
	color: var(--tfot-muted);
}

.tfot-modal-open {
	overflow: hidden;
}

.tfot-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(2, 6, 23, 0.58);
	opacity: 0;
	transition: opacity 180ms ease;
}

.tfot-modal.is-visible {
	opacity: 1;
}

.tfot-modal-dialog {
	position: relative;
	width: min(900px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	padding: 28px;
	border-radius: 8px;
	background: var(--tfot-popup-bg);
	color: var(--tfot-text);
	box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
	transform: translateY(0);
	transition: transform 180ms ease;
}

.tfot-modal--slide .tfot-modal-dialog {
	transform: translateY(22px);
}

.tfot-modal--slide.is-visible .tfot-modal-dialog {
	transform: translateY(0);
}

.tfot-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 50%;
	background: #fff;
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tfot-modal-content {
	min-height: 80px;
}

.tfot-modal-error {
	margin: 32px 0;
	color: #b91c1c;
}

.tfot-member-detail {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.tfot-member-detail--image_top {
	grid-template-columns: 1fr;
}

.tfot-detail-media {
	overflow: hidden;
	border-radius: 8px;
	background: #e5e7eb;
}

.tfot-detail-media .tfot-member-photo {
	aspect-ratio: 1;
}

.tfot-detail-name {
	margin: 0;
	color: var(--tfot-text);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
	letter-spacing: 0;
}

.tfot-member-detail--popup .tfot-detail-name {
	font-size: 30px;
}

.tfot-detail-designation {
	margin: 8px 0 0;
	color: var(--tfot-accent);
	font-weight: 700;
}

.tfot-detail-department {
	display: inline-block;
	margin: 14px 0 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.1);
	color: var(--tfot-accent);
	font-size: 13px;
	font-weight: 700;
}

.tfot-detail-short-bio,
.tfot-detail-full-bio {
	margin-top: 18px;
	color: var(--tfot-text);
	line-height: 1.7;
}

.tfot-detail-short-bio p,
.tfot-detail-full-bio p {
	margin-top: 0;
}

.tfot-detail-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.tfot-detail-social a,
.tfot-detail-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid rgba(15, 118, 110, 0.35);
	border-radius: 999px;
	color: var(--tfot-accent);
	text-decoration: none;
	font-weight: 700;
}

.tfot-detail-qr {
	margin-top: 22px;
}

.tfot-detail-qr img {
	display: block;
	max-width: 160px;
	height: auto;
	border: 1px solid rgba(17, 24, 39, 0.12);
	border-radius: 8px;
}

.tfot-detail-link-wrap {
	margin: 22px 0 0;
}

.tfot-single-page {
	padding: 56px 20px;
	background: var(--tfot-single-bg, #f8fafc);
}

.tfot-single-container {
	width: min(1080px, 100%);
	margin: 0 auto;
	padding: 34px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.tfot-single-page .tfot-member-detail {
	grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
	gap: 36px;
}

.tfot-single--qr-sidebar .tfot-detail-qr {
	float: right;
	margin: 4px 0 16px 24px;
}

.tfot-single--qr-bottom .tfot-detail-qr {
	padding-top: 10px;
	border-top: 1px solid rgba(17, 24, 39, 0.1);
}

@media (max-width: 900px) {
	.tfot-team-track {
		grid-template-columns: repeat(var(--tfot-columns-tablet), minmax(0, 1fr));
	}

	.tfot-team--carousel .tfot-member-card {
		flex-basis: calc((100% - ((var(--tfot-columns-tablet) - 1) * var(--tfot-gap))) / var(--tfot-columns-tablet));
	}

	.tfot-member-detail,
	.tfot-single-page .tfot-member-detail {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.tfot-team-track {
		grid-template-columns: repeat(var(--tfot-columns-mobile), minmax(0, 1fr));
	}

	.tfot-team--carousel .tfot-member-card {
		flex-basis: calc((100% - ((var(--tfot-columns-mobile) - 1) * var(--tfot-gap))) / var(--tfot-columns-mobile));
	}

	.tfot-team--list .tfot-card-trigger {
		display: block;
		text-align: center;
	}

	.tfot-team--list .tfot-card-photo {
		width: var(--tfot-image-size);
		margin: 0 auto 16px;
	}

	.tfot-modal {
		padding: 12px;
	}

	.tfot-modal-dialog {
		padding: 24px 18px;
	}

	.tfot-single-page {
		padding: 28px 12px;
	}

	.tfot-single-container {
		padding: 22px 16px;
	}

	.tfot-single--qr-sidebar .tfot-detail-qr {
		float: none;
		margin: 22px 0 0;
	}
}
