/*
 * RiachãoNet — CSS da página de matéria (post.php)
 * Antes eram 4 blocos <style> dentro do post.php (~64 KB enviados em TODA matéria aberta).
 * Agora o navegador baixa uma vez e guarda em cache. Versão automática pela data do arquivo.
 */

/* ===== 1. Layout da matéria, barra de compartilhar, acessibilidade, relacionadas ===== */
/* Liberação de scroll para iOS */
html { overflow-x: hidden; -webkit-overflow-scrolling: touch; }
body { max-width: 100%; overflow-x: visible; position: relative; }


.cnn-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    width: 100%;
    max-width: 1352px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.article-main { min-width: 0; }


.article-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: visible; 
}

.post-content {
    width: 100%;
    box-sizing: border-box;
}

.post-content::after {
    content: "";
    display: table;
    clear: both;
}

.post-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 46px);
    line-height: 1.1;
    color: var(--rn-cinza-900);
    margin: 15px 0 25px 0;
    font-weight: 800;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    text-align: left !important;
    max-width: 100% !important;
}

.post-meta-dados {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.post-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--rn-cinza-900);
    overflow-wrap: anywhere;
}

.post-content p { margin-bottom: 28px; }

.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

.post-content iframe,
.post-content video,
.post-content embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9; /* Ratio padrão para vídeos horizontais */
    border-radius: 12px;
    display: block;
    margin: 30px auto;
    border: none;
}

/* Caso seja um YouTube Shorts (vertical) */
.post-content iframe[src*="shorts"] {
    aspect-ratio: 9 / 16;
    max-width: 320px !important; /* Shorts ficam melhor se não ocuparem a largura toda no desktop, mas no mobile o 100% do container manda */
    margin: 30px auto;
}

/* Video Preview & Lazy Load */
.video-preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-preview-container:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(220, 38, 38, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: 0.3s;
    z-index: 5;
    border: 3px solid #fff;
}

.video-preview-container:hover .play-button-overlay {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.video-duration-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

/* Theater Mode */
#theater-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
body.theater-active #theater-overlay { display: block; opacity: 1; pointer-events: all; }
body.theater-active { overflow: hidden; }

/* Garantir que o vídeo ativo fique por cima do fundo escuro */
body.theater-active .sticky-video-wrapper.is-playing {
    position: relative;
    z-index: 9999;
}

/* Floating Video Progress Bar */
.sticky-video-wrapper .video-progress-bar {
    position: absolute;
    top: -4px;
    left: 0;
    height: 4px;
    background: #ff0000;
    width: 0%;
    z-index: 10001;
    transition: width 0.3s linear;
    border-radius: 2px 2px 0 0;
    display: none;
}
.sticky-video-wrapper.is-floating .video-progress-bar { display: block; }

.close-sticky-video { display: none; }

/* Alerta de Vídeo na Matéria */
.video-alert-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rn-erro);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: flash-red 1s infinite alternate;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

@keyframes flash-red {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.5; transform: scale(0.95); }
}

.post-content figure.wp-block-image figcaption,
.post-content figcaption,
.post-content .wp-caption .wp-caption-text,
.post-content p.wp-caption-text,
.post-content .blocks-gallery-caption {
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--rn-cinza-500) !important;
    background: var(--rn-cinza-50) !important;
    border-left: 4px solid var(--rn-laranja) !important;
    padding: 10px 15px !important;
    margin: 0 0 30px 0 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    border-radius: 0 4px 4px 0 !important;
    opacity: 0.9 !important;
    text-align: left !important;
}

.post-content figcaption::before,
.post-content .wp-caption-text::before,
.post-content .blocks-gallery-caption::before {
    content: "\f030" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    margin-right: 8px !important;
    display: inline-block !important;
    color: var(--rn-laranja) !important;
    font-style: normal !important;
    font-size: 0.8rem !important;
}

/* Estilo para o aviso de galeria (idêntico à legenda) */
.gallery-info-label {
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--rn-cinza-500) !important;
    background: var(--rn-cinza-50) !important;
    border-left: 4px solid var(--rn-laranja) !important;
    padding: 10px 15px !important;
    margin: 30px 0 10px 0 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    border-radius: 0 4px 4px 0 !important;
    opacity: 0.9 !important;
    text-align: center !important; /* Centralizado como pedido */
}

