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

/* ---------- DMO page: same design as EA, 4 cards per row, three-letter giant word ---------- */
.ea-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
}

.ea-grid--4 .svc-c-body {
  padding: 2.2rem 1.3rem 1.6rem;
}

.ea-grid--4 .svc-c-body h3 {
  font-size: 1.08rem;
}

.ea-grid--4 .svc-c-body p {
  font-size: .9rem;
  line-height: 1.8;
}

@media (max-width: 1199.98px) {
  .ea-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ea-grid--4 {
    grid-template-columns: 1fr;
  }
}

.pg-dmo .ab-pill.ea-pill:not(.ea-wd) {
  padding: 1.4rem 1.3rem;
}

.pg-dmo .ab-pill.ea-pill:not(.ea-wd) .ab-pill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
}

.pg-dmo .ab-pill.ea-pill:not(.ea-wd) .ab-pill-icon svg {
  width: 26px;
  height: 26px;
}

.pg-dmo .ab-pill.ea-pill:not(.ea-wd) h3 {
  font-size: 1.05rem;
}

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

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

@media (min-width: 992px) {
  html[data-lang] .pg-dmo .hero .ea-giant {
    font-size: 20vw;
  }
}

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

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

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

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

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

/* hero built like the Training page: the picture keeps its own proportions (2048 x 768); on phones and tablets the text sits on top and the full picture is a band along the bottom, fading into the page colour */
.pg-ea.pg-dmo .hero {
  background: #05386a;
}

