/*
 Theme Name:   LPX Starter Kit 2026
 Theme URI:    https://lpx.com.br/
 Description:  Base de infraestrutura: Tradução, Performance e Acessibilidade Global.
 Author:       LPX Development / Kairos Flow
 Author URI:   https://lpx.com.br/
 Template:     hello-elementor
 Version:      3.2.0
 Text Domain:  lpx
*/

/*
   ÍNDICE
   ------
    1. PERFORMANCE & RENDERIZAÇÃO
    2. BLINDAGEM GOOGLE TRANSLATE
    3. ACESSIBILIDADE GLOBAL
    4. TRADUTOR UI (CONTAINER)
    5. TRADUTOR CUSTOMIZADO (DROPDOWN) — UI COMPLETA
    6. EFEITOS VISUAIS LPX
    7. SCROLL REVEAL
    8. SKELETON LOADING
    9. BARRA DE AVISO (TOP ALERT)
   10. BOTÃO WHATSAPP FLUTUANTE
   11. ACESSIBILIDADE: TAMANHO DE FONTE
   12. COOKIE BANNER LGPD
   13. BREADCRUMB
   14. BOTÃO WHATSAPP INLINE [lpx_btn_wa]
   15. HORÁRIO DE FUNCIONAMENTO [lpx_horario]
   16. REDUCED MOTION (PREFERÊNCIA DO SISTEMA)
   17. DARK MODE (COMENTADO — ATIVAR POR PROJETO)
   18. SCREEN READER / ACESSIBILIDADE UTILITÁRIOS
*/


/* ========================================================
   1. PERFORMANCE & RENDERIZAÇÃO
   ======================================================== */

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    top: 0 !important;
    position: static !important;
}

::selection {
    background: #ED3566;
    color: #fff;
}
/* Font Awesome — evita FOIT (texto invisível durante carregamento) */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-display: swap;
}

/* ========================================================
   2. BLINDAGEM GOOGLE TRANSLATE
   FIX v3.2: .skiptranslate usa height:0 em vez de display:none
   para não esconder o .goog-te-combo necessário para a tradução.
   ======================================================== */

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.skiptranslate > iframe,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

