/* P-56 v6.4e bilingual pairing helpers. Same .p55-unit/.p55-main/.p55-sub
   pattern as v6.2 (BILINGUAL-SPEC sha bf165fb00464f272). General rules only;
   no per-pair baked colors. p55-lang.css supplies default main/sub colors. */

html body.p56-v4 .p55-unit{
  display:block;
  float:none;
  width:auto;
  max-width:100%;
  min-width:0;
  margin:0 0 .45rem;
  box-sizing:border-box;
}
html body.p56-v4 .p55-unit > br,
html body.p56-v4 .p56-pair-separator{display:none!important}
html body.p56-v4 .p55-main,
html body.p56-v4 .p55-sub{
  display:block;
  float:none;
  position:static;
  width:auto;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:0;
  overflow-wrap:anywhere;
  line-height:1.3;
}
html body.p56-v4 .p55-sub{margin-block-start:.2em;font-size:.8em;font-weight:400}
html body.p56-v4 .p55-main{font-weight:750}

/* Dark surfaces: keep WCAG contrast for the blue sub-line. */
html body.p56-v4 .site-footer .p55-main,
html body.p56-v4 .cta-sec .p55-main,
html body.p56-v4 .t-links .p55-main,
html body.p56-v4 a.btn .p55-main,
html body.p56-v4 .btn .p55-main{color:#fff}
html body.p56-v4 .site-footer .p55-sub,
html body.p56-v4 .cta-sec .p55-sub{color:#cbd5e1}
html body.p56-v4 .t-links .p55-sub,
html body.p56-v4 a.btn .p55-sub,
html body.p56-v4 .btn .p55-sub{color:#fff}

/* Nav and button chrome: allow the stacked sub-line to wrap. */
html body.p56-v4 .nav a,
html body.p56-v4 .mnav-list a,
html body.p56-v4 .linklist a,
html body.p56-v4 .btns a,
html body.p56-v4 .btn,
html body.p56-v4 a.btn,
html body.p56-v4 h1,
html body.p56-v4 h2,
html body.p56-v4 h3{
  min-width:0;
  max-width:100%;
  height:auto;
  white-space:normal;
}
@media (max-width:560px){
  html body.p56-v4 .hbar{flex-wrap:wrap}
}

/* Contact intake backup only. The rules above paint every .btn label
   #fff so the purple primary stays readable. .btn.ghost is transparent
   on the cream page, so that white label disappears. #intake is the
   contact form block; other pages' ghost buttons are left alone. */
html body.p56-v4 #intake a.btn.ghost{
  background:#fff;
  color:#111;
  border:2px solid #111;
}
html body.p56-v4 #intake a.btn.ghost .p55-main,
html body.p56-v4 #intake a.btn.ghost .p55-sub{
  color:#111;
}
