/*
 * UAE section type `how-to-steps` (S2, 2026-11-07): live `.section_how-to-pip-calculator`,
 * a picture beside a heading and three numbered steps. On Precious metals ("Start
 * trading gold and silver in 3 steps"); later the trading calculators. DS Steps
 * (image left). Linked on UAE pages only; every rule is scoped to the slot.
 *
 * Live (measured 2026-11-07, EN + AR, 4 widths): content 1280px (1328px container,
 * 24px gutters; 16px on phones). From 992px two equal columns 80px apart, picture
 * first (square, radius 24, 600px at 1440, 448px at 1024, vertically centred), text
 * column vertically centred. Below 992px one column, picture on top, 48px to the text
 * (32px on phones). Heading 56/64 (48/56 at 768, 40/48 on phones), 48px above the
 * steps (24px on phones). Steps 32px apart; each is a coral number (32/40, 24/32 at
 * 768, 20/28 on phones, weight 800) 8px before the title and text; titles 32/40
 * (24/32 below 992), text 16/24, 8px apart. Band padding 112 / 80 / 56px. Arabic
 * mirrors (picture on the right).
 */
[data-raven-slot$=":how-to-steps"].raven-section-pad {
  --raven-pad-top: 56px;
  --raven-pad-bottom: 56px;
}
@media (min-width: 768px) {
  [data-raven-slot$=":how-to-steps"].raven-section-pad {
    --raven-pad-top: 80px;
    --raven-pad-bottom: 80px;
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":how-to-steps"].raven-section-pad {
    --raven-pad-top: 112px;
    --raven-pad-bottom: 112px;
  }
}
[data-raven-slot$=":how-to-steps"] .steps__container {
  max-width: 1328px;
  padding-inline: 16px;
  padding-bottom: var(--raven-pad-bottom);
  gap: 32px;
  flex-direction: column;
}
[data-raven-slot$=":how-to-steps"] .steps__image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 24px;
}
[data-raven-slot$=":how-to-steps"] .steps__content {
  gap: 24px;
}
[data-raven-slot$=":how-to-steps"] .steps__title {
  max-width: none;
  text-wrap: wrap;
}
[data-raven-slot$=":how-to-steps"] .steps__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* Live's step grid keeps an empty fourth row at every width: one more 32px gap under the
   last step (measured 2026-11-07: band 1379px at 768, 1057px at 390; checker s2 M9: the
   Arabic list at 1024 is 427px on live, where the copy column is taller than the
   picture). */
[data-raven-slot$=":how-to-steps"] .steps__list {
  padding-bottom: 32px;
}
/* Live has no divider lines between the steps. */
[data-raven-slot$=":how-to-steps"] .steps__item {
  border: 0;
}
[data-raven-slot$=":how-to-steps"] .steps__item::before,
[data-raven-slot$=":how-to-steps"] .steps__item::after {
  content: none;
}
[data-raven-slot$=":how-to-steps"] .steps__item-inner {
  padding: 0;
  gap: 8px;
}
/* Live's number box: 20px wide below 992px, 28px from 992px; 8px to the text. */
[data-raven-slot$=":how-to-steps"] .steps__number {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: auto;
  font-size: 20px;
  line-height: 28px;
  justify-content: flex-start;
  text-align: start;
}
[data-raven-slot$=":how-to-steps"] .steps__item-body {
  gap: 8px;
}
[data-raven-slot$=":how-to-steps"] .steps__item-title {
  font-size: 24px;
  line-height: 32px;
}
[data-raven-slot$=":how-to-steps"] .steps__item-description {
  color: rgb(24, 28, 37);
}
@media (min-width: 768px) {
  [data-raven-slot$=":how-to-steps"] .steps__container {
    padding-inline: 24px;
    gap: 48px;
  }
  [data-raven-slot$=":how-to-steps"] .steps__content {
    gap: 48px;
  }
  [data-raven-slot$=":how-to-steps"] .steps__number {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":how-to-steps"] .steps__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 80px;
  }
  [data-raven-slot$=":how-to-steps"] .steps__number {
    flex-basis: 28px;
    width: 28px;
    min-width: 28px;
    font-size: 32px;
    line-height: 40px;
  }
  [data-raven-slot$=":how-to-steps"] .steps__item-title {
    font-size: 32px;
    line-height: 40px;
  }
}
