/* Veritco R5 — site-wide text and heading stability
   Natural CJK wrapping, restrained marketing typography, and structured project CTAs. */
html:lang(zh-CN) main :is(h1,h2,h3,p,li),
html:lang(zh-HK) main :is(h1,h2,h3,p,li),
html:lang(ja) main :is(h1,h2,h3,p,li){
  text-wrap:wrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-break:strict!important;
  white-space:normal!important;
}
html:lang(en) main :is(h1,h2,h3){overflow-wrap:normal!important;word-break:normal!important;}
html:lang(en) main :is(h1,h2){text-wrap:balance;}

/* Never solve desktop wrapping by forcing CJK headings onto one line. */
body.veritco-editorial .ve-cta-band h2{white-space:normal!important;text-wrap:wrap!important;}

/* Marketing headings: large enough to lead, restrained enough to wrap naturally. */
@media (min-width:1180px){
  body.veritco-editorial .ve-section-head h2{font-size:clamp(36px,3.1vw,54px)!important;line-height:1.14!important;letter-spacing:-.03em!important;max-width:1180px!important;}
  body.veritco-editorial .ve-page-hero h1,
  body.veritco-editorial.page-project .project-hero h1{font-size:clamp(44px,4vw,64px)!important;line-height:1.08!important;letter-spacing:-.035em!important;max-width:1180px!important;}
  body.veritco-editorial .ve-project-intro h2{font-size:clamp(34px,3vw,50px)!important;line-height:1.16!important;letter-spacing:-.025em!important;}
  body.page-generic .page-hero h1{font-size:clamp(42px,3.6vw,60px)!important;line-height:1.12!important;letter-spacing:-.025em!important;}
  body.v4-hub-page .v4-hub-hero h1{font-size:clamp(42px,3.75vw,62px)!important;line-height:1.1!important;overflow-wrap:normal!important;word-break:normal!important;}
  .page-generic .section-title,.closeout-head h2,.sol13-head h2{line-height:1.18!important;}
}

/* Structured CTA: title + three decision inputs + one action. */
body.veritco-editorial .ve-cta-band{padding:72px 0!important;}
body.veritco-editorial .ve-cta-band .ve-cta-structured{display:grid!important;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)!important;gap:clamp(44px,6vw,92px)!important;align-items:center!important;}
body.veritco-editorial .ve-cta-band .ve-cta-structured>h2{font-size:clamp(34px,3.1vw,48px)!important;line-height:1.14!important;letter-spacing:-.025em!important;margin:0!important;max-width:720px!important;}
.ve-cta-structured-body{min-width:0;}
.ve-cta-brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.26);border-bottom:1px solid rgba(255,255,255,.26);margin-bottom:22px;}
.ve-cta-brief-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:18px 18px 18px 0;min-width:0;}
.ve-cta-brief-item+ .ve-cta-brief-item{padding-left:18px;border-left:1px solid rgba(255,255,255,.2);}
.ve-cta-brief-no{font-size:12px;font-weight:800;letter-spacing:.08em;color:#b9dbff;padding-top:2px;}
.ve-cta-brief-item b{display:block;margin:0 0 6px;color:#fff;font-size:15px;line-height:1.35;}
.ve-cta-brief-item p{margin:0!important;color:rgba(255,255,255,.76)!important;font-size:13.5px!important;line-height:1.65!important;max-width:none!important;}
body.veritco-editorial .ve-cta-structured-body>.ve-btn{display:inline-flex;min-height:46px;align-items:center;}

/* Microcopy remains secondary, but must stay readable. */
.closeout-case-count,.closeout-case-filter>b,.closeout-case-filter button,.ve-proof span,.ve-case-facts span,.ve-cap-row .no,.ve-project-index .n,.ve-method .n,.ve-choice span,.ve-signal-list span,.ve-project-step .n,.case-kicker,.case-section-no,.case-work-grid span,.case-risk-grid b,.case-aside-label,.case-aside dt{font-size:12.5px!important;}

@media (max-width:1179px){
  body.veritco-editorial .ve-cta-band .ve-cta-structured{grid-template-columns:1fr!important;gap:26px!important;}
  body.veritco-editorial .ve-cta-band .ve-cta-structured>h2{max-width:900px!important;}
}
@media (max-width:760px){
  body.veritco-editorial .ve-section-head h2{font-size:32px!important;line-height:1.2!important;}
  body.veritco-editorial .ve-page-hero h1,
  body.veritco-editorial.page-project .project-hero h1{font-size:38px!important;line-height:1.15!important;}
  body.veritco-editorial .ve-project-intro h2{font-size:31px!important;line-height:1.2!important;}
  body.veritco-editorial .ve-cta-band{padding:54px 0!important;}
  body.veritco-editorial .ve-cta-band .ve-cta-structured>h2{font-size:31px!important;line-height:1.2!important;}
  .ve-cta-brief{grid-template-columns:1fr;margin-bottom:20px;}
  .ve-cta-brief-item,.ve-cta-brief-item+ .ve-cta-brief-item{padding:15px 0;border-left:0;border-top:1px solid rgba(255,255,255,.18);}
  .ve-cta-brief-item:first-child{border-top:0;}
}
