/*
 * UAE tables section types (batch 2, 2026-11-04). Linked on UAE pages only
 * (JURISDICTION_SETTINGS.ae.stylesheets). Scope every rule to a UAE slot.
 *
 * Two section types, values measured on live deriv.com/ae (Webflow) at
 * 1440 / 1024 / 768 / 390, EN + AR. Live ranges: desktop >=992,
 * tablet 768-991, phone <=767.
 *   1. `instruments` on the 7 market pages: DS Table (`.tbl-section`) —
 *      live `.trade-spec_component` / `.ts_table`.
 *   2. MT5 `account-types`: DS DynamicTable (`.dtbl`) inside
 *      `.raven-comparison-table` — live `table.cmstable` rich-text table.
 * DS variables are used where the template exposes one (--tbl-*, --dtbl-*);
 * the rest needs the template's own class names (no variable exists).
 */

/* ------------------------------------------------------------------ */
/* 1. Market instruments table                                         */
/* ------------------------------------------------------------------ */

:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] {
  --tbl-col-main-width: 152px;
  --tbl-col-normal-width: 94px;
  --tbl-col-big-width: 184px;
  --tbl-row-height: 56px;
  --tbl-cell-px: 8px;
  --tbl-bg: #ffffff;
  --tbl-header-bg: rgb(246, 247, 248);
  --tbl-border: rgba(24, 28, 37, 0.08);
  --tbl-text: rgb(24, 28, 37);
  --tbl-row-hover-bg: #ffffff;
}

