/* EXT-013 / 02-20: HOME only. Preserve approved hero, assets and carousel geometry. */
body.external-home:has(#top) {
  --home-body-size:18px;
  --home-card-copy-size:18px;
  background:#FFFFFF;
}
body.external-home:has(#top) .home-services-editorial-intro p,
body.external-home:has(#top) .home-team-intro p {
  color:#655E56!important; font-size:18px!important; line-height:1.8!important;
  letter-spacing:-.02em!important; word-break:keep-all; overflow-wrap:break-word;
}
body.external-home:has(#top) .home-services-editorial-list article {
  min-height:0!important; height:auto!important; padding:26px 24px!important;
  background:#FFFFFF!important; border:0!important; box-shadow:none!important;
}
body.external-home:has(#top) .home-services-editorial-list h3 {
  color:#302E2B!important; font-size:24px!important; line-height:1.5!important;
  letter-spacing:-.03em!important; word-break:keep-all; overflow-wrap:break-word;
}
body.external-home:has(#top) .home-services-editorial-list p {
  color:#302E2B!important; font-size:18px!important; line-height:1.8!important;
  letter-spacing:-.02em!important; word-break:keep-all; overflow-wrap:break-word;
  overflow:visible!important; max-height:none!important;
}
body.external-home:has(#top) .home-services-editorial-list .home-service-copy-line {
  display:inline!important; white-space:normal!important;
}
body.external-home:has(#top) .home-service-copy-line + .home-service-copy-line::before { content:' '; }
body.external-home:has(#top) .home-services-editorial-number { color:#8A7058!important; }
body.external-home:has(#top) .home-team-copy h3 {
  color:#302E2B!important; font-size:22px!important; line-height:1.5!important;
  letter-spacing:-.02em!important; white-space:normal!important; word-break:keep-all;
}
body.external-home:has(#top) .home-team-copy p {
  color:#655E56!important; font-size:17px!important; line-height:1.8!important;
  letter-spacing:0!important; white-space:normal!important;
}
body.external-home:has(#top) :is(.home-services-editorial-link,.home-team-all-link) {
  display:inline-flex!important; align-items:center; min-height:48px; box-sizing:border-box;
  color:#302E2B!important; font-size:16px!important; line-height:1.6;
  text-decoration:underline; text-underline-offset:5px; border-bottom:0!important;
}
body.external-home:has(#top) .home-team-buttons { gap:12px!important; }
body.external-home:has(#top) .home-team-buttons button { width:48px!important; height:48px!important; }
body.external-home:has(#top) :is(.home-team-buttons button,.home-team-progress) { color:#655E56!important; }
body.external-home:has(#top) .home-team-buttons button { background:#FFFFFF!important; }
/* The consultation block is independent of the HOME hero. */
body.external-home:has(#top) .external-consultation .external-consultation-actions { gap:16px; }
body.external-home:has(#top) .external-consultation .external-consultation-actions a:first-child {
  background:#F1EFED; color:#302E2B!important;
}
body.external-home:has(#top) .external-consultation .external-consultation-actions a:first-child:hover { background:#FFFFFF; }
body.external-home:has(#top) :is(.home-services-editorial-link,.home-team-all-link,.home-team-buttons button,.external-consultation a):focus-visible {
  outline:3px solid #655E56!important; outline-offset:4px;
}
body.external-home:has(#top) .external-consultation a:focus-visible { outline-color:#FFFFFF!important; }
@media(max-width:640px) {
  body.external-home:has(#top) :is(.home-services-editorial-intro p,.home-team-intro p) { font-size:17px!important; }
  body.external-home:has(#top) .home-services-editorial-list article { padding:20px!important; }
  body.external-home:has(#top) .home-services-editorial-list h3 { font-size:22px!important; }
  body.external-home:has(#top) .home-services-editorial-list p { font-size:17px!important; }
  body.external-home:has(#top) :is(.home-services-editorial-link,.home-team-all-link) { font-size:17px!important; }
  body.external-home:has(#top) section.external-consultation {
    aspect-ratio:auto; min-height:calc(100vw * 4 / 3);
  }
  body.external-home:has(#top) .external-consultation .external-consultation-inner { padding-bottom:112px; }
  body.external-home:has(#top) .external-consultation .external-consultation-actions { gap:12px; }
  body.external-home:has(#top) .external-consultation .external-consultation-actions a {
    min-height:48px; font-size:17px; white-space:normal; word-break:keep-all;
  }
}

body.external-home:has(#top) .home-services-editorial-card-hitarea:focus-visible { outline:3px solid #655E56!important; outline-offset:3px; }

/* Approved HOME portrait revision: use the profile page's 4:5 ratio on both viewports.
   Preserve card widths, source images, object-position and carousel mechanics. */
body.external-home:has(#top) .home-team-visual { aspect-ratio:4 / 5!important; }

/* HOME HERO: retain desktop flow and use the approved mobile lead break. */
body.external-home:has(#top) br.home-hero-lead-mobile-break { display:none; }
@media(max-width:640px) {
  body.external-home:has(#top) br.home-hero-lead-mobile-break { display:block; }
}

/* PC partner marks: equal cells, optical sizing for the original padded assets. */
@media(min-width:981px) {
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list {
    display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
    column-gap:20px!important; align-items:center!important;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li {
    height:120px; min-height:120px!important; display:flex; align-items:center; justify-content:center;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(n) img {
    width:100%!important; height:auto!important; max-width:100%!important; max-height:none!important;
    object-fit:contain; transform:none!important;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(2) img { width:85%!important; transform:translate(2.52%,-.93%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(3) img { width:80%!important; transform:translate(.125%,-.26%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(4) img { width:96%!important; transform:translateY(2.75%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(5) img { transform:translateY(.33%)!important; }
}

/* Mobile partner marks: retain the 3+2 order with room between visible logos. */
@media(max-width:640px) {
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list {
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    column-gap:18px!important; row-gap:24px!important; margin-top:32px!important;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li {
    height:64px; min-height:64px!important; display:flex; align-items:center; justify-content:center;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(n) img {
    width:100%!important; height:auto!important; max-width:100%!important; max-height:none!important;
    object-fit:contain; transform:none!important;
  }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:first-child img { width:108%!important; max-width:108%!important; flex-shrink:0; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(2) img { width:85%!important; transform:translate(2.52%,-.93%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(3) img { width:73.6%!important; transform:translate(.125%,-.26%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(4) img { width:76.5%!important; transform:translateY(2.75%)!important; }
  body.external-home:has(#top) .partner-network.partner-network--trust .partner-network-list li:nth-child(5) img { width:108%!important; max-width:108%!important; flex-shrink:0; transform:translateY(.33%)!important; }
}

/* Center HOME member details beneath the existing portrait frame. */
body.external-home:has(#top) .home-team-copy :is(h3,p) {
  text-align:center!important;
}

/* Approved HOME HERO action readability on desktop and mobile. */
body.external-home:has(#top) .external-image-hero .home-hero-consultation {
  font-size:17px!important;
}