/* NÃO usar display:none em .skiptranslate — contém o combo interno */
.skiptranslate {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ========================================================
   3. ACESSIBILIDADE GLOBAL
   ======================================================== */

:focus-visible {
    outline: 3px solid #ED3566 !important;
    outline-offset: 3px !important;
}

body.lpx-high-contrast:not(.elementor-editor-active) {
    filter: invert(1) hue-rotate(180deg) !important;
    background-color: #000 !important;
}

body.lpx-high-contrast:not(.elementor-editor-active) img,
body.lpx-high-contrast:not(.elementor-editor-active) video,
body.lpx-high-contrast:not(.elementor-editor-active) svg,
body.lpx-high-contrast:not(.elementor-editor-active) iframe,
body.lpx-high-contrast:not(.elementor-editor-active) .elementor-background-overlay,
body.lpx-high-contrast:not(.elementor-editor-active) [style*="background-image"] {
    filter: invert(1) hue-rotate(180deg) !important;
}

.lpx-contrast-toggle {
    background-color: var(--e-global-color-accent, #ED3566);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.lpx-contrast-toggle:hover {
    opacity: 0.85;
}


/* ========================================================
   4. TRADUTOR UI (CONTAINER)
   ======================================================== */

.lpx-translate-container {
    z-index: 99999 !important;
    position: relative;
}


/* ========================================================
   5. TRADUTOR CUSTOMIZADO (DROPDOWN) — UI COMPLETA
   ======================================================== */

.lpx-custom-dropdown {
    position: relative;
    cursor: pointer;
    display: inline-flex;
}

.lpx-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: color 0.2s;
}

.lpx-dropdown-trigger:hover { color: #ED3566; }

.lpx-dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: #fff;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 160px;
    z-index: 9999;
    overflow: hidden;
}

.lpx-dropdown-menu.active {
    display: block;
    animation: lpxFadeInUp 0.3s ease;
}

@keyframes lpxFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lpx-lang-option {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    cursor: pointer;
}

.lpx-lang-option:last-child { border-bottom: none; }

.lpx-lang-code {
    font-weight: 800;
    padding: 12px;
    border-right: 1px solid #f1f5f9;
    min-width: 50px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s;
}

.lpx-lang-name {
    padding: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lpx-lang-option:hover { background: #f8fafc; }
.lpx-lang-option:hover .lpx-lang-code { color: #ED3566; }


/* ========================================================
   6. EFEITOS VISUAIS LPX
   ======================================================== */

.card-premium {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card-premium:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(51, 105, 158, 0.15) !important;
}


/* ========================================================
   7. SCROLL REVEAL
   ======================================================== */

body:not(.elementor-editor-active) .revelar-suave {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    visibility: hidden !important;
    transition:
        opacity    0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s   linear 0.8s !important;
}

body:not(.elementor-editor-active) .revelar-suave.revelar-ativo {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    transition:
        opacity    0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s   linear 0s !important;
}


/* ========================================================
   8. SKELETON LOADING — classe: lpx-loading
   ======================================================== */

.lpx-loading {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 936px 104px;
    background-repeat: no-repeat;
    animation: lpxSkeletonShimmer 1.5s linear infinite forwards;
}

@keyframes lpxSkeletonShimmer {
    0%   { background-position: -468px 0; }
    100% { background-position:  468px 0; }
}


/* ========================================================
   9. BARRA DE AVISO (TOP ALERT)
   ======================================================== */

.lpx-top-alert {
    background: #ED3566;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-weight: bold;
    position: relative;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}


/* ========================================================
   10. BOTÃO WHATSAPP FLUTUANTE
   ======================================================== */

.lpx-wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.lpx-wa-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
}

.lpx-wa-float::before {
    content: "\f232";
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
    font-size: 32px;
    color: #fff;
    line-height: 1;
}

@media (max-width: 768px) {
    .lpx-wa-float          { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .lpx-wa-float::before  { font-size: 26px; }
}


/* ========================================================
   11. ACESSIBILIDADE: TAMANHO DE FONTE
   FIX v3.1: 4 níveis em cada direção, steps ~12% por clique.
   Shortcode: [lpx_info id="fonte"]

   Mapa:
   -4 → 54%  |  -3 → 66%  |  -2 → 78%  |  -1 → 90%
    0 → padrão do tema (sem classe)
   +1 → 110% |  +2 → 122% |  +3 → 134% |  +4 → 150%
   ======================================================== */

body.lpx-font-n4 { font-size: 54%  !important; }
body.lpx-font-n3 { font-size: 66%  !important; }
body.lpx-font-n2 { font-size: 78%  !important; }
body.lpx-font-n1 { font-size: 90%  !important; }
body.lpx-font-1  { font-size: 110% !important; }
body.lpx-font-2  { font-size: 122% !important; }
body.lpx-font-3  { font-size: 134% !important; }
body.lpx-font-4  { font-size: 150% !important; }

.lpx-font-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.lpx-font-btn {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px 11px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lpx-font-btn:hover {
    background: #ED3566;
    color: #fff;
    border-color: #ED3566;
}

.lpx-font-reset {
    font-size: 1em;
    padding: 5px 14px;
}


/* ========================================================
   12. COOKIE BANNER LGPD
   ======================================================== */

.lpx-lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 999999;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.lpx-lgpd-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}

.lpx-lgpd-text a { color: #ED3566; text-decoration: underline; }

.lpx-lgpd-actions { display: flex; gap: 10px; flex-shrink: 0; }

.lpx-lgpd-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lpx-lgpd-accept            { background: #ED3566; color: #fff; }
.lpx-lgpd-accept:hover      { background: #c81e52; }
.lpx-lgpd-decline           { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.lpx-lgpd-decline:hover     { background: rgba(255,255,255,0.1); }

@media (max-width: 600px) {
    .lpx-lgpd-banner         { flex-direction: column; text-align: center; }
    .lpx-lgpd-actions        { width: 100%; justify-content: center; }
    .lpx-lgpd-btn            { flex: 1; }
}


/* ========================================================
   13. BREADCRUMB
   ======================================================== */

.lpx-breadcrumb             { font-size: 14px; }
.lpx-breadcrumb ol          { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lpx-breadcrumb .lpx-crumb a { color: inherit; text-decoration: none; opacity: 0.65; transition: opacity 0.2s; }
.lpx-breadcrumb .lpx-crumb a:hover { opacity: 1; text-decoration: underline; }
.lpx-breadcrumb .lpx-crumb-sep { opacity: 0.35; font-size: 12px; user-select: none; }


/* ========================================================
   14. BOTÃO WHATSAPP INLINE [lpx_btn_wa]
   Personalize cores e tamanho por projeto.
   ======================================================== */

.lpx-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    line-height: 1.2;
}

.lpx-btn-wa:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.lpx-btn-wa:active {
    transform: translateY(0);
}

.lpx-btn-wa .fab.fa-whatsapp {
    font-size: 1.2em;
    line-height: 1;
}

/* Variante full-width (adicione classe "lpx-btn-wa-full" no shortcode) */
.lpx-btn-wa-full {
    display: flex;
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    .lpx-btn-wa {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 13px 20px;
    }
}


/* ========================================================
   15. HORÁRIO DE FUNCIONAMENTO [lpx_horario]
   ======================================================== */

.lpx-horario {
    display: inline;
    font-size: inherit;
    color: inherit;
}

.lpx-horario-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lpx-horario-lista li {
    font-size: 14px;
    color: inherit;
    line-height: 1.6;
}

.lpx-horario-lista strong {
    font-weight: 700;
    margin-right: 4px;
}


/* ========================================================
   16. REDUCED MOTION (PREFERÊNCIA DO SISTEMA)
   ======================================================== */

@media (prefers-reduced-motion: reduce) {

    *[class*="lpx-"] {
        transition: none !important;
        animation: none !important;
    }

    .card-premium:hover { transform: none !important; }

    body:not(.elementor-editor-active) .revelar-suave {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }

    body:not(.elementor-editor-active) .revelar-suave.revelar-ativo {
        transition: none !important;
    }

    .lpx-wa-float:hover { transform: none !important; }

    .lpx-btn-wa:hover   { transform: none !important; }

    .lpx-loading {
        animation: none !important;
        background-image: none !important;
        background-color: #edeef1 !important;
    }
}


/* ========================================================
   17. DARK MODE (COMENTADO — ATIVAR POR PROJETO)
   ======================================================== */

/*
@media (prefers-color-scheme: dark) {
    :root {
        --lpx-bg:      #121212;
        --lpx-surface: #1e1e1e;
        --lpx-text:    #e0e0e0;
        --lpx-muted:   #a0a0a0;
        --lpx-accent:  #ED3566;
        --lpx-border:  rgba(255,255,255,0.1);
    }

    body {
        background-color: var(--lpx-bg);
        color: var(--lpx-text);
    }

    a { color: var(--lpx-accent); }

    .lpx-lgpd-banner { background: #0d0d1a; }
}
*/


/* ========================================================
   18. SCREEN READER / ACESSIBILIDADE UTILITÁRIOS
   ======================================================== */

.lpx-sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
    white-space: nowrap;
}

html.lpx-font-n4 body { font-size: 54% !important; }
html.lpx-font-n3 body { font-size: 66% !important; }
html.lpx-font-n2 body { font-size: 78% !important; }
html.lpx-font-n1 body { font-size: 90% !important; }
html.lpx-font-1  body { font-size: 110% !important; }
html.lpx-font-2  body { font-size: 122% !important; }
html.lpx-font-3  body { font-size: 134% !important; }
html.lpx-font-4  body { font-size: 150% !important; }

/*Adicional*/
/* ============================================================
   TRANSPARÊNCIA — Documentos por Ano
   Versão: 2.0
   Compatível com: WordPress + Elementor
   Onde aplicar: Elementor > Additional CSS  ou  Tema > CSS Adicional
   ============================================================ */

/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
    --tp-brand:         #1e5a96;
    --tp-brand-light:   #e8f1fb;
    --tp-brand-hover:   #164a80;

    --tp-text:          #1a1a2e;
    --tp-text-muted:    #6b7280;
    --tp-text-hint:     #9ca3af;

    --tp-bg-card:       #ffffff;
    --tp-bg-surface:    #f4f6f9;
    --tp-bg-hover:      #f8fafc;

    --tp-border:        rgba(0, 0, 0, 0.09);
    --tp-border-hover:  rgba(30, 90, 150, 0.25);
    --tp-border-focus:  rgba(30, 90, 150, 0.5);

    --tp-radius-card:   12px;
    --tp-radius-badge:  5px;
    --tp-radius-btn:    8px;
    --tp-radius-pill:   50px;

    --tp-shadow-card:   0 2px 8px rgba(30, 90, 150, 0.07);
    --tp-shadow-hover:  0 4px 16px rgba(30, 90, 150, 0.12);

    --tp-transition:    0.18s ease;
}


/* ============================================================
   SEÇÃO WRAPPER
   ============================================================ */
.tp-section {
    padding: 2rem 0 3.5rem;
    width: 100%;
}

.tp-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.25rem;
}


/* ============================================================
   NAVEGAÇÃO DE ANOS
   ============================================================ */
.tp-year-nav {
    display: flex;
    align-items: center;
    background: var(--tp-bg-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-pill);
    padding: 4px;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
}
.tp-year-nav::-webkit-scrollbar {
    display: none;
}

.tp-year-btn {
    flex: 1;
    min-width: 68px;
    padding: 9px 20px;
    border-radius: var(--tp-radius-pill);
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    color: var(--tp-text-muted);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--tp-transition), color var(--tp-transition);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}

.tp-year-btn:hover {
    color: var(--tp-text);
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.tp-year-btn.active {
    background: #ffffff;
    color: var(--tp-text);
    font-weight: 600;
    border: 1px solid var(--tp-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

/* Anos sem documentos — visual mais discreto */
.tp-year-btn[data-empty="true"] {
    opacity: 0.6;
}
.tp-year-btn[data-empty="true"].active {
    opacity: 1;
}


/* ============================================================
   FILTRO DE CATEGORIAS (opcional)
   ============================================================ */
.tp-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.tp-cat-btn {
    padding: 5px 14px;
    border-radius: var(--tp-radius-pill);
    border: 1px solid var(--tp-border);
    background: var(--tp-bg-card);
    font-size: 13px;
    color: var(--tp-text-muted);
    text-decoration: none;
    transition: all var(--tp-transition);
    -webkit-tap-highlight-color: transparent;
}

.tp-cat-btn:hover {
    border-color: var(--tp-border-hover);
    color: var(--tp-brand);
    text-decoration: none;
}

.tp-cat-btn.active {
    background: var(--tp-brand-light);
    border-color: var(--tp-brand);
    color: var(--tp-brand);
    font-weight: 600;
    pointer-events: none;
}


/* ============================================================
   GRID DE DOCUMENTOS
   ============================================================ */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}


/* ============================================================
   CARD DE DOCUMENTO
   ============================================================ */
.tp-doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-card);
    padding: 14px 16px;
    min-height: 64px;
    transition:
        border-color var(--tp-transition),
        box-shadow   var(--tp-transition),
        background   var(--tp-transition);
}

.tp-doc-card:hover {
    border-color: var(--tp-border-hover);
    box-shadow: var(--tp-shadow-card);
    background: var(--tp-bg-hover);
}


/* ---- Lado esquerdo: badge + texto ---- */
.tp-doc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Evita overflow de texto longo */
}


/* ---- Badge de tipo (PDF, XLS, DOC…) ---- */
.tp-doc-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 7px;
    border-radius: var(--tp-radius-badge);
    line-height: 1;
    min-width: 34px;
    text-align: center;
}


/* ---- Título e descrição ---- */
.tp-doc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tp-doc-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text);
    line-height: 1.35;
    /* Trunca após 2 linhas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tp-doc-desc {
    font-size: 12px;
    color: var(--tp-text-muted);
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ============================================================
   BOTÃO DE DOWNLOAD
   ============================================================ */
.tp-dl-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-btn);
    color: var(--tp-text-muted);
    text-decoration: none;
    transition: all var(--tp-transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tp-dl-btn:hover {
    background: var(--tp-brand-light);
    color: var(--tp-brand);
    border-color: var(--tp-border-hover);
    text-decoration: none;
    box-shadow: var(--tp-shadow-card);
}

.tp-dl-btn:active {
    transform: scale(0.94);
}

.tp-dl-btn:focus-visible {
    outline: 2px solid var(--tp-border-focus);
    outline-offset: 2px;
}

/* Estado desabilitado — arquivo indisponível */
.tp-dl-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}


