.entry-content,
.entry-body,
.wp-block-post-content,
article .entry,
main article {
  counter-reset: cnt_h2;
}
.entry-content > h2,
.entry-body > h2,
.wp-block-post-content > h2,
article .entry > h2,
main article > h2 {
  counter-increment: cnt_h2;
  counter-reset: cnt_h3;
}
.entry-content > h2::before,
.entry-body > h2::before,
.wp-block-post-content > h2::before,
article .entry > h2::before,
main article > h2::before {
  content: counter(cnt_h2) ". ";
  margin-right: 0.5em;
}
.entry-content > h3,
.entry-body > h3,
.wp-block-post-content > h3,
article .entry > h3,
main article > h3 {
  counter-increment: cnt_h3;
  counter-reset: cnt_h4;
}
.entry-content > h3::before,
.entry-body > h3::before,
.wp-block-post-content > h3::before,
article .entry > h3::before,
main article > h3::before {
  content: counter(cnt_h2) "." counter(cnt_h3) ". ";
  margin-right: 0.5em;
}
.entry-content > h4,
.entry-body > h4,
.wp-block-post-content > h4,
article .entry > h4,
main article > h4 {
  counter-increment: cnt_h4;
}
.entry-content > h4::before,
.entry-body > h4::before,
.wp-block-post-content > h4::before,
article .entry > h4::before,
main article > h4::before {
  content: counter(cnt_h2) "." counter(cnt_h3) "." counter(cnt_h4) ". ";
  margin-right: 0.5em;
}