.artigo-main {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 150px 20px 80px;
    background: white;
    color: #171717;
    font-family: 'Inter', sans-serif;
}

.artigo-voltar {
    display: block;
    width: fit-content;
    margin-bottom: 28px;
    color: #177a67;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.artigo-voltar:hover {
    text-decoration: underline;
}

.artigo-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: #e6f7f3;
    color: #177a67;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.artigo-titulo {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.artigo-intro {
    margin: 0 0 40px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.artigo-main h2 {
    margin: 40px 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.artigo-main p,
.artigo-main li {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.artigo-main a {
    color: #177a67;
}

.artigo-passos {
    list-style: none;
    counter-reset: passo;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.artigo-passos li {
    counter-increment: passo;
    position: relative;
    padding: 20px 22px 20px 72px;
    border: 1px solid #e8eeec;
    border-radius: 20px;
}

.artigo-passos li::before {
    content: counter(passo);
    position: absolute;
    left: 22px;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1fa187;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.artigo-passos strong {
    display: block;
    color: #171717;
    margin-bottom: 4px;
}

.artigo-aviso {
    margin: 28px 0 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: #e6f7f3;
    color: #145f50;
}

.artigo-aviso p {
    margin: 0;
    color: inherit;
}

.artigo-tabela {
    width: 100%;
    margin: 8px 0 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8eeec;
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.95rem;
}

.artigo-tabela th,
.artigo-tabela td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8eeec;
    text-align: left;
    color: #444;
}

.artigo-tabela thead th {
    background: #e6f7f3;
    color: #145f50;
    font-weight: 700;
}

.artigo-tabela tbody tr:last-child td {
    border-bottom: 0;
}

.artigo-tabela td:first-child {
    color: #171717;
    font-weight: 600;
}

.artigo-main ol.artigo-passos {
    padding: 0;
}

.artigo-canais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.artigo-canal {
    padding: 22px;
    border: 1px solid #e8eeec;
    border-radius: 20px;
}

.artigo-canal span {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.artigo-canal a {
    font-weight: 600;
    word-break: break-word;
}

.artigo-legal h2 {
    font-size: 1.2rem;
}

.artigo-legal ul {
    padding-left: 22px;
}

.artigo-atualizado {
    margin-top: 40px;
    color: #8a8a8a;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .artigo-main {
        padding: 120px 16px 56px;
    }

    .artigo-tabela th,
    .artigo-tabela td {
        padding: 12px 12px;
        font-size: 0.88rem;
    }

    .artigo-canais {
        grid-template-columns: 1fr;
    }

    .artigo-passos li {
        padding: 18px 18px 18px 64px;
    }

    .artigo-passos li::before {
        left: 18px;
        top: 18px;
    }
}

/* Páginas de ajuda: título centralizado na tela, textos alinhados à esquerda (na
   mesma margem do logo) e "Veja também" em uma coluna fixa à direita. Política de
   Privacidade e Termos (.artigo-legal) mantêm o layout estreito de antes. */
.artigo-main:not(.artigo-legal) {
    max-width: 1500px;
    padding-inline: 5%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    column-gap: clamp(40px, 6vw, 96px);
    align-content: start;
}

.artigo-main:not(.artigo-legal) .artigo-voltar,
.artigo-main:not(.artigo-legal) .artigo-tag,
.artigo-main:not(.artigo-legal) .artigo-titulo {
    grid-column: 1 / -1;
}

.artigo-main:not(.artigo-legal) .artigo-tag {
    justify-self: center;
}

.artigo-main:not(.artigo-legal) .artigo-titulo {
    justify-self: center;
    max-width: 900px;
    margin: 16px 0 36px;
    text-align: center;
}

.artigo-main:not(.artigo-legal) > :not(.artigo-voltar):not(.artigo-tag):not(.artigo-titulo):not(.artigo-lateral):not(.artigo-midia) {
    grid-column: 1;
    max-width: 760px;
}

.artigo-lateral {
    grid-column: 2;
    grid-row: 4 / span 60;
    align-self: start;
    position: sticky;
    top: 120px;
    padding: 24px;
    border: 1px solid #e8eeec;
    border-radius: 20px;
    background: #f7fbfa;
}

.artigo-main .artigo-lateral h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.artigo-lateral ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artigo-lateral li {
    font-size: 0.92rem;
    line-height: 1.5;
}

.artigo-lateral a {
    font-weight: 600;
    text-decoration: none;
}

.artigo-lateral a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .artigo-main:not(.artigo-legal) {
        grid-template-columns: minmax(0, 1fr);
    }

    .artigo-lateral {
        grid-column: 1;
        grid-row: auto;
        position: static;
        margin-top: 40px;
    }
}

/* Página com vídeo na coluna da direita (no lugar do "Veja também"). */
.artigo-main--midia:not(.artigo-legal) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
}

.artigo-midia {
    grid-column: 2;
    grid-row: 4 / span 60;
    align-self: start;
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.artigo-video {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    container-type: size;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: calc(100vh - 230px);
    border-radius: 22px;
    background: #14201d;
    box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.35);
}

.artigo-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78cqh);
    height: max(100%, 56.25cqw);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.artigo-botao {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 26px;
    border-radius: 40px;
    background: var(--escuro);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.25s ease;
}

