/* Shared by the published article and its TinyMCE editor. */
.blog-prose {
    --blog-h2-size: 1.5rem;
    --blog-h3-size: 1.25rem;
    --blog-section-gap: 2rem;
    line-height: 1.9;
}

.blog-prose h2,
.blog-prose h3 {
    width: auto;
    padding: 0;
    margin-inline: 0;
    text-align: start;
    line-height: 1.6;
}

.blog-prose h2 {
    position: relative;
    font-size: var(--blog-h2-size);
    font-weight: 800;
    margin-block: var(--blog-section-gap) 2rem;
}

.blog-prose h3 {
    font-size: var(--blog-h3-size);
    font-weight: 700;
    margin-block: 1.5rem 0.75rem;
}

/* Keep the original H2 shape in both the article and editor preview. */
.blog-prose h2::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    inset-inline-start: 0;
    inset-inline-end: auto;
    display: block;
    width: 120px;
    max-width: 100%;
    height: 10px;
    margin: 0;
    background: url("../images/blog-heading-underline.svg") center / contain no-repeat;
}

.blog-prose h3::after {
    content: none;
}

.blog-prose p {
    margin-block: 0 1rem;
    line-height: inherit;
}

.blog-prose ul,
.blog-prose ol {
    display: block;
    margin-block: 0 1.25rem;
    padding-block: 0;
    padding-inline: 1.5rem 0;
    list-style-position: outside;
    list-style-image: none;
}

.blog-prose ul {
    list-style-type: disc;
}

.blog-prose ol {
    list-style-type: decimal;
}

.blog-prose li,
.blog-prose ol li {
    margin-inline: 0;
    margin-block: 0.5rem;
    line-height: inherit;
}

/* Use native numbering, including nested lists and ol[start]. */
.blog-prose ol li::before {
    content: none;
}

.blog-prose li > p {
    margin-block: 0 0.5rem;
}

.blog-prose li > ul,
.blog-prose li > ol {
    margin-block: 0.5rem;
}

.blog-prose > :first-child {
    margin-block-start: 0;
}

.blog-prose > :last-child {
    margin-block-end: 0;
}