.pg-ea.pg-dmo .hero__sky {
  inset: 0;
  background: linear-gradient(180deg, #002e5a, #05386a);
}

html .pg-ea.pg-dmo .hero__shade {
  background: linear-gradient(90deg, rgba(0,46,90,.6) 0%, rgba(0,46,90,.25) 35%, transparent 55%);
}

@media (min-width: 992px) {
  .pg-ea.pg-dmo .hero__sky::before {
    background-size: cover;
    background-position: center;
  }

  .pg-ea.pg-dmo .hero__content {
    padding-bottom: 2.5vh;
  }
}

@media (min-width: 2200px) {
  .pg-ea.pg-dmo .hero {
    min-height: min(37.5vw, 950px);
  }

  .pg-ea.pg-dmo .hero__content {
    min-height: calc(min(37.5vw, 950px) - 81px);
  }
}

@media (max-width: 991.98px) {
  .pg-ea.pg-dmo .hero {
    min-height: 0;
  }

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

  .pg-ea.pg-dmo .hero__content {
    min-height: 0;
    padding-top: calc(2rem + 14vw);
    padding-bottom: calc(37.5vw + 1.5rem);
  }

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

@media (max-width: 575.98px) {
  .pg-ea.pg-dmo .hero__sky::before,
  html[dir="rtl"] .pg-ea.pg-dmo .hero__sky::before {
    height: 55vw;
    background-size: cover;
    background-position: 70% 100%;
  }

  .pg-ea.pg-dmo .hero__content {
    padding-top: calc(1.5rem + 18vw);
    padding-bottom: calc(55vw + .5rem);
  }
}

/* smaller hero text on small screens (same sizes as the Training page, a little lower on phones) */
@media (max-width: 991.98px) {
  .pg-dmo .hero-title {
    font-size: 2.1rem;
  }

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

@media (max-width: 575.98px) {
  .pg-dmo .hero-title {
    font-size: 1.7rem;
  }

  .pg-dmo .hero-lead {
    font-size: .88rem;
    line-height: 1.65;
  }
}

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

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

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

  .pg-dmo .hero__giant {
    padding-top: 5.2rem;
  }
}

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

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

  .pg-ea.pg-dmo .hero__sky::before,
  html[dir="rtl"] .pg-ea.pg-dmo .hero__sky::before {
    height: 54vw;
    background-size: auto 122%;
    background-position: 68% 38%;
  }

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

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

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

/* overview: the four numbers as image tiles in a 2 x 2 grid */
.dmo-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dmo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 210px;
  padding: 1.4rem 1.3rem;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(150deg, #0a2540, #0b4a4a);
  box-shadow: 0 14px 30px -18px rgba(10,37,64,.6);
  transition: transform .4s var(--ab-ease), box-shadow .3s;
}

.dmo-tile::before {
  display: none;
}

.dmo-tile:nth-child(2) {
  background: linear-gradient(150deg, #0a7f78, #0e3052);
}

.dmo-tile:nth-child(3) {
  background: linear-gradient(150deg, #0a2540, #123f6b);
}

.dmo-tile:nth-child(4) {
  background: linear-gradient(150deg, #0b4a4a, #0a7f78);
}

.dmo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -18px rgba(10,37,64,.75);
}

.dmo-tile h3 {
  margin: 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: .02em;
  color: #6df2cc;
}

.ab-intro .dmo-tile p {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
  .dmo-tile {
    min-height: 190px;
  }
}

@media (max-width: 575.98px) {
  .dmo-bento {
    gap: .7rem;
  }

  .dmo-tile {
    min-height: 160px;
    padding: 1rem .9rem;
    border-radius: 14px;
  }

  .dmo-tile h3 {
    font-size: 2.6rem;
  }

  .dmo-tile p {
    font-size: .85rem;
  }
}

@media (max-width: 359.98px) {
  .dmo-bento {
    grid-template-columns: 1fr;
  }
}

/* icon cards (sections 1, 5, 9, 13): left-aligned, icon on top, title and text below, white / mint / dark variants */
.pg-dmo .ab-vis-card {
  min-height: 280px;
  gap: 1.4rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: 18px;
  border: 1px solid #e3e8ee;
  background: #fff;
  color: var(--ab-navy);
  --muted: var(--ab-text);
  box-shadow: 0 10px 26px -20px rgba(10,37,64,.45);
  justify-content: flex-start;   /* titles start at the same height in every card (was space-between: text sat at the bottom, so titles sat at different heights) */
}

.pg-dmo .ab-vis-card::before {
  display: none;
}

.pg-dmo .ab-vis-top {
  flex-direction: row-reverse;
  align-items: flex-start;
}

.pg-dmo .ab-vis-icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.5;
  opacity: 1;
  color: #00b89c;
  stroke: #00b89c;
}

.pg-dmo .ab-vis-num {
  font-size: .85rem;
  opacity: .5;
}

.pg-dmo .ab-vis-body {
  margin-top: 0;
}

.pg-dmo .ab-vis-card h3 {
  text-align: start;
  margin-bottom: .6rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.35;
}

.pg-dmo .ab-vis-text {
  text-align: start;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--muted);
}

.pg-dmo .ab-vis .row > div:nth-child(3n+2) .ab-vis-card {
  border-color: transparent;
  background: linear-gradient(160deg, #b6f5dd, #8ef2a0);
}

.pg-dmo .ab-vis .row > div:nth-child(3n+2) .ab-vis-icon {
  stroke: var(--ab-navy);
  color: var(--ab-navy);
}

.pg-dmo .ab-vis .row > div:nth-child(3n+3) .ab-vis-card {
  border-color: transparent;
  background: linear-gradient(150deg, #0a2540, #0b4a4a);
  color: #fff;
  --muted: rgba(255,255,255,.82);
}

.pg-dmo .ab-vis .row > div:nth-child(3n+3) .ab-vis-icon {
  stroke: #6df2cc;
  color: #6df2cc;
}

.pg-dmo .ab-vis-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -22px rgba(10,37,64,.55);
}

.pg-dmo .ab-vis-card:hover .ab-vis-text {
  color: var(--muted);
}

.pg-dmo .ab-vis .row > div:nth-child(3n+3) .ab-vis-card:hover {
  color: #fff;
}

.pg-dmo .ab-vis .row > div:nth-child(3n+2) .ab-vis-card:hover .ab-vis-icon {
  stroke: var(--ab-navy);
}

@media (max-width: 767.98px) {
  .pg-dmo .ab-vis-card {
    min-height: 0;
    gap: 1.8rem;
  }
}

/* section 7 (data integration and sharing): text on one side, a stack of cards with a coloured edge on the other */
.dmo-split {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: #eef3f9;
}

.dmo-split-lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ab-text);
}

.dmo-stack {
  display: grid;
  gap: 1rem;
}

.dmo-row {
  --c: #00b89c;
  position: relative;
  padding: 1.2rem 1.4rem 1.3rem;
  padding-inline-end: 3.4rem;
  border-radius: 12px;
  border-inline-start: 5px solid var(--c);
  background: #fff;
  box-shadow: 0 12px 28px -20px rgba(10,37,64,.5);
  transition: transform .35s var(--ab-ease), box-shadow .3s;
}

.dmo-row:hover {
  transform: translateX(-4px);
  box-shadow: 0 18px 34px -20px rgba(10,37,64,.55);
}

html[dir="rtl"] .dmo-row:hover {
  transform: translateX(4px);
}

.dmo-row:nth-child(4n+1) {
  --c: #00b89c;
}

.dmo-row:nth-child(4n+2) {
  --c: #0066ff;
}

.dmo-row:nth-child(4n+3) {
  --c: #f08a24;
}

.dmo-row:nth-child(4n+4) {
  --c: #7a5cff;
}

.dmo-row-no {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c);
  opacity: .85;
}

