/* CSS for restoring TinyMCE formatting within .prose */
.prose {
    font-size: 1rem;
    line-height: 1.75;
}

/* Headings */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: inherit;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1rem; }

/* Text formatting */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose strong, .prose b {
    font-weight: 700;
}
.prose em, .prose i {
    font-style: italic;
}
.prose u {
    text-decoration: underline;
}
.prose s, .prose strike {
    text-decoration: line-through;
}
.prose sub {
    vertical-align: sub;
    font-size: smaller;
}
.prose sup {
    vertical-align: super;
    font-size: smaller;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
}

/* Lists */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose li > p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.prose ul ul, .prose ol ul { list-style-type: circle; }
.prose ul ul ul, .prose ol ul ul { list-style-type: square; }

/* Quotes */
.prose blockquote {
    font-style: italic;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    padding-left: 1em;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    color: #4b5563;
}

/* Horizontal Rule */
.prose hr {
    margin-top: 3em;
    margin-bottom: 3em;
    border-color: #e5e7eb;
    border-width: 1px;
}

/* Tables */
.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
}
.prose thead {
    border-bottom-width: 1px;
    border-bottom-color: #d1d5db;
}
.prose th {
    font-weight: 600;
    padding: 0.75em;
}
.prose td {
    padding: 0.75em;
    border-bottom-width: 1px;
    border-bottom-color: #e5e7eb;
}

/* Text alignment helpers */
.prose [style*="text-align: center"], .prose .text-center { text-align: center; }
.prose [style*="text-align: right"], .prose .text-right { text-align: right; }
.prose [style*="text-align: justify"], .prose .text-justify { text-align: justify; }

/* Images */
.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.375rem;
}
