/* Estilos comuns a todas as páginas.
   Estilos específicos de um artigo ficam no <style> do próprio artigo. */

body { font-family: 'Lato', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; }

/* Texto dos artigos (<div class="article-content">) */
.article-content p { margin-bottom: 1.5rem; line-height: 1.75; }
.article-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.article-content h2 { color: #1e392a; }
.article-content h3 { font-size: 1.5rem; line-height: 2rem; margin-top: 1.75rem; margin-bottom: 0.75rem; font-weight: 700; color: #1e392a; }
.article-content ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content ol { list-style-type: decimal; margin-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content ol li { padding-left: 0.25rem; }
.article-content a { color: #1e392a; text-decoration: underline; text-decoration-color: #c2a56c; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-content a:hover { color: #86683a; }
/* "Na prática" / "Minha leitura" */
.article-content .opiniao { border-left: 4px solid #c2a56c; padding: 0.25rem 0 0.25rem 1rem; margin-bottom: 1.5rem; line-height: 1.75; }
.article-content .nota { font-size: 0.95rem; color: #4b5563; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem 1.25rem; }
.article-content .fontes li { font-size: 0.95rem; word-break: break-word; }
/* Tabelas (rolam para o lado no celular) */
.article-content .tabela-rolagem { overflow-x: auto; margin: 0 0 1.75rem; -webkit-overflow-scrolling: touch; }
.article-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.article-content th, .article-content td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.article-content thead th { background: #f6f2e8; color: #1e392a; font-weight: 700; }
.article-content tbody th { color: #1e392a; font-weight: 700; }
/* Listas de verificação */
.article-content .checklist, .article-content .checklist-risco { list-style: none; margin-left: 0; }
.article-content .checklist li, .article-content .checklist-risco li { position: relative; padding-left: 2rem; }
.article-content .checklist li::before {
    content: ''; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem;
    border: 2px solid #c2a56c; border-radius: 4px;
}
.article-content .checklist-risco li::before {
    content: '!'; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 9999px;
    background: #fdf3df; color: #9a640b; font-weight: 700; font-size: 0.85rem; line-height: 1.3rem; text-align: center;
}

/* Botão flutuante do WhatsApp (inserido por assets/site.js em todas as páginas) */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 40;                 /* abaixo do cabeçalho/menu (z-50) */
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background-color: #25D366;   /* verde oficial do WhatsApp */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.whatsapp-float:focus-visible { outline: 3px solid #c2a56c; outline-offset: 3px; }
.whatsapp-float svg { width: 30px; height: 30px; }
@media print { .whatsapp-float { display: none; } }

/* ===== Topo da home (hero shot) =====
   O retrato (assets/giovanni-retrato.*) já vem com fundo transparente e degradê na base.
   Celular: retrato recortado até os ombros, acima do texto.
   Computador: retrato encostado na base da seção e na borda direita da tela. */
.hero-shot {
    background-image: radial-gradient(ellipse 60% 70% at 82% 30%, rgba(194, 165, 108, 0.16) 0%, rgba(30, 57, 42, 0) 70%);
}
.hero-shot-photo {
    position: relative;
    height: 230px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding-top: 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero-shot-photo img {
    width: 190px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 28px rgba(194, 165, 108, 0.22));
}
.hero-shot-tag { display: none; }
.hero-shot-text { padding: 8px 0 48px; }

@media (min-width: 768px) {
    .hero-shot { min-height: 560px; display: flex; align-items: center; }
    .hero-shot > .container { width: 100%; }
    .hero-shot-photo {
        position: absolute;
        bottom: 0;
        right: max(0px, calc((100vw - 1280px) / 2 - 120px));
        height: 520px;
        padding-top: 0;
        overflow: visible;
        -webkit-mask-image: none;
                mask-image: none;
    }
    .hero-shot-photo img { width: auto; height: 100%; }
    .hero-shot-text { max-width: 54%; padding: 80px 0; }
    .hero-shot-tag {
        display: block;
        position: absolute;
        left: -56px;
        bottom: 56px;
        padding: 12px 18px;
        background: rgba(30, 57, 42, 0.82);
        border-left: 3px solid #c2a56c;
        -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .hero-shot-tag-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.35rem; color: #fff; line-height: 1.2; }
    .hero-shot-tag-role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #c2a56c; margin-top: 2px; }
}
@media (min-width: 1024px) {
    .hero-shot { min-height: 640px; }
    .hero-shot-photo { height: 620px; }
    .hero-shot-text { max-width: 56%; }
}
@media (min-width: 1280px) {
    .hero-shot { min-height: 700px; }
    .hero-shot-photo { height: 690px; }
    .hero-shot-text { max-width: 60%; }
}

/* Foto do relógio na seção "Como eu trabalho" (fundo verde) */
.como-trabalho-photo { display: block; width: 100%; max-width: 300px; height: auto; }
@media (min-width: 768px) { .como-trabalho-photo { max-width: 480px; } }

/* ===== Landing pages de serviço (data-page="landing") ===== */
.lp-hero { background-image: radial-gradient(ellipse 55% 60% at 80% 40%, rgba(194, 165, 108, 0.13) 0%, rgba(30, 57, 42, 0) 70%); }
.lp-hero-art { display: block; width: 100%; max-width: 540px; height: auto; }

/* Formulário que envia para o WhatsApp */
.lp-form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(194, 165, 108, 0.35);
    border-radius: 10px;
    padding: 20px;
}
.lp-input {
    width: 100%;
    background: #fff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 16px;            /* 16px evita o zoom automático no iPhone */
    line-height: 1.3;
}
.lp-input:focus { outline: 3px solid rgba(194, 165, 108, 0.6); outline-offset: 1px; border-color: #c2a56c; }
select.lp-input {
    -webkit-appearance: none; appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231e392a'%3E%3Cpath d='M5.3 7.3a1 1 0 011.4 0L10 10.6l3.3-3.3a1 1 0 111.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 010-1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.lp-check { width: 18px; height: 18px; accent-color: #c2a56c; flex-shrink: 0; }

/* Perguntas frequentes (abre e fecha sem JavaScript) */
.lp-faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0;
    font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.35rem; color: #1e392a;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq p { padding: 0 0 22px; color: #4b5563; font-size: 1.05rem; line-height: 1.7; }
.lp-faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.lp-faq-icon::before, .lp-faq-icon::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: #c2a56c; transition: transform 0.2s ease; }
.lp-faq-icon::after { transform: rotate(90deg); }
.lp-faq[open] .lp-faq-icon::after { transform: rotate(0deg); }

/* Foto na seção "Por que fazer isso comigo" */
.lp-usp-photo {
    width: 200px; height: 200px; object-fit: cover; object-position: center top;
    border-radius: 9999px; border: 3px solid #c2a56c; background: #24483a;
}
@media (min-width: 1024px) { .lp-usp-photo { width: 240px; height: 240px; } }

/* ===== Página Sobre (formato de carta editorial) ===== */
.sobre-texto { max-width: 42rem; margin-left: auto; margin-right: auto; }   /* ~65 caracteres por linha */
.sobre-citacao {
    max-width: 52rem;
    margin: 3.5rem auto;
    padding: 2rem 0;
    border-top: 1px solid #c2a56c;
    border-bottom: 1px solid #c2a56c;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.25;
    color: #86683a;
}
@media (min-width: 768px) { .sobre-citacao { font-size: 2.5rem; margin: 4.5rem auto; } }

/* ===== Aviso de cookies (inserido por site.js até o visitante escolher) =====
   Celular: faixa fina no rodapé da tela, para não cobrir a chamada principal.
   Computador: caixa pequena no canto inferior esquerdo. */
.aviso-cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;                     /* acima do botão do WhatsApp, abaixo do cabeçalho */
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e392a;
    color: #e5e7eb;
    border-top: 1px solid rgba(194, 165, 108, 0.45);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    font-size: 0.875rem;
    line-height: 1.4;
}
.aviso-cookies-texto { flex: 1; min-width: 0; }
.aviso-cookies-texto a { color: #c2a56c; text-decoration: underline; }
.aviso-cookies-botoes { display: flex; gap: 8px; flex-shrink: 0; }
.aviso-cookies-botao {
    padding: 8px 14px;               /* "Recusar" e "Aceitar" com o mesmo tamanho e destaque */
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid #c2a56c;
    transition: opacity 0.2s ease;
}
.aviso-cookies-recusar { background: transparent; color: #c2a56c; }
.aviso-cookies-aceitar { background: #c2a56c; color: #1e392a; }
.aviso-cookies-botao:hover { opacity: 0.85; }
.aviso-cookies-botao:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* enquanto o aviso está aberto, o botão do WhatsApp sobe para não ficar por baixo */
.com-aviso-cookies .whatsapp-float { bottom: calc(var(--aviso-cookies-altura, 64px) + 14px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
    .aviso-cookies {
        left: 20px; right: auto; bottom: 20px; max-width: 520px;
        border: 1px solid rgba(194, 165, 108, 0.45); border-radius: 10px; padding: 12px 16px;
    }
    .com-aviso-cookies .whatsapp-float { bottom: 20px; }   /* no computador o aviso fica à esquerda */
}
@media print { .aviso-cookies { display: none; } }

/* ===== Página de política de privacidade ===== */
.texto-legal h2 { font-size: 1.75rem; line-height: 1.25; color: #1e392a; font-weight: 700; margin: 2.5rem 0 1rem; }
.texto-legal h3 { font-size: 1.3rem; color: #1e392a; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.texto-legal p, .texto-legal li { color: #374151; font-size: 1.05rem; line-height: 1.75; }
.texto-legal p { margin-bottom: 1rem; }
.texto-legal ul { list-style: disc; margin: 0 0 1rem 1.5rem; }
.texto-legal li { margin-bottom: 0.4rem; }
.texto-legal a { color: #86683a; text-decoration: underline; }
.texto-legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.texto-legal th, .texto-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; color: #374151; }
.texto-legal th { color: #1e392a; font-weight: 700; background: #f9fafb; }

/* ===== Chamada no fim dos artigos (leva à landing page da área) ===== */
.artigo-cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    margin-top: 3.5rem;
    padding: 28px 24px;
    background: #1e392a;
    border-radius: 12px;
    border-left: 4px solid #c2a56c;
    box-shadow: 0 10px 30px rgba(30, 57, 42, 0.18);
}
.artigo-cta-foto {
    width: 84px; height: 84px; flex-shrink: 0;
    object-fit: cover; object-position: center top;
    border-radius: 9999px; border: 2px solid #c2a56c; background: #24483a;
}
.artigo-cta-area { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #c2a56c; margin: 0 0 6px; }
.artigo-cta-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.75rem; line-height: 1.2; color: #fff; margin: 0 0 8px !important; }
.artigo-cta-texto { color: #d1d5db; font-size: 1.05rem; line-height: 1.6; margin: 0 0 18px !important; }
.artigo-cta-botao {
    display: inline-block; background: #c2a56c; color: #1e392a; font-weight: 700;
    padding: 12px 22px; border-radius: 6px; text-decoration: none; transition: opacity 0.2s ease;
}
.artigo-cta-botao:hover { opacity: 0.9; }
.artigo-cta-autor { margin: 14px 0 0 !important; font-size: 0.8rem; color: #9ca3af; }
@media (min-width: 640px) {
    .artigo-cta { flex-direction: row; padding: 32px; gap: 28px; }
    .artigo-cta-foto { width: 104px; height: 104px; }
    .artigo-cta-titulo { font-size: 2rem; }
}

/* ===== Raio-X Jurídico da Startup (raio-x.html) ===== */
.rx-progresso { height: 6px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.rx-progresso span { display: block; height: 100%; width: 0; background: #c2a56c; border-radius: 9999px; transition: width 0.35s ease; }

.rx-opcao {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    padding: 16px 18px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px;
    font-size: 1.05rem; line-height: 1.45; color: #1f2937;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.rx-opcao:hover { border-color: #c2a56c; box-shadow: 0 4px 14px rgba(30, 57, 42, 0.08); }
.rx-opcao:focus-visible { outline: 3px solid rgba(194, 165, 108, 0.6); outline-offset: 2px; }
.rx-opcao-marca {
    position: relative; width: 22px; height: 22px; flex-shrink: 0;
    border: 2px solid #c2a56c; border-radius: 9999px; transition: background-color 0.15s ease;
}
.rx-opcao-escolhida { border-color: #1e392a; background: #f6f2e8; }
.rx-opcao-escolhida .rx-opcao-marca { background: #1e392a; border-color: #1e392a; }
.rx-opcao-escolhida .rx-opcao-marca::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
    border: solid #c2a56c; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* faixas: cor do texto/selo (--rx), fundo claro (--rx-fundo) e cor no fundo verde (--rx-claro) */
.rx-risco   { --rx: #b4432f; --rx-fundo: #fbeae6; --rx-claro: #e98d7a; }
.rx-atencao { --rx: #9a640b; --rx-fundo: #fdf3df; --rx-claro: #ecc06e; }
.rx-ok      { --rx: #2f7a4b; --rx-fundo: #e6f4ea; --rx-claro: #8fd3a6; }
.rx-na      { --rx: #6b7280; --rx-fundo: #f3f4f6; --rx-claro: #d1d5db; }

.rx-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1e9d8; font-size: 0.95rem;
}
.rx-ponto { width: 10px; height: 10px; border-radius: 9999px; background: var(--rx-claro); }

.rx-cartao {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb;
    border-top: 4px solid var(--rx); border-radius: 12px; padding: 24px; box-shadow: 0 4px 18px rgba(30, 57, 42, 0.06);
}
.rx-selo {
    flex-shrink: 0; padding: 4px 10px; border-radius: 9999px; background: var(--rx-fundo); color: var(--rx);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.rx-termometro { display: flex; gap: 6px; }
.rx-termometro span { flex: 1; height: 8px; border-radius: 9999px; background: #e5e7eb; }
.rx-termometro .rx-aceso { background: var(--rx); }
.rx-nao-sei { margin-top: 10px; font-size: 0.92rem; font-style: italic; color: #9a640b; }
.rx-link { margin-top: auto; padding-top: 16px; font-weight: 700; color: #86683a; }
.rx-link:hover { text-decoration: underline; }
.rx-pdf-caixa { border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Só no PDF */
.rx-pdf-cabecalho, .rx-pdf-contato { display: none; }

@media (prefers-reduced-motion: reduce) {
    .rx-progresso span, .rx-opcao { transition: none; }
}

@media print {
    @page { size: A4; margin: 12mm 14mm; }
    body { background: #fff !important; }
    body > header, body > footer, .whatsapp-float, #aviso-cookies,
    #rx-intro, #rx-perguntas, .rx-sem-pdf, .rx-link { display: none !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    .rx-pdf-cabecalho {
        display: flex; align-items: center; gap: 12px;
        padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #c2a56c;
    }
    .rx-pdf-titulo { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 20pt; color: #1e392a; line-height: 1.1; }
    .rx-pdf-sub { font-size: 9.5pt; color: #6b7280; }

    #rx-resultado .container { max-width: none !important; padding: 0 !important; }
    .rx-resultado-topo { background: none !important; }
    .rx-resultado-topo .container { padding-top: 10px !important; padding-bottom: 6px !important; }
    #rx-titulo { color: #1e392a !important; font-size: 20pt !important; margin-bottom: 4px !important; }
    #rx-subtitulo { color: #4b5563 !important; font-size: 11pt !important; }
    #rx-resumo { margin-top: 10px !important; }
    .rx-chip { background: #f9fafb; border-color: #e5e7eb; color: #1f2937; font-size: 9.5pt; padding: 3px 10px; }
    .rx-ponto { background: var(--rx); }

    #rx-cartoes { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-top: 10px; }
    .rx-cartao { padding: 12px 14px; box-shadow: none; break-inside: avoid; }
    .rx-cartao h3 { font-size: 14pt !important; }
    .rx-cartao p { font-size: 9.5pt; line-height: 1.45 !important; margin-top: 8px !important; }
    .rx-cartao .mb-3 { margin-bottom: 8px !important; }
    .rx-selo { font-size: 7pt; }
    .rx-termometro span { height: 6px; }

    .rx-fechamento { background: none !important; border: 1px solid #c2a56c; padding: 12px 16px !important; margin-top: 12px !important; break-inside: avoid; }
    .rx-fechamento h2 { color: #1e392a !important; font-size: 15pt !important; margin-bottom: 4px !important; }
    .rx-fechamento p { color: #4b5563 !important; font-size: 10pt !important; margin: 2px auto !important; }
    .rx-pdf-contato { display: block; font-weight: 700; color: #1e392a !important; }
    #rx-resultado > .container > p { font-size: 8.5pt !important; margin-top: 8px !important; }
}

/* ===== Glossário Jurídico para Startups (glossario.html) ===== */
.gl-busca { position: relative; }
.gl-busca input {
    width: 100%; padding: 16px 18px 16px 52px; border-radius: 10px; border: 1px solid rgba(194, 165, 108, 0.5);
    background: #fff; color: #1f2937; font-size: 1.1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.gl-busca input:focus { outline: 3px solid rgba(194, 165, 108, 0.6); outline-offset: 2px; }
.gl-busca-icone { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }

/* barra de filtros: fica logo abaixo do cabeçalho ao rolar */
.gl-barra {
    position: sticky; top: 72px; z-index: 40;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 768px) { .gl-barra { top: 80px; } }
.gl-filtros { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.gl-filtros::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .gl-filtros { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.gl-chip {
    flex-shrink: 0; white-space: nowrap; padding: 8px 16px; border-radius: 9999px; font-size: 0.9rem;
    border: 1px solid #d1d5db; background: #fff; color: #374151; transition: all 0.15s ease;
}
.gl-chip:hover { border-color: #c2a56c; color: #1e392a; }
.gl-chip[aria-pressed="true"] { background: #1e392a; border-color: #1e392a; color: #fff; }

.gl-indice { margin-bottom: 40px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; }
.gl-indice summary {
    cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: #1e392a;
    display: flex; align-items: center; gap: 8px;
}
.gl-indice summary::-webkit-details-marker { display: none; }
.gl-indice summary::before { content: '+'; color: #c2a56c; font-size: 1.3rem; line-height: 1; width: 16px; }
.gl-indice[open] summary::before { content: '−'; }
.gl-indice summary span { font-weight: 400; color: #6b7280; }
.gl-indice-grade { columns: 2 160px; column-gap: 28px; padding: 4px 20px 20px; }
@media (min-width: 768px) { .gl-indice-grade { columns: 4; } }
.gl-indice-bloco { break-inside: avoid; margin-bottom: 14px; }
.gl-indice-letra { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; color: #86683a; line-height: 1.2; }
.gl-indice-bloco a { display: inline-block; padding: 2px 0; color: #374151; font-size: 0.95rem; }
.gl-indice-bloco a:hover { color: #1e392a; text-decoration: underline; }

.gl-status { min-height: 1px; margin-bottom: 16px; color: #6b7280; font-size: 0.95rem; }
.gl-vazio { text-align: center; padding: 48px 16px; }

.gl-area { margin-bottom: 56px; scroll-margin-top: 150px; }
.gl-area-cabecalho { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid #c2a56c; }
.gl-area-conta { flex-shrink: 0; color: #6b7280; font-size: 0.9rem; }
.gl-grade { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .gl-grade { grid-template-columns: 1fr 1fr; gap: 22px; } }

.gl-termo {
    position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px 22px 20px;
    scroll-margin-top: 160px; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.gl-termo:hover { box-shadow: 0 6px 20px rgba(30, 57, 42, 0.07); }
.gl-termo-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gl-termo-nome { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.6rem; line-height: 1.15; color: #1e392a; }
.gl-copiar {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 8px; color: #9ca3af; transition: color 0.15s ease, background-color 0.15s ease;
}
.gl-copiar svg { width: 18px; height: 18px; }
.gl-copiar:hover, .gl-copiar:focus-visible { color: #1e392a; background: #f6f2e8; }
.gl-definicao { color: #374151; font-size: 1.05rem; line-height: 1.65; }
.gl-pratica { margin-top: 12px; padding: 10px 14px; background: #f6f2e8; border-left: 3px solid #c2a56c; border-radius: 0 8px 8px 0; color: #374151; line-height: 1.6; }
.gl-pratica strong { color: #1e392a; }
.gl-leia { margin-top: 12px; font-size: 0.95rem; color: #6b7280; line-height: 1.6; }
.gl-leia a { color: #86683a; font-weight: 700; }
.gl-leia a:hover { text-decoration: underline; }
.gl-area-link { display: inline-block; margin-top: 20px; font-weight: 700; color: #86683a; }
.gl-area-link:hover { text-decoration: underline; }

.gl-destaque { border-color: #c2a56c; box-shadow: 0 0 0 3px rgba(194, 165, 108, 0.35); }

.gl-aviso-copiado {
    position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
    padding: 10px 18px; border-radius: 9999px; background: #1e392a; color: #fff; font-weight: 700; font-size: 0.95rem;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.gl-aviso-visivel { opacity: 1; transform: translate(-50%, 0); }

/* Nota no fim dos artigos (inserida por site.js) */
.artigo-glossario { margin-top: 1.5rem; color: #6b7280; font-size: 1rem; }
.artigo-glossario a { color: #86683a; font-weight: 700; }
.artigo-glossario a:hover { text-decoration: underline; }


/* ===== Contraste (acessibilidade) =====
   O dourado da marca (#c2a56c) tem contraste baixo sobre fundo claro (2,4:1). Em textos sobre fundos
   claros usamos o dourado escuro (#86683a, 5,2:1); sobre o verde e o grafite, o dourado original continua.
   Nos botões dourados, o texto passa a ser verde-escuro (5,3:1) em vez de branco. */
body .text-brand-gold, body .hover\:text-brand-gold:hover { color: #86683a; }
body .bg-brand-green .text-brand-gold, body .bg-brand-green .hover\:text-brand-gold:hover,
body footer .text-brand-gold, body footer .hover\:text-brand-gold:hover,
body .artigo-cta .text-brand-gold, body .article-hero .text-brand-gold { color: #c2a56c; }
body .bg-brand-gold.text-white, body .hover\:bg-brand-gold:hover.hover\:text-white:hover { color: #1e392a; }

/* ===== Autor no topo dos artigos (gerado pelo build) ===== */
.artigo-autor { display: flex; align-items: center; gap: 12px; margin-top: 0.75rem; }
.artigo-autor-foto { width: 48px; height: 48px; flex-shrink: 0; border-radius: 9999px; object-fit: cover; background: #24483a; border: 2px solid #c2a56c; }
.artigo-autor-nome { font-size: 0.95rem; color: #374151; line-height: 1.4; }
.artigo-autor-nome a { color: #1e392a; font-weight: 700; }
.artigo-autor-nome a:hover { text-decoration: underline; }
.artigo-autor-data { font-size: 0.9rem; color: #6b7280; line-height: 1.4; }
.article-hero .artigo-autor-nome, .article-hero .artigo-autor-data { color: #d1d5db; }
.article-hero .artigo-autor-nome a { color: #fff; }

/* ===== Trilha de navegação (gerada pelo build) ===== */
.trilha { font-size: 0.85rem; margin-bottom: 1rem; }
.trilha ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #6b7280; }
.trilha li { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.trilha li + li::before { content: '\203A'; color: #9ca3af; }
.trilha a { color: #4b5563; }
.trilha a:hover { color: #1e392a; text-decoration: underline; }
.trilha [aria-current] { color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.text-center .trilha ol { justify-content: center; }
.bg-brand-green .trilha ol, .article-hero .trilha ol, .bg-brand-green .trilha [aria-current], .article-hero .trilha [aria-current] { color: #9ca3af; }
.bg-brand-green .trilha a, .article-hero .trilha a { color: #d1d5db; }
.bg-brand-green .trilha a:hover, .article-hero .trilha a:hover { color: #fff; }

/* ===== Cards de artigos (gerados pelo build) ===== */
.artigo-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 0.5rem; overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.artigo-card[hidden] { display: none; }
.artigo-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(30, 57, 42, 0.12); }
.artigo-card:focus-visible { outline: 3px solid #c2a56c; outline-offset: 3px; }
.artigo-card-img { display: block; width: 100%; height: 12rem; object-fit: cover; }
.artigo-card-corpo { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem; }
.artigo-card-categoria { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.artigo-card-titulo { flex-grow: 1; margin-bottom: 1rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; line-height: 1.25; color: #1e392a; }
.artigo-card-ler { font-weight: 700; color: #86683a; }
.artigo-card:hover .artigo-card-ler { text-decoration: underline; }

/* ===== Blog: filtros e paginação ===== */
.blog-chip {
    flex-shrink: 0; white-space: nowrap; padding: 8px 16px; border-radius: 9999px; font-size: 0.875rem;
    border: 1px solid #d1d5db; background: #fff; color: #374151; transition: all 0.15s ease;
}
.blog-chip:hover { border-color: #c2a56c; color: #1e392a; }
.blog-chip[aria-pressed="true"] { background: #1e392a; border-color: #1e392a; color: #fff; }
.blog-pagina { padding: 8px 16px; border-radius: 6px; background: #e5e7eb; color: #374151; transition: background-color 0.15s ease; }
.blog-pagina:hover { background: #d1d5db; }
.blog-pagina-ativa, .blog-pagina-ativa:hover { background: #1e392a; color: #fff; }

/* ===== Rodapé (inserido por site.js) ===== */
.rodape-marca { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.rodape-titulo { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #c2a56c; margin-bottom: 0.75rem; }
.rodape-link { color: #d1d5db; }
.rodape-link:hover { color: #c2a56c; text-decoration: underline; }
