/**
 * Team archive / single。
 * 官網 1920px 實測：列表內容 1120px（4 × 265 + 3 × 20）；卡圖 265 × 290。
 */

.team-wrap {
	width: 1120px;
	max-width: calc(100% - 48px);
	margin: 0 auto;
}

.team-archive__title .team-wrap {
	padding-top: 214px;
}

/* 大標沿用全站 h1 的 700（Sabon Bold）。原站 computed 雖顯示 500，但它把 "Sabon LT Std"
   這個 family 名稱指到 sabonltstd-bold.woff，實際畫出來的是 Bold 字形（2026-10-23 實測），不可設 500。 */

.team-section--leader .team-wrap {
	padding-top: 82px;
}

.team-section--danacap .team-wrap,
.team-section--members .team-wrap {
	padding-top: 40px;
}

.team-section__label {
	margin: 0 0 65px;
	color: var(--tan-500);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.team-section__label sup {
	position: relative;
	top: -0.25em;
	font-size: 0.65em;
	line-height: 0;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 265px);
	gap: 20px;
}

.team-card {
	min-width: 0;
	min-height: 492px;
}

.team-card[hidden] {
	display: none;
}

.team-card__portrait {
	position: relative;
	display: block;
	width: 265px;
	height: 290px;
	overflow: hidden;
}

