/*
 * UAE section type `section_newsroom-article_content` (live deriv.com/ae
 * Newsroom and Deriv Life articles): title, date pill, hero picture, the
 * item's rich-text body, the sticky Contents card + share row, and (Newsroom)
 * the referenced FAQ list. Rendered by ArticleHtmlDocument (DS `fbp-*` shell,
 * body `.raven-fbp-html`) plus RegionArticleFaq, in the `newsroom-article`
 * slot. Values are live's own (deriv-uae.webflow CSS: `.fs-toc_*`,
 * `.article-content_*`, `.thumbnail-cards_date-*`, `.newsroom-hero_*`,
 * `.post-faqs_*`), measured at 1440, 1024, 768 and 390 on 2026-11-07.
 * Market News posts (T5, `section_article_content`, slot `article-content`)
 * use the same live inner classes, so every rule here also matches that slot;
 * where Market News differs (no header, section padding, disclaimer box, FAQ
 * spacing) article-content.css overrides it.
 * Loaded only on UAE pages (JURISDICTION_SETTINGS.ae.stylesheets).
 */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-section {
  background: transparent;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-container {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 24px 112px;
}
/* Two columns 1.25fr / .75fr, 112px apart (96px under 1440). */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  column-gap: 96px;
  align-items: start;
}
@media (min-width: 1440px) {
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-body {
    column-gap: 112px;
  }
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
  width: auto;
  max-width: none;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  max-width: 48rem;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-title {
  margin: 16px 0;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 56px;
  letter-spacing: -0.4px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-meta {
  display: flex;
  gap: 8px;
  margin: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-dateChip {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 6px 16px;
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(24, 28, 37, 0.72);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
/* Header (title + date) and picture sit 16px apart; the body 48px below. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-heroImageWrap {
  margin: -32px 0 0;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: auto;
  height: auto;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-heroImage {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 0;
}

/* ---- Body: live `.fs-toc_richtext` (Webflow rich text) ---- */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-content {
  display: block;
  min-width: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html {
  display: block;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html > * {
  margin: 0;
}
/* Live's body is a flex item (its own formatting context): the first and last
   blocks' margins stay inside it. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html {
  display: flow-root;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html p {
  max-width: 70ch;
  margin: 0 0 16px;
  color: #181c25;
  font-size: 16px;
  line-height: 24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html li {
  margin: 0;
  color: #181c25;
  font-size: 16px;
  line-height: 24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html li + li {
  margin-top: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html :is(h2, h3, h4, h5, h6) {
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.25;
}
/* Webflow's normalize: bold runs are 700, also inside 800 headings. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html :is(strong, b) {
  font-weight: 700;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h2 {
  margin: 24px 0 16px;
  font-size: 28px;
  letter-spacing: -0.48px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h3 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.4px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h4 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.32px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h5 {
  margin: 0 0 16px;
  font-size: 16px;
}
@media (min-width: 1440px) {
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h3 {
    margin-top: 32px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html h4 {
    margin-top: 16px;
  }
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html ul,
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html ol {
  margin: 16px 0;
  padding-left: 20px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html ol {
  padding-left: 24px;
}
/* Arabic: live keeps the Webflow left padding (20px / 24px) and adds the
   browser's 40px start padding on the right (checker N2, 2026-11-07). */
[dir="rtl"] :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html :is(ul, ol) {
  padding-right: 40px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html a {
  color: #181c25;
  text-decoration: underline;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html blockquote {
  margin: 0 0 16px;
  padding: 12px 20px;
  border-left: 5px solid #e2e2e2;
  font-size: 18px;
  line-height: 22px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure {
  margin: 0 0 24px;
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html img {
  margin: 24px 0;
  border-radius: 24px;
}
/* Live's picture sits in an inline-block wrapper, so its 24px margins never
   merge with the caption's 5px. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure > img {
  display: inline-block;
  vertical-align: top;
}
/* Webflow figure layouts (`w-richtext-align-*`, `w-richtext-figure-type-*`):
   a centred picture keeps its own size (60% at most, as Webflow), a video is
   a ratio box (`padding-bottom` from the item) with the player filling it. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-align-center {
  display: table;
  clear: both;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-align-center > figcaption {
  display: table-caption;
  caption-side: bottom;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-align-fullwidth {
  display: block;
  width: 100%;
  max-width: 100%;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-figure-type-video {
  position: relative;
  width: 60%;
  height: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-figure-type-video.w-richtext-align-fullwidth {
  width: 100%;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-figure-type-video.w-richtext-align-center {
  display: block;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figure.w-richtext-figure-type-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html figcaption {
  margin-top: 5px;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

/* ---- Sidebar: Contents card + share row, sticky 128px from the top ---- */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-sidebar {
  position: sticky;
  top: 128px;
  width: auto;
  max-width: none;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-sidebarSticky {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocCard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: transparent;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocTitle {
  display: block;
  flex: 1 1 auto;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -0.24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocList {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocLink {
  display: flex;
  margin: 4px 0 12px;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}
/* Live `.fs-toc_link-wrapper.is-h3…h6`: smaller and indented under h2. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocItem:is([data-heading="h3"], [data-heading="h4"], [data-heading="h5"], [data-heading="h6"]) {
  padding-inline-start: 12px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocItem:is([data-heading="h3"], [data-heading="h4"], [data-heading="h5"], [data-heading="h6"]) .fbp-tocLink {
  font-size: 14px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-tocLink--active {
  color: #ff444f;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-shareCard {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  border-radius: 0;
  background: transparent;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-shareTitle {
  display: none;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-shareIcons {
  display: flex;
  gap: 24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-shareIcon {
  width: 32px;
  height: 32px;
}

/* ---- FAQ (Newsroom: the item's referenced FAQs; live `.post-faqs_*`) ---- */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq {
  margin-top: 64px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__title {
  margin: 16px 0;
  color: #181c25;
  font-family: Inter, Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 56px;
  letter-spacing: -0.4px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__list {
  margin-top: 32px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__item + .raven-ae-article-faq__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* No gap: the question's own 24px end padding is the only space before
     the arrow, as live (a 390 phone gets 310px of question text, not 286). */
  gap: 0;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: #181c25;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__question {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding-inline-end: 24px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__arrow {
  box-sizing: border-box;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  color: rgba(0, 0, 0, 0.72);
}
/* Live's open answer: a 32px bottom pad around a Webflow rich text laid out
   as a 16px-gap column whose clearfix pseudo-elements add 16px above and
   below the text (checker M7: answer 16px lower, block 32px taller). The
   chevron does not turn. */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__answer {
  padding: 16px 0 48px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__answer:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__answer p {
  margin: 0;
  color: #181c25;
  font-size: 16px;
  line-height: 24px;
}

/* A Contents jump lands the heading 320px from the top at every width, as
   live's Finsweet TOC does (`fs-toc-offsettop="20rem"`); on phones that keeps
   it clear of the fixed Contents bar (checker M2). */
:is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-fbp-html :is(h1, h2, h3, h4, h5, h6) {
  scroll-margin-top: 320px;
}

/* ---- Tablet and phone (live <=991px): one column, Contents as a bar fixed
   under the navbar, share row after the body ---- */
@media (max-width: 991px) {
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-container {
    padding-bottom: 80px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-body {
    display: block;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-title {
    font-size: 40px;
    line-height: 48px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-heroImage {
    object-position: 50% 100%;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-sidebar {
    display: none;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-shareMobileWrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__title {
    font-size: 40px;
    line-height: 48px;
  }
}
@media (max-width: 767px) {
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-container {
    padding-bottom: 56px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-title {
    font-size: 32px;
    line-height: 40px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__title {
    font-size: 32px;
    line-height: 40px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .raven-ae-article-faq__list {
    margin-top: 24px;
  }
}
@media (max-width: 479px) {
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-meta {
    margin-bottom: 8px;
  }
  :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) .fbp-heroImage {
    aspect-ratio: 4 / 3;
    object-position: 50% 50%;
  }
}

/* ---- Arabic fonts as live (used-font report, /ae/ar, 2026-11-07): Noto Sans
   Arabic (the page font, `--font-family-base` under [dir=rtl], frame.css) for
   the title, body text and headings, Contents links and the FAQ title; live's
   "Inter, Arial" (Arabic in Arial) for list items, captions, blockquotes, the Contents title, FAQ
   questions and the date. ---- */
[dir="rtl"] :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) :is(.fbp-title, .raven-fbp-html, .raven-fbp-html p, .raven-fbp-html :is(h2, h3, h4, h5, h6), .fbp-tocLink, .raven-ae-article-faq__title, .raven-ae-article-faq__answer p) {
  font-family: var(--font-family-base);
}
[dir="rtl"] :is([data-raven-slot$=":newsroom-article"], [data-raven-slot$=":article-content"]) :is(.raven-fbp-html li, .raven-fbp-html figcaption, .raven-fbp-html blockquote, .raven-fbp-html blockquote *, .fbp-tocTitle, .raven-ae-article-faq__question, .fbp-dateChip) {
  font-family: Inter, Arial, sans-serif;
}

/*
 * S7 static articles (2026-11-08, checker N2/N3; live measured at 1440 and 390):
 * - Deriv Tech About has no title or date: its picture is the first thing in the
 *   article, so it keeps no pull-up (the -32px above offsets the header's gap).
 *   Live: picture 112px under the chips at 1440.
 * - Our CSR vision (`section_newsroom-article_content` without live's
 *   `padding-bottom-md`): no band padding under the article; the last paragraph
 *   ends 16px above "Join our team" on live. Static Deriv Life pages only (the
 *   `derivlife/articles/[slug]` template keeps its 112px).
 */
[data-raven-slot$=":newsroom-article"] .fbp-main > .fbp-heroImageWrap:first-child {
  margin-top: 0;
}
[data-raven-slot^="derivlife/"]:not([data-raven-slot^="derivlife/articles/"])[data-raven-slot$=":newsroom-article"] .fbp-container {
  padding-bottom: 0;
}
/* Checker M1: live's line breaks inside a paragraph (`<br>`) are kept as "\n" in
   the static article's blocks (recipe settings.content); draw them as live does. */
[data-raven-slot^="derivlife/"]:not([data-raven-slot^="derivlife/articles/"])[data-raven-slot$=":newsroom-article"] .fbp-content p {
  white-space: pre-line;
}
