/* Authored activity copy: local line contract, never leaf/model/editorial headings. */
body.activity-landing-hero .landing-authored { display:block; }
body.activity-landing-hero .landing-authored > :is(.landing-heading-line,.landing-title-line) { display:block; white-space:normal; }
body.activity-landing-hero :is(.intro,article>p,li>p) { text-wrap:pretty; }
body.activity-landing-hero .landing-caption-tail { display:inline-block; max-width:100%; }
body.activity-landing-hero .section-heading h2:has(.landing-authored) { max-width:none; }
body.activity-landing-hero .partnership-condition>p { margin:var(--s3) 0 0; font-size:var(--type-body); line-height:var(--leading-body); color:var(--text-muted); }
body.activity-landing-hero .activity-fit-grid h3 { margin-bottom:var(--s3); }
@media(min-width:1180px) {
 body.activity-landing-hero .landing-authored > :is(.landing-heading-line,.landing-title-line) { white-space:nowrap; }
}
@media(max-width:767px) {
 body.activity-landing-hero .landing-authored > :is(.landing-heading-line,.landing-title-line) { display:inline; }
}

/* Give the approved long two-line H2 the full banner width, retaining 40/60
   for the supporting caption and capability grid beneath it. */
@media(min-width:1180px) {
 body.activity-landing-hero :is(.cofounding-contribution-layout,.investment-capability-layout) { align-items:start; row-gap:var(--s5); }
 body.activity-landing-hero :is(.cofounding-contribution-layout,.investment-capability-layout) .section-heading { display:contents; }
 body.activity-landing-hero :is(.cofounding-contribution-layout,.investment-capability-layout) .section-heading>:is(.eyebrow,h2) { grid-column:1 / -1; margin:0; text-align:left; }
 body.activity-landing-hero :is(.cofounding-contribution-layout,.investment-capability-layout) .section-heading>.intro { grid-column:1; margin:0; }
 body.activity-landing-hero :is(.cofounding-contribution-layout,.investment-capability-layout)>:is(.cofounding-text-grid,.investment-text-grid) { grid-column:2; }
 body.activity-landing-hero h3:has(.landing-authored) { font-size:clamp(21px,1.8vw,22px); }
}

@media(min-width:992px) {
 body.consulting-landing-v2 .consulting-som-diagram { grid-template-columns:1.8fr 1.4fr 1.8fr; }
}

/* Outrank the older split-banner inline-span rule without affecting other headings. */
body.activity-landing-hero .section-heading .landing-authored>.landing-heading-line { display:block; }
@media(max-width:767px) {
 body.activity-landing-hero .section-heading .landing-authored>.landing-heading-line { display:inline; }
}

/* Six approved breaks need optical tracking to keep the upper line shorter.
   Glyphs, font size, copy and break positions stay intact; no DOM fitting loop. */
@media(min-width:1180px) {
 #cofounding-values .cofounding-text-grid>article:nth-child(2) h3 { --authored-upper-tracking:-.06em; }
 #cofounding-fit .cofounding-text-grid>article:nth-child(2) h3 { --authored-upper-tracking:-.07em; --authored-lower-tracking:.065em; }
 #partnership-conditions .section-heading h2 { --authored-upper-tracking:-.009em; }
 #bbs-orientation .activity-entry-triad>article:nth-child(2) h3 { --authored-upper-tracking:-.022em; }
 #bbs-orientation .activity-entry-triad>article:nth-child(3) h3 { --authored-upper-tracking:-.065em; }
 #bbs-audience .section-heading h2 { --authored-upper-tracking:-.018em; }
 body.activity-landing-hero .landing-authored>:first-child:not(:only-child) { letter-spacing:var(--authored-upper-tracking,normal); }
 body.activity-landing-hero .landing-authored>:last-child:not(:only-child) { letter-spacing:var(--authored-lower-tracking,normal); }
}

/* At the narrow desktop breakpoint, preserve all text within equal columns. */
@media(min-width:1180px) and (max-width:1239px) {
 #cofounding-values .cofounding-text-grid>article:nth-child(3) h3,
 #partnership-problems .activity-entry-triad>article:nth-child(3) h3 { --authored-lower-tracking:-.014em; }
}

@media(min-width:1180px) {
 #cofounding-fit .cofounding-text-grid>article:nth-child(2) h3 { --authored-lower-tracking:.075em; }
 #cofounding-fit .cofounding-text-grid>article:nth-child(2) .landing-title-line:first-child { word-spacing:.07em; }
}
