@mixin text_section_heading($font-size, $margin-bottom) {

>h1:first-child,
>h2:first-child,
>h3:first-child,
>h4:first-child,
>h5:first-child,
>h6:first-child {
  font-size: $font-size;
  margin-bottom: $margin-bottom;
}
>h1.section_number {
  font-size: $font-size;
  margin-bottom: 0;
  & + h1:nth-of-type(2),
  & + h2:first-of-type,
  & + h3:first-of-type,
  & + h4:first-of-type,
  & + h5:first-of-type,
  & + h6:first-of-type {
    font-size: $font-size;
    margin-bottom: $margin-bottom;
  }
}

}