/* =========================================================
   GUARDA E CONVIVÊNCIA
   QUADRO DE DOCUMENTOS
========================================================= */

/* Identifica o bloco que contém a lista de documentos */
.ue-card.documentos,
.ue-split.documentos,
.ue-highlight.documentos {
    background: var(--fundo-claro);
}

/* Caixa principal */
.documentos .auxilio-conteudo {
    display: block;
    max-width: 1040px;
    padding: 0;
    border: 1px solid var(--borda);
    background: var(--branco);
    box-shadow: 0 14px 34px rgba(12, 68, 116, 0.08);
}

/* Cabeçalho do quadro */
.documentos h2 {
    margin: 0;
    padding: 30px 34px 12px;
    border: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--azul-profundo);
}

/* Linha azul elegante abaixo do título */
.documentos h2::after {
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 18px;
    background: var(--azul-principal);
    content: "";
}

/* Texto introdutório */
.documentos .auxilio-conteudo > p {
    max-width: 760px;
    margin: 0;
    padding: 8px 34px 26px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--texto-claro);
}

/* A lista vira uma tabela visual */
.documentos ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--borda);
    list-style: none;
}

/* Cada documento é uma célula */
.documentos li {
    position: relative;
    min-height: 66px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 17px 24px 17px 54px;
    border: 0;
    border-bottom: 1px solid var(--borda);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--texto);
}

/* Divisão vertical entre as colunas */
.documentos li:nth-child(odd) {
    border-right: 1px solid var(--borda);
}

/* Pequeno marcador documental */
.documentos li::before {
    position: absolute;
    top: 50%;
    left: 25px;
    width: 15px;
    height: 18px;
    border: 1.5px solid var(--azul-principal);
    border-radius: 1px;
    background: transparent;
    transform: translateY(-50%);
    content: "";
}

/* Dobra do "papel" */
.documentos li::after {
    position: absolute;
    top: calc(50% - 9px);
    left: 34px;
    width: 5px;
    height: 5px;
    border-top: 1.5px solid var(--azul-principal);
    border-right: 1.5px solid var(--azul-principal);
    background: var(--branco);
    content: "";
}

/* Alternância muito suave para facilitar leitura */
.documentos li:nth-child(4n + 3),
.documentos li:nth-child(4n + 4) {
    background: var(--fundo-claro);
}


/* =========================================================
   DOCUMENTOS — MOBILE
========================================================= */

@media (max-width: 767px) {

    .documentos .auxilio-conteudo {
        width: 100%;
    }

    .documentos h2 {
        padding: 25px 22px 12px;
    }

    .documentos .auxilio-conteudo > p {
        padding: 6px 22px 22px;
    }

    .documentos ul {
        grid-template-columns: 1fr;
    }

    .documentos li {
        min-height: 60px;
        padding: 15px 20px 15px 50px;
        border-right: 0 !important;
    }

    .documentos li:nth-child(odd) {
        border-right: 0;
    }

    .documentos li:nth-child(4n + 3),
    .documentos li:nth-child(4n + 4) {
        background: transparent;
    }

    .documentos li:nth-child(even) {
        background: var(--fundo-claro);
    }

    .documentos li::before {
        left: 22px;
    }

    .documentos li::after {
        left: 31px;
    }
}

/* =========================================================
   GUARDA E CONVIVÊNCIA
   NOVO VISUAL APENAS PARA OS TEXTOS
   NÃO ALTERA O QUADRO .documentos
========================================================= */


/* BLOCO BRANCO */

.ue-card:not(.documentos) {
    padding: 50px 0;
    background: #ffffff;
}

.ue-card:not(.documentos) .auxilio-conteudo {
    display: block;
    max-width: 1040px;

    padding: 0 0 0 30px;

    border: 0;
    border-left: 3px solid var(--azul-principal);

    box-shadow: none;
}

.ue-card:not(.documentos) .auxilio-conteudo::before {
    display: none;
}

.ue-card:not(.documentos) h2 {
    margin: 0 0 22px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.22;

    color: var(--azul-profundo);
}

.ue-card:not(.documentos) h2::before,
.ue-card:not(.documentos) h2::after {
    display: none;
}

.ue-card:not(.documentos) p {
    max-width: 900px;

    margin: 0 0 13px;

    font-size: 15px;
    line-height: 1.75;

    color: var(--texto);
}

.ue-card:not(.documentos) p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BLOCO FUNDO CLARO
========================================================= */

.ue-split:not(.documentos) {
    padding: 50px 0;

    background: var(--fundo-claro);
}

.ue-split:not(.documentos) .auxilio-conteudo {
    display: block;

    max-width: 1040px;

    padding: 0;
}

.ue-split:not(.documentos) h2 {
    position: relative;

    margin: 0 0 25px;
    padding: 0 0 17px;

    border: 0;
    border-bottom: 1px solid var(--borda);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.22;

    color: var(--azul-profundo);
}

.ue-split:not(.documentos) h2::after {
    position: absolute;
    bottom: -1px;
    left: 0;

    width: 55px;
    height: 2px;

    background: var(--azul-principal);

    content: "";
}

.ue-split:not(.documentos) p {
    max-width: 900px;

    margin: 0 0 13px;

    font-size: 15px;
    line-height: 1.75;

    color: var(--texto);
}

.ue-split:not(.documentos) p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BLOCO AZUL
========================================================= */

.ue-highlight:not(.documentos) {
    padding: 50px 0;

    background: var(--azul-profundo);
}

