/* Blog post body defaults — applies to plain blocks so authors never need
   per-block styling. Shared by the front end (.wp-block-post-content on
   single posts) and the block editor (.editor-styles-wrapper). */

.single-post .wp-block-post-content > *,
.editor-styles-wrapper.post-type-post > .is-root-container > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .wp-block-post-content p,
.single-post .wp-block-post-content li,
.editor-styles-wrapper.post-type-post p,
.editor-styles-wrapper.post-type-post li {
  color: var(--wp--preset--color--grey-medium);
  line-height: 1.65;
}

.single-post .wp-block-post-content p + p,
.editor-styles-wrapper.post-type-post p + p {
  margin-top: var(--wp--preset--spacing--small);
}

.single-post .wp-block-post-content ol,
.single-post .wp-block-post-content ul,
.editor-styles-wrapper.post-type-post ol,
.editor-styles-wrapper.post-type-post ul {
  padding-left: 1.5rem;
}

.single-post .wp-block-post-content h2,
.single-post .wp-block-post-content h3,
.single-post .wp-block-post-content h4,
.editor-styles-wrapper.post-type-post h2,
.editor-styles-wrapper.post-type-post h3,
.editor-styles-wrapper.post-type-post h4 {
  color: var(--wp--preset--color--black);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 700;
  line-height: 1.15;
  margin-top: var(--wp--preset--spacing--medium);
}

.single-post .wp-block-post-content a,
.editor-styles-wrapper.post-type-post a {
  color: var(--wp--preset--color--primary-blue);
}

/* Empty spacer paragraphs pasted from Word/Docs add uneven gaps — collapse them. */
.single-post .wp-block-post-content p:empty {
  display: none;
}