.gallery-info-label i {
    color: var(--rn-laranja);
    margin-right: 8px;
    font-style: normal !important;
}

@media (max-width: 768px) {
    .gallery-info-label {
        margin: 20px 0 !important;
        padding: 15px !important;
        border-radius: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-left: 4px solid var(--rn-laranja) !important;
    }
}



/* Galerias - Bordas nas Imagens Individuais */
.wp-block-gallery, .blocks-gallery-grid, .gallery {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 40px 0 !important;
}

.wp-block-gallery img, 
.blocks-gallery-item img,
.gallery-item img {
    border: 4px solid var(--rn-azul-medio) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Galerias em 2 colunas no Mobile */
/* Unificado na seção de galerias do media query principal */

/* Categorias e Selos (Sincronizado com os cards da Home) */
.badge-top {
    display: inline-block;
    background: var(--rn-azul);
    color: #fff !important;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.1;
    text-decoration: none;
}

/* Desktop adjustments para o selo */
@media (min-width: 1025px) {
    .badge-top {
        padding: 6px 14px;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
    }
}

.badge-top-rel {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 0.65rem;
}

.post-content figure { margin: 30px 0; }
.post-content figure img { margin: 0 !important; }

/* Ajuste fino dos recuos das legendas no mobile */
@media (max-width: 768px) {
    .post-content figcaption,
    .post-content .wp-caption-text {
        padding: 12px 36px !important;
        margin-bottom: 35px !important;
        font-size: 13px !important;
        border-left-width: 4px !important;
        background: var(--rn-cinza-50) !important;
    }
}

/* COMPONENTE: RESUMO INTELIGENTE (ESTILO UOL) */
/* COMPONENTE: RESUMO INTELIGENTE RECOLHÍVEL */
.ai-summary-wrapper {
    margin: 20px 0 30px 0;
    border-radius: 8px;
    border: 1px solid var(--rn-cinza-200);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ai-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fbff;
    color: var(--rn-azul-medio);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.ai-label:hover { background: #f1f7ff; }

.ai-label-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ai-label i.fa-wand-magic-sparkles {
    font-size: 0.9rem;
    animation: ai-blink 1.5s infinite step-start;
}
.ai-label i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--rn-cinza-400);
}
.ai-summary-wrapper.is-open i.fa-chevron-down { transform: rotate(180deg); }

.ai-summary-inner li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}
.btn-read-ai { 
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 32px;
    border-radius: 50px;
    border: 1px solid var(--rn-azul-medio);
    background: var(--rn-azul-medio);
    color: #fff;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.2s;
}
.btn-read-ai:hover { background: #1a5276; transform: scale(1.05); }
.btn-read-ai i { font-size: 0.7rem; }

@media (max-width: 768px) {
    .btn-read-ai span { display: none; }
    .btn-read-ai { padding: 0 12px; }
}

.ai-summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fff;
}
.ai-summary-wrapper.is-open .ai-summary-content {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
}

.ai-summary-inner {
    padding: 20px 18px;
    border-top: 1px solid var(--rn-cinza-100);
}
.ai-summary-content ul { list-style: none; padding: 0; margin: 0; }
.ai-summary-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--rn-cinza-700);
    font-size: 19px;
    font-family: 'Roboto', sans-serif;
}
.ai-summary-content li::before {
    content: "•";
    color: var(--rn-azul-medio);
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.6rem;
    top: -4px;
}
.ai-credit-line { margin-top: 20px; font-size: 10px; color: var(--rn-cinza-400); font-style: italic; text-align: right; }
.ai-credit-line {
    margin-top: 20px;
    font-size: 10px;
    color: var(--rn-cinza-400);
    font-style: italic;
    text-align: right;
}

/* PLAYER DE ÁUDIO HORIZONTAL (ESTILO UOL) */
.audio-player-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fbff;
    padding: 10px 15px;
    border-radius: 50px;
    margin: 5px 0;
    border: 1px solid #eef2f6;
}
.audio-main-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--rn-azul-medio);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(38,122,180,0.2);
}
.audio-main-btn:hover { background: #1a5276; transform: scale(1.05); }
.audio-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.audio-status {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--rn-cinza-600);
    text-transform: uppercase;
    white-space: nowrap;
}
.audio-stop-btn {
    background: none;
    border: none;
    color: var(--rn-cinza-400);
    cursor: pointer;
    padding: 10px;
    font-size: 0.8rem;
    transition: 0.2s;
}
.audio-stop-btn:hover { color: var(--rn-erro); }