.ue-highlight:not(.documentos) .auxilio-conteudo {
    display: block;

    max-width: 1040px;

    padding: 0 0 0 30px;

    border: 0;
    border-left: 3px solid rgba(232, 241, 247, 0.65);
}

.ue-highlight:not(.documentos) h2 {
    margin: 0 0 22px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.22;

    color: #ffffff;
}

.ue-highlight:not(.documentos) p {
    max-width: 900px;

    margin: 0 0 13px;

    font-size: 15px;
    line-height: 1.75;

    color: rgba(255, 255, 255, 0.78);
}

.ue-highlight:not(.documentos) p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LISTAS DOS BLOCOS NORMAIS
========================================================= */

.ue-card:not(.documentos) ul,
.ue-split:not(.documentos) ul,
.ue-highlight:not(.documentos) ul {
    max-width: 900px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}

.ue-card:not(.documentos) li,
.ue-split:not(.documentos) li {
    position: relative;

    padding: 11px 0 11px 22px;

    border-bottom: 1px solid var(--borda);

    font-size: 14px;
    line-height: 1.6;

    color: var(--texto);
}

.ue-highlight:not(.documentos) li {
    position: relative;

    padding: 11px 0 11px 22px;

    border-bottom: 1px solid rgba(255,255,255,0.15);

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,0.82);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ue-card:not(.documentos),
    .ue-split:not(.documentos),
    .ue-highlight:not(.documentos) {
        padding: 38px 0;
    }

    .ue-card:not(.documentos) .auxilio-conteudo,
    .ue-highlight:not(.documentos) .auxilio-conteudo {
        padding-left: 18px;
    }

    .ue-card:not(.documentos) h2,
    .ue-split:not(.documentos) h2,
    .ue-highlight:not(.documentos) h2 {
        margin-bottom: 18px;

        font-size: 1.55rem !important;
        line-height: 1.25;
    }

    .ue-card:not(.documentos) p,
    .ue-split:not(.documentos) p,
    .ue-highlight:not(.documentos) p {
        margin-bottom: 11px;

        font-size: 14px;
        line-height: 1.7;
    }
}

/* =========================================================
   ETIQUETAS DE ASSUNTO
   MESMO PADRÃO VISUAL DO DIVÓRCIO
========================================================= */

.topico-etiqueta {
    display: inline-block;

    margin: 0 0 14px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--azul-principal);
}

/* etiqueta nos blocos azuis */
.ue-highlight .topico-etiqueta {
    color: var(--azul-claro);
}


/* MOBILE */

@media (max-width: 767px) {

    .topico-etiqueta {
        margin-bottom: 11px;

        font-size: 0.66rem;
        letter-spacing: 0.14em;
    }
}

/* =========================================================
   ETIQUETAS DE ASSUNTO — CORREÇÃO DEFINITIVA
   NÃO ALTERA O QUADRO DE DOCUMENTOS
========================================================= */

/* Etiquetas dos blocos normais */
.ue-card:not(.documentos) .topico-etiqueta,
.ue-split:not(.documentos) .topico-etiqueta,
.ue-highlight:not(.documentos) .topico-etiqueta {
    display: block;

    width: max-content;
    max-width: 100%;

    margin: 0 0 14px 0;
    padding: 0;

    position: static;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--azul-principal);

    /* cancela regras antigas */
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;

    transform: none;
}

/* Etiqueta em fundo azul */
.ue-highlight:not(.documentos) .topico-etiqueta {
    color: var(--azul-claro);
}


/* =========================================================
   BLOCO BRANCO
   A etiqueta acompanha exatamente o título
========================================================= */

.ue-card:not(.documentos) .auxilio-conteudo {
    display: block;

    max-width: 1040px;

    padding-top: 28px;
    padding-right: 34px;
    padding-bottom: 30px;
    padding-left: 34px;

    border: 1px solid var(--borda);
    border-left: 3px solid var(--azul-principal);

    background: var(--branco);

    box-shadow: 0 12px 30px rgba(12, 68, 116, 0.06);
}

.ue-card:not(.documentos) .topico-etiqueta {
    margin-left: 0;
}

.ue-card:not(.documentos) .topico-etiqueta + h2 {
    margin-top: 0;
}


/* =========================================================
   BLOCO CLARO
========================================================= */

.ue-split:not(.documentos) .topico-etiqueta {
    margin-left: 0;
}

.ue-split:not(.documentos) .topico-etiqueta + h2 {
    margin-top: 0;
}


/* =========================================================
   BLOCO AZUL
========================================================= */

.ue-highlight:not(.documentos) .topico-etiqueta {
    margin-left: 0;
}

.ue-highlight:not(.documentos) .topico-etiqueta + h2 {
    margin-top: 0;
}


/* =========================================================
   QUADRO DE DOCUMENTOS
   MANTÉM O DESIGN QUE JÁ ESTÁ CERTO
========================================================= */

.documentos .topico-etiqueta {
    display: block;

    width: max-content;
    max-width: calc(100% - 68px);

    margin: 0;
    padding: 28px 34px 0;

    position: static;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--azul-principal);

    transform: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ue-card:not(.documentos) .auxilio-conteudo {
        padding: 24px 22px 26px;
    }

    .ue-card:not(.documentos) .topico-etiqueta,
    .ue-split:not(.documentos) .topico-etiqueta,
    .ue-highlight:not(.documentos) .topico-etiqueta {
        margin-bottom: 12px;

        font-size: 0.66rem;
        letter-spacing: 0.15em;
    }

    .documentos .topico-etiqueta {
        max-width: calc(100% - 44px);
        padding: 24px 22px 0;

        font-size: 0.66rem;
        letter-spacing: 0.15em;
    }
}
