/*
 * Careers section type `text-scroll` (live `.section_whoweare_textscroll`, the
 * UAE text-scroll type; careers Home). DS TextScroll (`.ts`, word reveal on
 * scroll, as live's GSAP split-text from 0.25 opacity). Linked on careers pages
 * only (CAREERS_STYLESHEETS). Type-level: every `:text-scroll` slot.
 *
 * Live (careers.deriv.com, measured 2026-11-11 at 1440 / 1024 / 768 / 390, EN + AR):
 * - band padding 112px top and bottom from 992 (56px at 480-991; 48px top,
 *   56px bottom at 479 and below), then a 32px gap below the band from 768
 *   (none below 768);
 * - 1280px container with 24px gutters (16px at 479 and below);
 * - text: 1064px column, centred, 28/36 weight 600, -0.16px; 24/32 at
 *   480-991; 20/28 at 479 and below; left-aligned below 768 (also on the
 *   Arabic page, as live). Arabic in Noto Sans Arabic (frame).
 */
[data-raven-slot$=":text-scroll"] {
  --raven-pad-top: 0px;
  --raven-pad-bottom: 0px;
  margin-bottom: 32px;
}
[data-raven-slot$=":text-scroll"] .ts__inner {
  box-sizing: border-box;
  max-width: 1280px;
  margin-inline: auto;
  padding: 112px 24px;
}
[data-raven-slot$=":text-scroll"] .ts__text {
  max-width: 1064px;
  margin-inline: auto;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.16px;
  text-align: center;
}
@media (max-width: 991px) {
  [data-raven-slot$=":text-scroll"] .ts__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  [data-raven-slot$=":text-scroll"] .ts__text {
    font-size: 24px;
    line-height: 32px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":text-scroll"] {
    margin-bottom: 0;
  }
  [data-raven-slot$=":text-scroll"] .ts__text {
    text-align: left;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":text-scroll"] .ts__inner {
    padding: 48px 16px 56px;
  }
  [data-raven-slot$=":text-scroll"] .ts__text {
    font-size: 20px;
    line-height: 28px;
  }
}
/*
 * Line breaks as live (checker M7, 2026-11-11: ours wrapped to 5 lines at 1024,
 * live 6; other breaks at 390). Live's split-text makes every word an
 * inline-block, which lays the line out differently from running text; the DS
 * word spans (each with its trailing space) get the same box here. Measured:
 * identical line breaks at 1024 and 390.
 */
[data-raven-slot$=":text-scroll"] .ts__word {
  display: inline-block;
  white-space: pre;
}
/* Each DS word box carries its trailing space (live's sits between the boxes and
   hangs at a line end), so the text gets one space more room (0.3em, half from
   each gutter) to break where live does (measured EN + AR at 1440 / 1280 / 1024 /
   768 / 390). */
[data-raven-slot$=":text-scroll"] .ts__inner {
  padding-left: calc(24px - 0.15em);
  padding-right: calc(24px - 0.15em);
}
[data-raven-slot$=":text-scroll"] .ts__text {
  max-width: calc(1064px + 0.3em);
}
@media (max-width: 479px) {
  [data-raven-slot$=":text-scroll"] .ts__inner {
    padding-left: calc(16px - 0.15em);
    padding-right: calc(16px - 0.15em);
  }
}
