/* components/rich-text.css — Rich-text dataset description (editor + rendered output). */

.vcb-rich-wrap { border: 1px solid var(--nccr-border); border-radius: var(--ui-radius-sm); overflow: hidden; margin-bottom: 8px; background: var(--nccr-surface); }
.vcb-rich-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 5px 6px; background: var(--nccr-surface-2); border-bottom: 1px solid var(--nccr-border); }
.vcb-rich-toolbar button { background: var(--nccr-surface); color: var(--nccr-fg); border: 1px solid var(--nccr-border); border-radius: 4px; min-width: 28px; height: 26px; padding: 0 7px; font-size: 0.82em; cursor: pointer; line-height: 1; transition: all var(--ui-dur) var(--ui-ease); }
.vcb-rich-toolbar button:hover { border-color: var(--nccr-primary-soft); color: var(--nccr-primary-emph); }
.vcb-rich-editor { min-height: 82px; max-height: 280px; overflow: auto; padding: 8px 11px; color: var(--nccr-fg); font-size: 0.9em; line-height: 1.6; outline: none; }
.vcb-rich-editor:focus { box-shadow: inset 0 0 0 2px rgba(var(--nccr-primary-rgb), 0.18); }
.vcb-rich-editor:empty:before { content: attr(data-placeholder); color: var(--nccr-fg-disabled); pointer-events: none; }
.vcb-rich-editor a, .vcb-desc a { color: var(--nccr-link); text-decoration: underline; word-break: break-word; }
.vcb-rich-editor p, .vcb-desc p { margin: 0 0 8px; }
.vcb-rich-editor ul, .vcb-rich-editor ol, .vcb-desc ul, .vcb-desc ol { margin: 0 0 8px; padding-left: 22px; }
.vcb-desc { line-height: 1.6; }
.vcb-desc > :last-child { margin-bottom: 0; }