/* Section: live content column is 1280 wide with a 24px gutter (16 on phone);
   heading -> table gap 48 / 32 / 24. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section {
  max-width: calc(1280px + 2 * var(--spacing-24, 24px));
  gap: 48px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__title {
  letter-spacing: -0.48px;
}

/* Table card. Live clips nothing on the card: the columns that do not fit
   scroll inside an `overflow: auto` strip. Same here (the DS card is
   overflow:hidden and the strip overflow-y:hidden); the strip rounds its own
   bottom corners when no pager follows it. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl {
  border-radius: 24px;
  overflow: visible;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__scroll-wrapper {
  overflow-y: auto;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__scroll-wrapper:last-child {
  border-end-start-radius: 23px;
  border-end-end-radius: 23px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__topbar {
  border-start-start-radius: 23px;
  border-start-end-radius: 23px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__footer {
  border-end-start-radius: 23px;
  border-end-end-radius: 23px;
}

/* Search bar row: 24px padding, 400x48 field, summary right. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__topbar {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap {
  flex: 0 1 400px;
  max-width: 400px;
}
/* Live draws the magnifier as the field's own background image (24px box,
   16px from the left edge in EN and AR). Same here, with the DS glyph; the
   DS icon slot stays as an invisible spacer so the text starts 48px in. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper {
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.5' cy='6.5' r='4' stroke='black' stroke-opacity='0.72' stroke-width='1.25'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='black' stroke-opacity='0.72' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 20px center / 16px 16px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper .iconSlot {
  visibility: hidden;
}
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper {
  padding-inline: 16px 48px;
}
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper .iconSlot {
  display: none;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-input {
  font-size: 16px;
  line-height: 24px;
  color: rgb(51, 51, 51);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap .sf-input::placeholder {
  color: rgba(0, 0, 0, 0.24);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__summary {
  font-size: 16px;
  line-height: 24px;
  color: rgb(24, 28, 37);
}

/* Header + rows: 16px block padding, 8px inline (16 on the main column),
   12px/20px text, one-line underlined headers cut with an ellipsis. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__th, .tbl__td) {
  padding-block: 16px;
  vertical-align: middle;
  text-align: start;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__th--main, .tbl__td--main) {
  padding-inline: 16px;
  box-shadow: none;
  inset-inline-start: 0;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__th--main, .tbl__td--main)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: -8px;
  width: 8px;
  background: linear-gradient(90deg, rgba(24, 28, 37, 0.04), rgba(0, 0, 0, 0));
  pointer-events: none;
}
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__th--main, .tbl__td--main)::after {
  background: linear-gradient(270deg, rgba(24, 28, 37, 0.04), rgba(0, 0, 0, 0));
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__th-inner {
  display: flex;
  max-width: calc(var(--tbl-col-normal-width) - 2 * var(--tbl-cell-px));
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__th--main .tbl__th-inner {
  max-width: calc(var(--tbl-col-main-width) - 32px);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__th--big .tbl__th-inner {
  max-width: calc(var(--tbl-col-big-width) - 2 * var(--tbl-cell-px));
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__col-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: underline;
  line-height: 20px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-text {
  line-height: 20px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-text--bold {
  font-weight: 400;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-inner {
  gap: 0;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-icon {
  width: 24px;
  height: 24px;
  padding-inline-end: 4px;
  box-sizing: border-box;
}

/* Pagination: right-aligned 32px round buttons, 8px apart, 24px padding. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__footer {
  padding: 24px;
  border-top-color: rgba(24, 28, 37, 0.08);
}
/* One page only (Commodities' 9 rows, or a search that fits one page): the
   DS drops its pager, live keeps the empty pager strip inside the card,
   with the row line above it. Card height measured on live Commodities:
   876 at 1440 (880 at 390); the strip is 1px taller than ours would be
   because our last row ends 1px higher. */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl:not(:has(.tbl__footer))::after {
  content: "";
  display: block;
  height: 81px;
  border-top: 1px solid rgba(24, 28, 37, 0.08);
}
@media (max-width: 767px) {
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl:not(:has(.tbl__footer))::after {
    height: 65px;
  }
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination {
  gap: 8px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .pageButton {
  width: 34px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.72);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .pageButtonSelected {
  width: 32px;
  border-radius: 50%;
  background: rgb(24, 28, 37);
  color: #ffffff;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .navButton {
  width: 32px;
  height: 32px;
  color: rgb(51, 51, 51);
}
/* Live hides the arrow that has nowhere to go (no "<" on page 1). */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .navButtonDisabled {
  display: none;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .ellipsis {
  width: 34px;
  font-size: 16px;
}
/* Live Arabic pager runs right-to-left (1 on the right, "next" arrow on the
   far left, pointing left). Overrides raven-hotfix.css, which pins every
   pager to LTR for ROW. */
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__pagination-wrap, .pagination) {
  direction: rtl;
}
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .navIcon {
  transform: scaleX(-1);
}

/* Empty search: live `.ts_result-empty`, a 120px box with centred 16/24
   body text in the ink colour (text from recipe `emptyText`). The text is
   centred in the visible width, also while the table scrolls sideways on
   phones (live's box sits outside its scrolling header). */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__scroll-wrapper:has(.tbl__empty-cell) {
  container-type: inline-size;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__empty-cell {
  padding: 48px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgb(24, 28, 37);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .raven-table-empty-text {
  display: block;
  position: sticky;
  inset-inline-start: 0;
  width: 100cqw;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

/* Header-hover definitions: live `.ts_hint`, a black box under the header
   (top = header bottom - 1), 16px padding, 8px radius, as wide as its text
   up to 352px, centred 12/20 text: the heading in white 600, the definition
   at 72% white. An 8x4 arrow on top points at the header. No fade. The
   heading and the --raven-hint-* values come from TableWithFilters
   (`liveHeaderHints`); the first and last columns' box lines up with the
   header's outer edge. Live draws Inter, Arial in both languages. The
   labels keep live's plain underline (the DS adds a dashed border). */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__col-label--dashed {
  border-bottom: 0;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__global-hint {
  transform: translate(var(--raven-hint-tx, -50%), var(--raven-hint-ty, 0px));
  width: max-content;
  max-width: 352px;
  box-sizing: border-box;
  padding: 16px;
  gap: 0;
  border: 0;
  border-radius: 8px;
  background-color: rgb(0, 0, 0);
  box-shadow: none;
  transition: none;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__global-hint[data-heading]::before {
  content: attr(data-heading);
  display: block;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: rgb(255, 255, 255);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__global-hint-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__global-hint-arrow {
  top: auto;
  bottom: 100%;
  border-width: 0 4px 4px;
  border-color: transparent transparent rgb(0, 0, 0);
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__global-hint[style*="--raven-hint-arrow"] .tbl__global-hint-arrow {
  left: var(--raven-hint-arrow);
  transform: translateX(-50%) !important;
}

/* Note under the table */
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__info-box {
  margin-top: 24px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__info-icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
}
:is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__info-text {
  font-size: 14px;
  line-height: 22px;
  color: rgba(24, 28, 37, 0.48);
  text-align: start;
}

/* Desktop: live shows every page up to 7 — our pager draws a false "…"
   between 5 and 6 when there are exactly 6 pages. */
@media (min-width: 768px) {
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .pageButton[aria-label="Page 5"] + .ellipsis:has(+ .pageButton[aria-label="Page 6"]),
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination .pageButton[aria-label="Page 1"] + .ellipsis:has(+ .pageButton[aria-label="Page 2"]) {
    display: none;
  }
}

/* Desktop band padding is the rhythm's 112; live tablet uses 80. */
@media (min-width: 768px) and (max-width: 991px) {
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"].raven-section-pad--bottom {
    --raven-pad-bottom: 80px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section {
    gap: 32px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-inner {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section {
    gap: 24px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__header {
    align-items: stretch;
    text-align: start;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__title {
    text-wrap: wrap;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__topbar {
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__search-wrap {
    flex: none;
    max-width: 100%;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__summary {
    text-align: start;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__th--main, .tbl__td--main) {
    width: var(--tbl-col-main-width);
    min-width: var(--tbl-col-main-width);
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__cell-inner {
    gap: 8px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__footer {
    padding: 16px;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__pagination-wrap {
    justify-content: flex-start;
  }
  /* Live phone pager (Finsweet, no siblings): "1 2 3 … N" near the start,
     "1 … c … N" in the middle, "1 … N-2 N-1 N" near the end. The DS draws one
     sibling each side; children are prev, items, next. Start: 1-5 … N.
     Middle: 1 … c-1 c c+1 … N. End: 1 … N-4 … N. */
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination:has(> .ellipsis:nth-child(7)):not(:has(> .ellipsis:nth-child(3))) > .pageButton:is(:nth-child(5), :nth-child(6)),
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination:has(> .ellipsis:nth-child(3)):has(> .ellipsis:nth-child(7)) > .pageButton:is(:nth-child(4), :nth-child(6)),
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .pagination:has(> .ellipsis:nth-child(3)):not(:has(> .ellipsis:nth-child(7))) > .pageButton:is(:nth-child(4), :nth-child(5)) {
    display: none;
  }
  :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__info-box {
    margin-top: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* 2. MT5 account-types table (3 account columns + label column)       */
/* ------------------------------------------------------------------ */

[data-raven-slot="trading-platforms/deriv-mt5:account-types"] {
  --dtbl-bg: transparent;
  --dtbl-header-bg: rgb(246, 247, 248);
  --dtbl-border: rgb(237, 237, 238);
  --dtbl-text: rgb(24, 28, 37);
  --dtbl-radius: 16px;
  --dtbl-cell-py: 12px;
  --dtbl-cell-px: 16px;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] .raven-comparison-table__title {
  letter-spacing: -0.48px;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl-section {
  --dtbl-cell-py: 12px;
  --dtbl-cell-px: 16px;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__table {
  table-layout: auto;
  min-width: 0;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] :is(.dtbl__th, .dtbl__th-row, .dtbl__td) {
  vertical-align: middle;
  font-size: 16px;
  line-height: 24px;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] :is(.dtbl__th, .dtbl__th-row) {
  font-weight: 700;
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__tr > :not(:last-child) {
  border-inline-end: 1px solid var(--dtbl-border);
}
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__tr > :first-child {
  min-width: 300px;
  width: 300px;
}

/* Live table column: 1064 wide at desktop, full width minus a 24px gutter
   below that (16 on phone, from the DS section). */
@media (min-width: 768px) {
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .raven-comparison-table {
    max-width: calc(1064px + 2 * var(--spacing-24, 24px));
  }
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl-section {
    padding-inline: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"].raven-section-pad--bottom {
    --raven-pad-bottom: 80px;
  }
}

/* Below desktop live scrolls sideways: label column 180, account columns at
   least 200 and as wide as their one-line heading (EN 817px, AR 780px). */
@media (max-width: 991px) {
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__th {
    white-space: nowrap;
  }
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__tr > * {
    min-width: 200px;
  }
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .dtbl__tr > :first-child {
    min-width: 180px;
    width: 180px;
    max-width: 180px;
  }
}

@media (max-width: 767px) {
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .raven-comparison-table {
    align-items: stretch;
  }
  [data-raven-slot="trading-platforms/deriv-mt5:account-types"] .raven-comparison-table__header {
    text-align: start;
  }
}

/* Live Arabic left-aligns the phone market-table heading and summary, and the
   MT5 account-table headers and row labels. Not on the live-bug list, so built
   as live and listed as a suspected bug (tmp/uae-batches/b2/suspected.md). */
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] :is(.tbl__summary),
[dir="rtl"] [data-raven-slot="trading-platforms/deriv-mt5:account-types"] :is(.dtbl__th, .dtbl__th-row) {
  text-align: left;
}
@media (max-width: 767px) {
  [dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl-section__title {
    text-align: left;
  }
}

/* MT5 account types: live starts at the heading (no top padding); 112 / 80 / 48 below. */
[data-raven-slot="trading-platforms/deriv-mt5:account-types"] {
  --raven-pad-top: 0px;
}

/* Arabic header labels: live sets "Inter, Arial", so Arabic letters draw in
   Arial (measured with the used-font report, 2026-11-05: Arial + Inter
   SemiBold), not the page's Noto Sans Arabic. */
[dir="rtl"] :is([data-raven-slot^="markets/"], [data-raven-slot^="trading-specifications:"])[data-raven-slot$=":instruments"] .tbl__col-label {
  font-family: Inter, Arial, sans-serif;
}
