/* =============================================
   DP DE VALOR — TIPOGRAFIA DE ARTIGOS
   Adicionar ao final do style.css do tema
   Aplica-se a .entry-content (single.php e page.php)
============================================= */

/* -----------------------------------------------
   BASE — parágrafos e espaçamento geral
----------------------------------------------- */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--dpv-dark);
}

.entry-content > * + * {
    margin-top: 1.5rem;
}

.entry-content p {
    margin: 0 0 1.5rem;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------
   TÍTULOS — H2, H3, H4
----------------------------------------------- */
.entry-content h2 {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--dpv-dark);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--dpv-light);
    line-height: 1.3;
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--dpv-dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.35;
    position: relative;
    padding-left: 14px;
}

.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 2px;
    background: var(--dpv-cyan);
}

.entry-content h4 {
    font-family: "Sora", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dpv-dark);
    margin: 2rem 0 0.85rem;
    line-height: 1.4;
}

/* -----------------------------------------------
   LISTAS — ul, ol
----------------------------------------------- */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem;
    padding-left: 0.25rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.65rem;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.75;
}

.entry-content ul li:last-child,
.entry-content ol li:last-child {
    margin-bottom: 0;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dpv-cyan);
}

.entry-content ol {
    list-style: none;
    counter-reset: dpv-ol-counter;
}

.entry-content ol li {
    counter-increment: dpv-ol-counter;
}

.entry-content ol li::before {
    content: counter(dpv-ol-counter);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dpv-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Listas aninhadas */
.entry-content li ul,
.entry-content li ol {
    margin: 0.65rem 0 0;
}

/* -----------------------------------------------
   TABELAS
----------------------------------------------- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
    border-radius: var(--dpv-radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--dpv-light);
}

.entry-content table thead th {
    background: var(--dpv-dark);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    padding: 0.85rem 1rem;
}

.entry-content table td,
.entry-content table th {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--dpv-light);
}

.entry-content table tbody tr:last-child td {
    border-bottom: none;
}

.entry-content table tbody tr:nth-child(even) {
    background: var(--dpv-lighter);
}

.entry-content table tbody tr:hover {
    background: rgba(0,194,203,0.06);
}

/* Rolagem horizontal em telas pequenas, sem quebrar layout */
.entry-content .table-wrap,
.entry-content figure.wp-block-table {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.entry-content figure.wp-block-table table {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* -----------------------------------------------
   CAIXA DE BASE LEGAL
   Uso: envolver o trecho com <blockquote> no editor
   (bloco "Citação" do Gutenberg ou HTML manual)
----------------------------------------------- */
.entry-content blockquote {
    background: rgba(0,194,203,0.06);
    border-left: 4px solid var(--dpv-cyan);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dpv-dark);
    position: relative;
}

.entry-content blockquote::before {
    content: "⚖ BASE LEGAL";
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--dpv-cyan-dk, var(--dpv-cyan));
    margin-bottom: 0.5rem;
}

.entry-content blockquote p {
    margin: 0 0 0.5rem;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-style: normal;
    color: var(--dpv-gray);
}

/* Variação: caixa de alerta/atenção — classe manual .box-alerta */
.entry-content .box-alerta {
    background: #fef2f2;
    border-left: 4px solid #e24b4a;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #7a1f1f;
}

.entry-content .box-alerta::before {
    content: "⚠ ATENÇÃO";
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #e24b4a;
    margin-bottom: 0.5rem;
}

/* Variação: caixa de exemplo prático — classe manual .box-exemplo */
.entry-content .box-exemplo {
    background: var(--dpv-lighter);
    border: 1px solid var(--dpv-light);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.93rem;
    line-height: 1.7;
}

.entry-content .box-exemplo::before {
    content: "📊 EXEMPLO PRÁTICO";
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--dpv-gray);
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------
   LINKS, NEGRITO, ITÁLICO
----------------------------------------------- */
.entry-content a {
    color: var(--dpv-cyan-dk, var(--dpv-cyan));
    text-decoration: underline;
    text-decoration-color: rgba(0,194,203,0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
    text-decoration-color: var(--dpv-cyan-dk, var(--dpv-cyan));
}

.entry-content strong {
    font-weight: 700;
    color: var(--dpv-dark);
}

.entry-content em {
    font-style: italic;
}

/* -----------------------------------------------
   IMAGENS E LEGENDAS
----------------------------------------------- */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--dpv-radius-lg, 12px);
    display: block;
    margin: 0 auto;
}

.entry-content figure {
    margin: 1.75rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--dpv-gray);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* -----------------------------------------------
   CÓDIGO INLINE E BLOCOS
----------------------------------------------- */
.entry-content code {
    background: var(--dpv-lighter);
    border: 1px solid var(--dpv-light);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.85em;
    color: var(--dpv-dark);
}

.entry-content pre {
    background: var(--dpv-dark);
    color: #f3f4f6;
    border-radius: 10px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* -----------------------------------------------
   LINHA DIVISÓRIA
----------------------------------------------- */
.entry-content hr {
    border: none;
    border-top: 1px solid var(--dpv-light);
    margin: 2.5rem 0;
}

/* -----------------------------------------------
   RESPONSIVO — mobile
----------------------------------------------- */
@media (max-width: 640px) {
    .entry-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .entry-content h2 {
        margin: 2.25rem 0 1rem;
    }

    .entry-content h3 {
        margin: 2rem 0 0.85rem;
    }

    .entry-content blockquote,
    .entry-content .box-alerta,
    .entry-content .box-exemplo {
        padding: 1rem 1.1rem;
    }
}
