/* MPIAUÍ - Estilos do conteúdo da notícia (página de detalhe) */

.noticia-conteudo {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #33383d;
    word-wrap: break-word;
}

/* Parágrafos: espaçamento confortável entre eles */
.noticia-conteudo p {
    margin-bottom: 1.6em;
}

.noticia-conteudo p:last-child {
    margin-bottom: 0;
}

.noticia-conteudo img {
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.noticia-conteudo figcaption {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-top: -1em;
    margin-bottom: 1.5em;
    font-style: italic;
}

/* Títulos */
.noticia-conteudo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 0.8em;
    margin-top: 1.5em;
}

.noticia-conteudo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 0.7em;
    margin-top: 1.5em;
    padding-bottom: 0.35em;
    border-bottom: 2px solid #eef0f2;
}

.noticia-conteudo h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.6em;
    margin-top: 1.4em;
}

.noticia-conteudo h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.6em;
    margin-top: 1.3em;
}

.noticia-conteudo h2:first-child,
.noticia-conteudo h3:first-child,
.noticia-conteudo h4:first-child {
    margin-top: 0;
}

/* Citação */
.noticia-conteudo blockquote {
    border-left: 4px solid #1e40af;
    background: #f3f6fd;
    padding: 1.1em 1.4em;
    margin: 1.5em 0;
    font-style: italic;
    font-size: 1.05em;
    color: #374151;
    border-radius: 0 0.5rem 0.5rem 0;
    position: relative;
}

.noticia-conteudo blockquote p {
    margin-bottom: 0.5em;
}

.noticia-conteudo blockquote p:last-child {
    margin-bottom: 0;
}

.noticia-conteudo blockquote footer,
.noticia-conteudo blockquote cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
    margin-top: 0.6em;
}

/* Links */
.noticia-conteudo a {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
    word-break: break-word;
}

.noticia-conteudo a:hover {
    color: #dc2626;
    text-decoration-thickness: 2px;
}

/* Lista não ordenada */
.noticia-conteudo ul {
    list-style: none;
    margin: 1.2em 0 1.6em;
    padding: 0;
}

.noticia-conteudo ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.6em;
}

.noticia-conteudo ul li::before {
    content: '';
    position: absolute;
    left: 0.2em;
    top: 0.72em;
    width: 8px;
    height: 8px;
    background: #1e40af;
    border-radius: 50%;
}

/* Lista ordenada */
.noticia-conteudo ol {
    list-style: none;
    counter-reset: item;
    margin: 1.2em 0 1.6em;
    padding: 0;
}

.noticia-conteudo ol li {
    position: relative;
    counter-increment: item;
    padding-left: 2.4em;
    margin-bottom: 0.6em;
}

.noticia-conteudo ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    font-size: 0.8em;
    font-weight: 700;
    color: #ffffff;
    background: #1e40af;
    border-radius: 0.375rem;
}

/* Listas aninhadas */
.noticia-conteudo ul ul,
.noticia-conteudo ol ul,
.noticia-conteudo ul ol,
.noticia-conteudo ol ol {
    margin: 0.6em 0 0.6em 1.2em;
}

/* Destaques em negrito/itálico */
.noticia-conteudo strong {
    font-weight: 700;
    color: #111827;
}

.noticia-conteudo em {
    font-style: italic;
}

/* Código */
.noticia-conteudo code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #eef0f2;
    padding: 0.15em 0.4em;
    border-radius: 0.25em;
    font-size: 0.9em;
    color: #b91c1c;
    word-break: break-word;
}

.noticia-conteudo pre {
    background: #111827;
    color: #e5e7eb;
    padding: 1em 1.2em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.noticia-conteudo pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tabelas geradas pelo editor */
.noticia-conteudo table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.noticia-conteudo th,
.noticia-conteudo td {
    border: 1px solid #d1d5db;
    padding: 0.6em 0.9em;
    text-align: left;
}

.noticia-conteudo th {
    background: #f3f6fd;
    font-weight: 700;
    color: #111827;
}

/* Iframes (vídeos embutidos) */
.noticia-conteudo iframe {
    max-width: 100%;
    width: 100%;
    border-radius: 0.75rem;
    margin: 1.5em 0;
    aspect-ratio: 16 / 9;
    height: auto;
}

@media (max-width: 640px) {
    .noticia-conteudo {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .noticia-conteudo h1 {
        font-size: 1.5rem;
    }

    .noticia-conteudo h2 {
        font-size: 1.3rem;
    }

    .noticia-conteudo h3 {
        font-size: 1.15rem;
    }
}