/* ===========================================================================
   ESPACO DLL — v14
   Folha de estilo das previas editoriais do Hub, das Ferramentas e dos
   Tutoriais (/preview/espaco-dll/).

   Tudo aqui vive sob o escopo .esp. Nenhuma regra global, nenhuma sobrescrita
   de classe do site publico: as paginas atuais continuam exatamente como
   estao, e remover este arquivo junto com a pasta da previa nao deixa
   resquicio em lugar nenhum.

   Paleta: a mesma ja aprovada para a v14, sem roxo em lugar nenhum.
     navy   #2C3853   azul-ardosia da marca (o mesmo de includes/menu.php)
     deep   #131A29   fundo escuro
     deep2  #0F1520   fundo escuro mais profundo (barra, topo do gradiente)
     card   #0E1420   cartao sobre fundo escuro
     wine   #7E0101   vermelho de texto e de botao (11,1:1 sobre branco)
     energy #FF3535   vermelho vivo da marca: fios, pontos, anel de foco
   Sobre fundo navy o vermelho vivo da 3,2:1 — abaixo de AA para texto. Nesse
   caso, e so nesse, entra o tom claro derivado da energy — #FF8A8A, 5,15:1
   sobre o navy —, declarado em --esp-red-luz.
   =========================================================================== */

.esp {
    --esp-navy:      #2C3853;
    --esp-deep:      #131A29;
    --esp-deep-2:    #0F1520;
    --esp-card:      #0E1420;
    --esp-wine:      #7E0101;
    --esp-wine-fundo: #5C0101;   /* wine escurecido, so em hover de botao */
    --esp-red:       #FF3535;
    --esp-red-ink:   var(--esp-wine);
    --esp-red-luz:   #FF8A8A;    /* clareado da energy, so sobre fundo escuro */
    --esp-paper:     #f3f5f9;
    --esp-white:     #ffffff;
    --esp-ink:       #14172a;
    --esp-ink-2:     #3d4460;
    --esp-muted:     #6b7390;
    --esp-line:      #e2e6ef;
    --esp-line-dark: rgba(255, 255, 255, .14);

    --esp-max:   1180px;
    --esp-pad:   clamp(18px, 4vw, 40px);
    --esp-r:     16px;
    --esp-r-sm:  10px;

    --esp-t:     .28s cubic-bezier(.22, .61, .36, 1);

    color: var(--esp-ink);
    background: var(--esp-paper);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: block;
    min-height: 100vh;
}

.esp *,
.esp *::before,
.esp *::after { box-sizing: border-box; }

/* Cabecalhos de conteudo ficam abaixo do menu global do site. */
.esp header { z-index: auto; }

.esp p, .esp h1, .esp h2, .esp h3, .esp h4, .esp h5, .esp ul, .esp ol, .esp figure {
    margin: 0;
}
.esp ul, .esp ol { padding: 0; list-style: none; }
.esp img { max-width: 100%; display: block; }

/* Link herda a cor do contexto — mas ATENCAO a especificidade: `.esp a` vale
   (0,1,1) e vence qualquer regra de componente escrita com uma classe so
   (`.esp-marca`, `.esp-btn-primario`… valem 0,1,0). Foi assim que a marca do
   Espaco DLL saiu em tinta escura (#14172a) sobre a barra escura, mesmo com
   `color:#fff` declarado nela. Regra da casa nesta folha: todo componente que
   e um <a> e declara cor precisa qualificar o seletor com `a.` (0,1,1, e vence
   por vir depois) ou com `.esp ` na frente. Os que precisam disso estao
   marcados com o comentario "cor de link" abaixo. */
.esp a { color: inherit; text-decoration: none; }

/* O atributo hidden precisa vencer o display das proprias classes desta folha
   (.esp-tut e display:flex, por exemplo). Sem isto, o cartao filtrado pelo
   servidor continuaria na tela. */
.esp [hidden] { display: none !important; }

/* Foco visivel em TUDO que recebe teclado. */
.esp :focus-visible {
    outline: 3px solid var(--esp-red);
    outline-offset: 3px;
    border-radius: 4px;
}
.esp-dark :focus-visible { outline-color: var(--esp-red-luz); }

/* --------------------------------------------------------------------------
   Estruturas de base
   -------------------------------------------------------------------------- */
.esp-wrap {
    width: 100%;
    max-width: var(--esp-max);
    margin: 0 auto;
    padding-inline: var(--esp-pad);
}

.esp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--esp-red-ink);
}
.esp-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--esp-red);
    flex: 0 0 auto;
}
.esp-dark .esp-kicker { color: var(--esp-red-luz); }

.esp-titulo-secao {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--esp-navy);
    margin-top: 12px;
}
.esp-dark .esp-titulo-secao { color: #fff; }

.esp-sub {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--esp-muted);
    max-width: 62ch;
}
.esp-dark .esp-sub { color: rgba(226, 231, 245, .72); }

