/* Contraste Invertido  
 * 1. Criar uma borda amarela APENAS nos cards reais para separá-los do fundo preto */
body.pojo-a11y-negative-contrast #page .stk-block-column.stk-block-background {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
}
/* 2. Deixar os fundos internos do card transparentes para evitar blocos sólidos feios */
body.pojo-a11y-negative-contrast #page .stk-block-column div,
body.pojo-a11y-negative-contrast #page .stk-block-column span,
body.pojo-a11y-negative-contrast #page .stk-block-column h3,
body.pojo-a11y-negative-contrast #page .stk-block-column h6,
body.pojo-a11y-negative-contrast #page .stk-block-column a {
    background-color: transparent !important;
}
/* 3. Forçar textos e ícones (SVG) para o amarelo de alto contraste */
body.pojo-a11y-negative-contrast #page .stk-block-column *,
body.pojo-a11y-negative-contrast #page .stk-block-column svg,
body.pojo-a11y-negative-contrast #page .stk-block-column path {
    color: #ffff00 !important;
    fill: #ffff00 !important;
}

/* 4. Proteger a assistente virtual LIS (e sua janela de chat) do contraste negativo */
body.pojo-a11y-negative-contrast #lis-chat-root *:not(img) {
    background-color: transparent !important;
    color: revert !important;
    fill: revert !important;
    border: revert !important;
    filter: none !important;
}
body.pojo-a11y-negative-contrast #lis-chat-root img {
    background-color: transparent !important;
    filter: none !important;
}
body.pojo-a11y-negative-contrast #lis-chat-root .MuiAvatar-root {
    background-color: transparent !important;
}
body.pojo-a11y-negative-contrast #lis-chat-root button {
    background-color: transparent !important;
}

/* 5. Restaurar as estrelas do YASR (Força Bruta de Tamanho e Repetição) */
html body.pojo-a11y-negative-contrast #page div.yasr-star-rating,
html body.pojo-a11y-negative-contrast #page div.yasr-star-rating > div.yasr-star-value {
    background-color: transparent !important;
}
html body.pojo-a11y-negative-contrast #page div.yasr-star-rating > div.yasr-star-value {
    background-image: url('https://homolog.transparencia.pe.gov.br/wp-content/plugins/yet-another-stars-rating/includes/img/star_3.svg') !important;
    background-repeat: repeat-x !important;
    background-size: 32px !important;
    height: 100% !important;
}
/* 6. Textos e ícones do bloco de avaliação no amarelo de alto contraste */
html body.pojo-a11y-negative-contrast #page div.yasr-vv-block,
html body.pojo-a11y-negative-contrast #page div.yasr-vv-block span,
html body.pojo-a11y-negative-contrast #page div.yasr-vv-block svg {
    color: #ffff00 !important;
    fill: #ffff00 !important;
    background-color: transparent !important;
}
