/* Listing description editor (assets/js/description-editor.js) on top of Quill's snow theme:
   bigger touch targets for phones, site font, Bootstrap-like rounded border. */
.fm-editor .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    border-color: #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
    font-family: inherit;
}
.fm-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 6px; }
.fm-editor .ql-snow.ql-toolbar button {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 0.375rem;
}
.fm-editor .ql-snow.ql-toolbar button.ql-active { background: #fff1e8; }
.fm-editor .ql-snow .ql-color-picker { width: 48px; height: 40px; }
.fm-editor .ql-snow .ql-color-picker .ql-picker-label { padding: 8px 6px; }
.fm-editor .ql-snow .ql-color-picker .ql-picker-options { width: 184px; padding: 6px; }
.fm-editor .ql-snow .ql-color-picker .ql-picker-item {
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 1px solid #ced4da;
    border-radius: 50%;
}
/* first item = default colour (no colour set) */
.fm-editor .ql-snow .ql-color-picker .ql-picker-item:not([data-value]) {
    background: linear-gradient(135deg, #fff 45%, #c62828 47%, #c62828 53%, #fff 55%);
}
.fm-editor .ql-container.ql-snow {
    border-color: #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
    font-family: inherit;
    font-size: 16px; /* 16px: phones do not zoom in on focus */
}
.fm-editor .ql-editor { min-height: 9em; line-height: 1.6; }
.fm-editor .ql-editor.ql-blank::before { font-style: normal; color: #6c757d; }

/* Shown description (view.php) - same spacing as in the editor */
.fm-description p { margin: 0; }
.fm-description ul, .fm-description ol { margin: 0.25rem 0; padding-left: 1.5rem; }