/* --------------------------------------------------------------------------
   Tela de carregamento — UNICA regra desta folha fora do escopo .esp.

   O preloader e do site (includes/header.php + assets/css/style.css) e pinta a
   tela inteira de #1a093f, o roxo que esta onda aposentou: quem abre uma
   previa ve meio segundo de roxo antes do conteudo navy. O arquivo global nao
   pode ser tocado nesta frente, e esta folha so e carregada pelas oito paginas
   de /preview/espaco-dll/ — entao a correcao vale exatamente onde a previa
   manda, e em nenhuma outra pagina do site. Removendo este arquivo, o
   preloader volta a ser o global, sem resquicio.
   -------------------------------------------------------------------------- */
body:has(.esp) .preloader { background: #0F1520; }   /* deep-2, o mesmo da barra */

/* --------------------------------------------------------------------------
   Barra de navegacao do Espaco DLL.
   Navegacao editorial da secao, com a engrenagem oficial da marca a esquerda.
   -------------------------------------------------------------------------- */
.esp-bar {
    background: var(--esp-deep-2);
    border-bottom: 1px solid var(--esp-line-dark);
    /* O cabecalho do site e position:fixed e a folga acompanha a altura dele:
       64px abaixo de 1120px; 112px acima (faixa de utilidade 38px + barra
       74px, antes de a faixa recolher na rolagem). Os valores saem das
       proprias variaveis declaradas em includes/menu.php — se a barra mudar
       de altura, e so este numero que muda aqui. */
    padding-top: 78px;
}
@media (min-width: 1120px) {
    .esp-bar { padding-top: 124px; }
}

/* Primeiro bloco abaixo do menu fixo: 64px no compacto, 112px no desktop,
   mais um pequeno respiro. Substitui o padding superior editorial e mantem
   o fundo do bloco atras do menu. Cobre paginas com o fallback <noscript>
   de esp_barra() e paginas que comecam diretamente pelo conteudo. */
.esp > noscript:first-child + *,
.esp > :not(noscript):first-child {
    padding-top: 78px;
}
@media (min-width: 1120px) {
    .esp > noscript:first-child + *,
    .esp > :not(noscript):first-child { padding-top: 124px; }
}

.esp-bar-in {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 30px);
    min-height: 58px;
    flex-wrap: wrap;
    padding-block: 10px;
}
.esp-marca {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    /* Branco puro, sempre: e a assinatura da secao sobre a barra escura
       (#ffffff sobre #0F1520 = 19,3:1). */
    color: #fff;
    white-space: nowrap;
}
/* cor de link — especificidade acima de `.esp a`, e tambem para :visited,
   que e o estado em que a marca aparece depois da primeira visita. Branco
   sobre a barra #0F1520 da 19,3:1. */
.esp .esp-marca,
.esp a.esp-marca:link,
.esp a.esp-marca:visited,
.esp a.esp-marca:hover,
.esp a.esp-marca:focus,
.esp a.esp-marca:active { color: #fff; }
.esp-marca img {
    width: 30px;
    height: 30px;
    padding: 4px;
    object-fit: contain;
    /* A engrenagem oficial e um simbolo escuro (luminancia mediana de 29 em
       255): sobre a barra #0F1520 ela praticamente desaparecia. O arquivo nao
       foi alterado — ele recebe aqui a pastilha branca da marca, que e o fundo
       em que esse simbolo tem contraste. */
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .92),
                0 2px 10px rgba(255, 53, 53, .30);
}
.esp-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}
.esp-links a {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(226, 231, 245, .78);
    border-radius: 8px;
    transition: color var(--esp-t), background var(--esp-t);
}
.esp-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.esp-links a[aria-current="page"] { color: #fff; }
.esp-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--esp-red);
    border-radius: 2px;
}
.esp-links .esp-voltar {
    color: #fff;
    border: 1px solid var(--esp-line-dark);
    margin-inline-start: 6px;
}
.esp-links .esp-voltar:hover { border-color: var(--esp-red); background: rgba(255, 53, 53, .12); }

/* --------------------------------------------------------------------------
   Hero editorial
   -------------------------------------------------------------------------- */
