/* One Earth responsive QA v38
 * Fixes section overlap between leadership and careers on tablet/mobile.
 */

/* Keep previous v37 refinements. */
.concept-hero .experience-flow-line{display:none!important}

.approach .approach-steps article{display:flex;flex-direction:column}
.approach .approach-steps .technical-illustration{display:flex;align-items:center;justify-content:center;overflow:visible}
.approach .approach-steps .technical-illustration svg{display:block;max-width:none;transform-origin:center center}

@media (max-width:1100px){
  .approach .approach-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .approach .approach-steps article,
  .approach .approach-steps article+article{padding:28px 24px 30px!important}
  .approach .approach-steps .technical-illustration{height:188px;margin:0 0 20px}
  .approach .approach-steps .technical-illustration svg{width:118%;height:118%;transform:none}
  :where(.eyebrow,.editorial-kicker,.sub-hero-sign,.small-label,.hero-caption,.motion-gallery-meta,.journey-source,.flow-caption,.company-facts dt,.ceo-profile-facts dt,.approach-steps article>span,.footer-bottom,.matrix-grid>b,.matrix-grid>strong){font-size:12px!important;line-height:1.45}
}

/* Tablet/phone: careers photo must start after leadership content, never overlap it. */
@media (max-width:900px){
  .leadership{
    position:relative;
    z-index:1;
  }
  .careers{
    padding-top:0!important;
  }
  .careers .careers-photo{
    position:relative;
    z-index:1;
    margin-top:0!important;
    margin-bottom:58px!important;
  }
  .careers .careers-photo img{
    display:block;
  }
}

@media (max-width:600px){
  .approach .approach-steps{grid-template-columns:1fr;gap:14px;margin-top:32px}
  .approach .approach-steps article,
  .approach .approach-steps article+article{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 20px 26px!important}
  .approach .approach-steps .technical-illustration{width:100%;height:158px;margin:0 0 18px}
  .approach .approach-steps .technical-illustration svg{width:126%;height:126%;transform:none}
  .approach .approach-steps article>span,
  .approach .approach-steps h3,
  .approach .approach-steps p{grid-column:auto!important}
  .approach .approach-steps h3{margin:0 0 10px;font-size:21px;line-height:1.32}
  .approach .approach-steps p{font-size:15px;line-height:1.72;max-width:26ch}
  :where(.hero-caption,.editorial-kicker,.eyebrow,.small-label,.company-facts dt,.ceo-profile-facts dt,.approach-steps article>span,.footer-bottom,.matrix-grid>b,.matrix-grid>strong){font-size:12.5px!important;line-height:1.45}
}

@media (max-width:430px){
  .concept-hero .hero-image{object-position:70% 50%!important}
  .approach .approach-steps .technical-illustration{height:152px}
  .approach .approach-steps .technical-illustration svg{width:130%;height:130%;transform:none}
  .careers .careers-photo{margin-bottom:48px!important}
}

/* v39 overlap hardening: leadership must fully finish before careers image starts. */
@media (max-width:1200px){
  .leadership.section{
    position:relative;
    z-index:2;
    padding-bottom:clamp(56px,7vw,88px) !important;
    overflow:visible !important;
  }
  .leader-profile{
    min-width:0;
    overflow:visible;
  }
  .leader-expertise{
    min-width:0;
    margin-bottom:0;
    padding-bottom:10px;
  }
  .leader-expertise p{
    min-width:0;
    max-width:100%;
    white-space:normal !important;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .careers.section{
    position:relative;
    z-index:1;
    margin-top:0 !important;
    padding-top:0 !important;
    clear:both;
  }
  .careers .careers-photo{
    position:static !important;
    inset:auto !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    transform:none !important;
    translate:none !important;
    float:none !important;
    clear:both;
    margin-top:0 !important;
  }
}

@media (max-width:760px){
  .leadership.section{
    padding-bottom:58px !important;
  }
  .leader-expertise{
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding-bottom:8px;
  }
  .leader-expertise p{
    font-size:13px !important;
    line-height:1.7;
  }
  .careers .careers-photo{
    margin-bottom:48px !important;
  }
}

/* Mobile grid gap compensation: ensure the second grid item is fully inside the section box. */
@media (max-width:760px){
  .leadership.section{
    padding-bottom:120px !important;
  }
}