/* ONDA SONORA ANIMADA */
.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}
.audio-wave span {
    width: 6px;
    height: 10px;
    background: var(--rn-azul-medio);
    border-radius: 3px;
    transition: height 0.2s;
}
.audio-wave.playing span {
    animation: wave-play 0.8s infinite ease-in-out;
    opacity: 1;
}
@keyframes wave-play {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

/* Barra de progresso/tempo/velocidade — usadas quando existe um
   arquivo de áudio pré-gerado (Google TTS / Piper) em vez do
   fallback via Web Speech API */
.audio-progress-mini {
    flex: 1;
    height: 5px;
    min-width: 60px;
    background: var(--rn-cinza-200);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}
.audio-progress-mini-bar {
    height: 100%;
    width: 0%;
    background: var(--rn-azul-medio);
    border-radius: 4px;
    transition: width 0.15s linear;
}
.audio-time-mini {
    font-size: 0.7rem;
    color: var(--rn-cinza-400);
    white-space: nowrap;
    flex-shrink: 0;
}
.audio-speed-btn {
    background: #eef2f6;
    border: none;
    color: var(--rn-cinza-600);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.audio-speed-btn:hover { background: #dde6ee; }
@keyframes ai-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .ai-tab-btn { font-size: 0.85rem; padding: 15px 10px; }
}

/* Estilo para colapsar conteúdo no mobile */
@media (max-width: 768px) {
    .post-content-wrap.is-collapsed {
        max-height: 500px;
        overflow: hidden;
        position: relative;
    }

    .post-content-wrap.is-collapsed::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(transparent, #fff);
        pointer-events: none;
    }
}

.creative-excerpt-box {
    margin: 25px 0 35px 0;
    padding: 5px 0 5px 25px;
    border-left: 4px solid var(--rn-laranja); /* Laranja conforme original */
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    color: var(--rn-cinza-600);
    font-size: 1.15rem;
    line-height: 1.5;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .creative-excerpt-box {
        margin: 20px 20px 25px 20px !important;
        padding: 12px 15px 12px 20px !important;
        border-left: 4px solid var(--rn-laranja) !important; /* Laranja */
        border-radius: 0 4px 4px 0;
        width: calc(100% - 40px) !important; /* Garantir que ele seja menor que a tela no mobile */
    }
}

.creative-excerpt-box i {
    display: none;
}

.creative-excerpt-head {
    display: none;
}

.mobile-read-more {
    /* Só faz sentido em telas pequenas: é o único lugar onde o recolhimento
       do texto (.post-content-wrap.is-collapsed, media query acima) tem
       efeito visual. Escondido por padrão; reaparece só no mobile abaixo. */
    display: none;
    width: 100%;
    max-width: 320px;
    margin: 85px auto 30px auto;
    border: none;
    border-radius: 8px;
    background: var(--rn-azul); /* Azul Oficial */
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 16px 20px;
    cursor: pointer;
    transition: .3s;
    animation: pulse-subtle 2s infinite ease-in-out;
}

@keyframes pulse-subtle {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(13, 90, 160, 0.4); }
    50% { transform: scale(1.02); opacity: 0.9; box-shadow: 0 0 15px 5px rgba(13, 90, 160, 0.2); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(13, 90, 160, 0); }
}

.mobile-read-more:hover {
    background: var(--rn-azul-escuro);
    color: #fff;
    animation: none;
    transform: translateY(-2px);
}

/* Precisa vir DEPOIS da regra ".mobile-read-more { display: none; }" acima —
   mesma especificidade, então em caso de empate o CSS usa a ordem do
   arquivo, e a regra que vier por último vence. Colocando aqui, esta
   sempre vence em telas ≤768px. */
@media (max-width: 768px) {
    .mobile-read-more {
        display: block;
    }
}

/* Article Body Layout (The "Capricho") */
.article-body-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 20px;
}

.sidebar-share {
    width: 70px;
    flex-shrink: 0;
    z-index: 100;
    padding-top: 10px; /* Alinhamento com o título */
}

.article-main-content {
    flex: 1;
    min-width: 0;
}

