/**
 * Estilos para conteúdo rico gerido no admin (CKEditor) — portal público.
 */
.igca-ckeditor-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.igca-ckeditor-content p {
    margin: 0 0 1em;
}

.igca-ckeditor-content h1,
.igca-ckeditor-content h2,
.igca-ckeditor-content h3,
.igca-ckeditor-content h4,
.igca-ckeditor-content h5,
.igca-ckeditor-content h6 {
    margin: 1em 0 0.5em;
    line-height: 1.25;
    font-weight: 600;
}

.igca-ckeditor-content ul,
.igca-ckeditor-content ol {
    margin: 0.5em 0 1em;
    padding-left: 1.75em;
}

.igca-ckeditor-content li {
    margin-bottom: 0.25em;
}

.igca-ckeditor-content img {
    max-width: 100%;
    height: auto;
}

.igca-ckeditor-content table {
    border-collapse: collapse;
    max-width: 100%;
    margin: 1em 0;
}

.igca-ckeditor-content table td,
.igca-ckeditor-content table th {
    border: 1px solid #ccc;
    padding: 6px 10px;
}

.igca-ckeditor-content blockquote {
    margin: 1em 0;
    padding: 0.25em 0 0.25em 1em;
    border-left: 4px solid #e16831;
    background: #f9f9f9;
}

.igca-ckeditor-content pre {
    overflow-x: auto;
    padding: 0.75em 1em;
    background: #f4f4f4;
    border-radius: 4px;
}

.igca-ckeditor-content a {
    color: #e16831;
    text-decoration: underline;
}

.igca-ckeditor-content .text-center,
.igca-ckeditor-content p[style*="text-align: center"],
.igca-ckeditor-content div[style*="text-align: center"] {
    text-align: center;
}

.igca-ckeditor-content .text-right,
.igca-ckeditor-content p[style*="text-align: right"],
.igca-ckeditor-content div[style*="text-align: right"] {
    text-align: right;
}

.igca-ckeditor-content .text-justify,
.igca-ckeditor-content p[style*="text-align: justify"],
.igca-ckeditor-content div[style*="text-align: justify"] {
    text-align: justify;
}

/* Resumos / pré-visualizações com HTML (listagens) */
.igca-rich-excerpt {
    max-height: 5.25em;
    overflow: hidden;
    line-height: 1.45;
}

.igca-rich-excerpt p {
    margin: 0 0 0.35em;
}

.igca-rich-excerpt p:last-child {
    margin-bottom: 0;
}
