/* Encountri v319: mobile breathing room, five interior-page hero compositions.
   Applies only at responsive breakpoints; preserves copy, SEO and internal anchors. */
@media(max-width:700px){
  /* HOME: no more wall-to-wall headings, Ghana image or panel */
  body.home-page #expeditions{
    padding:56px 6% 75px!important;
    background:#f7f5ef!important;
    box-sizing:border-box!important;
  }
  body.home-page #expeditions .section-head{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0 0 28px!important;
    border:0!important;
    box-sizing:border-box!important;
  }
  body.home-page #expeditions .section-head h2{
    font:700 clamp(29px,8.5vw,42px)/1.11 'Manrope',sans-serif!important;
    letter-spacing:-.05em!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    max-width:100%!important;
  }
  body.home-page #expeditions .section-head .section-intro{
    font:400 13px/1.7 'DM Sans',sans-serif!important;
    max-width:100%!important;
    padding:0!important;
  }
  body.home-page #expeditions .home-programme-grid{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
  }
  body.home-page #expeditions .home-programme-grid>.country,
  body.home-page #expeditions .home-programme-grid>.country-featured-ghana{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    border-radius:0!important;
    overflow:hidden!important;
  }
  body.home-page #expeditions .country-featured-ghana .country-photo{
    width:100%!important;
    min-width:0!important;
    aspect-ratio:16/10!important;
    overflow:hidden!important;
  }
  body.home-page #expeditions .country-featured-ghana .country-photo img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.home-page #expeditions .country-featured-ghana .country-info{
    padding:24px 22px 28px!important;
  }
  body.home-page #expeditions .home-programme-grid .home-next-strip{
    width:100%!important;
    margin:5px 0 0!important;
    padding:23px 21px!important;
  }

  /* Each interior page: opening photo above a separate, legible editorial panel */
  body.about-page .ab-hero,
  body.programmes-page .pr-hero,
  body.organisations-page .org-hero,
  body.services-page .service-hero,
  body.approach-page .approach-hero{
    position:relative!important;
    display:block!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    margin:0!important;
    padding:clamp(280px,79vw,350px) 0 0!important;
    background:#f7f5ef!important;
    color:#0b413c!important;
    overflow:hidden!important;
    isolation:isolate!important;
  }
  body.about-page .ab-hero-photo,
  body.organisations-page .org-hero-image,
  body.services-page .service-hero-image,
  body.approach-page .approach-hero-image{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100%!important;
    height:clamp(280px,79vw,350px)!important;
    min-height:0!important;
    z-index:0!important;
    overflow:hidden!important;
    transform:none!important;
    animation:none!important;
    background-color:#dbe9e3!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
  }
  body.about-page .ab-hero-photo{
    background-image:url('/images/about-hero-new-user.jpg')!important;
    background-position:50% 41%!important;
  }
  body.about-page .ab-hero-shade{
    position:absolute!important;
    top:0!important;
    right:0!important;
    left:0!important;
    bottom:auto!important;
    height:clamp(280px,79vw,350px)!important;
    background:linear-gradient(180deg,rgba(5,41,38,.12),rgba(5,41,38,0) 64%,rgba(5,41,38,.1))!important;
    pointer-events:none!important;
  }
  body.programmes-page .pr-hero{
    background:#f7f5ef!important;
  }
  body.programmes-page .pr-hero::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:clamp(280px,79vw,350px)!important;
    background:url('/images/services-expedition-user-v422.webp') 50% 38%/cover no-repeat!important;
    z-index:0!important;
  }
  body.organisations-page .org-hero-image{
    background-image:url('/images/organisations-hero-user.jpg')!important;
    background-size:cover!important;
    background-position:50% 38%!important;
  }
  body.services-page .service-hero-image{
    background-image:url('/images/encountri-hero-african-businesswoman-kigali.webp')!important;
    background-size:cover!important;
    background-position:56% 38%!important;
    transform:none!important;
  }
  body.approach-page .approach-hero-image{
    background:transparent!important;
    isolation:isolate!important;
  }
  body.approach-page .approach-hero-image::before{
    background:url('/images/how-we-work-hero-v235.jpg') 50% 38%/cover no-repeat!important;
    transform:none!important;
    filter:none!important;
    inset:0!important;
  }
  body.approach-page .approach-hero-image::after{
    background:linear-gradient(180deg,rgba(6,48,46,.09),transparent 70%)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    inset:0!important;
  }

  body.about-page .ab-hero-copy,
  body.programmes-page .pr-hero-inner,
  body.organisations-page .org-hero-content,
  body.services-page .service-hero-content,
  body.approach-page .approach-hero-content{
    position:relative!important;
    inset:auto!important;
    z-index:2!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:32px 7% 47px!important;
    box-sizing:border-box!important;
    background:#f7f5ef!important;
    color:#0b413c!important;
    transform:none!important;
    animation:none!important;
    box-shadow:none!important;
    border:0!important;
    text-align:left!important;
  }
  /* Deliberately varied background tones, without decorative accent lines */
  body.about-page .ab-hero-copy{background:#e5efe9!important}
  body.organisations-page .org-hero-content{background:#f5e3a1!important}
  body.approach-page .approach-hero-content{background:#e5efe9!important}
  body.programmes-page .pr-hero-inner{background:#f7f5ef!important}
  body.services-page .service-hero-content{background:#f7f5ef!important}

  body.about-page .ab-hero h1,
  body.programmes-page .pr-hero h1,
  body.organisations-page .org-hero h1,
  body.services-page .service-hero h1,
  body.approach-page .approach-hero h1{
    display:block!important;
    font:700 clamp(33px,9.1vw,45px)/1.1 'Manrope',sans-serif!important;
    letter-spacing:-.052em!important;
    color:#0b413c!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 17px!important;
    padding:0!important;
    text-shadow:none!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.about-page .ab-hero h1 em,
  body.programmes-page .pr-hero h1 em,
  body.organisations-page .org-hero h1 em,
  body.services-page .service-hero h1 em,
  body.approach-page .approach-hero h1 em{
    font-style:normal!important;
    font-weight:400!important;
    color:#0b7974!important;
  }
  body.about-page .ab-kicker,
  body.programmes-page .pr-hero .pr-kicker,
  body.organisations-page .org-hero .org-kicker,
  body.services-page .service-hero .service-kicker,
  body.approach-page .approach-hero .ap-kicker{
    color:#0c7772!important;
    font:800 10px/1.5 'DM Sans',sans-serif!important;
    letter-spacing:.14em!important;
    margin:0 0 17px!important;
  }
  body.about-page .ab-hero-copy>p:not(.ab-kicker),
  body.programmes-page .pr-hero-inner>p:not(.pr-kicker),
  body.organisations-page .org-hero-copy,
  body.services-page .service-hero-copy,
  body.approach-page .ap-hero-copy{
    color:#456158!important;
    font:400 13.5px/1.72 'DM Sans',sans-serif!important;
    max-width:100%!important;
    margin:0 0 22px!important;
  }
  body.about-page .ab-hero .ab-button,
  body.programmes-page .pr-hero .button-yellow,
  body.organisations-page .org-hero .org-button,
  body.services-page .service-hero .button-yellow,
  body.approach-page .approach-hero .ap-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-height:49px!important;
    border:0!important;
    border-radius:0!important;
    background:#0b7773!important;
    color:#fff!important;
    font:700 12px/1.45 'DM Sans',sans-serif!important;
    text-decoration:none!important;
    padding:13px 17px!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
  }
  body.organisations-page .org-hero-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
  }
  body.organisations-page .org-hero .org-hero-textlink{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:43px!important;
    border:0!important;
    border-bottom:1px solid #0b7a78!important;
    color:#0b5953!important;
    font:700 12px/1.45 'DM Sans',sans-serif!important;
    padding:8px 0!important;
    margin:0!important;
    width:100%!important;
    text-decoration:none!important;
  }
  body.services-page .hero-side-note,
  body.services-page .service-hero-foot{display:none!important}
}
@media(min-width:701px) and (max-width:1024px){
  body.about-page .ab-hero,
  body.programmes-page .pr-hero,
  body.organisations-page .org-hero,
  body.services-page .service-hero,
  body.approach-page .approach-hero{
    height:auto!important;
    min-height:540px!important;
    max-height:none!important;
    display:flex!important;
    align-items:center!important;
    padding:140px 7% 75px!important;
    overflow:hidden!important;
  }
  body.about-page .ab-hero-copy,
  body.programmes-page .pr-hero-inner,
  body.organisations-page .org-hero-content,
  body.services-page .service-hero-content,
  body.approach-page .approach-hero-content{max-width:720px!important;width:100%!important;min-width:0!important}
  body.about-page .ab-hero h1,
  body.programmes-page .pr-hero h1,
  body.organisations-page .org-hero h1,
  body.services-page .service-hero h1,
  body.approach-page .approach-hero h1{
    font-size:clamp(43px,6vw,64px)!important;
    letter-spacing:-.04em!important;
    line-height:1.1!important;
    max-width:740px!important;
  }
  body.about-page .ab-hero-copy>p:not(.ab-kicker),
  body.programmes-page .pr-hero-inner>p:not(.pr-kicker),
  body.organisations-page .org-hero-copy,
  body.services-page .service-hero-copy,
  body.approach-page .ap-hero-copy{
    font-size:15px!important;
    line-height:1.75!important;
    max-width:570px!important;
  }
  body.services-page .service-hero-foot{display:none!important}
}
@media(max-width:700px){body.home-page main section#expeditions.expeditions.section-pad{padding:56px 6% 75px!important;box-sizing:border-box!important}body.home-page main #expeditions>.section-head{width:100%!important;max-width:100%!important;margin:0 0 28px!important;padding:0!important}body.home-page main #expeditions .home-programme-grid{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}body.home-page main #expeditions .home-programme-grid>.country-featured-ghana{width:100%!important;max-width:100%!important;margin:0!important}}
@media(prefers-reduced-motion:reduce){
  body.about-page .ab-hero-copy,body.organisations-page .org-hero-content,
  body.services-page .service-hero-content,body.approach-page .approach-hero-content{
    animation:none!important;transition:none!important;
  }
}