.sticky-share-bar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-label-v {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    color: var(--rn-cinza-400);
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    opacity: 0.9;
}
.api-error-card-mini {
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}
.api-error-card-mini h4 { font-size: 0.95rem; margin: 0; color: var(--rn-cinza-900); }
.api-error-card-mini p { font-size: 0.8rem; color: var(--rn-cinza-500); margin: 0; }
.api-error-card-mini .btn-retry-mini { 
    background: var(--rn-azul); color: #fff; border: none; padding: 6px 15px; 
    border-radius: 4px; font-size: 0.7rem; font-weight: 700; cursor: pointer;
}

.share-btn-v {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-btn-v:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Gradients Premium */
.v-wa { background: linear-gradient(135deg, var(--rn-whatsapp) 0%, var(--rn-whatsapp-escuro) 100%); }
.v-fb { background: linear-gradient(135deg, #1877f2 0%, #0c59cf 100%); }
.v-tw { background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); }
.v-tg { background: linear-gradient(135deg, #0088cc 0%, #006699 100%); }

/* Modern Author Box - More Discreet */
.author-modern-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 5px 0 15px 0;
    margin: 10px 0 25px 0;
    border: none;
    border-bottom: 1px solid var(--rn-cinza-100);
    flex-wrap: wrap; /* Para mobile */
}

.edit-post-btn, .purge-cache-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.edit-post-btn { background: var(--rn-cinza-200); color: var(--rn-cinza-600); }
.edit-post-btn:hover { background: var(--rn-cinza-300); color: var(--rn-cinza-900); }

.purge-cache-btn { background: #f38020; color: #fff; }
.purge-cache-btn:hover { background: #d36d10; box-shadow: 0 4px 12px rgba(243, 128, 32, 0.3); }
.purge-cache-btn.loading { opacity: 0.7; cursor: wait; }
.purge-cache-btn.success { background: #10b981; }
.purge-cache-btn.error { background: #ef4444; }

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .author-modern-box { align-items: flex-start; gap: 12px; }
    .author-avatar { width: 50px; height: 50px; margin-top: 4px; }
    .author-meta-info { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
    .meta-main-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .att-meta-mobile { margin-left: 0 !important; }
    .meta-sep { display: none !important; }
}

.author-info-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info-data .jornalista-title {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--rn-azul);
    margin-bottom: 0;
    line-height: 1.1;
}

.author-info-data .author-name {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rn-cinza-900);
    margin: 0;
    line-height: 1.2;
}

.author-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--rn-cinza-400);
    font-weight: 500;
    margin-top: 0;
    line-height: 1;
}

.author-meta-info i { font-size: 0.7rem; opacity: 0.7; }

/* Removed duplicate creative-excerpt-box to prevent overriding the main definition */
@media (max-width: 1200px) {
    .article-body-layout { display: flex; flex-direction: column; }
    .sidebar-share {
        width: 100%;
        height: auto;
        position: static;
        padding: 0 0 5px 0; /* Espaço reduzido */
        order: -1;
    }
    .sticky-share-bar { 
        flex-direction: row; 
        position: static; 
        justify-content: center; 
        align-items: center;
        flex-wrap: wrap;
        gap: 12px; 
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
    }
    .share-label-v { 
        display: block; 
        writing-mode: horizontal-tb; 
        margin: 0 5px 0 0;
        font-size: 0.75rem;
        color: var(--rn-cinza-500);
    }
    .share-btn-v { width: 40px; height: 40px; font-size: 1.1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    .article-card { padding-bottom: 30px; }
}

.sidebar-area { width: 340px; max-width: 100%; }

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rn-azul-escuro);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-widget-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--rn-laranja);
    opacity: .3;
}

.side-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    align-items: flex-start;
}

.side-rank {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--rn-cinza-300);
    min-width: 40px;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.side-line {
    width: 3px;
    min-height: 45px;
    background: var(--rn-laranja);
    flex-shrink: 0;
}

.side-txt h4 {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.side-txt span {
    color: var(--rn-cinza-500);
    font-size: .8rem;
}

.ads-stack {
    display: grid;
    gap: 14px;
}

.ad-slot-300 {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: 0 auto;
    border: 1px dashed var(--rn-cinza-300);
    border-radius: 8px;
    background: var(--rn-cinza-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rn-cinza-500);
    font: 700 12px/1 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
}


.rel-section {
    width: 100%;
    max-width: 1352px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}


.post-card-rel {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: .3s;
}

.post-card-rel:hover { transform: translateY(-5px); }

.badge-top-rel {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rn-azul); /* Azul oficial */
    color: #fff;
    padding: 4px 12px;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    font-family: 'Roboto Condensed', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.post-nav-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 40px 0;
}

