/* Auto-growing rich text editor (see assets/js/richtext.js) */
.rt-wrap { border: 1px solid var(--line-light, #cfd8ea); border-radius: 10px; background: #fff; overflow: hidden; }
.rt-wrap:focus-within { border-color: #5b8def; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: linear-gradient(120deg,#EEF4FF,#F5F0FF); border-bottom: 1px solid var(--line-light, #dbe3f3); }
.rt-btn { border: 1px solid transparent; background: #fff; color: #1B4FA0; border-radius: 7px; min-width: 34px; height: 32px; padding: 0 8px; font-size: .95rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rt-btn:hover { background: #E3ECFF; border-color: #BCD0F7; }
.rt-btn.active { background: #2563EB; color: #fff; }
.rt-sep { width: 1px; background: #cdd8f0; margin: 3px 4px; }
/* The writing area grows DOWNWARD as lines are added - no fixed height, no inner scrollbar */
.rt-editor { min-height: 110px; height: auto; overflow: visible; padding: .75rem .9rem; outline: none; word-wrap: break-word; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.55; }
.rt-editor:empty:before { content: attr(data-placeholder); color: #8a96ad; pointer-events: none; }
.rt-editor ul, .rt-editor ol { padding-left: 1.4rem; margin-bottom: .5rem; }
.rt-editor h3 { font-size: 1.25rem; margin: .4rem 0; } .rt-editor h4 { font-size: 1.05rem; margin: .4rem 0; }
.rt-editor blockquote { border-left: 4px solid #8fb0f0; margin: .5rem 0; padding: .1rem .8rem; color: #4a5875; background: #f6f9ff; }
.rt-editor a { color: #1d4ed8; text-decoration: underline; }
.rt-content ul, .rt-content ol { padding-left: 1.4rem; } .rt-content blockquote { border-left: 4px solid #8fb0f0; margin: .5rem 0; padding: .1rem .8rem; color: #4a5875; }
.rt-content h3 { font-size: 1.25rem; } .rt-content h4 { font-size: 1.05rem; } .rt-content a { color: #1d4ed8; text-decoration: underline; }
