/* WZHV WYSIWYG-editor — kleuren volgen de site-variabelen (incl. dark mode). */
.wysiwyg-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    margin: .25rem 0 1rem;
}
.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: .35rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px 8px 0 0;
    align-items: center;
}
.wysiwyg-btn {
    border: 1px solid transparent;
    background: none;
    border-radius: 5px;
    min-width: 30px;
    height: 30px;
    padding: 0 .45rem;
    font-size: .9rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 400;
}
.wysiwyg-btn:hover { background: var(--bg); border-color: var(--border); filter: none; }
.wysiwyg-block {
    height: 30px;
    padding: 0 .3rem;
    line-height: 28px;
    font-size: .85rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    width: auto;
    background: var(--bg);
    color: var(--text);
}
.wysiwyg-sep { width: 1px; height: 22px; background: var(--border); margin: 0 .3rem; }
.wysiwyg-area {
    min-height: 140px;
    max-height: 480px;
    overflow-y: auto;
    padding: .7rem .9rem;
    line-height: 1.55;
    color: var(--text);
}
.wysiwyg-area.wysiwyg-compact { min-height: 70px; }
.wysiwyg-area:focus { outline: none; }
.wysiwyg-area blockquote, .rich-text blockquote {
    border-left: 3px solid var(--accent);
    margin: .5rem 0;
    padding: .25rem 1rem;
    color: var(--muted);
}
.wysiwyg-area h1, .wysiwyg-area h2, .wysiwyg-area h3, .wysiwyg-area h4,
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: .8rem 0 .35rem; }
.rich-text p { margin: 0 0 .5rem; }
.rich-text ul, .rich-text ol { margin: 0 0 .5rem 1.4rem; }
.rich-text a { text-decoration: underline; }
