/*
 * UAE section type `section_tradingspces_table` (batch s3, 2026-11-07). Linked
 * on UAE pages only (JURISDICTION_SETTINGS.ae.stylesheets).
 *
 * Trading specifications: the market spec table (tables.css, which also
 * matches `trading-specifications:` since s3) with live's six market tabs and
 * a description per tab (`TableWithFilters` chips + chip details). Live
 * (`.ts_tabs-menu`, `.ts_header`, deriv.com/ae/trading-specifications,
 * measured 2026-11-07 at 1440 / 390, EN + AR):
 * - the tab row starts 24px into the band (after its 112px / 56px padding);
 *   tabs 8px apart, centred from 768 and start-aligned (wrapping) below;
 * - a tab is 34px tall: 6px / 12px padding, label 14/20 400 (`.filter_text`;
 *   the pill itself says 12px), 1px rgba(0,0,0,.08)
 *   border, pill corners; rgb(34,34,34) on clear, the selected one white on
 *   rgb(24,28,37);
 * - the tab description 24px under the tabs, 16/24, centred in 768px from 768
 *   (start-aligned below), then 48px to the table.
 */
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chips {
  max-width: none;
  margin-top: 24px;
  margin-bottom: 24px;
  gap: 8px;
}
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chips .chip {
  height: 34px;
  min-height: 34px;
  padding: 6px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 96px;
  background-color: transparent;
  color: rgb(34, 34, 34);
}
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chips .chip .label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chips .chip.selected {
  background-color: rgb(24, 28, 37);
  color: rgb(255, 255, 255);
}
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chip-details {
  margin-bottom: 48px;
}
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chip-details__text {
  max-width: 768px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 767px) {
  [data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chip-details__text {
    max-width: none;
    margin-inline: 0;
    text-align: start;
  }
}

/*
 * The note under the table: live `.methods_text` is "Inter, Arial" in Arabic
 * too (used font Arial for the Arabic, 2026-11-07, checker N3).
 */
[dir="rtl"] [data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .tbl-section__info-text {
  font-family: Inter, Arial, sans-serif;
}

/*
 * Search box magnifier as live's (24px icon, 16px glyph, 16px from the start
 * edge; checker N7). tables.css draws a smaller 16px icon for the market pages.
 */
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16 10.5C16 8.5625 14.9375 6.75 13.25 5.75C11.5312 4.78125 9.4375 4.78125 7.75 5.75C6.03125 6.75 5 8.5625 5 10.5C5 12.4688 6.03125 14.2812 7.75 15.2812C9.4375 16.25 11.5312 16.25 13.25 15.2812C14.9375 14.2812 16 12.4688 16 10.5ZM14.7188 15.4375C13.5938 16.4375 12.0938 17 10.5 17C6.90625 17 4 14.0938 4 10.5C4 6.9375 6.90625 4 10.5 4C14.0625 4 17 6.9375 17 10.5C17 12.125 16.4062 13.5938 15.4375 14.75L19.8438 19.1562C20.0312 19.3438 20.0312 19.6875 19.8438 19.875C19.6562 20.0625 19.3125 20.0625 19.125 19.875L14.7188 15.4375Z' fill='black' fill-opacity='0.72'/%3E%3C/svg%3E");
  background-position: left 16px center;
  background-size: 24px 24px;
}
[dir="rtl"] [data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .tbl__search-wrap .sf-wrapper {
  background-position: right 16px center;
}

/*
 * Spacing (checker minor 3, measured 2026-11-07): the note sits 48px under
 * the table (DS 24); at 768-991 the tab row starts 104px into the band (80px
 * padding + 24), DS 80.
 */
[data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .tbl-section__info-text {
  margin-top: 24px;
}
@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot^="trading-specifications:"][data-raven-slot$=":instruments"] .raven-table-chips {
    margin-top: 48px;
  }
}
