/* TinyMCE editor — match site form controls */
.tox-tinymce {
    border: 1px solid var(--medium-gray, #dee2e6) !important;
    border-radius: var(--radius-sm, 10px) !important;
    box-shadow: none !important;
}

.tox .tox-edit-area__iframe {
    background: #fff;
}

.tox .tox-toolbar-overlord,
.tox .tox-toolbar__primary {
    background: #f8fafc !important;
}

/* Rendered rich text on public pages */
.rich-text-content {
    line-height: 1.8;
    color: var(--text-light, #64748b);
    word-wrap: break-word;
}

.rich-text-content p {
    margin-bottom: 1rem;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    color: var(--navy, #0f2847);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.rich-text-content a {
    color: var(--royal-blue, #2563eb);
    text-decoration: underline;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 10px);
}

.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rich-text-content table td,
.rich-text-content table th {
    border: 1px solid var(--medium-gray, #dee2e6);
    padding: 8px 12px;
}
