/*
 * Careers section type `section_locations-header` (a city's heading, text,
 * "View open positions" button, photo and 0/1/2 flag labels), drawn with the
 * design-system Hero, variant `split` (CareersLocations `kind: header`). The
 * Hero's picture slot holds the photo and only the labels the item has
 * (`.raven-careers-photo`). Scoped to careers recipe slots ending in
 * `:locations-header`; DS inner class names as UAE does. Linked on /careers
 * pages only (CAREERS_STYLESHEETS).
 *
 * Measured on live careers.deriv.com/locations/<city> 2026-11-11 (london,
 * dubai-business-bay, mauritius, melaka; 1440/1024/768/390, EN and AR; live
 * stylesheet deriv-careers.6943a00ac78267882a60c10d.6e7e9d801.opt.min.css):
 *   white band; container 80rem with 24px sides (16px <=479); two columns
 *   1fr 1fr, gap 64px (48px <=991), centred vertically; one column <=767
 *   (gap 24px, 32px <=479) with the photo first; padding 0 / 112px
 *   (<=991 48px / 48px, <=479 0 / 48px).
 *   Text column: h1, text, button, gap 16px; h1 800 80/88, 64/72 (<=991),
 *   48/56 (<=479), #181c25; text 16/24 #181c25. Button: 48px tall, 16px 24px,
 *   pill, #ff444f, white, 800, 16px, line-height 16px, letter-spacing .035rem;
 *   full width <=767.
 *   Photo: square (aspect 1, cover), 32px corners, clipped. Labels at the top
 *   edge: first 3.5rem wide 24px from the right, second 5.93rem wide 7rem from
 *   the right; <=991 3rem / 5.2rem at 6rem; <=767 2.25rem / 3.8rem at 4.5rem.
 */
[data-raven-slot$=":locations-header"] .hero.hero--split {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  column-gap: 64px;
  row-gap: 64px;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 24px 112px;
  box-sizing: border-box;
  overflow: visible;
  background: none;
  background-color: transparent;
  animation: none;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__overlay {
  display: none;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__inner {
  grid-column: 1;
  grid-row: 1;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__content,
[data-raven-slot$=":locations-header"] .hero--split .hero__left {
  max-width: none;
  width: 100%;
  min-width: auto;
  gap: 16px;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__body,
[data-raven-slot$=":locations-header"] .hero--split .hero__text {
  gap: 16px;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__title {
  font-size: 80px;
  line-height: 88px;
  font-weight: 800;
  color: #181c25;
  /* Live never breaks inside a word: a long Arabic city name widens its column
     (Mauritius AR at 768: 341px / 331px), as a Webflow grid does. */
  overflow-wrap: normal;
  word-break: normal;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__description {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #181c25;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__buttons {
  flex-direction: row;
  align-items: center;
  width: auto;
  gap: 12px;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__buttons a {
  width: auto;
  text-decoration: none;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__buttons .button {
  width: auto;
  height: 48px;
  min-width: 0;
  padding: 16px 24px;
  border: 0;
  border-radius: 96px;
  background-color: #ff444f;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 0.035rem;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__buttons .button:hover {
  background-color: #e12e3a;
}
/* The picture column: live's photo with its flag labels. */
[data-raven-slot$=":locations-header"] .hero--split .hero__image-slot {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  inset: auto;
  top: auto;
  width: auto;
  height: auto;
  max-width: none;
  display: block;
  overflow: visible;
  pointer-events: auto;
  transform: none;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__image-slot > .raven-careers-photo {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__image-slot img.raven-careers-photo__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
[data-raven-slot$=":locations-header"] .raven-careers-photo__label {
  position: absolute;
  top: 0;
}
[data-raven-slot$=":locations-header"] .raven-careers-photo__label--1 {
  right: 24px;
  width: 3.5rem;
}
[data-raven-slot$=":locations-header"] .raven-careers-photo__label--2 {
  right: 7rem;
  width: 5.93rem;
}
[data-raven-slot$=":locations-header"] .hero--split .hero__image-slot .raven-careers-photo__label img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: fill;
  display: inline-block;
  vertical-align: middle;
}
@media screen and (max-width: 991px) {
  [data-raven-slot$=":locations-header"] .hero.hero--split {
    column-gap: 3rem;
    row-gap: 64px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__title {
    font-size: 64px;
    line-height: 72px;
  }
  [data-raven-slot$=":locations-header"] .raven-careers-photo__label--1 {
    width: 3rem;
  }
  [data-raven-slot$=":locations-header"] .raven-careers-photo__label--2 {
    width: 5.2rem;
    right: 6rem;
  }
}
@media screen and (max-width: 767px) {
  [data-raven-slot$=":locations-header"] .hero.hero--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__image-slot {
    grid-column: 1;
    grid-row: 1;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__inner {
    grid-column: 1;
    grid-row: 2;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__buttons a,
  [data-raven-slot$=":locations-header"] .hero--split .hero__buttons .button {
    width: 100%;
  }
  [data-raven-slot$=":locations-header"] .raven-careers-photo__label--1 {
    width: 2.25rem;
  }
  [data-raven-slot$=":locations-header"] .raven-careers-photo__label--2 {
    width: 3.8rem;
    right: 4.5rem;
  }
}
@media screen and (max-width: 479px) {
  [data-raven-slot$=":locations-header"] .hero.hero--split {
    gap: 32px;
    padding: 0 16px 48px;
  }
  [data-raven-slot$=":locations-header"] .hero--split .hero__title {
    font-size: 48px;
    line-height: 56px;
  }
}

/*
 * Arabic city pages (independent checker r2 blocker, 2026-11-12): Raven mirrors split-hero
 * pictures on right-to-left pages (app/globals.css, as deriv.com's Arabic pages do), which
 * flipped the office photo and its award badges here ("Great Place To Work" read backwards).
 * Live careers.deriv.com/ar keeps them unmirrored.
 */
[dir="rtl"] [data-raven-slot$=":locations-header"] .hero--split .hero__image-slot img {
  transform: none;
}
