/* Client-supplied brand ambassador card: Burmese (Suga) and Filipino (Crystal) homepages only (enqueued for my_MM and tl).
   It sits under the wisdom-tooth banner and is exactly as wide and as high as the banner is
   shown: 700px wide on desktop, the banner's own ratio 1440:470 at every width. The card is the
   360x120 design scaled as a whole: --u is the scale of one design pixel (the card is
   367.66 design pixels wide when it is 120 high at 1440:470). */
body:is(.my-MM, .tl) .my_ambassador {
  container-type: inline-size;
  display: flex;
  flex-direction: row-reverse;
  width: min(700px, 100%);
  aspect-ratio: 1440 / 470;
  margin: 24px auto 0;
  background: #fff;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.17);
  color: #0068b7;
  font-weight: 600;
  text-align: center;
}

body:is(.my-MM, .tl) .my_ambassador > img {
  flex: none;
  height: 100%;
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

body:is(.my-MM, .tl) .my_ambassador figcaption {
  --u: calc(100cqw / 367.66);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(8 * var(--u)) calc(12 * var(--u));
}

body:is(.my-MM, .tl) .my_ambassador_role {
  display: block;
  font-size: calc(14 * var(--u));
  line-height: 1.8;
}

body:is(.my-MM, .tl) .my_ambassador_name {
  display: block;
  font-size: calc(18 * var(--u));
  line-height: 1.5;
}

body:is(.my-MM, .tl) .my_ambassador_social {
  display: flex;
  justify-content: center;
  gap: calc(8 * var(--u));
  margin-top: calc(4 * var(--u));
}

body:is(.my-MM, .tl) .my_ambassador_social a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(44 * var(--u));
  height: calc(44 * var(--u));
  color: #0f1f4d;
}

body:is(.my-MM, .tl) .my_ambassador_social a:focus-visible {
  outline: 2px solid #0068b7;
  outline-offset: 2px;
}

body:is(.my-MM, .tl) .my_ambassador_social img,
body:is(.my-MM, .tl) .my_ambassador_social svg {
  display: block;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
}

/* The desktop banner is an inline image: its line box keeps about 3px of descender space below
   it, which would make the gap above the card 27px instead of 24px. */
body:is(.my-MM, .tl) .home_banner > a > img.pc {
  vertical-align: bottom;
}