.artigo-main .artigo-botao {
    color: #fff;
}

.artigo-botao:hover {
    transform: scale(1.02);
    background: var(--verde-escuro);
}

.artigo-botao .botao__icone {
    width: 30px;
    height: 30px;
    background: #fff;
    color: var(--escuro);
}

.artigo-botao:hover .botao__icone svg {
    transform: rotate(-45deg);
}

@media (max-width: 1000px) {
    .artigo-main--midia:not(.artigo-legal) {
        grid-template-columns: minmax(0, 1fr);
    }

    .artigo-midia {
        grid-column: 1;
        grid-row: auto;
        position: static;
        margin-top: 40px;
    }

    .artigo-video {
        max-width: 460px;
        max-height: none;
    }
}

/* Conteúdo aprofundado das páginas de ajuda: subtítulos, números em destaque,
   exemplos práticos e perguntas frequentes que abrem e fecham. */
.artigo-main h3 {
    margin: 28px 0 8px;
    color: #171717;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.artigo-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 8px;
}

.artigo-resumo div {
    padding: 16px 18px;
    border: 1px solid #e8eeec;
    border-radius: 16px;
    background: #f7fbfa;
}

.artigo-resumo dt {
    margin: 0 0 4px;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
}

.artigo-resumo dd {
    margin: 0;
    color: #145f50;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.artigo-exemplo {
    margin: 18px 0 0;
    padding: 18px 22px;
    border: 1px dashed #1fa187;
    border-radius: 16px;
    background: #fbfefd;
}

.artigo-exemplo > :last-child {
    margin-bottom: 0;
}

.artigo-exemplo strong {
    color: #145f50;
}

.artigo-aviso + .artigo-aviso {
    margin-top: 14px;
}

.artigo-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.artigo-faq details {
    padding: 0 20px;
    border: 1px solid #e8eeec;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.artigo-faq details[open] {
    background: #f7fbfa;
}

.artigo-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    color: #171717;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.artigo-faq summary::-webkit-details-marker {
    display: none;
}

.artigo-faq summary::after {
    content: "+";
    flex: none;
    color: #1fa187;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

.artigo-faq details[open] summary::after {
    content: "\2212";
}

.artigo-faq summary:focus-visible {
    outline: 2px solid #1fa187;
    outline-offset: 2px;
    border-radius: 8px;
}

.artigo-faq details p {
    margin: 0 0 14px;
}

.artigo-faq details > :last-child {
    margin-bottom: 16px;
}

/* Ritmo vertical nas páginas de ajuda: o reset global zera a margem dos
   parágrafos e listas, o que cola os blocos quando o texto é longo. Política de
   Privacidade e Termos (.artigo-legal) ficam como estavam. */
.artigo-main:not(.artigo-legal) > :is(p, ul, ol, table, dl, .artigo-aviso, .artigo-exemplo, .artigo-faq) {
    margin-bottom: 14px;
}

.artigo-main:not(.artigo-legal) > .artigo-exemplo + .artigo-exemplo {
    margin-top: 0;
}

.artigo-main:not(.artigo-legal) > :is(h2, h3) + :is(p, ul, ol) {
    margin-top: 0;
}

.nowrap {
    white-space: nowrap;
}