.btn-p {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .8rem;
}

.b-v { background: var(--rn-cinza-100); color: var(--rn-cinza-900); }
.b-h { background: var(--rn-azul-escuro); color: #fff; }

/* --- RESPONSIVIDADE MASTER --- */
@media (max-width: 1100px) {
    .cnn-wrapper { 
        grid-template-columns: 1fr; 
        gap: 22px; 
        padding: 0 15px !important; 
        overflow: visible !important; /* Liberado para não conflitar no iOS */
        width: 100%;
    }

    .sidebar-area { width: 100%; padding: 0; box-sizing: border-box; }
    .sidebar-sticky { position: static; }

    .article-card { 
        padding: 20px 0 !important; 
        overflow: visible !important; /* Liberado para não travar scroll no iOS */
        width: 100%;
        border-radius: 0; 
        box-shadow: none;
        border: none;
    }



    /* Padronização de margens laterais para textos no mobile */
    .breadcrumb-nav,
    .badge-container-fix,
    .post-title,
    .author-modern-box,
    .accessibility-bar,
    .post-content > *:not(figure):not(img):not(.wp-block-gallery):not(iframe):not(video),
    .reactions-section,
    .post-tags-container,
    .post-nav-btns,
    .rel-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .post-title { font-size: 1.8rem !important; }

    /* Apenas imagens individuais no corpo do texto ganham tela infinita */
    .post-featured-image,
    .post-content > .wp-block-image,
    .post-content > figure.wp-block-image {
        margin-left: -15px !important;
        margin-right: -15px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    /* Garantia para que as imagens DENTRO da galeria não herdem o efeito acima */
    .wp-block-gallery .wp-block-image,
    .gallery .gallery-item,
    .gallery img {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-block-gallery, .gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 25px 0 !important;
        padding: 0 5px !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow: visible !important;
    }







    .post-featured-image img, 
    .wp-block-image img { border-radius: 0 !important; }

    .post-content iframe,
    .post-content video {
        width: 100% !important;
        border-radius: 0 !important;
        margin: 20px 0 !important;
    }

    .post-nav-btns { grid-template-columns: 1fr; }
    .ad-slot-300 { width: 100%; height: 250px; }

    .accessibility-bar {
        border-radius: 12px !important;
        flex-direction: column !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    .access-group-mobile { width: 100%; justify-content: center; flex-wrap: wrap; }
}

/* Reações System */
.reactions-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--rn-cinza-50);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--rn-cinza-200);
}

.reactions-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rn-cinza-900);
    margin-bottom: 25px;
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 750px;
    margin: 0 auto;
}

.reaction-btn {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.reaction-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--rn-cinza-200);
}

.reaction-btn.active {
    background: var(--rn-cinza-100);
    border-color: var(--rn-azul);
    box-shadow: inset 0 0 0 1px var(--rn-azul);
}

.reaction-icon {
    font-size: 1.5rem;
    display: block;
}

/* Cores dos Ícones */
.r-positivo { color: #3b82f6; } /* Azul */
.r-triste { color: #6366f1; } /* Indigo */
.r-engracado { color: #f59e0b; } /* Amarelo */
.r-bravo { color: #ef4444; } /* Vermelho */
.r-surpreso { color: #8b5cf6; } /* Roxo */
.r-negativo { color: var(--rn-cinza-600); } /* Cinza Escuro */

.reaction-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rn-cinza-500);
    font-family: 'Roboto Condensed', sans-serif;
}

.reaction-count {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--rn-cinza-900);
    font-family: 'Roboto Condensed', sans-serif;
}

@media (max-width: 768px) {
    .reactions-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .reaction-btn { padding: 10px 5px; }
    .reaction-icon { font-size: 1.3rem; }
}

/* Modern Gallery & Lightbox */
.wp-block-gallery, .gallery {
    display: block;
    columns: 3 250px;
    column-gap: 15px;
    margin: 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wp-block-gallery figure, .gallery-item {
    break-inside: avoid;
    margin: 0 0 15px 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: zoom-in;
    transition: .3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wp-block-gallery figure:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 5;
}

.wp-block-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Galerias unificadas na responsividade master */

/* Lightbox Modal */
.custom-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Novo estilo de visualizador com carimbo e compartilhamento */
.lightbox-img-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    border-radius: 8px;
    overflow: hidden;
}
.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    display: block;
}
.lb-watermark-circle {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 10;
    pointer-events: none;
}
.lb-watermark-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lb-share-btns {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}
.lb-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.lb-share-btn:hover { transform: scale(1.15) rotate(5deg); }
.lb-share-btn.wa { background: rgba(37, 211, 102, 0.9); }
.lb-share-btn.fb { background: rgba(24, 119, 242, 0.9); }
.lb-share-btn.li { background: rgba(0, 0, 0, 0.6); }

@media (max-width: 768px) {
    .lb-watermark-circle { bottom: 15px; right: 15px; width: 50px; height: 50px; padding: 6px; }
    .lb-share-btns { top: 10px; left: 10px; }
    .lb-share-btn { width: 34px; height: 34px; font-size: 0.9rem; }
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--rn-azul-escuro); /* Azul do Header */
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
}

