/* =========================================
   Quill Editor Custom Styles
   ========================================= */

/* ── Base editor ── */
.ql-editor {
    font-size: 15px;
    line-height: 1.9;
    color: #1f2937;
    padding: 20px 24px;
}

.ql-editor p {
    margin-bottom: 0.65em;
}

.ql-editor h1 + p,
.ql-editor h2 + p,
.ql-editor h3 + p,
.ql-editor h4 + p {
    margin-top: 0.15em;
}

/* ── Headings ── */
.ql-editor h1 {
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.35em 0 0.55em;
    color: #111827;
}

.ql-editor h2 {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.3em 0 0.5em;
    color: #1f2937;
}

.ql-editor h3 {
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.1em 0 0.45em;
    color: #374151;
}

.ql-editor h4 {
    font-size: 1.0em;
    font-weight: 600;
    margin: 0.7em 0 0.3em;
    color: #374151;
}

/* ── Lists ── */
.ql-editor ul,
.ql-editor ol {
    padding-left: 1.4em;
}

.ql-editor li {
    line-height: 1.9;
    margin-bottom: 0.2em;
}

/* indent level 1 – 약간 작고 회색 */
.ql-editor li.ql-indent-1 {
    font-size: 0.94em;
    color: #374151;
}

/* indent level 2 – 더 작고 더 연한 회색 */
.ql-editor li.ql-indent-2 {
    font-size: 0.89em;
    color: #6b7280;
}

/* ── Blockquote ── */
.ql-editor blockquote {
    border-left: 4px solid #d1d5db;
    padding: 0.3em 0 0.3em 1em;
    color: #6b7280;
    font-style: italic;
    margin: 0.6em 0;
    background: #f9fafb;
    border-radius: 0 4px 4px 0;
}

/* ── Code block ── */
.ql-editor pre.ql-syntax {
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.7;
    margin: 0.75em 0;
    padding: 14px 18px;
}

.ql-editor pre:not(.ql-syntax) {
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.7;
    margin: 0.75em 0;
    padding: 14px 18px;
    overflow-x: auto;
}

.ql-editor :not(pre) > code {
    font-size: 0.92em;
    padding: 0.12em 0.35em;
    border-radius: 4px;
    background: #f3f4f6;
}

/* ── Tables ── */
.ql-editor table {
    width: 100%;
    border-collapse: collapse;
}

.ql-editor table th,
.ql-editor table td {
    border: 1px solid #d1d5db;
    padding: 0.45em 0.65em;
}

.ql-editor table th {
    background: #f9fafb;
    font-weight: 600;
}

/* ── Toolbar border ── */
.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 8px 12px;
}

.ql-container.ql-snow {
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    font-size: 15px;
}
