.document h1,
.document h2,
.document h3 {
    margin: calc(var(--document_block_size_margin) * 2) 0 var(--document_block_size_margin);
    padding: 0;
    font-family: inherit;
    font-weight: var(--document_general_font_bold);
}
.document h4,
.document h5,
.document h6 {
    margin: var(--document_block_size_margin) 0;
    padding: 0;
    font-family: inherit;
    font-weight: var(--document_general_font_semi_bold);
}
.document h1:first-child,
.document h2:first-child,
.document h3:first-child,
.document h4:first-child,
.document h5:first-child,
.document h6:first-child {
    margin-top: 0;
}
.document h1:last-child,
.document h2:last-child,
.document h3:last-child,
.document h4:last-child,
.document h5:last-child,
.document h6:last-child {
    margin-bottom: 0;
}

.document h1 {
    font-size: calc(var(--document_general_size_font) * 2);
}
.document h2 {
    font-size: calc(var(--document_general_size_font) * 1.75);
}
.document h3 {
    font-size: calc(var(--document_general_size_font) * 1.5);
}
.document h4 {
    font-size: calc(var(--document_general_size_font) * 1.25);
}
.document h5 {
    font-size: calc(var(--document_general_size_font) * 1);
}
.document h6 {
    font-size: calc(var(--document_general_size_font) * 0.75);
}
.document h1 + h1,
.document h1 + h2,
.document h1 + h3,
.document h1 + h4,
.document h1 + h5,
.document h1 + h6,
.document h2 + h2,
.document h2 + h3,
.document h2 + h4,
.document h2 + h5,
.document h2 + h6,
.document h3 + h3,
.document h3 + h4,
.document h3 + h5,
.document h3 + h6,
.document h4 + h4,
.document h4 + h5,
.document h4 + h6,
.document h5 + h5,
.document h5 + h6,
.document h6 + h6,
.document .joinHeading {
    margin-top: var(--document_block_size_margin);
}

.document.report h1,
.document.report h2,
.document.report h3,
.document.report h4,
.document.report h5,
.document.report h6 {
    font-family: var(--document_general_font_sans);
}
