/* Brand ambassador card on the Burmese (Suga) and Filipino (Crystal) home pages only (loaded for my_MM and tl, functions.php). */
body:is(.my-MM, .tl) .mv_ambassador {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: row-reverse;
	width: 360px;
	max-width: calc(100% - 40px);
	margin: 24px auto;
	background: #fff;
	box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.17); /* same as .hour */
	color: #1d3f8f;
	font-weight: 600;
	box-sizing: border-box;
}
body:is(.my-MM, .tl) .mv_ambassador > img {
	flex: none;
	display: block;
	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;
	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: 4px;
}
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 #1d3f8f;
	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;
}

/* Phone (<=639): the wrapper takes no box; the card stands in the flow in front of the hours box. */
body:is(.my-MM, .tl) .mv_bottom_stack {
	display: contents;
}

/* From 640px the hero is a scaled composition and the hours box is absolute at its bottom right
   (top-frame.css). The wrapper takes the box's place and the card stands on it, right edges aligned,
   no gap; the wrapper follows the box's height, which differs by language. */
@media (min-width: 640px) {
	body:is(.my-MM, .tl) .mv_bottom_stack {
		display: block;
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 4;
		width: calc(var(--hd) * 544);
	}
	body:is(.my-MM, .tl) .mv_bottom_stack .mv_bottom_right {
		position: static;
		width: auto;
	}
	body:is(.my-MM, .tl) .mv_ambassador {
		position: absolute;
		right: 0;
		bottom: 100%;
		max-width: none;
		margin: 0;
		clip-path: inset(-24px -24px 0 -24px); /* no shadow along the bottom edge */
	}
	/* The box loses its top shadow only where the card stands on it. */
	body:is(.my-MM, .tl) .mv_bottom_right .hour {
		clip-path: polygon(-24px -24px, calc(100% - 360px) -24px, calc(100% - 360px) 0, calc(100% + 24px) 0,
			calc(100% + 24px) calc(100% + 24px), -24px calc(100% + 24px));
	}
}
