/* Final cover artwork and the six user/business purpose markers only. */
body.wallet-keynote .wallet-k-hero__image {
  inset: 50% 0 auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

/* The supplied artwork already provides a dark text-safe area. Preserve its
   original highlights instead of adding the old cover's darkening treatment. */
body.wallet-keynote .wallet-k-hero__shade {
  background: none;
}

body.wallet-keynote #overview .wallet-k-list li {
  align-items: center;
  grid-template-columns: 2.5rem minmax(0, 1fr);
}

body.wallet-keynote #overview .wallet-k-list .wallet-k-purpose-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  min-height: 0;
  padding: 0;
  opacity: .72;
}

body.wallet-keynote #overview .wallet-k-purpose-icon svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keep the supplied artwork at its native ratio and move its subject right.
   Edge masks join the image to the full-bleed stage without a boxed backdrop. */
@media (min-aspect-ratio: 4 / 3) and (min-width: 761px) {
  body.wallet-keynote .wallet-k-hero__image {
    inset: 50% auto auto 10%;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 42%), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent 30%, #000 42%), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  body.wallet-keynote .wallet-k-hero__deck {
    max-width: min(42vw, 35rem);
    text-wrap: balance;
    line-height: 1.28;
  }
  body.wallet-keynote .wallet-k-hero__role {
    max-width: min(39vw, 33rem);
    line-height: 1.65;
  }
}

/* On portrait screens the wide artwork sits above the existing title block.
   Keeping its native ratio prevents a viewport-height crop of the card. */
@media (max-aspect-ratio: 4 / 3) {
  body.wallet-keynote .wallet-k-hero__image {
    inset: 5.6rem 0 auto;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
