/*
 * UAE section type `deposit-steps` (S2, 2026-11-07): live `.section_deposit_steps`,
 * "Fund your account in 3 steps": three step cards (dark, white, coral) on the grey
 * band, each with a "Step N" line, a title and a picture at the foot. DS FeatureCards
 * (numbered step cards). Linked on UAE pages only; every rule is scoped to the slot.
 *
 * Live (measured 2026-11-07, EN + AR, 4 widths): same card grid as `market-features`
 * (1280px content, 16px gaps; 3 / 2 / 1 columns; heading 48px above, 24px on phones;
 * card copy padded 32px with 8px gaps; titles 32/40, 24/32 below 992). The "Step N"
 * line is 16/24 regular in the card's text colour (white on dark and coral, ink on
 * white); the middle card is white (DS light card is grey). Band padding 112 / 80 / 56px.
 */
[data-raven-slot$=":deposit-steps"].raven-section-pad {
  --raven-pad-top: 56px;
  --raven-pad-bottom: 56px;
}
@media (min-width: 768px) {
  [data-raven-slot$=":deposit-steps"].raven-section-pad {
    --raven-pad-top: 80px;
    --raven-pad-bottom: 80px;
  }
}
@media (min-width: 992px) {
  [data-raven-slot$=":deposit-steps"].raven-section-pad {
    --raven-pad-top: 112px;
    --raven-pad-bottom: 112px;
  }
}
[data-raven-slot$=":deposit-steps"] .fc-container {
  max-width: 1328px;
  gap: 48px;
}
[data-raven-slot$=":deposit-steps"] .fc-sectionTitle {
  max-width: 768px;
  margin-inline: auto;
  text-wrap: wrap;
}
[data-raven-slot$=":deposit-steps"] .fc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
[data-raven-slot$=":deposit-steps"] .fc-grid > * {
  grid-column: auto;
}
[data-raven-slot$=":deposit-steps"] .card-primary {
  height: auto;
  min-height: 472px;
}
[data-raven-slot$=":deposit-steps"] .card-primary.style--light {
  background-color: rgb(255, 255, 255);
}
[data-raven-slot$=":deposit-steps"] .card-primary .cp-content {
  flex: 1 0 auto;
  gap: 8px;
}
/* The step line is drawn with inline styles that read these tokens (slate-400,
   body-sm, an 8px bottom margin); re-point the tokens on that line only. */
[data-raven-slot$=":deposit-steps"] .card-primary .cp-content > p:first-child:not(.cp-title) {
  --spacing-8: 0px;
  --typography-body-sm-font-size: 16px;
  --typography-body-sm-line-height: 24px;
  --color-slate-400: rgb(255, 255, 255);
}
[data-raven-slot$=":deposit-steps"] .card-primary.style--light .cp-content > p:first-child:not(.cp-title) {
  --color-slate-700: rgb(24, 28, 37);
}
/* The red card's step line has a literal inline rgba(255,255,255,0.75) (no token to
   re-point); live draws it white (checker s2 M3), so only !important reaches it. */
[data-raven-slot$=":deposit-steps"] .card-primary.style--brand .cp-content > p:first-child:not(.cp-title) {
  color: rgb(255, 255, 255) !important;
}
[data-raven-slot$=":deposit-steps"] .card-primary .cp-imageSection {
  height: auto;
  aspect-ratio: 416 / 280;
}
[data-raven-slot$=":deposit-steps"] .card-primary .cp-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
}
@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot$=":deposit-steps"] .fc-container {
    padding-inline: 24px;
  }
}
@media (max-width: 991px) {
  [data-raven-slot$=":deposit-steps"] .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-raven-slot$=":deposit-steps"] .card-primary {
    min-height: 0;
  }
  [data-raven-slot$=":deposit-steps"] .card-primary .cp-title {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":deposit-steps"] .fc-container {
    gap: 24px;
  }
  [data-raven-slot$=":deposit-steps"] .fc-sectionTitle {
    margin-inline: 0;
  }
  [data-raven-slot$=":deposit-steps"] .fc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The step cards carry an inline height:auto, so live's 448px is a floor. */
  [data-raven-slot$=":deposit-steps"] .card-primary {
    min-height: 448px;
    gap: 24px;
  }
}