.esp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(255, 53, 53, .20), transparent 62%),
        radial-gradient(800px 460px at 6% 110%, rgba(44, 56, 83, .95), transparent 60%),
        linear-gradient(168deg, var(--esp-deep-2) 0%, var(--esp-deep) 46%, var(--esp-navy) 100%);
    color: #fff;
    padding-block: clamp(40px, 6vw, 68px) clamp(36px, 5vw, 56px);
}
.esp-hero::after {
    /* trama fina: textura de impressao, quase imperceptivel */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.esp-hero > * { position: relative; z-index: 1; }

.esp-hero h1 {
    margin-top: 16px;
    font-size: clamp(30px, 5.4vw, 54px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    max-width: 17ch;
}
.esp-hero h1 em {
    font-style: normal;
    color: var(--esp-red-luz);
}
.esp-hero .esp-lead {
    margin-top: 18px;
    font-size: clamp(15.5px, 1.6vw, 18px);
    line-height: 1.6;
    color: rgba(226, 231, 245, .78);
    max-width: 56ch;
    font-weight: 300;
}
.esp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--esp-line-dark);
    font-size: 12.5px;
    color: rgba(226, 231, 245, .66);
}
.esp-hero-meta b {
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.esp-trilha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(226, 231, 245, .6);
    flex-wrap: wrap;
}
.esp-trilha a { transition: color var(--esp-t); }
.esp-trilha a:hover { color: #fff; }
.esp-trilha [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   Secoes claras
   -------------------------------------------------------------------------- */
.esp-secao { padding-block: clamp(38px, 5.5vw, 64px); }
.esp-secao-cab { margin-bottom: clamp(22px, 3vw, 34px); }

/* --------------------------------------------------------------------------
   Destaque + indice (capa do Hub)
   -------------------------------------------------------------------------- */
.esp-capa {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}
@media (max-width: 900px) { .esp-capa { grid-template-columns: 1fr; } }

.esp-destaque {
    display: block;
    position: relative;
    border-radius: var(--esp-r);
    overflow: hidden;
    background: var(--esp-navy);
    isolation: isolate;
}
.esp-destaque img {
    width: 100%;
    height: clamp(260px, 38vw, 420px);
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.esp-destaque::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 3, 22, .95) 6%, rgba(8, 3, 22, .66) 42%, rgba(8, 3, 22, .10) 84%);
}
.esp-destaque:hover img { transform: scale(1.04); }
.esp-destaque-txt {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: clamp(20px, 3vw, 34px);
    color: #fff;
}
.esp-destaque-txt h3 {
    margin-top: 12px;
    font-size: clamp(19px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
}
.esp-destaque:hover .esp-destaque-txt h3 {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--esp-red);
}
.esp-destaque-txt p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 58ch;
}
@media (max-width: 560px) { .esp-destaque-txt p { display: none; } }

.esp-indice { display: flex; flex-direction: column; }
.esp-indice-tit {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--esp-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--esp-navy);
}
.esp-indice-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--esp-line);
    transition: background var(--esp-t);
}
.esp-indice-item:hover { background: rgba(44, 56, 83, .035); }
.esp-indice-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--esp-red-ink);
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}
.esp-indice-item h4 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--esp-navy);
    transition: color var(--esp-t);
}
.esp-indice-item:hover h4 { color: var(--esp-red-ink); }
.esp-indice-meta {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--esp-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Controles: busca + filtros (funcionam sem JavaScript, via GET)
   -------------------------------------------------------------------------- */
.esp-controles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 18px;
    border-top: 1px solid var(--esp-line);
    border-bottom: 1px solid var(--esp-line);
}
.esp-busca {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
    min-width: min(100%, 320px);
    transition: border-color var(--esp-t), box-shadow var(--esp-t);
}
.esp-busca:focus-within {
    border-color: var(--esp-red);
    box-shadow: 0 0 0 4px rgba(255, 53, 53, .10);
}
.esp-busca input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--esp-ink);
    padding: 7px 0;
}
.esp-busca input::placeholder { color: #8b93ad; }
.esp-busca button {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    background: var(--esp-navy);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    transition: background var(--esp-t);
}
.esp-busca button:hover { background: var(--esp-red); }

.esp-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.esp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--esp-line);
    background: var(--esp-white);
    font-size: 13px;
    font-weight: 600;
    color: var(--esp-ink-2);
    white-space: nowrap;
    transition: border-color var(--esp-t), color var(--esp-t), background var(--esp-t);
}
.esp-chip:hover { border-color: var(--esp-navy); color: var(--esp-navy); }
/* cor de link: so a cor, para nao passar por cima do estado aria-current logo
   abaixo (ver nota de especificidade no topo da folha). */
.esp a.esp-chip { color: var(--esp-ink-2); }
.esp a.esp-chip[aria-current="true"] { color: #fff; }
.esp-chip .esp-ponto {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--cat, currentColor);
}
.esp-chip[aria-current="true"] {
    background: var(--esp-navy);
    border-color: var(--esp-navy);
    color: #fff;
}
.esp-chip-contagem {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    opacity: .65;
}