.lightbox-btn:hover { 
    background: var(--rn-azul); 
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.btn-prev { left: -75px; }
.btn-next { right: -75px; }

.lb-top-bar {
    position: absolute;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 60px;
    z-index: 100000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    font-family: 'Roboto Condensed', sans-serif;
}

.lb-post-title { font-size: 1.15rem; font-weight: 700; color: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.lb-counter { 
    position: absolute; 
    bottom: 15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: rgba(0,46,80,0.85); 
    color: #fff; 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-weight: 800; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px; 
    z-index: 20; 
    backdrop-filter: blur(4px); 
}

.btn-close {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}
.btn-close:hover { color: var(--rn-laranja); transform: scale(1.1); }

.lightbox-caption {
    color: #ddd;
    margin-top: 15px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

/* Internal Related News Block */
.internal-related-box {
    margin: 40px 0;
    padding: 30px;
    background: var(--rn-cinza-50);
    border: 1px solid var(--rn-cinza-200);
    border-radius: 12px;
}

.internal-related-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rn-azul-escuro);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.internal-related-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--rn-laranja);
    opacity: .3;
}

.internal-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.internal-related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease;
}

.internal-related-card:hover { transform: translateY(-3px); }

.internal-related-img-wrap {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.internal-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.internal-related-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--rn-cinza-900);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.internal-related-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rn-cinza-400);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -5px;
}

.internal-related-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--rn-cinza-200);
}

.internal-nav-btn {
    background: #fff;
    border: 1px solid var(--rn-cinza-200);
    border-radius: 4px;
    padding: 5px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--rn-azul);
    cursor: pointer;
    transition: .3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.internal-nav-btn:hover:not(:disabled) {
    background: var(--rn-azul);
    color: #fff;
    border-color: var(--rn-azul);
}

.internal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .internal-related-grid { grid-template-columns: 1fr; gap: 25px; }
    .internal-related-box { padding: 20px 15px; margin: 30px 0; }
    .internal-related-img-wrap { height: 180px; }
}

@media (max-width: 900px) {
    .wp-block-gallery { columns: 2 180px; }
    .btn-prev { left: 10px; top: auto; bottom: -80px; transform: none; }
    .btn-next { right: 10px; top: auto; bottom: -80px; transform: none; }
    .lightbox-btn { width: 45px; height: 45px; font-size: 1.2rem; }
    .lightbox-btn:hover { transform: scale(1.1); }
    .lb-post-title { font-size: 0.95rem; }
    .lb-top-bar { padding: 15px 50px; }
    .btn-close { right: 15px; }
    .lb-counter { padding: 4px 12px; font-size: 0.75rem; bottom: 10px; }
}

.edit-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444; /* Vermelho vibrante */
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.edit-post-btn:hover {
    background: var(--rn-erro);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}
/* Fim das regras mobile */

/* BARRA DE ACESSIBILIDADE PREMIUM - DESIGN RIÃOCHANET */
.accessibility-bar {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin: 25px 0; 
    padding: 8px 18px; 
    background: var(--rn-cinza-50); 
    border-radius: 50px; 
    border: 1px solid var(--rn-cinza-200); 
    max-width: 100%; 
    box-sizing: border-box; 
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    width: fit-content;
}

