/**
 * Clean Post Content — Frontend Fix
 * Neutralizes forced Divi 5 / Gutenberg styles on the post content area.
 */

/* ── Module content wrapper ── */
.cpc-content {
    background: transparent;
    padding: 0;
    margin: 0;
}

.cpc-content > *:last-child {
    margin-bottom: 0;
}

.cpc-content img {
    max-width: 100%;
    height: auto;
}

/* ── Remove forced Gutenberg block gap ── */
.cpc-content {
    --wp--style--block-gap: initial;
}

/* ── Remove white backgrounds from block wrappers inside content ── */
.cpc-content .wp-block-post-content,
.cpc-content .entry-content,
.cpc-content .post-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ── Builder placeholder (only visible inside Divi editor) ── */
.cpc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 100px;
    padding: 24px;
    border: 2px dashed #d0d0d0;
    border-radius: 6px;
    color: #999;
    font-size: 13px;
    text-align: center;
}