.esp-resumo-filtro {
    margin: 18px 0 0;
    font-size: 13.5px;
    color: var(--esp-muted);
}
.esp-resumo-filtro b { color: var(--esp-navy); font-variant-numeric: tabular-nums; }
.esp-resumo-filtro a {
    color: var(--esp-red-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Grade de cartoes
   -------------------------------------------------------------------------- */
.esp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
    margin-top: 26px;
}
.esp-card {
    display: flex;
    flex-direction: column;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    overflow: hidden;
    transition: transform var(--esp-t), box-shadow var(--esp-t), border-color var(--esp-t);
}
.esp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 56, 83, .22);
    box-shadow: 0 16px 40px rgba(20, 23, 42, .10);
}
.esp-card-fig {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe4ee;
}
.esp-card-fig img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.esp-card:hover .esp-card-fig img { transform: scale(1.045); }
.esp-card-fig::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 56, 83, .34), transparent 55%);
}
.esp-card-corpo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1;
}
.esp-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: -.01em;
    color: var(--esp-navy);
    transition: color var(--esp-t);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esp-card:hover h3 { color: var(--esp-red-ink); }
.esp-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--esp-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esp-card-rodape {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--esp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: var(--esp-muted);
    font-variant-numeric: tabular-nums;
}
.esp-card-rodape .esp-ler {
    font-weight: 700;
    color: var(--esp-red-ink);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.esp-card-rodape .esp-ler span { display: inline-block; transition: transform var(--esp-t); }
.esp-card:hover .esp-card-rodape .esp-ler span { transform: translateX(3px); }

/* etiqueta de categoria — a cor vem do proprio catalogo, via --cat */
.esp-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--esp-navy);
}
.esp-tag::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--cat, var(--esp-red));
    flex: 0 0 auto;
}
.esp-tag-claro { color: rgba(255, 255, 255, .92); }

/* --------------------------------------------------------------------------
   Vazio
   -------------------------------------------------------------------------- */
.esp-vazio {
    text-align: center;
    padding: clamp(44px, 8vw, 80px) 20px;
    border: 1px dashed #c9cfdd;
    border-radius: var(--esp-r);
    background: var(--esp-white);
    margin-top: 26px;
}
.esp-vazio h3 { font-size: 19px; font-weight: 800; color: var(--esp-navy); }
.esp-vazio p { margin-top: 8px; font-size: 14.5px; color: var(--esp-muted); }
.esp-vazio .esp-btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Paginacao
   -------------------------------------------------------------------------- */
.esp-pag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}
.esp-pag a, .esp-pag span {
    min-width: 40px;
    height: 40px;
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--esp-r-sm);
    border: 1px solid var(--esp-line);
    background: var(--esp-white);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--esp-ink-2);
    font-variant-numeric: tabular-nums;
    transition: border-color var(--esp-t), color var(--esp-t), background var(--esp-t);
}
.esp-pag a:hover { border-color: var(--esp-navy); color: var(--esp-navy); }
.esp-pag [aria-current="page"] {
    background: var(--esp-navy);
    border-color: var(--esp-navy);
    color: #fff;
}
.esp-pag .esp-pag-vazio { border: 0; background: transparent; color: var(--esp-muted); }

/* --------------------------------------------------------------------------
   Leitura do artigo
   -------------------------------------------------------------------------- */
.esp-artigo-topo { padding-block: clamp(26px, 4vw, 44px) 0; }
.esp-artigo-cab { max-width: 76ch; }
.esp-artigo-cab h1 {
    margin-top: 14px;
    font-size: clamp(26px, 3.8vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.028em;
    color: var(--esp-navy);
}
.esp-artigo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--esp-line);
    font-size: 12.5px;
    color: var(--esp-muted);
}
.esp-artigo-meta b { color: var(--esp-ink-2); font-weight: 600; }

.esp-artigo-fig {
    margin-top: 26px;
    border-radius: var(--esp-r);
    overflow: hidden;
    border: 1px solid var(--esp-line);
}
.esp-artigo-fig img {
    width: 100%;
    height: clamp(210px, 34vw, 400px);
    object-fit: cover;
}

.esp-artigo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(26px, 4vw, 52px);
    align-items: start;
    margin-top: clamp(28px, 4vw, 44px);
}
@media (max-width: 980px) { .esp-artigo-layout { grid-template-columns: 1fr; } }

/* Corpo: tipografia de leitura longa. O HTML vem do catalogo e nao e
   reescrito — so recebe estilo. */