/* ============================================================
   ESTADO VAZIO
   ============================================================ */
.tp-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 3.5rem 0;
    text-align: center;
    color: var(--tp-text-hint);
}

.tp-empty svg {
    opacity: 0.4;
}

.tp-empty p {
    font-size: 15px;
    margin: 0;
}


/* ============================================================
   RESPONSIVO — MOBILE
   ============================================================ */

/* Tablet: mantém 2 colunas mas reduz padding */
@media (max-width: 768px) {
    .tp-doc-title {
        font-size: 13px;
    }

    .tp-year-btn {
        padding: 8px 16px;
    }
}

/* Mobile: uma coluna, scroll horizontal no nav de anos */
@media (max-width: 600px) {

    /* Nav de anos — scroll horizontal */
    .tp-year-nav {
        border-radius: var(--tp-radius-pill);
        padding: 4px 6px;
        /* Força scroll sem encolher os itens */
        flex-wrap: nowrap;
    }

    .tp-year-btn {
        flex: 0 0 auto;
        min-width: 64px;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Filtro de categorias em scroll horizontal */
    .tp-cat-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .tp-cat-filter::-webkit-scrollbar { display: none; }
    .tp-cat-btn { flex-shrink: 0; }

    /* Uma coluna apenas */
    .tp-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 1rem;
    }

    /* Cards com área de toque adequada (mínimo 48px — WCAG 2.5.5) */
    .tp-doc-card {
        padding: 12px 14px;
        min-height: 56px;
    }

    /* Botão de download maior no mobile */
    .tp-dl-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    /* Título um pouco maior para legibilidade */
    .tp-doc-title {
        font-size: 13.5px;
    }
}

