/* CMS rich content — public site & editor preview */

.cms-content {
    line-height: 1.8;
    word-wrap: break-word;
}

.cms-content-rtl {
    text-align: right;
}

.cms-content-ltr {
    text-align: left;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    margin: 1.25rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.cms-content p {
    margin: 0 0 1rem;
}

.cms-content ul,
.cms-content ol {
    margin: 0 0 1rem;
    padding-inline-start: 1.5rem;
}

.cms-content li {
    margin-bottom: 0.35rem;
}

.cms-content a {
    color: #1a7a6d;
    text-decoration: underline;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.cms-content table {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border: 1px solid #c5c5c5;
    table-layout: auto;
}

.cms-content table td,
.cms-content table th {
    border: 1px solid #c5c5c5;
    padding: 0.5rem 0.65rem;
    vertical-align: top;
    min-width: 2rem;
}

.cms-content table th {
    background: #f3f6f5;
    font-weight: 700;
}

.cms-content table tr:nth-child(even) td {
    background: #fafafa;
}

.cms-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-inline-start: 4px solid #c9a227;
    background: #f8f8f8;
}

.cms-content pre,
.cms-content code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    background: #f4f4f4;
    border-radius: 4px;
}

.cms-content pre {
    padding: 0.75rem 1rem;
    overflow-x: auto;
}

.cms-content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Preserve Word-like table alignment */
.cms-content table[align="center"] {
    margin-inline: auto;
}

.cms-content table[align="left"] {
    margin-inline-end: auto;
}

.cms-content table[align="right"] {
    margin-inline-start: auto;
}

.cms-content .MsoNormal {
    margin: 0 0 1rem;
}