.esp-corpo {
    font-size: 16.5px;
    line-height: 1.78;
    color: #2b3148;
    max-width: 72ch;
}
.esp-corpo > * + * { margin-top: 1.15em; }
.esp-corpo p { margin: 0; }
.esp-corpo h2 {
    margin-top: 1.9em;
    font-size: clamp(20px, 2.4vw, 25px);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -.02em;
    color: var(--esp-navy);
    padding-top: .7em;
    border-top: 1px solid var(--esp-line);
}
.esp-corpo h3 {
    margin-top: 1.7em;
    font-size: clamp(17px, 2vw, 19.5px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--esp-navy);
}
.esp-corpo strong { color: var(--esp-navy); font-weight: 700; }
.esp-corpo em { font-style: italic; }
.esp-corpo a {
    color: var(--esp-red-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.esp-corpo ul, .esp-corpo ol { padding-left: 0; display: grid; gap: .6em; }
.esp-corpo li { position: relative; padding-left: 1.6em; }
.esp-corpo ul > li::before {
    content: '';
    position: absolute;
    left: 0; top: .72em;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--esp-red);
}
.esp-corpo ol { counter-reset: esp-ol; }
.esp-corpo ol > li { counter-increment: esp-ol; }
.esp-corpo ol > li::before {
    content: counter(esp-ol);
    position: absolute;
    left: 0; top: .1em;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--esp-red-ink);
    font-variant-numeric: tabular-nums;
}
.esp-corpo .hub-article-lead {
    font-size: clamp(17px, 2vw, 19.5px);
    line-height: 1.65;
    font-weight: 400;
    color: var(--esp-ink-2);
    padding-left: 18px;
    border-left: 3px solid var(--esp-red);
}
.esp-corpo .hub-callout {
    background: #fff;
    border: 1px solid var(--esp-line);
    border-left: 3px solid var(--esp-navy);
    border-radius: var(--esp-r-sm);
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.66;
}
.esp-corpo .hub-callout > * + * { margin-top: .7em; }

.esp-lateral { display: grid; gap: 18px; position: sticky; top: 100px; }
@media (max-width: 980px) { .esp-lateral { position: static; } }
.esp-bloco {
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    padding: 20px;
}
.esp-bloco-tit {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--esp-navy);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--esp-line);
    margin-bottom: 14px;
}
.esp-mini {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--esp-line);
}
.esp-bloco .esp-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.esp-mini img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; }
.esp-mini h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--esp-navy);
    transition: color var(--esp-t);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esp-mini:hover h3 { color: var(--esp-red-ink); }
.esp-mini time { font-size: 11px; color: var(--esp-muted); }

.esp-lista-links { display: grid; gap: 2px; }
.esp-lista-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--esp-ink-2);
    transition: background var(--esp-t), color var(--esp-t);
}
.esp-lista-links a:hover { background: rgba(44, 56, 83, .05); color: var(--esp-navy); }
.esp-lista-links .esp-ponto {
    width: 9px; height: 9px;
    border-radius: 3px;
    flex: 0 0 auto;
    background: var(--cat, var(--esp-red));
}
.esp-lista-links .esp-qtd { margin-inline-start: auto; font-size: 11.5px; color: var(--esp-muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Botoes e chamadas
   -------------------------------------------------------------------------- */
.esp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background var(--esp-t), color var(--esp-t), border-color var(--esp-t), transform var(--esp-t);
}
.esp-btn:hover { transform: translateY(-2px); }
.esp-btn svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; }

/* O preenchimento do botao primario usa o wine (#7E0101), nao a energy:
   branco sobre #FF3535 da 3,08:1, abaixo do minimo de 4,5:1 exigido para
   texto de 14px; sobre o wine sao 11,10:1. A energy continua sendo a cor da
   marca nos fios, nos pontos de categoria e no anel de foco, onde a regra
   aplicavel e a de 3:1 de componente. */
