/*
 * Careers section type `section_regulatory-hero` (light; /locations hero),
 * drawn with the design-system Header, variant `visuals` (grid, overlay,
 * floating left/right pictures = live's two map pins). Scoped to careers
 * recipe slots ending in `:regulatory-hero`; DS inner class names as UAE
 * does. Linked on /careers pages only (CAREERS_STYLESHEETS).
 *
 * Measured on live careers.deriv.com/locations 2026-11-11 (computed boxes at
 * 1440/1024/768/390, EN and AR; live stylesheet
 * deriv-careers.6943a00ac78267882a60c0ed.f4040b8ac.opt.min.css):
 *   band 620px tall at every width, #f6f7f8, bottom corners 48px (32px <=767);
 *   padding 112px top and bottom, text block centred vertically
 *   (<=479: 156px / 64px); text column max 768px (48rem), gap 16px, centred
 *   from 768px up, start-aligned below; h1 80/88, 64/72 (<=991), 48/56
 *   (<=479), 800; text 16/24.
 *   Pins (`secondary-hero_icon_left/right`): width 11svw, left pin top 18%,
 *   right pin bottom 8%, 10% from the side at >=1440, 2% below; <=991 12rem,
 *   top 6% / bottom -6%, flush to the side; <=767 9rem, bottom -4%; <=479 left
 *   pin top 9%, right pin bottom 0 pushed down 32% of itself; Arabic <=479:
 *   left pin right -13%, right pin left -14%. Live's pins do not move on
 *   scroll (no parallax).
 */
[data-raven-slot$=":regulatory-hero"] .header.header--visuals {
  height: 620px;
  min-height: 0;
  background-color: #f6f7f8;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__inner {
  height: 100%;
  min-height: 0;
  max-width: 80rem;
  padding: 112px 24px;
  align-items: center;
  justify-content: center;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__content {
  width: 100%;
  max-width: 48rem;
  gap: 0;
  text-align: center;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__body {
  width: 100%;
  gap: 0;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__text {
  width: 100%;
  max-width: 48rem;
  gap: 16px;
  align-items: stretch;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__title {
  font-size: 80px;
  line-height: 88px;
  font-weight: 800;
  letter-spacing: normal;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__description {
  font-size: 16px;
  line-height: 24px;
}
/*
 * Live's layers (checker M9, 2026-11-11), bottom to top:
 *   `.secondary_hero-container`: a vertical grey fade (#f6f7f8 → #181c250a at
 *   20% and 80% → #f6f7f8) over live's pink grid picture, cover, centred
 *   (served from Raven: media/secondary-hero-background-grid.svg);
 *   `.secondary-hero-background-overlay` (z 10): a radial vignette,
 *   #181c250a to 38%, then #f6f7f8 at the far corners; <=767 / <=479 a
 *   vertical fade instead; from 992px the pins (z 12) sit ABOVE the overlay
 *   (the DS puts its visuals under its overlay, which paled the small pin's
 *   red dot), below 992px level with it, so it covers them as on live;
 *   the text (z 30) above all.
 */
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__grid {
  background-image:
    linear-gradient(180deg, #f6f7f8, #181c250a 20%, #181c250a 80%, #f6f7f8),
    url("/region-looks/careers/media/secondary-hero-background-grid.svg");
  background-position: 0 0, 50%;
  background-size: auto, cover;
  background-repeat: repeat, repeat;
  opacity: 1;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__overlay {
  z-index: 10;
  background: radial-gradient(circle farthest-corner at 50% 50%, #181c250a, #181c250a 38%, #f6f7f8);
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual {
  z-index: 12;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__inner {
  z-index: 30;
}
/* <=991 live drops the pins to z 10, level with the overlay that follows them,
   so the vignette paints over them there (paler pins on tablets and phones). */
@media screen and (max-width: 991px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual {
    z-index: 10;
  }
}
@media screen and (max-width: 767px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__overlay {
    background: linear-gradient(#f6f7f8fc 14%, #f6f7f81a 37%, #0000 50%, #f6f7f833 84%, #f6f7f8);
  }
}
@media screen and (max-width: 479px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__overlay {
    background: linear-gradient(#f6f7f8fc 11%, #f6f7f81a 37%, #0000 50%, #f6f7f833 86%, #f6f7f8);
  }
}
/* Live's pins: static (no parallax), sized and placed as live. */
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual {
  transform: none !important;
  height: auto;
  overflow: visible;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual img {
  height: auto;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
  width: 11svw;
  top: 18%;
  left: 2%;
  right: auto;
  bottom: auto;
}
[data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
  width: 11svw;
  bottom: 8%;
  right: 2%;
  top: auto;
  left: auto;
}
@media screen and (min-width: 1440px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
    left: 10%;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
    right: 10%;
  }
}
@media screen and (max-width: 991px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__title {
    font-size: 64px;
    line-height: 72px;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
    width: 12rem;
    top: 6%;
    left: 0;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
    width: 12rem;
    bottom: -6%;
    right: 0;
  }
}
@media screen and (max-width: 767px) {
  [data-raven-slot$=":regulatory-hero"] .header.header--visuals {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__inner {
    align-items: flex-start;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__content {
    text-align: start;
    align-items: flex-start;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
    width: 9rem;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
    width: 9rem;
    bottom: -4%;
  }
}
@media screen and (max-width: 479px) {
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__inner {
    padding: 156px 16px 64px;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__title {
    font-size: 48px;
    line-height: 56px;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
    top: 9%;
    left: 0;
  }
  [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
    bottom: 0;
    right: 0;
    transform: translateY(32%) !important;
  }
  [dir="rtl"] [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--left {
    left: auto;
    right: -13%;
  }
  [dir="rtl"] [data-raven-slot$=":regulatory-hero"] .header--visuals .header__visual--right {
    left: -14%;
    right: auto;
  }
}