/* Estilo mobile unificado acima */


.btn-play-audio-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 38px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--rn-azul-medio) 0%, #1a5276 100%);
    color: #fff;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(38, 122, 180, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-play-audio-header:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(38, 122, 180, 0.3); }

.access-btn-tool {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    border: 1px solid var(--rn-cinza-300);
    background: #fff;
    color: var(--rn-cinza-600);
    cursor: pointer;
    font-weight: 900;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.access-btn-tool:hover { border-color: var(--rn-azul-medio); color: var(--rn-azul-medio); background: #f1f7ff; transform: scale(1.1); }
.access-btn-tool.active { background: var(--rn-azul-medio); color: #fff; border-color: var(--rn-azul-medio); }

/* REGRAS DE ATIVAÇÃO */
body.univ-gray { filter: grayscale(100%) !important; }
body.univ-links a { background: #ffff00 !important; color: #000 !important; text-decoration: underline !important; font-weight: 800 !important; }
body.univ-dyslexia *:not(i):not([class*="fa-"]) { font-family: 'Lexend', sans-serif !important; }
/* Fonte Lexend do modo dislexia: carregada pelo JS do post.php ao ativar o modo. */

body.contrast-mode { background: #000 !important; color: #fff !important; }
body.contrast-mode *:not(.access-btn-tool):not(.btn-play-audio-header):not(i) { background-color: transparent !important; color: #fff !important; border-color: #333 !important; }

/* ===== 2. Bloco de publicidade (AdSense) dentro do texto ===== */
.ad-pos-content { 
    float: left; 
    margin: 0 25px 15px 0; 
    max-width: 336px; 
}
.ad-in-text-mobile { 
    display: none; 
}

.ad-label-tenue {
    display: none; /* Oculto no Desktop */
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--rn-cinza-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
    opacity: 0.8;
}

.ad-pos-content .ad-label-tenue {
    text-align: left;
}

@media (max-width: 768px) {
    /* Exibe o rótulo apenas se o AdSense for carregado (status "filled") */
    ins.adsbygoogle[data-ad-status="filled"] + .ad-label-tenue {
        display: block;
    }
    .ad-pos-content { display: none !important; }
    .ad-in-text-mobile { 
        display: flex !important; 
        flex-direction: column-reverse; /* Inverte para o título aparecer no TOPO */
        align-items: center;
        margin: 0; 
        text-align: center; 
        width: 100%;
    }
    /* Aplica a margem apenas quando o anúncio do AdSense for preenchido (carregado) */
    .ad-in-text-mobile:has(ins.adsbygoogle[data-ad-status="filled"]) {
        margin: 35px 0;
    }
}

/* Garante que o AdSense não transborde o container */
.adsbygoogle {
    max-width: 100% !important;
}

/* ===== 3. Modos de acessibilidade (alto contraste, daltonismo, dislexia...) ===== */
/* Estilos de Acessibilidade */
body.high-contrast { background: #000 !important; color: #fff !important; }
body.high-contrast .main-header, 
body.high-contrast .nav-main,
body.high-contrast .footer-main { background: #000 !important; border-bottom: 2px solid #fff !important; }
body.high-contrast .article-card { background: #000 !important; border: 1px solid #fff !important; color: #fff !important; }
body.high-contrast .post-content { color: #ffff00 !important; }
body.high-contrast a { color: #00ffff !important; }
body.high-contrast .accessibility-bar { background: #1a1a1a !important; border-color: #fff !important; }

.accessibility-bar button:hover { background: var(--rn-cinza-100) !important; border-color: var(--rn-cinza-400) !important; color: var(--rn-cinza-950) !important; }
body.high-contrast .accessibility-bar button { background: #333 !important; color: #fff !important; border-color: #fff !important; }

.post-content { transition: font-size 0.2s ease; }

/* ============================================= */
/* MODO FOCO (Reader Mode / Anti-Distração)      */
/* ============================================= */
body.focus-mode::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 900;
    pointer-events: none;
    animation: focusFadeIn 0.4s ease;
}
@keyframes focusFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
body.focus-mode .article-card {
    position: relative;
    z-index: 901;
    background: #fff !important;
    box-shadow: 0 0 60px rgba(0,0,0,0.5) !important;
    border-radius: 12px;
}
body.focus-mode .accessibility-bar {
    position: relative;
    z-index: 902;
}
body.focus-mode .main-header,
body.focus-mode .nav-main,
body.focus-mode .top-bar,
body.focus-mode .weather-bar,
body.focus-mode .ad-hero,
body.focus-mode .sidebar-area,
body.focus-mode .rel-section,
body.focus-mode .footer-main,
body.focus-mode .cookie-banner-overlay,
body.focus-mode .reactions-section,
body.focus-mode .internal-related-box {
    opacity: 0.08 !important;
    pointer-events: none !important;
    transition: opacity 0.4s ease;
}
/* Botão de saída flutuante */
.focus-exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: var(--rn-laranja);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.5);
    display: none;
    align-items: center;
    gap: 8px;
    animation: focusPulse 2s ease infinite;
}
body.focus-mode .focus-exit-btn { display: flex; }
@keyframes focusPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(230, 126, 34, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(230, 126, 34, 0.8); }
}

/* ============================================= */
/* FILTROS DE DALTONISMO                         */
/* ============================================= */
body.daltonismo-protanopia {
    filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='p'><feColorMatrix type='matrix' values='0.567,0.433,0,0,0 0.558,0.442,0,0,0 0,0.242,0.758,0,0 0,0,0,1,0'/></filter></svg>#p") !important;
}
body.daltonismo-deuteranopia {
    filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='d'><feColorMatrix type='matrix' values='0.625,0.375,0,0,0 0.7,0.3,0,0,0 0,0.3,0.7,0,0 0,0,0,1,0'/></filter></svg>#d") !important;
}
body.daltonismo-tritanopia {
    filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='t'><feColorMatrix type='matrix' values='0.95,0.05,0,0,0 0,0.433,0.567,0,0 0,0.475,0.525,0,0 0,0,0,1,0'/></filter></svg>#t") !important;
}
/* Indicador visual do filtro ativo */
.daltonismo-label {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--rn-cinza-900);
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideUpIn 0.3s ease;
}
.daltonismo-label.active { display: flex; }
.daltonismo-label .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rn-laranja);
    animation: dotPulse 1.5s ease infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes slideUpIn {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============================================= */
/* CURSOR LOCALIZADOR                            */
/* ============================================= */
.cursor-locator-ring {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 3px solid var(--rn-laranja);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: left 0.08s ease, top 0.08s ease;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4), inset 0 0 15px rgba(230,126,34,0.1);
    display: none;
}
body.cursor-locator-on .cursor-locator-ring {
    display: block;
}
body.cursor-locator-on * {
    cursor: crosshair !important;
}

/* ============================================= */
/* PARADA DE ANIMAÇÃO (Pause Motion)             */
/* ============================================= */
body.pause-motion *,
body.pause-motion *::before,
body.pause-motion *::after {
    animation-play-state: paused !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}
body.pause-motion .ticker-content {
    animation: none !important;
}
body.pause-motion img[src$=".gif"] {
    visibility: hidden;
}
/* Preserva interações críticas nos botões */
body.pause-motion button,
body.pause-motion a {
    transition-duration: 0s !important;
}

/* Indicador de estado ativo nos botões de acessibilidade */
.access-btn-tool.active {
    background: var(--rn-laranja) !important;
    color: #fff !important;
    border-color: var(--rn-laranja) !important;
}

/* ===== 4. Card "Receba no WhatsApp" no fim da matéria ===== */
.rn-wa-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--rn-whatsapp);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    margin: 35px 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}
.rn-wa-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.rn-wa-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rn-azul);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rn-wa-card-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}
.rn-wa-card-text {
    display: flex;
    flex-direction: column;
}
.rn-wa-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rn-cinza-900);
    margin: 0 0 5px 0;
    font-family: inherit;
}
.rn-wa-card-subtext {
    font-size: 0.95rem;
    color: var(--rn-cinza-500);
    margin: 0;
    font-family: inherit;
}
.rn-wa-card-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rn-whatsapp);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-family: inherit;
    border: none;
    cursor: pointer;
}
.rn-wa-card-btn:hover {
    background: var(--rn-whatsapp-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.rn-wa-card-btn i {
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .rn-wa-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px 15px;
    }
    .rn-wa-card-left {
        flex-direction: column;
        gap: 15px;
    }
    .rn-wa-card-btn {
        width: 100%;
        justify-content: center;
    }
}