.esp-btn-primario { background: var(--esp-red-ink); color: #fff; }
.esp-btn-primario:hover { background: var(--esp-wine-fundo); }

.esp-btn-navy { background: var(--esp-navy); color: #fff; }
.esp-btn-navy:hover { background: var(--esp-deep); }

.esp-btn-linha {
    background: transparent;
    border-color: #c9cfdd;
    color: var(--esp-navy);
}
.esp-btn-linha:hover { border-color: var(--esp-navy); background: rgba(44, 56, 83, .04); }

.esp-dark .esp-btn-linha, .esp-cta .esp-btn-linha { border-color: rgba(255, 255, 255, .3); color: #fff; }
.esp-dark .esp-btn-linha:hover, .esp-cta .esp-btn-linha:hover { border-color: #fff; background: rgba(255, 255, 255, .10); }

.esp-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* cor de link: os CTAs sao <a class="esp-btn …">. Sem o `a.` no seletor, o
   branco do rotulo perde para `.esp a { color: inherit }` (ver nota no topo) e
   o texto sai em tinta escura sobre o wine — 2,2:1, ilegivel. Aqui vai so a
   COR; fundo e borda continuam nas regras acima. */
.esp a.esp-btn-primario,
.esp a.esp-btn-navy { color: #fff; }
.esp a.esp-btn-linha { color: var(--esp-navy); }
.esp .esp-dark a.esp-btn-linha,
.esp .esp-cta a.esp-btn-linha { color: #fff; }

.esp-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--esp-r);
    background:
        radial-gradient(700px 320px at 92% 0%, rgba(255, 53, 53, .22), transparent 60%),
        linear-gradient(140deg, var(--esp-card), var(--esp-deep) 42%, var(--esp-navy));
    color: #fff;
    padding: clamp(26px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}
@media (max-width: 760px) { .esp-cta { grid-template-columns: 1fr; } }
.esp-cta h3 {
    margin-top: 12px;
    font-size: clamp(19px, 2.6vw, 25px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
}
.esp-cta p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(226, 231, 245, .78);
    max-width: 54ch;
}
.esp-cta-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

.esp-nota {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--esp-muted);
}
.esp-dark .esp-nota, .esp-cta .esp-nota { color: rgba(226, 231, 245, .66); }

/* --------------------------------------------------------------------------
   FERRAMENTAS — vitrine
   -------------------------------------------------------------------------- */
.esp-ferr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(18px, 2.6vw, 28px);
}
.esp-ferr {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    padding: clamp(22px, 3vw, 30px);
    transition: transform var(--esp-t), box-shadow var(--esp-t), border-color var(--esp-t);
}
.esp-ferr:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 56, 83, .2);
    box-shadow: 0 18px 44px rgba(20, 23, 42, .10);
}
.esp-ferr-ic {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(255, 53, 53, .12), rgba(44, 56, 83, .10));
    border: 1px solid var(--esp-line);
}
.esp-ferr-ic svg { width: 22px; height: 22px; stroke: var(--esp-navy); fill: none; stroke-width: 1.8; }
.esp-ferr h3 { font-size: 19px; font-weight: 800; color: var(--esp-navy); letter-spacing: -.015em; }
.esp-ferr > p { font-size: 14.5px; line-height: 1.65; color: var(--esp-muted); }
.esp-ferr ul { display: grid; gap: 8px; }
.esp-ferr li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--esp-ink-2);
}
.esp-ferr li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--esp-red);
}
.esp-ferr-acao { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   GERADOR DE SENHAS
   -------------------------------------------------------------------------- */
.esp-gen {
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    overflow: hidden;
}
.esp-gen-topo {
    background: linear-gradient(140deg, var(--esp-deep-2), var(--esp-navy) 85%);
    padding: clamp(20px, 3vw, 28px);
}
.esp-saida {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--esp-line-dark);
    border-radius: var(--esp-r-sm);
    padding: 18px;
    min-height: 74px;
    transition: border-color var(--esp-t), background var(--esp-t);
}
.esp-saida.esp-ok { border-color: #4ade80; background: rgba(74, 222, 128, .10); }
.esp-saida output {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;
    font-size: clamp(16px, 2.6vw, 23px);
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    word-break: break-all;
    line-height: 1.35;
}
.esp-saida output.esp-oculto {
    -webkit-text-security: disc;
    text-security: disc;
    letter-spacing: .18em;
}
.esp-saida output:empty::after {
    content: attr(data-vazio);
    color: rgba(226, 231, 245, .5);
    font-weight: 500;
    letter-spacing: 0;
    font-size: 15px;
}
.esp-icone-btn {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background var(--esp-t), border-color var(--esp-t);
}
.esp-icone-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .42); }
.esp-icone-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.esp-forca {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.esp-forca-barra {
    flex: 1;
    min-width: 140px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.esp-forca-barra i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--esp-red);
    transition: width .45s cubic-bezier(.22, .61, .36, 1), background .3s;
}
.esp-forca-txt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.esp-forca-entropia {
    font-size: 11.5px;
    color: rgba(226, 231, 245, .7);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.esp-gen-acoes {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.esp-gen-acoes .esp-btn { flex: 1 1 190px; }

.esp-gen-ctrl { padding: clamp(20px, 3vw, 28px); display: grid; gap: 22px; }
.esp-campo-tit {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--esp-ink-2);
    margin-bottom: 10px;
}
.esp-campo-tit output {
    font-size: 15px;
    font-weight: 800;
    color: var(--esp-navy);
    font-variant-numeric: tabular-nums;
}
.esp-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--esp-red) 0%, #e08800 38%, #15803d 78%);
    outline: 0;
    cursor: pointer;
}
.esp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--esp-navy);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(20, 23, 42, .28);
    cursor: pointer;
}
.esp-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--esp-navy);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(20, 23, 42, .28);
    cursor: pointer;
}