.dmo-row h3 {
  margin: 0 0 .35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.dmo-row p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ab-text);
}

@media (max-width: 575.98px) {
  .dmo-row {
    padding: 1rem 1.1rem 1.1rem;
    padding-inline-end: 3rem;
  }

  .dmo-split-lead {
    font-size: .95rem;
  }
}

/* section 2 (metadata and data catalog): white cards with a coloured curved end and a round icon badge on the seam */
.dmo-infos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  max-width: 1100px;
  margin-inline: auto;
}

.dmo-info {
  --c: #00b89c;
  --pw: 120px;
  --bd: 76px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  padding: 1.5rem calc(var(--pw) + var(--bd) / 2 + 1rem) 1.5rem 1.7rem;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px -20px rgba(10,37,64,.5);
  transition: transform .35s var(--ab-ease), box-shadow .3s;
}

html[dir="rtl"] .dmo-info {
  padding: 1.5rem 1.7rem 1.5rem calc(var(--pw) + var(--bd) / 2 + 1rem);
}

.dmo-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px -20px rgba(10,37,64,.55);
}

.dmo-info::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: var(--pw);
  background: var(--c);
  border-start-start-radius: 110px;
  border-end-start-radius: 110px;
}

.dmo-info::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 34%;
  height: 5px;
  background: var(--c);
  border-end-end-radius: 6px;
}

.dmo-info:nth-child(4n+1) {
  --c: #00b89c;
  --t: #00a88d;
}

.dmo-info:nth-child(4n+2) {
  --c: #7be8b0;
  --t: #0a2540;
  --ic: #0a2540;
}

.dmo-info:nth-child(4n+3) {
  --c: #0b3d4a;
  --t: #0a2540;
}

.dmo-info:nth-child(4n+4) {
  --c: #0a7f78;
  --t: #0a7f78;
}

.dmo-info h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--t, var(--c));
}

.dmo-info p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ab-text);
}

.dmo-info-badge {
  position: absolute;
  top: 50%;
  inset-inline-end: calc(var(--pw) - var(--bd) / 2);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: var(--bd);
  height: var(--bd);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px -8px rgba(10,37,64,.45);
}

