/* TinyMCE Content Styling */

.tinymce-content {
    /* Base styling */
    line-height: 1.6;
    color: inherit;
}

/* Headings */
.tinymce-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tinymce-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tinymce-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tinymce-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tinymce-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.tinymce-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Paragraphs */
.tinymce-content p {
    margin-bottom: 1rem;
    font-size: inherit;
}

/* Lists - High specificity to override prose and other classes */
.tinymce-content ul,
.tinymce-content ol,
.prose .tinymce-content ul,
.prose .tinymce-content ol,
div.tinymce-content ul,
div.tinymce-content ol {
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding-left: 0 !important;
    margin-left: 1.5rem !important;
}

.tinymce-content ul,
.prose .tinymce-content ul,
div.tinymce-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.tinymce-content ol,
.prose .tinymce-content ol,
div.tinymce-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

.tinymce-content li,
.prose .tinymce-content li,
div.tinymce-content li {
    margin-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    text-indent: 0 !important;
    line-height: 1.6 !important;
    font-size: inherit !important;
}

.tinymce-content li > ul,
.tinymce-content li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Links */
.tinymce-content a {
    color: inherit;
    /* text-decoration: underline; */
    /* text-decoration-thickness: 1px; */
    /* text-underline-offset: 2px; */
    transition: opacity 0.2s;
}

.tinymce-content a:hover {
    opacity: 0.8;
}

/* Blockquote */
.tinymce-content blockquote {
    border-left: 4px solid currentColor;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Code */
.tinymce-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.tinymce-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.tinymce-content pre code {
    padding: 0;
    background-color: transparent;
}

/* Tables */
.tinymce-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tinymce-content th,
.tinymce-content td {
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tinymce-content th {
    font-weight: 600;
    text-align: left;
}

/* Images */
.tinymce-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

/* Horizontal Rule */
.tinymce-content hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tinymce-content h1 {
        font-size: 1.875rem;
    }

    .tinymce-content h2 {
        font-size: 1.5rem;
    }

    .tinymce-content h3 {
        font-size: 1.25rem;
    }

    .tinymce-content h4,
    .tinymce-content h5,
    .tinymce-content h6 {
        font-size: 1.125rem;
    }
}