.esp-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}
.esp-op {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r-sm);
    background: #fafbfd;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--esp-ink-2);
    cursor: pointer;
    transition: border-color var(--esp-t), background var(--esp-t), color var(--esp-t);
}
.esp-op:hover { border-color: var(--esp-navy); background: #fff; }
.esp-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.esp-op .esp-marca-check {
    width: 19px; height: 19px;
    flex: 0 0 auto;
    border-radius: 5px;
    border: 2px solid #b9c0d2;
    display: grid;
    place-items: center;
    transition: background var(--esp-t), border-color var(--esp-t);
}
.esp-op .esp-marca-check svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3.2; opacity: 0; transition: opacity var(--esp-t); }
.esp-op:has(input:checked) { border-color: var(--esp-navy); background: rgba(44, 56, 83, .045); color: var(--esp-navy); }
.esp-op:has(input:checked) .esp-marca-check { background: var(--esp-navy); border-color: var(--esp-navy); }
.esp-op:has(input:checked) .esp-marca-check svg { opacity: 1; }
.esp-op:has(input:focus-visible) { outline: 3px solid var(--esp-red); outline-offset: 3px; }
.esp-op small { display: block; font-weight: 400; font-size: 11.5px; color: var(--esp-muted); }
/* Sem :has() (navegador antigo) o JS aplica esta classe. */
.esp-op.esp-op-on { border-color: var(--esp-navy); background: rgba(44, 56, 83, .045); color: var(--esp-navy); }
.esp-op.esp-op-on .esp-marca-check { background: var(--esp-navy); border-color: var(--esp-navy); }
.esp-op.esp-op-on .esp-marca-check svg { opacity: 1; }

.esp-aviso {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--esp-line);
    border-left: 3px solid var(--esp-red);
    border-radius: var(--esp-r-sm);
    padding: 15px 17px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--esp-ink-2);
}
.esp-aviso svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; stroke: var(--esp-red-ink); fill: none; stroke-width: 1.9; }
.esp-aviso strong { color: var(--esp-navy); }

.esp-status {
    font-size: 12.5px;
    color: var(--esp-muted);
    min-height: 1.2em;
}
.esp-status.esp-status-ok { color: #15803d; font-weight: 600; }
.esp-status.esp-status-erro { color: var(--esp-red-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   TESTE DE VELOCIDADE
   -------------------------------------------------------------------------- */
.esp-vel {
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    overflow: hidden;
}
/* Mesma dimensão do medidor incorporado na página publicada. */
.esp-vel-palco {
    background: #fff;
}
.esp-vel-palco iframe {
    width: 100%;
    height: 680px;
    border: 0;
    display: block;
    background: #fff;
}
@media (max-width: 640px) {
    .esp-vel-palco iframe { height: 520px; }
}

.esp-vel-passos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    background: var(--esp-line);
    border-top: 1px solid var(--esp-line);
}
.esp-vel-passo { background: var(--esp-white); padding: 20px; }
.esp-vel-passo b {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--esp-red-ink);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.esp-vel-passo h4 { font-size: 15px; font-weight: 700; color: var(--esp-navy); margin-bottom: 6px; }
.esp-vel-passo p { font-size: 13.5px; line-height: 1.6; color: var(--esp-muted); }

/* --------------------------------------------------------------------------
   TUTORIAIS
   -------------------------------------------------------------------------- */
.esp-tut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(18px, 2.4vw, 26px);
}
.esp-tut {
    display: flex;
    flex-direction: column;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    overflow: hidden;
    transition: transform var(--esp-t), box-shadow var(--esp-t), border-color var(--esp-t);
}
.esp-tut:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 56, 83, .2);
    box-shadow: 0 16px 40px rgba(20, 23, 42, .10);
}
.esp-tut-fig { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe4ee; }
.esp-tut-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.esp-tut:hover .esp-tut-fig img { transform: scale(1.045); }
.esp-tut-fig::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 21, 32, .78), rgba(15, 21, 32, .08) 62%);
}
.esp-tut-fig .esp-tag {
    position: absolute;
    left: 16px; bottom: 14px;
    z-index: 1;
}
.esp-tut-corpo { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.esp-tut h3 { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--esp-navy); letter-spacing: -.015em; transition: color var(--esp-t); }
.esp-tut:hover h3 { color: var(--esp-red-ink); }
.esp-tut p { font-size: 13.5px; line-height: 1.6; color: var(--esp-muted); }
.esp-tut-rodape {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--esp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: var(--esp-muted);
}
.esp-tut-rodape .esp-ler { font-weight: 700; color: var(--esp-red-ink); }

