/* Hand-written global styles. Compiled Tailwind lives in app.css (built, never edited). */

/* Rendered editor content (issue descriptions and comments). Tailwind's reset removes list styling. */
.rich-content p { margin-bottom: 0.75rem; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.rich-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.rich-content strong { font-weight: 600; }
.rich-content em { font-style: italic; }
.rich-content u { text-decoration: underline; }

/* Quill editor frame to match the form inputs, including dark mode */
.rich-editor .ql-toolbar.ql-snow,
.rich-editor .ql-container.ql-snow { border-color: var(--color-gray-300); }
.rich-editor .ql-toolbar.ql-snow { border-radius: 0.5rem 0.5rem 0 0; background: var(--color-gray-50); }
.rich-editor .ql-container.ql-snow { border-radius: 0 0 0.5rem 0.5rem; font-family: inherit; font-size: 0.875rem; }
.rich-editor .ql-editor ul, .rich-editor .ql-editor ol { padding-left: 0; }
.dark .rich-editor .ql-toolbar.ql-snow { background: var(--color-gray-800); border-color: var(--color-gray-700); }
.dark .rich-editor .ql-container.ql-snow { border-color: var(--color-gray-700); color: rgb(255 255 255 / 0.9); }
.dark .rich-editor .ql-editor.ql-blank::before { color: rgb(255 255 255 / 0.3); }
.dark .rich-editor .ql-snow .ql-stroke { stroke: var(--color-gray-300); }
.dark .rich-editor .ql-snow .ql-fill { fill: var(--color-gray-300); }
.dark .rich-editor .ql-snow .ql-picker { color: var(--color-gray-300); }
.dark .rich-editor .ql-snow.ql-toolbar button:hover .ql-stroke,
.dark .rich-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--color-brand-400); }

/* Images inside issue text and comments */
.rich-content img,
.rich-editor .ql-editor img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
}
.rich-content img { cursor: zoom-in; }
.dark .rich-content img,
.dark .rich-editor .ql-editor img { border-color: var(--color-gray-700); }
