/*
 * Careers section type `careers-feature` (live `.section_careers_feature`; careers
 * Home "How we're building with AI"): heading + intro, three coloured cards
 * (coral, grey, dark: title, copy, picture at the foot) and one wide grey card
 * with no picture. DS FeatureCards default grid (owner decision 2026-11-12):
 * per-card colorScheme brand / light / dark / light; the 4th card spans the row.
 * Live's small "Software 1.0 / 2.0 / 3.0" pills above the first three cards' titles
 * (English on both languages, as live) are drawn by this file (`::before`, below): the
 * block's card has no label slot (owner, 2026-11-20; design-system ask: a card
 * `label`). Linked on careers pages only (CAREERS_STYLESHEETS).
 * Type-level: every `:careers-feature` slot.
 *
 * Live (careers.deriv.com, measured 2026-11-12 at 1440 / 1024 / 768 / 390, EN + AR):
 * - band: white, 112px top/bottom (56px at 991 and below); 24px sides (16px at 479
 *   and below); 48px from the heading block to the cards;
 * - heading block: centred, as wide as its copy up to 768px (left-aligned below 768); heading 56/64
 *   (48/56 at 991, 40/48 at 767); intro 16/24;
 * - cards: three columns from 992 (two from 768, one below), 16px apart, 32px
 *   corners; cards in a row are equally tall, copy at the top, the picture at the
 *   foot at its own aspect (full card width; at 479 and below 24px under the copy
 *   and at least 256px tall, cropped with cover); copy padding 32px (24px at 991 and below), 16px from title
 *   to copy; title 32/40 800 (24/32 at 991, 20/28 at 767, 24/32 at 479), copy 16/24;
 * - wide card: the full row, 16px under the cards, #f6f7f8, 32px corners (24px at
 *   991 and below), padding as the cards; its paragraphs are blank-line apart.
 */
[data-raven-slot$=":careers-feature"] .fc-container {
  padding: 112px 24px;
}
/* Live's heading block is as wide as its copy, up to 768px (the one-line Arabic
   intro makes it 718px at 1440). */
[data-raven-slot$=":careers-feature"] .fc-header {
  align-self: center;
  max-width: 768px;
  align-items: stretch;
}
[data-raven-slot$=":careers-feature"] .fc-sectionTitle {
  font-size: 56px;
  line-height: 64px;
  font-weight: 800;
}
[data-raven-slot$=":careers-feature"] .fc-sectionDescription {
  max-width: none;
  font-size: 16px;
  line-height: 24px;
}
[data-raven-slot$=":careers-feature"] .fc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
[data-raven-slot$=":careers-feature"] .card-primary {
  height: auto;
  min-height: 0;
  border-radius: 32px;
}
[data-raven-slot$=":careers-feature"] .card-primary:nth-child(4) {
  grid-column: 1 / -1;
}
[data-raven-slot$=":careers-feature"] .card-primary .cp-content {
  flex: 1 0 auto;
  padding: 32px;
  gap: 16px;
}
[data-raven-slot$=":careers-feature"] .card-primary .cp-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.015rem;
}
[data-raven-slot$=":careers-feature"] .card-primary .cp-description {
  font-size: 16px;
  line-height: 24px;
}
[data-raven-slot$=":careers-feature"] .card-primary .cp-imageSection {
  height: auto;
  flex: 0 0 auto;
}
[data-raven-slot$=":careers-feature"] .card-primary .cp-image {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  /* Live's pictures are 800×462; holds their space while a lazy picture loads. */
  aspect-ratio: auto 800 / 462;
  object-fit: cover;
}
@media (max-width: 991px) {
  [data-raven-slot$=":careers-feature"] .fc-container {
    padding-block: 56px;
  }
  [data-raven-slot$=":careers-feature"] .fc-sectionTitle {
    font-size: 48px;
    line-height: 56px;
  }
  [data-raven-slot$=":careers-feature"] .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-raven-slot$=":careers-feature"] .card-primary .cp-content {
    padding: 24px;
  }
  [data-raven-slot$=":careers-feature"] .card-primary .cp-title {
    font-size: 24px;
    line-height: 32px;
  }
  [data-raven-slot$=":careers-feature"] .card-primary:nth-child(4) {
    border-radius: 24px;
  }
}
@media (max-width: 767px) {
  [data-raven-slot$=":careers-feature"] .fc-header {
    align-self: stretch;
  }
  [data-raven-slot$=":careers-feature"] .fc-sectionTitle {
    font-size: 40px;
    line-height: 48px;
  }
  [data-raven-slot$=":careers-feature"] .fc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-raven-slot$=":careers-feature"] .card-primary .cp-title {
    font-size: 20px;
    line-height: 28px;
  }
}
@media (max-width: 479px) {
  [data-raven-slot$=":careers-feature"] .fc-container {
    padding-inline: 16px;
  }
  [data-raven-slot$=":careers-feature"] .card-primary .cp-title {
    font-size: 24px;
    line-height: 32px;
  }
  [data-raven-slot$=":careers-feature"] .card-primary {
    gap: 24px;
  }
  [data-raven-slot$=":careers-feature"] .card-primary .cp-image {
    min-height: 256px;
  }
}

/*
 * Home's three paradigm cards carry live's "Software 1.0 / 2.0 / 3.0" pill above the
 * title (live `.label`: 4px 16px, fully round, 8% slate tint, 14/24 regular, 16px above
 * the title — the card's own gap; white on the coral and dark cards, 72% slate on the light one). Home's
 * band only (`careers:careers-feature`); the label is English on both languages, as live.
 */
[data-raven-slot="careers:careers-feature"] .card-primary:nth-child(-n + 3) .cp-content::before {
  align-self: flex-start;
  display: block;
  padding: 4px 16px;
  border-radius: 768px;
  background-color: rgba(24, 28, 37, 0.08);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
  direction: ltr;
}
[data-raven-slot="careers:careers-feature"] .card-primary:nth-child(2) .cp-content::before {
  color: rgba(24, 28, 37, 0.72);
}
[data-raven-slot="careers:careers-feature"] .card-primary:nth-child(1) .cp-content::before {
  content: "Software 1.0";
}
[data-raven-slot="careers:careers-feature"] .card-primary:nth-child(2) .cp-content::before {
  content: "Software 2.0";
}
[data-raven-slot="careers:careers-feature"] .card-primary:nth-child(3) .cp-content::before {
  content: "Software 3.0";
}