/* Passos do tutorial */
.esp-passos { display: grid; gap: 14px; }
.esp-passo {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    padding: clamp(18px, 2.4vw, 24px);
    scroll-margin-top: 110px;
    transition: border-color var(--esp-t), box-shadow var(--esp-t);
}
.esp-passo:target,
.esp-passo.esp-passo-ativo {
    border-color: rgba(255, 53, 53, .5);
    box-shadow: 0 0 0 3px rgba(255, 53, 53, .10);
}
@media (max-width: 600px) { .esp-passo { grid-template-columns: 1fr; gap: 12px; } }
.esp-passo-num {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--esp-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.esp-passo h3 { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--esp-navy); }
.esp-passo > div > p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--esp-ink-2); }
.esp-passo .esp-passo-dica {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--esp-muted);
    padding-left: 14px;
    border-left: 2px solid var(--esp-line);
}
.esp-passo strong { color: var(--esp-navy); font-weight: 700; }

/* Indice lateral navegavel */
.esp-tut-indice { display: grid; gap: 2px; }
.esp-tut-indice a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--esp-ink-2);
    transition: background var(--esp-t), color var(--esp-t);
}
.esp-tut-indice a:hover { background: rgba(44, 56, 83, .05); color: var(--esp-navy); }
.esp-tut-indice a b { font-size: 11.5px; font-weight: 800; color: var(--esp-red-ink); font-variant-numeric: tabular-nums; }
.esp-tut-indice a.esp-ativo { background: var(--esp-navy); color: #fff; }
.esp-tut-indice a.esp-ativo b { color: var(--esp-red-luz); }

.esp-resultado {
    background: linear-gradient(140deg, rgba(44, 56, 83, .05), rgba(255, 53, 53, .05));
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    padding: clamp(20px, 3vw, 26px);
}
.esp-resultado h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--esp-navy);
}
.esp-resultado h3 svg { width: 20px; height: 20px; stroke: #15803d; fill: none; stroke-width: 2.2; }
.esp-resultado p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--esp-ink-2); }

.esp-fontes { display: grid; gap: 10px; }
.esp-fonte {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r-sm);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--esp-ink-2);
    transition: border-color var(--esp-t), background var(--esp-t);
}
.esp-fonte:hover { border-color: var(--esp-navy); }
.esp-fonte svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; stroke: var(--esp-muted); fill: none; stroke-width: 1.9; }
.esp-fonte b { display: block; color: var(--esp-navy); font-weight: 700; }
.esp-fonte span { font-size: 12px; color: var(--esp-muted); word-break: break-all; }

.esp-navegacao-tut {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.esp-nav-card {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    background: var(--esp-white);
    border: 1px solid var(--esp-line);
    border-radius: var(--esp-r);
    transition: border-color var(--esp-t), transform var(--esp-t);
}
.esp-nav-card:hover { border-color: var(--esp-navy); transform: translateY(-2px); }
.esp-nav-card small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--esp-red-ink);
}
.esp-nav-card b { font-size: 15px; font-weight: 700; color: var(--esp-navy); line-height: 1.35; }
.esp-nav-card.esp-nav-fim { text-align: right; }

/* --------------------------------------------------------------------------
   Rodape da previa — volta para a Home e para as outras previas
   -------------------------------------------------------------------------- */
.esp-rodape {
    background: var(--esp-deep-2);
    color: rgba(226, 231, 245, .74);
    padding-block: clamp(26px, 4vw, 40px);
}
.esp-rodape-in {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.esp-rodape a { color: #fff; font-weight: 600; }
.esp-rodape a:hover { color: var(--esp-red-luz); }
.esp-rodape-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Animacao de entrada — some por completo com prefers-reduced-motion
   -------------------------------------------------------------------------- */
.esp-anima {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.esp-anima.esp-visivel { opacity: 1; transform: none; }

/* Rede de seguranca: quem revela os blocos e o JavaScript. Sem ele, nada
   poderia ficar invisivel — conteudo escondido por animacao que nunca roda e
   conteudo perdido. Os dois caminhos abaixo cobrem o caso: a consulta de midia
   nos navegadores que a suportam e o <noscript> emitido por esp_barra() nos
   demais. */
@media (scripting: none) {
    .esp-anima { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .esp *,
    .esp *::before,
    .esp *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .esp-anima { opacity: 1; transform: none; }
    .esp-card:hover, .esp-ferr:hover, .esp-tut:hover, .esp-btn:hover, .esp-nav-card:hover { transform: none; }
    .esp-card:hover .esp-card-fig img,
    .esp-tut:hover .esp-tut-fig img,
    .esp-destaque:hover img { transform: none; }
}

/* Impressao: tutorial e artigo saem legiveis em papel. */
@media print {
    .esp-bar, .esp-rodape, .esp-cta, .esp-lateral, .esp-navegacao-tut { display: none !important; }
    .esp, .esp-hero { background: #fff !important; color: #000 !important; }
    .esp-hero h1, .esp-hero .esp-lead, .esp-hero-meta { color: #000 !important; }
    .esp-passo { break-inside: avoid; border-color: #bbb; }
}
