/* Hoofdcommentaar: veilige helpopmaak voor beheer, helpboom en directe antwoorden.
 * Alleen beperkte tekststructuur en eigen rasterbeelden; geen model-CSS of externe stijlen. */
.help-rich-content{line-height:1.55;overflow-wrap:anywhere}
.help-rich-content p{margin:.4em 0}.help-rich-content h2,.help-rich-content h3{margin:.7em 0 .3em}
.help-rich-content figure{margin:12px 0}.help-rich-content img{max-width:100%;height:auto;vertical-align:middle}
.help-rich-content figcaption{font-size:.9em;color:#9fc4da;min-height:1.5em}
.help-rich-content [data-align="left"]{text-align:left}.help-rich-content [data-align="center"]{text-align:center}.help-rich-content [data-align="right"]{text-align:right}
.help-rich-content a{color:#7ed5ff;text-decoration:underline}
.help-rich-editor{margin:-8px 0 16px;border:1px solid #55748b;border-radius:5px;background:#0b1b2b}
.help-rich-toolbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px;border-bottom:1px solid #34566b}
.help-rich-toolbar .help-rich-button{position:relative;display:grid;place-items:center;width:30px;height:30px;padding:5px;border-radius:4px}
.help-rich-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.help-rich-button:hover::after,.help-rich-button:focus-visible::after{content:attr(data-hint);position:absolute;top:100%;left:0;z-index:30;background:#102438;border:1px solid #55748b;padding:4px 7px;white-space:nowrap;font-size:12px}
.help-rich-toolbar select,.help-rich-toolbar input{font-size:13px;padding:5px;max-width:180px}
.help-rich-surface{min-height:100px;padding:10px;outline:none}.help-rich-surface:focus{box-shadow:inset 0 0 0 1px #7ed5ff}
.help-rich-surface .rich-image-selected{outline:2px solid #7ed5ff;outline-offset:3px}
.help-rich-surface figcaption:empty::before{content:'Bijschrift…';opacity:.5}
.help-rich-status{display:block;padding:0 10px;font-size:12px;color:#9fc4da}
.help-rich-link{display:flex;gap:8px;padding:8px}.help-rich-link[hidden]{display:none}
#ai-status{margin:12px 0}

.help-rich-preview{padding:10px;min-height:100px}.help-rich-preview[hidden],.help-rich-surface[hidden]{display:none}

/* Tekst naast een foto volgt de gekozen fysieke zijde; de inhoud sluit floats zelf af. */
.help-rich-content{display:flow-root}
.help-rich-content figure[data-wrap="left"]{float:left;margin:6px 16px 10px 0}
.help-rich-content figure[data-wrap="right"]{float:right;margin:6px 0 10px 16px}
.help-rich-toolbar .help-rich-alt{display:flex;flex-direction:column;gap:1px;margin:0;font-size:10px;line-height:1.2}
.help-rich-toolbar .help-rich-alt input{max-width:170px}

/* Fotobediening inclusief verwijderen als één compacte, herkenbare groep. */
.help-rich-image-tools{display:flex;flex-wrap:nowrap;flex:0 0 auto;align-items:center;gap:4px;padding:3px;border:1px solid #55748b;border-radius:5px;box-sizing:border-box;max-width:100%;overflow:visible}
.help-rich-image-tools .help-rich-button{flex:0 0 30px;box-sizing:border-box}
.help-rich-image-tools input{width:140px;min-width:90px;flex:0 1 140px;box-sizing:border-box}
.help-rich-image-tools select{width:70px;flex:0 0 70px;box-sizing:border-box}

/* Compacte tekstkleur en fotopositie; browserkleurkiezer bewaart tekstselectie. */
.help-rich-toolbar input[type="color"]{width:30px;height:30px;min-width:30px;padding:2px;cursor:pointer}
.help-rich-image-tools select[aria-label="Fotopositie"]{width:110px;flex-basis:110px}

/* Icoonkeuzes houden dezelfde lijniconen; het menu staat buiten de scrollende fotogroep. */
.help-rich-icon-select{display:flex;flex:0 0 auto}
.help-rich-icon-menu{position:fixed;z-index:10000;display:flex;gap:4px;padding:4px;background:#0b1b2b;border:1px solid #55748b;border-radius:5px}
.help-rich-icon-menu[hidden]{display:none}

/* Dezelfde LED-kleurkiezer als popup; selectie en artikelopslag blijven bij de helpeditor. */
.help-rich-color-popup{position:fixed;z-index:10001;width:320px;max-width:calc(100vw - 16px);max-height:70vh;overflow:auto;--border:#34566b;--accent:#7ed5ff;--selected:#1a3b50}
.help-rich-color-popup[hidden]{display:none}
.help-rich-color-popup .color-editor{margin:0}
.help-rich-color-popup summary{display:none}
.help-rich-color-popup input{width:100%;box-sizing:border-box}
.help-rich-color-popup .color-presets button{min-width:22px}

/* Klein hoekdriehoekje markeert beide icoonkeuzelijsten zonder het lijnicoon te vervangen. */
.help-rich-icon-select > .help-rich-button::before{content:"";position:absolute;right:2px;bottom:2px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid currentColor;pointer-events:none}

/* Vet/cursief volgen de omliggende tekstgrootte, ook binnen beheerschermen met grote statistiekcijfers. */
.help-rich-content strong,.help-rich-content b,.help-rich-content em,.help-rich-content i{font-size:inherit}
