/*
 * Careers section type `feature-scroll` (live `.section_careers_bestwork` +
 * `.feature-scroll-component`, one band; careers Home and Our culture, slot
 * `best-work`): a centred heading, then four steps beside a sticky square picture
 * that crossfades per step. DS FeatureScroll (`.fs`, variant media-left: text left,
 * picture right; its own crossfade). Linked on careers pages only
 * (CAREERS_STYLESHEETS). Type-level: every `:best-work` slot.
 *
 * Live (careers.deriv.com, measured 2026-11-11 at 1440 / 1024 / 768 / 390, EN + AR):
 * - no band padding on Home: the heading opens the band, the first step follows it
 *   directly; Our culture's band adds live's `padding-top-md` (112px, 80px at 991
 *   and below, 56px at 767 and below), keyed on that page below;
 * - heading 56/64 (48/56 at 768, 40/48 at 390) weight 800, centred in a 768px column;
 * - 768 and up: two equal columns, 80px apart from 992 (48px at 768-991), in the
 *   1280px container with 24px gutters; every step is one 100vh row with its copy
 *   centred, 16px from title to copy; title 48/56 (40/48 at 768-991), -0.4px;
 *   the picture is the full column width, square, 32px corners, centred in the
 *   window while the steps scroll;
 * - 768-991: the DS draws its phone list here (its sticky panel starts at 992), so
 *   each step shows its own picture beside its copy, in the place live's sticky
 *   picture has at rest;
 * - 767 and below: title, picture (16px under it), copy; title 32/40; 32px corners;
 *   the first step right under the heading (32px at 479 and below); 64px between
 *   steps; 64px under the last.
 * Arabic: mirrored by the DS (copy right, picture left); Noto Sans Arabic (frame).
 */
[data-raven-slot$=":best-work"] {
  --raven-pad-top: 0px;
  --raven-pad-bottom: 0px;
}
[data-raven-slot$=":best-work"] .fs__inner {
  box-sizing: border-box;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 24px;
  /* Live's first step follows the heading directly (checker M6, 2026-11-11:
     the DS 32-56px header gap put it 20-56px low). */
  gap: 0;
}
[data-raven-slot$=":best-work"] .fs__header {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  font-size: 56px;
  line-height: 64px;
  font-weight: 800;
  letter-spacing: normal;
}
[data-raven-slot$=":best-work"] .fs__item-title {
  letter-spacing: -0.4px;
}
[data-raven-slot$=":best-work"] .fs__item-desc {
  font-size: 16px;
  line-height: 24px;
}
/* Live's steps have no link; the DS still writes an empty one. */
[data-raven-slot$=":best-work"] a.fs__item-link:is([href=""], :not([href])) {
  display: none;
}

@media (min-width: 992px) {
  [data-raven-slot$=":best-work"] .fs {
    --fs-sticky-top: 0px;
  }
  [data-raven-slot$=":best-work"] .fs__layout {
    --fs-col-gap: 80px;
    --fs-step-band: 100vh;
    margin-top: 0;
  }
  [data-raven-slot$=":best-work"] .fs__media-col,
  [data-raven-slot$=":best-work"] .fs__content-col {
    padding: 0;
  }
  [data-raven-slot$=":best-work"] .fs__media-sticky {
    top: 0;
    min-height: 100vh;
  }
  [data-raven-slot$=":best-work"] .fs__media-wrap {
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    border-radius: 32px;
  }
  [data-raven-slot$=":best-work"] .fs__item {
    min-height: 100vh;
    justify-content: center;
    padding: 0;
    gap: 16px;
    border: 0;
  }
  [data-raven-slot$=":best-work"] .fs__item-title {
    font-size: 48px;
    line-height: 56px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  [data-raven-slot$=":best-work"] .fs__header {
    font-size: 48px;
    line-height: 56px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-list {
    gap: 0;
    margin-top: 0;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "title media"
      "desc media";
    column-gap: 48px;
    row-gap: 16px;
    align-content: center;
    min-height: 100vh;
    padding: 0;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-item > .fs__item-title {
    grid-area: title;
    align-self: end;
    font-size: 40px;
    line-height: 48px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-item > .fs__mobile-media {
    grid-area: media;
    align-self: center;
    margin: 0;
    border-radius: 32px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-item > :not(.fs__item-title):not(.fs__mobile-media) {
    grid-area: desc;
    align-self: start;
  }
}

@media (max-width: 767px) {
  [data-raven-slot$=":best-work"] .fs__header {
    font-size: 40px;
    line-height: 48px;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    text-align: start;
  }
  [data-raven-slot$=":best-work"] .fs__inner {
    padding-bottom: 64px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-list {
    gap: 64px;
    margin-top: 0;
  }
  [data-raven-slot$=":best-work"] .fs__item-title {
    font-size: 32px;
    line-height: 40px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-media {
    margin-top: 0;
    border-radius: 32px;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":best-work"] .fs__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  [data-raven-slot$=":best-work"] .fs__mobile-list {
    margin-top: 32px;
  }
}

/* Our culture: live's band carries `padding-top-md` (Home's does not): 112px
   from 992 (checker N4, 2026-11-11: the heading touched the cards above),
   80px at 991 and below, 56px at 767 and below. */
[data-raven-slot^="careers/our-culture:"][data-raven-slot$=":best-work"] .fs__inner {
  padding-top: 112px;
}
@media (max-width: 991px) {
  [data-raven-slot^="careers/our-culture:"][data-raven-slot$=":best-work"] .fs__inner {
    padding-top: 80px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot^="careers/our-culture:"][data-raven-slot$=":best-work"] .fs__inner {
    padding-top: 56px;
  }
}
