/*
 * UAE /ae/trading/cfds (batch s3, 2026-11-07). Linked on UAE pages only
 * (JURISDICTION_SETTINGS.ae.stylesheets).
 *
 * CFDs reuses MT5's section types (mt5.css and markets.css match `trading/cfds:`
 * too). Only where live CFDs differs from live MT5 is it set here, scoped to
 * `trading/cfds:` (measured on deriv.com/ae/trading/cfds 2026-11-07 at 1440 /
 * 1024 / 768 / 390, EN + AR):
 * - regulated: the picture is on the RIGHT (MT5: left). Picture 600 / 448 / 348px
 *   square (radius 32px, 24px below 992), equal text column, 80px apart (24px at
 *   768-991), text centred against the picture; stacked text-first below 768
 *   with 24px between. 1328px container with 24px sides.
 * - faq: from 992 the section heading is one line, its box as wide as its text
 *   (692px EN, 756px AR), centred.
 * - hero: live's heading is a <strong> at weight 700 with -0.56px tracking, in EN
 *   and AR (as on the market pages; live MT5 too, which mt5.css doesn't set yet).
 * - hero (Arabic, from 992): the heading is capped at 992px like the copy, so it
 *   wraps as live's does; at 992-1279 live's column has 24px sides (DS: 32px),
 *   which decides where the Arabic heading breaks.
 * - regulated "Learn more": a plain coral link, 16/24 600 with its chevron, 8px
 *   apart (MT5 makes it a bordered dark pill button).
 */
[data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__content a.link {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 8px;
  color: rgb(255, 68, 79);
}
[data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__content a.link .label {
  color: rgb(255, 68, 79);
  font-weight: 600;
  line-height: 24px;
}
[data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__content a.link .chevron {
  display: inline-flex;
  color: rgb(255, 68, 79);
}
[data-raven-slot^="trading/cfds:"][data-raven-slot$=":hero"] .hero__title {
  font-weight: 700;
  letter-spacing: -0.56px;
}
@media (min-width: 992px) {
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__container {
    max-width: 1328px;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__split {
    gap: 80px;
    align-items: center;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__image-wrapper {
    flex: 0 0 calc(50% - 40px);
    max-width: 600px;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__content {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 600px;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":faq"] .faq-accordion__title {
    width: fit-content;
    max-width: none;
    margin-inline: auto;
    white-space: nowrap;
  }
  [dir="rtl"] [data-raven-slot^="trading/cfds:"][data-raven-slot$=":hero"] .hero__title {
    max-width: 992px;
    margin-inline: auto;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__container {
    padding-left: 24px;
    padding-right: 24px;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__split {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__image-wrapper {
    flex: 0 0 calc(50% - 12px);
    width: auto;
    order: 2;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":regulated"] .feature-split__content {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    order: 1;
  }
}
@media (min-width: 992px) and (max-width: 1279px) {
  [dir="rtl"] [data-raven-slot^="trading/cfds:"][data-raven-slot$=":hero"] .hero__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/*
 * why-trade on phones (checker minor 7, measured 2026-11-07 at 390): every
 * card is 448px tall and clips its picture, which sits 56px under the text
 * (DS 32px).
 */
@media (max-width: 479px) {
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":why-trade"] .card-primary {
    height: 448px !important;
    overflow: hidden;
  }
  [data-raven-slot^="trading/cfds:"][data-raven-slot$=":why-trade"] .cp-imageSection {
    margin-top: 24px;
  }
}
