/* The three current vacancies share a row on desktop. */
.job-vacancies-page .latest-news-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-vacancies-page .latest-news-card-face--front { grid-template-rows: auto 1fr; }
.job-vacancies-page .latest-news-card-media { aspect-ratio: 4 / 3; min-height: 0; }
.job-vacancies-page .latest-news-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-vacancies-page .latest-news-card-body { padding: 1.25rem; gap: .8rem; }
.job-vacancies-page .latest-news-card h3 { font-size: 1.35rem; }
.job-vacancies-page .latest-news-card-face--back { grid-template-rows: 1fr; }
.job-vacancies-page .latest-news-card-body--back {
  grid-template-rows: repeat(6, max-content);
  align-content: start;
}
.job-vacancies-page .latest-news-card-body--back .latest-news-card-article-copy { align-content: start; }
.job-vacancies-page .latest-news-card-body--back .latest-news-card-link { margin-top: 0; }
.job-vacancies-page .latest-news-card-face--front .latest-news-card-body { grid-template-rows: auto auto 1fr auto; }
.job-vacancies-page .latest-news-card-face--front .latest-news-card-link { margin-top: .25rem; }
.job-vacancies-page .latest-news-card p { font-size: 1rem; }
.job-vacancies-page .latest-news-card:not(.is-flipped) .latest-news-card-face--back,
.job-vacancies-page .latest-news-card.is-flipped .latest-news-card-face--front { visibility: hidden; }
.job-vacancies-page .latest-news-card.is-flipped .latest-news-card-face--back { visibility: visible; }
@media (max-width: 1399px) {
  .job-vacancies-page .latest-news-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .job-vacancies-page .latest-news-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-vacancies-page .latest-news-card-face { transform: none !important; filter: none !important; opacity: 1 !important; }
  .job-vacancies-page .latest-news-card-button { min-height: 44px; }
}
@media (max-width: 650px) {
  .job-vacancies-page .latest-news-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .job-vacancies-page .latest-news-card-face { transition: none; }
}

/* Match Latest News hero framing and fade. */

body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band {
  min-height: 0;
  aspect-ratio: 1899 / 552;
}
body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band {
  aspect-ratio: 1899 / 552;
  background-position: center bottom;
  background-size: cover;
}
body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band::before {
  content: "";
  /* Keep the upper image clear, then feather into the card section's exact colour. */
  background: linear-gradient(180deg,
    rgba(237, 241, 245, 0) 25%,
    rgba(237, 241, 245, .04) 38%,
    rgba(237, 241, 245, .16) 50%,
    rgba(237, 241, 245, .38) 62%,
    rgba(237, 241, 245, .66) 75%,
    rgba(237, 241, 245, .9) 88%,
    var(--color-bg) 100%);
}

.job-vacancies-page { background: var(--color-bg); }

body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero h1 { max-width: none; }
.job-vacancies-page .vacancies-heading-line { display: block; white-space: nowrap; }
@media (max-width: 1099px) {
  body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero h1 { font-size: clamp(1.8rem, 7.5vw, 3.8rem); }
}

body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band-content {
  min-height: 100%;
}

body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-panel {
  min-height: 100%;
  background: transparent;
}
@media (min-width:1100px) and (max-width:1599px) {
/*
   * Latest News: release the panoramic aspect ratio and reserve space below
   * the introduction before the deliberately overlapping card grid begins.
   */
  body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band {
    aspect-ratio: auto;
    min-height: clamp(36rem, 40vw, 38rem);
  }
body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-band-content,
  body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-panel {
    min-height: clamp(36rem, 40vw, 38rem);
  }
body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-panel {
    padding-bottom: clamp(4.5rem, 6vw, 6rem);
  }
body[data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero h1 {
    font-size: clamp(3.05rem, 4.25vw, 4.25rem);
  }
}

@media (max-width:1099px) {
body[data-viewport="mobile"][data-route="job-vacancies"] .latest-news-page .split-template-section[data-section-key="hero"] .split-template-band {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .latest-news-page .split-template-section[data-section-key="hero"] .split-template-band-content {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .latest-news-page .split-template-section[data-section-key="hero"] .split-template-panel {
    min-height: 0 !important;
    overflow: visible !important;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .latest-news-page .split-template-section[data-section-key="hero"] .split-template-mobile-media {
    display: none !important;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-mobile-media img {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center bottom;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-mobile-media {
    position: relative;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .split-template-section.dropdown-standardized-hero .split-template-mobile-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-overlay-strong) 0%, var(--color-overlay-soft) 24%, transparent 48%);
    pointer-events: none;
    z-index: 1;
  }
body[data-viewport="mobile"][data-route="job-vacancies"] .latest-news-feed-section {margin:0;padding-top:1rem;}
}