/* Mobile pequeno (< 380px) */
@media (max-width: 380px) {
    .tp-year-btn {
        min-width: 56px;
        font-size: 12px;
        padding: 7px 10px;
    }

    .tp-doc-badge {
        font-size: 9px;
        padding: 3px 5px;
        min-width: 28px;
    }
}


/* ============================================================
   OVERRIDE ELEMENTOR
   Garante que o Elementor não quebre os layouts
   ============================================================ */
.elementor .tp-doc-card,
.elementor .tp-dl-btn {
    box-sizing: border-box;
}

/* Evita que seções pai com overflow:hidden cortem o hover shadow */
.elementor-section:has(.tp-section) {
    overflow: visible !important;
}
/* ============================================================
   SEÇÃO FIXA — Documentos sem ano
   ============================================================ */
.tp-semano-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tp-border);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tp-semano-grupo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tp-semano-titulo {
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var( --e-global-color-primary ) !important;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tp-border);
}

/* Reutiliza o .tp-grid e .tp-doc-card normalmente */
.tp-semano-grupo .tp-grid {
    margin-top: 0;
}

/* ---- Separador de grupo dentro do grid por ano ---- */
.tp-group-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tp-brand);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tp-border);
    margin-top: 0.5rem;
}
.tp-group-label:first-child {
    margin-top: 0;
}