.dmo-info-badge svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ic, var(--c));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 991.98px) {
  .dmo-infos {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

@media (max-width: 575.98px) {
  /* phones: a plain card, icon on top, no coloured end */
  .dmo-info {
    min-height: 0;
    justify-content: flex-start;
    gap: .2rem;
    padding: 1.3rem 1.2rem 1.4rem;
  }

  html[dir="rtl"] .dmo-info {
    padding: 1.3rem 1.2rem 1.4rem;
  }

  .dmo-info::before {
    display: none;
  }

  .dmo-info-badge {
    position: static;
    translate: none;
    order: -1;
    width: 48px;
    height: 48px;
    margin-bottom: .9rem;
    box-shadow: none;
    background: color-mix(in srgb, var(--c) 12%, #fff);
  }

  .dmo-info-badge svg {
    width: 26px;
    height: 26px;
  }
}

/* section 11 (open data): light bento, heading and four numbered cards next to a photo */
.dmo-feats {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: #f2f8f3;
}

.dmo-feats-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "head head" "cards photo";
  gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2.4vw, 1.8rem);
  align-items: start;
}

.dmo-feats-head {
  grid-area: head;
}

.dmo-feats-photo {
  grid-area: photo;
  align-self: stretch;
  min-height: 320px;
  border-radius: 22px;
  background: #cfe8dc url('/askwebsite/static/site/assets/src/opt/dmo-open-photo.webp') 66% center / cover no-repeat;
  box-shadow: 0 18px 36px -24px rgba(10,37,64,.5);
}

.dmo-feats-cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dmo-feats-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ab-text);
}

.dmo-feat {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 190px;
  padding: 1.2rem 1.3rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px -20px rgba(10,37,64,.45);
  transition: transform .35s var(--ab-ease), box-shadow .3s;
}

.dmo-feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -20px rgba(10,37,64,.55);
}

.dmo-feat:nth-child(2) {
  background: #d4f5e3;
}

.dmo-feat:nth-child(3) {
  background: #e4f7d6;
}

.dmo-feat-no {
  align-self: flex-start;
  margin-bottom: .5rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: rgba(0,184,156,.14);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #0a7f78;
}

.dmo-feat h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ab-navy);
}

.dmo-feat p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--ab-text);
}

@media (max-width: 991.98px) {
  .dmo-feats-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "cards" "photo";
  }

  .dmo-feats-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  .dmo-feats-cards {
    grid-template-columns: 1fr;
  }

  .dmo-feat {
    min-height: 0;
  }
}

.dmo-feats .sec-head {
  --sec-bg: #f2f8f3;
  display: inline-block;
  margin: 1rem 0 1.4rem;
}

.dmo-split .sec-head {
  --sec-bg: #eef3f9;
  display: inline-block;
  margin: 1rem 0 1.4rem;
}

/* section 11: heading and lead centred above the cards and the photo */
.dmo-feats-head {
  text-align: center;
}

.dmo-feats-head .sec-head {
  margin-inline: auto;
}

.dmo-feats-lead {
  margin-inline: auto;
  max-width: 42rem;
}

/* overview tiles: a short sub-line under each label */
.ab-intro .dmo-tile small {
  display: block;
  margin-top: .2rem;
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

.dmo-tile {
  min-height: 250px;
}

@media (max-width: 991.98px) {
  .dmo-tile {
    min-height: 230px;
  }
}

@media (max-width: 575.98px) {
  .ab-intro .dmo-tile small {
    font-size: .76rem;
    line-height: 1.5;
  }

  .dmo-tile {
    min-height: 200px;
  }
}

/* Arabic: the numbers are written out in words, so use the page font at a smaller size instead of the condensed display face */
html[data-lang="ar"] .dmo-tile h3 {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.3;
  letter-spacing: 0;
}

@media (max-width: 575.98px) {
  html[data-lang="ar"] .dmo-tile h3 {
    font-size: 1.5rem;
  }
}

/* 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-dmo .hero__giant {
    direction: ltr;
  }

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

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

/* 4 equal cards: cancel the shared rule that centres a lone last card (it is meant for the 7-card layout) */
#s3 .ea-grid--4 .svc-c:last-child:nth-child(3n + 1) {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
}
