/* Brand ambassador card on the Burmese (Suga) and Filipino (Crystal) home pages only (loaded for my_MM and tl, functions.php).
   Up to 1080px it is takada88's portrait card: title and links above the whole photo, 280px wide
   (owner 2026-11-11: 「TB换竖着的卡 跟88一样的」). */
body:is(.my-MM, .tl) .mv_ambassador {
	position: relative;
	z-index: 3;
	width: 280px;
	max-width: calc(100% - 40px);
	margin: 20px auto;
	background: #fff;
	color: #0b8fb3;
	font-weight: 600;
	box-sizing: border-box;
}
body:is(.my-MM, .tl) .mv_ambassador > img {
	display: block;
	width: 100%;
	height: auto;
}
body:is(.my-MM, .tl) .mv_ambassador figcaption {
	padding: 12px;
	text-align: center;
}
body:is(.my-MM, .tl) .mv_ambassador_role {
	display: block;
	font-size: 14px;
	line-height: 1.8;
}
body:is(.my-MM, .tl) .mv_ambassador_name {
	display: block;
	font-size: 18px;
	line-height: 1.5;
}
body:is(.my-MM, .tl) .mv_ambassador_social {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}
body:is(.my-MM, .tl) .mv_ambassador_social a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	height: 44px;
	color: #0f1f4d; /* the icons' own ink */
}
body:is(.my-MM, .tl) .mv_ambassador_social a:focus-visible {
	outline: 2px solid #0b8fb3;
	outline-offset: 2px;
}
body:is(.my-MM, .tl) .mv_ambassador_social img,
body:is(.my-MM, .tl) .mv_ambassador_social svg {
	display: block;
	width: 28px;
	height: 28px;
}

/* Desktop: a 360x120 card, photo on the left, standing on the hours box, right edges aligned, no
   gap. The box sits 228px up into the hero (home.css .mv_hour), so the card's margins pull it to
   exactly 120px above the box. */
@media screen and (min-width: 1081px) {
	body:is(.my-MM, .tl) .mv_ambassador {
		display: flex;
		flex-direction: row-reverse;
		width: 360px;
		margin: -348px 0 228px auto;
		box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.17); /* same as .hour */
		clip-path: inset(-24px -24px 0 -24px); /* no shadow along the bottom edge */
	}
	body:is(.my-MM, .tl) .mv_ambassador > img {
		flex: none;
		width: 90px;
		height: 120px;
		object-fit: cover;
	}
	body:is(.my-MM, .tl) .mv_ambassador figcaption {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 8px 12px;
	}
	body:is(.my-MM, .tl) .mv_ambassador_social {
		margin-top: 4px;
	}
	/* The box loses its top shadow only where the card stands on it (511 - 360 = 151px). */
	body:is(.my-MM, .tl) .mv_hour .hour {
		clip-path: polygon(-24px -24px, 151px -24px, 151px 0, calc(100% + 24px) 0,
			calc(100% + 24px) calc(100% + 24px), -24px calc(100% + 24px));
	}
}
