/* Append after home-promo-editorial.css and pink-buttons.css.
   Below 1024px preserve the editorial order: intro, actions, portrait. */
.xstore-editorial-promos .xstore-editorial-promos__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f2;
  color: #161619;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.xstore-editorial-promos .xstore-editorial-promos__metrics dt,
.xstore-editorial-promos .xstore-editorial-promos__metrics > div:last-child dt {
  color: hsl(var(--primary, 330 81% 60%));
}

@media (min-width: 1024px) {
  .xstore-editorial-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }

  .xstore-editorial-promos .xstore-editorial-promos__item,
  .xstore-editorial-promos .xstore-editorial-promos__item + .xstore-editorial-promos__item {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
    min-height: clamp(360px, 29.166667vw, 420px);
    padding: 24px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid hsl(var(--foreground, 222 47% 11%) / .13);
    border-radius: 22px;
    background: hsl(var(--background, 0 0% 100%));
    text-align: left;
  }

  .xstore-editorial-promos .xstore-editorial-promos__intro { display: contents; }
  .xstore-editorial-promos .xstore-editorial-promos__badge {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 18px;
  }
  .xstore-editorial-promos .xstore-editorial-promos__title {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    margin: 0;
    font-size: clamp(29px, 2.5vw, 36px);
    letter-spacing: -.045em;
    line-height: 1.08;
  }
  .xstore-editorial-promos .xstore-editorial-promos__item--trade .xstore-editorial-promos__title {
    font-size: clamp(27px, 2.2vw, 32px);
  }
  .xstore-editorial-promos .xstore-editorial-promos__description {
    grid-column: 1;
    grid-row: 3;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
  }
  .xstore-editorial-promos .xstore-editorial-promos__metrics {
    grid-column: 1;
    grid-row: 4;
    z-index: 1;
    gap: 7px;
    align-self: start;
    width: 100%;
    max-width: none;
    margin: 6px 0 0;
    text-align: center;
  }
  .xstore-editorial-promos .xstore-editorial-promos__metrics dt { font-size: clamp(26px, 2.2vw, 32px); }
  .xstore-editorial-promos .xstore-editorial-promos__metrics > div:last-child dt { color: inherit; }
  .xstore-editorial-promos .xstore-editorial-promos__metrics dd { margin-top: 4px; font-size: 10px; }
  .xstore-editorial-promos .xstore-editorial-promos__actions {
    grid-column: 1;
    grid-row: 5;
    z-index: 1;
    align-self: end;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 6px 0 0;
  }
  .xstore-editorial-promos .xstore-editorial-promos__cta {
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .xstore-editorial-promos .xstore-editorial-promos__details {
    gap: 3px;
    min-height: 28px;
    padding: 4px;
    font-size: 12px;
  }

  /* Image and annotation share the original image aspect ratio. The bottom/right
     padding extension reaches the card edge without crossing the text column. */
  .xstore-editorial-promos .xstore-editorial-promos__portrait {
    grid-column: 2;
    grid-row: 1 / 6;
    align-self: end;
    justify-self: end;
    width: calc(100% + 24px);
    min-width: 0;
    margin: 0 -24px -24px 0;
    aspect-ratio: 640 / 960;
  }
  .xstore-editorial-promos .xstore-editorial-promos__portrait--trade {
    width: calc(95.9375% + 23.025px);
    aspect-ratio: 1228 / 1920;
  }
}
