/* Section labels promoted to real h2 headings.
   The article and legal chapter labels and the four Endurance Method
   pillar words used to be a p and a div. They are now h2 elements so the
   outline is real for search and screen readers. This file is linked last
   on those pages only and undoes every generic h2 rule they now pick up
   (heading face, .article-body h2 sizing and margins, the heading line
   height and balance wrapping), so they render exactly as before. */

/* Chapter labels: articles and legal pages */
.article-body h2.chapter-label {
  margin-top: 0;
  font-size: 11.5px;
  line-height: 1.7;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: 'kern' 1, 'liga' 1, 'clig' 1;
  text-rendering: optimizeLegibility;
}
/* the numeral and separator follow the label, not the h2 span face rule */
h2:where(.chapter-label) span { font-family: inherit; }

/* Articles: the label used to take .article-body p from articles.css */
html:has(link[href^="/articles/articles.css"]) .article-body h2.chapter-label {
  margin-bottom: 26px;
  font-weight: 420;
  letter-spacing: -0.003em;
}

/* Legal pages: the label used to take the reading face and
   .article-body p from legal-article.css */
html:has(link[href^="/assets/legal-article.css"]) .article-body h2.chapter-label {
  margin-bottom: 22px;
  font-family: var(--font-read);
}

/* The Endurance Method pillar words */
.ps-ghost h2.ps-word {
  line-height: inherit;
  text-wrap-style: inherit;
}
