/* Body text, driven only by theme.json tokens (settings.custom.typography):
     --wp--custom--typography--body-light-weight   light text on dark backgrounds
     --wp--custom--typography--body-dark-weight    dark text on light backgrounds
     --wp--custom--typography--line-height--body   body copy in Konstantin's page blocks
     --wp--custom--typography--line-height--prose  long-form reading text (posts, pages)
   Selectors cover the body-copy classes in his page blocks (headlines, display text,
   mono labels and buttons are not listed, so they keep their own styles). */

:root { --kp-body-lh: var(--wp--custom--typography--line-height--body); }
/* Line-height test: HOMEPAGE ONLY until approved (then set line-height.body to the proposed value). */
.kp-route-home { --kp-body-lh: var(--wp--custom--typography--line-height--body-proposed); }

/* Light body copy on dark sections. */
:is(.ai35-step-content p, .ai35-step-content span, p.ai35-description, p.ai35-worked, p.ai35-question, .ai35-story p:not([class]),
  p.attention-description, p.blog36-description, p.specific40-description, p.stack-case-caption, p.stack-case-note,
  .pov65-intro, .pov65-intro span, p.pov65-details, .quote32-author p,
  .growth59-description span, p.newsletter84-description, p.collage-copy-description, p.reveal-paragraph, span.copy-line-ink,
  .leader-card p, p.leadership-intro, p.muted,
  p.blog64-description, p.blog64-date, p.blog64-status,
  p.session-intro, p.session-legal, p.field-help, p.s56.s51, p.pov65-title, p.leader-dialog-bio,
  /* Dec 4 sweep: What We Do, Work and About body copy that still drew at 500 */
  .flywheel48-description span, .flywheel48-learning p:not(.flywheel48-learning-title), .cap47-intro span, .cap47-row p, .measurement52-reveal-text span,
  .engagement57-model-copy, .engagement57-final-copy span, p.kp-work-lead, .more-rec-award, .offers28-intro p) {
  font-weight: var(--wp--custom--typography--body-light-weight) !important;
}

/* Dark body copy on light sections (footer, recognition cards, quote author on light). */
:is(p.footer41-description, p.footer41-address, p.footer41-copyright, .recognition-copy p, .about-quote-author p, span.offers28-reveal-text, .orbit29-description p, p.orbit29-independent) {
  font-weight: var(--wp--custom--typography--body-dark-weight) !important;
}

/* One line-height for body copy in his blocks (items he set at 1.2 or 1.3). */
:is(.ai35-step-content p, .ai35-step-content span, p.ai35-description, p.ai35-worked, p.ai35-question, .ai35-story p:not([class]),
  p.attention-description, p.blog36-description, p.specific40-description, p.stack-case-caption, p.stack-case-note,
  .pov65-intro, .pov65-intro span, p.pov65-details, .quote32-author p, .about-quote-author p,
  .growth59-description span, p.newsletter84-description, p.collage-copy-description, p.reveal-paragraph, span.copy-line-ink,
  .leader-card p, p.leadership-intro, p.blog64-description, p.session-intro, p.footer41-description, span.offers28-reveal-text, p.s56.s51, p.pov65-title, p.leader-dialog-bio, .orbit29-description p) {
  line-height: var(--kp-body-lh) !important;
}

/* Long-form text: posts, legal and interim pages. */
.kp-prose, .kp-prose :is(p, li, dd, td, blockquote, figcaption) { font-weight: var(--wp--custom--typography--body-light-weight); line-height: var(--wp--custom--typography--line-height--prose); }
.kp-svc .kp-prose :is(p, li) { font-weight: var(--wp--custom--typography--body-light-weight); line-height: var(--wp--custom--typography--line-height--prose); }
:is(.kp-svc-lead, .kp-case-desc, .kp-facts dd) { font-weight: var(--wp--custom--typography--body-light-weight); }
.kp-prose :is(strong, b) { font-weight: 500; }
/* Older posts wrap text in spans with inline font-weight 400/normal; let them follow the token. */
.kp-prose :is([style*="font-weight: 400"], [style*="font-weight:400"], [style*="font-weight: normal"], [style*="font-weight:normal"]) { font-weight: inherit !important; }
.kp-sg-note { font-weight: var(--wp--custom--typography--body-light-weight); }
