/**
 * Custom Heading Block - RAIC Subsection Heading Styles
 */

/* RAIC-style border bottom for headings */
.raic-heading-border {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid #D9D9D9 !important;
    position: relative !important;
}

/* Remove any existing ::after pseudo-element that might be creating a short line */
.raic-heading-border::after {
    display: none !important;
}

/* Editor preview styling - for the block wrapper */
.block-editor-block-list__block.raic-heading-border > * {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid #D9D9D9 !important;
}

/* Editor preview styling - older editor versions */
.editor-block-list__block.raic-heading-border > * {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid #D9D9D9 !important;
}

/* Also try direct heading selectors in editor */
.editor-styles-wrapper .raic-heading-border,
.edit-post-visual-editor .raic-heading-border {
    padding-bottom: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid #D9D9D9 !important;
}