.team-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__overlay {
	position: absolute;
	inset: 0;
	background: rgb(9 36 67 / 0.65);
	opacity: 0;
	transition: opacity 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

/*
 * 原站（Essential Grid）實測：整張卡（含下方姓名區）hover 都會觸發；
 * 遮罩 300ms ease-out 淡入淡出；View profile 按鈕 93×27 從上方約 510px
 * 以 425ms ease-out cubic 落到照片右下（右 10px、下 10.5px），離開時不移動、跟遮罩一起淡出。
 */
.team-card__view {
	position: absolute;
	right: 10px;
	bottom: 10.5px;
	width: 93px;
	height: 27px;
	transform: translateY(-510px);
	transition: transform 0s linear 300ms;
}

.team-card:hover .team-card__overlay,
.team-card__portrait:focus-visible .team-card__overlay {
	opacity: 1;
}

.team-card:hover .team-card__view,
.team-card__portrait:focus-visible .team-card__view {
	transform: none;
	transition: transform 425ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

@media (prefers-reduced-motion: reduce) {
	.team-card__view {
		transform: none;
		transition: none;
	}
}

.team-card__portrait:focus-visible {
	outline: 2px solid var(--blue-500);
	outline-offset: 4px;
}

.team-card__content {
	min-height: 202px;
	padding-top: 20px;
	background: var(--white);
}

.team-card__name {
	margin: 0;
	color: #092443;
	font-family: var(--serif-ttf);   /* 原站這裡是 TrueType 版 Roman，不是 CFF */
	font-size: 24px;
	font-weight: 400;
	line-height: 30px;
}

.team-card__role {
	margin: 0;
	padding: 5px 0 0;
	color: #6c7787;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.375px;
}

.team-section--danacap .team-section__label {
	margin-bottom: 75px;
}

.team-section--members .team-section__label {
	margin-bottom: 20px;
}

.team-filter {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0 0 30px;
	padding-left: 2.5px;
}

.team-filter__button {
	min-width: 105px;
	height: 34px;
	margin: 0 10px 5px 0;
	padding: 8px;
	border: 1px solid #9e9286;
	background: var(--white);
	color: #9e9286;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.46px;
	text-transform: uppercase;
	cursor: pointer;
}

.team-filter__button.is-active,
.team-filter__button:hover,
.team-filter__button:focus-visible {
	background: #9e9286;
	color: var(--white);
}

.team-filter__button:focus-visible {
	outline: 2px solid var(--blue-500);
	outline-offset: 2px;
}

.team-section--members {
	padding-bottom: 10px;
}

.team-footnote {
	margin: 40px 0 0;
	color: #7a7a7a;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 22.328125px;
}

.team-footnote sup {
	font-size: 13.3333px;
	line-height: 0;
}

/* ── Team single ── */
.team-single__title {
	min-height: 404px;
	padding: 214px 0 120px;
	background: var(--white);
}

.team-profile {
	min-height: 915px;
	background: rgb(108 119 135 / 0.05);
}

.team-profile__inner {
	padding-top: 70px;
	padding-bottom: 100px;
}

.team-profile__back {
	display: block;
	width: 120px;
	height: 29px;
	margin-bottom: 40px;
}

.team-profile__back img {
	width: 120px;
	height: 29px;
}

.team-profile__grid {
	display: grid;
	grid-template-columns: 350px 567px;
	column-gap: 83px;
	align-items: start;
}

.team-profile__portrait {
	width: 350px;
	height: 383px;
	object-fit: cover;
	box-shadow: 0 0 35px rgb(0 0 0 / 0.14);
}

.team-profile__name {
	margin: 20px 0 0;
	color: #7a7a7a;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
}

.team-profile__meta {
	display: flex;
	align-items: flex-start;
	margin-top: 26px;
}

.team-profile__role,
.team-profile__office {
	margin: 0;
	color: #7a7a7a;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
}

.team-profile__office {
	margin-left: 7px;
	color: transparent;
}

.team-profile__bio p {
	margin: 0;
	color: #051b32;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 39px;
}

.team-profile__bio p + p {
	margin-top: 20px;
}

.team-profile__linkedin {
	display: inline-flex;
	width: 27px;
	height: 27px;
	margin-top: 24px;
	color: #6ec1e4;
}

.team-profile__linkedin svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

@media (max-width: 1199px) {
	.team-grid {
		grid-template-columns: repeat(3, 265px);
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.team-grid {
		grid-template-columns: repeat(2, 265px);
	}

	.team-profile__grid {
		grid-template-columns: 350px minmax(0, 1fr);
		column-gap: 50px;
	}
}

@media (max-width: 767px) {
	.team-wrap {
		width: auto;
		max-width: none;
		margin: 0;
		padding-right: 10px;
		padding-left: 10px;
	}

	.team-archive__title .team-wrap {
		padding-top: 144px;
	}

	.team-archive__title h1,
	.team-single__title h1 {
		margin-right: 20px;
		margin-left: 20px;
	}

	.team-section--leader .team-wrap {
		padding-top: 20px;
	}

	.team-section--leader .team-section__label {
		margin-left: 20px;
	}

	.team-section--danacap .team-wrap {
		padding-top: 40.586px;
	}

	.team-section--members .team-wrap {
		padding-top: 40.234px;
	}

	.team-grid {
		grid-template-columns: minmax(0, 1fr);
		justify-content: start;
	}

	.team-section__label {
		margin-bottom: 50px;
		font-size: 12px;
	}

	.team-section--danacap .team-section__label {
		min-height: 34px;
		margin-bottom: 70px;
	}

	.team-card,
	.team-card__portrait {
		width: 100%;
	}

	.team-card__portrait {
		height: auto;
		aspect-ratio: 350 / 383;
	}

	.team-filter {
		flex-wrap: wrap;
		gap: 0;
	}

	.team-filter__button {
		min-width: 105px;
	}

	.team-single__title {
		min-height: 203px;
		padding: 135px 0 30px;
	}

	.team-profile {
		min-height: 0;
	}

	.team-profile__inner {
		padding-top: 32.03125px;
		padding-bottom: 111px;
	}

	.team-profile__back {
		margin-bottom: 41px;
	}

	.team-profile__grid {
		grid-template-columns: 1fr;
		row-gap: 37px;
	}

	.team-profile__portrait {
		width: min(350px, 100%);
		height: auto;
		aspect-ratio: 350 / 383;
	}

	.team-profile__name {
		margin-top: 22px;
	}

	.team-profile__bio p {
		font-size: 15px;
		line-height: 31px;
	}
}
