/* service-research: styles that belong to this page only (the shared components stay in service-ea-site.css) */

/* Research page: same design as EA, three-letter giant word, centered 2-5 card rows */
@media (min-width: 992px) {
  html[data-lang] .pg-rs .hero .ea-giant {
    font-size: 20vw;
  }
}

@media (max-width: 991.98px) {
  html[data-lang] .pg-rs .hero .ea-giant {
    font-size: 32vw;
  }
}

.pg-rs .ea-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.5rem;
}

.pg-rs .ea-grid .svc-c {
  flex: 0 1 calc((100% - 3rem) / 3);
  min-width: 260px;
}

.pg-rs .ab-vis-card {
  min-height: 0;
}

.pg-rs .ab-pill.ea-pill:not(.ea-wd) p {
  font-size: .95rem;
  line-height: 1.8;
}

.pg-rs .ea-grid .svc-c-body p {
  font-size: .98rem;
  line-height: 1.9;
}

/* Research hero picture: its own artwork (contains English labels), never mirrored; scene on the right, text on the left */
.pg-rs .hero__sky::before,
html[dir="rtl"] .pg-rs .hero__sky::before {
  background-image: url('/askwebsite/static/site/assets/src/opt/rs-hero-bg.webp');
  transform: none;
  background-size: cover;
  background-position: 67% 40%;
}

@media (max-width: 991.98px) {
  .pg-rs .hero__sky::before,
  html[dir="rtl"] .pg-rs .hero__sky::before {
    background-image: url('/askwebsite/static/site/assets/src/opt/rs-hero-bg-sm.webp');
    background-size: cover;
    background-position: 72% 100%;
  }
}

.pg-rs .hero__content > .container {
  direction: ltr;
}

html[dir="rtl"] .pg-rs .hero__content .row > div {
  direction: rtl;
  text-align: start;
}

/* hero on tablets and phones, same as the DMO page: text on top, the full picture as a band along the bottom (fading into the page colour), smaller text */
@media (max-width: 991.98px) {
  .pg-ea.pg-rs .hero {
    min-height: 0;
  }

  .pg-ea.pg-rs .hero__sky::before,
  html[dir="rtl"] .pg-ea.pg-rs .hero__sky::before {
    inset: auto 0 0 0;
    height: 38vw;
    background-size: auto 125%;
    background-position: 70% 60%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%);
    mask-image: linear-gradient(180deg, transparent, #000 24%);
  }

  .pg-ea.pg-rs .hero__content {
    min-height: 0;
    padding-top: calc(2rem + 14vw);
    padding-bottom: calc(38vw + 1rem);
  }

  html .pg-ea.pg-rs .hero__shade {
    background: none;
  }

  html[data-lang] .pg-rs .hero .ea-giant {
    font-size: 24vw;
  }

  .pg-rs .hero__giant {
    padding-top: 4.5rem;
  }

  .pg-rs .hero-title {
    font-size: 2.1rem;
  }

  .pg-rs .hero-lead {
    font-size: .95rem;
    line-height: 1.7;
  }
}

@media (max-width: 575.98px) {
  html[data-lang] .pg-rs .hero .ea-giant {
    font-size: 30vw;
  }

  .pg-rs .hero__giant {
    padding-top: 4.6rem;
  }

  .pg-ea.pg-rs .hero__sky::before,
  html[dir="rtl"] .pg-ea.pg-rs .hero__sky::before {
    height: 54vw;
    background-size: auto 185%;
    background-position: 70% 62%;
  }

  .pg-ea.pg-rs .hero__content {
    padding-top: calc(.8rem + 24vw);
    padding-bottom: calc(54vw + .25rem);
  }

  .pg-rs .hero-title {
    font-size: 1.5rem;
    margin-bottom: .6rem;
  }

  .pg-rs .hero-lead {
    font-size: .84rem;
    line-height: 1.6;
    margin-bottom: 0;
  }
}

/* overview cards: label with a short sub-line */
.pg-rs .ea-acc {
  align-items: flex-start;
}

.pg-rs .ea-acc h3 {
  padding-top: .1rem;
}

.pg-rs .ea-acc-t {
  flex: 1;
  min-width: 0;
}

.pg-rs .ab-intro .ea-acc-t p {
  margin: 0 0 .3rem;
}

.pg-rs .ea-acc-t small {
  display: block;
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ab-text);
}

@media (max-width: 575.98px) {
  .pg-rs .ea-acc-t small {
    font-size: .8rem;
    line-height: 1.6;
  }
}

/* Arabic: the numbers are written out in words */
html[data-lang="ar"] .pg-rs .ea-acc h3 {
  min-width: 5.2ch;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

/* journey (5 steps): all in one row on wide screens */
@media (min-width: 1100px) {
  .pg-rs .ea-steps {
    --cols: 5;
    --gap: .8rem;
    max-width: 1240px;
  }

  .pg-rs .ea-steps li {
    padding-inline: 1rem;
  }

  .pg-rs .ea-steps b {
    font-size: .95rem;
  }
}

/* Arabic hero: the picture is not mirrored, so the giant word and the text sit on the left, away from the scene */
@media (min-width: 992px) {
  html[dir="rtl"] .pg-rs .hero__giant {
    direction: ltr;
  }

  html[dir="rtl"] .pg-rs .hero__content .row > div {
    flex: 0 0 auto;
    width: min(100%, 36rem);
    max-width: 36rem;
    margin-inline: 0;
  }
}

/* strategic direction (#s1): the title sits in the top row between the number and the icon */
#s1 .ab-vis-top h3,
#s5 .ab-vis-top h3 {
  flex: 1;
  margin: 0 .8rem;
  font-size: 1.1rem;
  text-align: center;
}

/* #s1 cards: no big gap between the title row and the text */
#s1 .ab-vis-card,
#s5 .ab-vis-card {
  gap: 0;
}

#s1 .ab-vis-body,
#s5 .ab-vis-body {
  margin-top: .8rem;
}

/* journey steps (#journey): the title sits beside the icon, not under it */
.pg-rs #journey .ea-steps li {
  flex-direction: row;
  align-items: center;
  gap: .8rem;
}
