@charset "UTF-8";

/* =====================================================
   Portal DADOS RS - Tema Customizado
   Migrado para CKAN 2.11 / Bootstrap 5
   
   Correções aplicadas:
   - Menu invisível: forçado cor da fonte e fundo
   - Filtros laterais: cursor pointer e display block
   - Compatibilidade Bootstrap 5: classes atualizadas
   ===================================================== */


/* =====================================================
   Barra do Governo RS — padrão rs.gov.br (nova versão)
   Substitui a injeção via barraGoverno.js
   ===================================================== */

#barra-govrs {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

/* Linha 1: barra principal */
.barra-govrs-main {
    background-color: #4f4f4f;
    min-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
}

.barra-govrs-main > .container-fluid {
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    height: 100%;
}

svg:not(:root) {
    overflow: hidden;
}

.barra-govrs__logo {
    padding: 6px 0;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.2s;
}

.barra-govrs__logo:hover,
.barra-govrs__logo:focus {
    opacity: 0.8;
}

/* Nav container — float right como produção */
.barra-govrs__nav {
    display: block;
    float: right;
    height: 100%;
}

/* Menu list — font e uppercase via CSS (não hardcoded no HTML) */
.barra-estado__menu {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    list-style: none;
    font-weight: 400;
    line-height: 1;
}

.barra-govrs__nav-link {
    color: #e4e4e4 !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    padding: 9px 20px !important;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    box-sizing: border-box;
}

.barra-govrs__nav-link:hover,
.barra-govrs__nav-link:focus {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    text-decoration: none;
}

/* Item GurIA dentro do menu */
.barra-govrs__guria-item {
    display: inline-flex;
    align-items: center;
}

.barra-govrs__guria-item .barra-govrs__guria {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px !important;
    text-transform: none;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s, border-bottom-color 0.2s;
}

.barra-govrs__guria-item .barra-govrs__guria:hover,
.barra-govrs__guria-item .barra-govrs__guria:focus {
    opacity: 0.8;
    border-bottom-color: #ffffff;
}

.barra-govrs__guria svg {
    width: 49.94px;
    height: 13.21px;
    overflow: hidden;
    display: block;
}

/* Toggle hamburger mobile */
.barra-govrs__toggle {
    border: none;
    background: transparent;
    color: #cccccc;
    font-size: 18px;
    padding: 4px 8px;
    line-height: 1;
}

.barra-govrs__toggle:hover {
    color: #ffffff;
}

/* Menu expandido no mobile */
@media (max-width: 991.98px) {
    .barra-govrs-main .navbar-collapse {
        background-color: #444444;
        padding: 8px 0;
    }

    .barra-govrs__nav-link {
        font-size: 12px !important;
        padding: 10px 15px !important;
        border-bottom: 1px solid #555555 !important;
    }

    .barra-govrs__guria-item .barra-govrs__guria {
        margin: 0;
        padding: 10px 15px !important;
    }
}

/* Linha 2: barra de funcionalidades/acessibilidade */
.cabecalho__funcionalidades {
    background-color: #efefef;
    position: relative;
    z-index: 200;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #333;
    padding: 2px 0;
}

.cabecalho__funcionalidades .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.cabecalho__funcionalidades__acessibilidade,
.cabecalho__funcionalidades__links-extras {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabecalho__funcionalidades__links-extras {
    margin-left: auto;
}

.cabecalho__funcionalidades a {
    color: #333;
    text-decoration: none;
    padding: 3px 10px;
    display: inline-block;
    transition: color 0.15s;
    white-space: nowrap;
}

.cabecalho__funcionalidades a:hover,
.cabecalho__funcionalidades a:focus {
    color: #000;
    text-decoration: underline;
}


/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */

.account-masthead {
    background: #ffffff;
}

.account-masthead .account .notifications a span {
  background: #efefef url() repeat scroll 0 0;
}

.account-masthead .account ul li a {
  color: #000000;
}

.account-masthead .account ul li a:hover {
  color: #4679B2;
  background-color: #ffffff;
}


/* ========================================================================
   The main masthead bar that contains the site logo, nav links, and search
   ======================================================================== */

.masthead {
  background: #ffffff none repeat scroll 0 0;
}

.masthead .navigation .nav-pills li a:hover {
    background-color: #ffffff;
    color: #4679b2 !important;
    border-bottom: 3px solid #DDE5ED;
}

.masthead .navigation .nav-pills li.active a {
    background-color: #ffffff;
    color: #333333 !important;
    border-bottom: 3px solid #4679b2;
    font-weight: 700;
}

.navbar .nav > li > a {
    padding: 13px 15px;
}

.nav-pills > li > a {
    border-radius: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus {
    box-shadow: none;
}

.masthead input[type="text"]:focus {
  -webkit-box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.7);
}


/* =====================================================
   CORREÇÃO CKAN 2.11: Menu de navegação — estados default/hover/active
   ===================================================== */

/* Estado padrão — texto preto fixo, sempre visível */
.masthead .nav > li > a,
.masthead .nav > li > a:focus {
    color: #333333 !important;
    background-color: #fff;
    text-shadow: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

/* Hover — realce azul */
.masthead .nav > li > a:hover {
    color: #4679b2 !important;
    background-color: #fff;
    border-bottom: 3px solid #DDE5ED;
}

/* Item ativo — destaque com borda inferior azul e negrito */
.masthead .nav > .active > a,
.masthead .nav > .active > a:hover,
.masthead .nav > .active > a:focus {
    color: #333333 !important;
    background-color: #fff;
    text-shadow: none;
    border-bottom: 3px solid #4679b2;
    font-weight: 700;
}


/* =====================================================
   CORREÇÃO CKAN 2.11: Filtros laterais (facetas)
   O HTML legado <div class="filters"> parou de funcionar.
   Revivemos a interatividade com cursor e display.
   ===================================================== */

.filters a,
.filters .nav-item a,
.filters .nav-link {
    cursor: pointer;
    display: block;
    color: #265d96;
    text-decoration: none;
    padding: 4px 8px;
}

.filters a:hover,
.filters .nav-item a:hover,
.filters .nav-link:hover {
    color: #4679b2;
    background-color: #f5f5f5;
}


/* ===========================================
   The content in the middle of the front page
   =========================================== */

.box {
  box-shadow: none;
  border: none;
  background-color: transparent;
  color: #000000;
}

.hero .box {
  border: none;
  background-color: transparent;
  color: #FFFFFF;
}

.homepage .module-search .module-content {
  color: rgb(68, 68, 68);
  background-color: transparent;
}

.homepage .module-search .tags {
  background-color: #4679b2;
}

.module-content:last-child {
  padding-bottom: 0px;
}

.homepage .module-search {
  padding: 0px;
  background: none transparent;
}

.homepage [role="main"] {
  border-top: 0;
  padding: 0 0 30px 0;
}


/* ====================================
   The footer at the bottom of the site
   ==================================== */

.site-footer,
body {
  background: #efefef;
}

body {
  border-top: none;
}

.site-footer,
.site-footer label,
.site-footer small {
  color: #428bca;
}

.site-footer a {
  color: #428bca;
}

[role="main"] {
    min-height: 22px;
}

[role="main"], .main {
    background: transparent;
}


/* ====================================
   Hero section (banner principal)
   ==================================== */

.hero {
    background: #4679b2;
}

h1 {
    font-size: 38px;
}

.page-heading {
    font-size: 22px;
    color: #4679b2;
    font-weight: bold;
}

.hero p {
    font-size: 16px;
    line-height: 25px;
}

.module-content:first-child {
    padding-top: 25px;
}


/* ====================================
   Stats section
   ==================================== */

.stats h3 {
    text-align: center;
}

.homepage .box .inner {
    padding: 20px 25px 0px;
}

[role="submain"] {
    background-color: #fff;
    padding: 20px 0;
}


/* ====================================
   Media grid - datasets
   ==================================== */

.media-item {
    background-color: white;
    border-radius: 5px;
    float: left;
    margin: 15px 0 0 15px;
    padding: 15px;
    position: relative;
    width: 189px;
    height: 156px;
    text-align: center;
}

.media-grid > li > p {
    display: none;
}

.media-heading {
    font-size: 13px;
    line-height: 1.3;
    margin: 5px 0;
    color: #4679b2;
    text-align: center;
    hyphens: none;
    word-break: keep-all;
}

.media-grid-new::before, .media-grid-new::after {
    content: "";
    display: table;
    line-height: 0;
}

.media-grid-new::after {
    clear: both;
}

.media-grid-new {
    background: none transparent;
    list-style: outside none none;
    margin: 0 -25px;
    padding-bottom: 15px;
}

.media-item-new {
    background-color: white;
    border-radius: 5px;
    float: left;
    margin: 15px 0 0 15px;
    padding: 15px;
    position: relative;
    width: 150px;
    height: 125px;
    text-align: center;
}

.media-item-new2 {
    background-color: white;
    border-radius: 5px;
    float: left;
    margin: 15px 0 0 25px;
    padding: 15px;
    position: relative;
    width: 143px;
    height: 60px;
    text-align: center;
}

.media-heading-new {
    font-size: 13px;
    line-height: 1.3;
    margin: 5px 0;
    color: #4679b2;
    height: 30px;
}

.media-view-new {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transition: all 0.2s ease-in 0s;
}

.media-view-new span {
    display: none;
}

.media-dataset-new {
    font-size: 13px;
    color: #4679b2;
}


/* ====================================
   Media grid - organizations
   ==================================== */

.media-grid-org::before, .media-grid-org::after {
    content: "";
    display: table;
    line-height: 0;
}

.media-grid-org::after {
    clear: both;
}

.media-grid-org {
    background: none transparent;
    list-style: outside none none;
    margin: 0 -25px;
    padding-bottom: 15px;
}

.media-item-org {
    background-color: white;
    border-radius: 5px;
    float: left;
    margin: 15px 0 0 13px;
    padding: 15px;
    position: relative;
    width: 190px;
    height: 190px;
    text-align: center;
}

.media-heading-org {
    font-size: 13px;
    line-height: 1.3;
    margin: 5px 0;
    color: #4679b2;
    text-align: center;
}

.media-view-org {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transition: all 0.2s ease-in 0s;
}

.media-view-org span {
    display: none;
}

.media-image-org {
    border-radius: 4px;
    max-height: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.media-image-align-org {
    max-width: 100%;
    height: 115px;
}


/* ====================================
   Account / Navigation fixes
   ==================================== */

.account-masthead .account ul li {
    border-left: 0;
}

.masthead .nav-collapse {
    padding-top: 55px;
}

.masthead .navigation {
    margin-right: 0;
}

.nav > li > a > i {
    display: none;
}


/* ====================================
   Toolbar / Breadcrumb
   ==================================== */

.toolbar {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #444444;
    position: relative;
    margin-bottom: 10px;
    padding: 5px 0;
}

.breadcrumbtoolbar {
    background-color: #f5f5f5;
}

.breadcrumb > li {
    text-shadow: none;
    color: #444444;
}

.toolbar .breadcrumb li::after {
    color: #444444;
}

.toolbar .breadcrumb a {
    color: #444444;
}

.toolbar .breadcrumb a:hover {
    color: #265d96;
    text-decoration: underline;
}

/* Item ativo no breadcrumb */
.toolbar .breadcrumb li.active a,
.toolbar .breadcrumb li.active {
    color: #4679b2;
    font-weight: 600;
}


/* ====================================
   Layout
   ==================================== */

.wrapper {
    margin-top: 35px;
}

.attribution .ckan-footer-logo {
    background: rgba(0, 0, 0, 0) url("/ckan-logo-footer.png") no-repeat scroll left top;
}

.block-link {
    border: 1px solid #e3e3e3;
    display: inline-block;
    padding: 0.5em 0.5em;
    width: 100%;
    color: #187794;
    text-decoration: none;
    margin-top: 1em;
    border-radius: 4px;
}

.block-link:hover, .block-link:active {
    background: #f2f2f2;
    transition: 3s;
}

.primary > *:last-child, .secondary > *:last-child {
    margin-bottom: 21px;
}

.context-info h1.heading {
    word-break: keep-all;
    hyphens: none;
}

.dataset-heading a {
    color: #4679b2;
}

body {
    padding-left: 0px;
    padding-right: 0px;
}

.module-heading {
    background-color: transparent;
    border-bottom: none;
    border-top: none;
    color: #4679b2;
    padding: 0px 25px;
}

@media (max-width: 480px) {
    .masthead .nav-collapse {
        padding-top: 0px;
    }
}


/* ====================================
   Cards
   ==================================== */

.card {
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
    margin-bottom: 20px;
    min-height: 100px;
    padding: 18px;
}

.card {
    background: rgba(0, 0, 0, 0) linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%) repeat scroll 0 0;
}

.geral {
    background: #f2f2f2 none repeat scroll 0 0;
    box-shadow: none;
}

#card_orientacoes {
    padding-left: 25px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #4679b2;
}

#card_orientacoes .titulo {
    font-size: 24px;
    line-height: 1.5;
}

#card_orientacoes .subtitulo {
    font-size: 20px;
}

#card_orientacoes .texto {
    font-size: 12px;
}

#card_orientacoes .btn {
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
    margin-bottom: 20px;
    padding: 3px 10px;
    color: #4679b2;
    width: 125px;
}

#card_orientacoes .btn {
    background: rgba(0, 0, 0, 0) linear-gradient(135deg, #ffffff 0%, #f6f6f6 100%) repeat scroll 0 0;
}


/* =====================================================
   Homepage — Modernização Visual
   ===================================================== */

/* 1. Banner "Por que dados abertos" — gradiente sutil */
.por-que-dados-abertos {
    background: linear-gradient(135deg, #4679b2 0%, #2d5a8e 100%);
}

/* 2. Hero de busca */
.search-hero {
    background: #f4f7fb;
    border-top: 1px solid #e3eaf4;
    border-bottom: 1px solid #e3eaf4;
}

.search-input-group {
    box-shadow: 0 2px 10px rgba(70, 121, 178, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.search-input-group .form-control {
    border-color: #c8d8ec;
}

.search-input-group .form-control:focus {
    border-color: #4679b2;
    box-shadow: none;
}

.btn-search {
    background-color: #4679b2;
    border-color: #4679b2;
    color: #fff;
    font-weight: 500;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-search:hover,
.btn-search:focus {
    background-color: #3a6599;
    border-color: #3a6599;
    color: #fff;
}

/* 3. Títulos de seção */
.titulo-secao {
    color: #4679b2;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* 4. Divisor de seção */
.section-divider {
    border-color: #dee2e6;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* 5. Cards de grupos */
.grupo-item {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.grupo-item:hover {
    background-color: #ebf1f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(70, 121, 178, 0.12);
}

.grupo-titulo {
    color: #4679b2;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.grupo-meta {
    color: #6c757d;
    font-size: 0.75rem;
}

/* 6. Seções brancas — Solicitações e Outros Portais */
.section-solicitacoes,
.section-portais {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
}

.section-solicitacoes {
    box-shadow: inset 0 3px 10px rgba(70, 121, 178, 0.05);
}

.section-portais {
    border-bottom: 3px solid #4679b2;
}

/* 6b. Card interno de solicitações */
.card-solicitacoes {
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(70, 121, 178, 0.08);
}

/* 7. Logos de parceiros */
.portal-logo {
    height: 40px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-logo-link:hover .portal-logo,
.portal-logo-link:focus .portal-logo {
    opacity: 1;
    transform: scale(1.06);
}

/* =====================================================
   Mapa do Site
   ===================================================== */

.mapa-site,
.mapa-site ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mapa-site li {
    line-height: 1.8;
}

.mapa-site a {
    color: #4679b2;
    text-decoration: none;
}

.mapa-site a:hover,
.mapa-site a:focus {
    color: #2d5a8e;
    text-decoration: underline;
}

/* Nível 1 — item principal */
.mapa-site__1 {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.mapa-site__1 > a {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border-left: 3px solid #4679b2;
    padding-left: 0.6rem;
    display: inline-block;
}

.mapa-site__1 > a:hover,
.mapa-site__1 > a:focus {
    color: #4679b2;
    text-decoration: none;
}

/* Nível 2 */
.mapa-site__2 {
    padding-left: 1.4rem;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Nível 3 */
.mapa-site__3 {
    padding-left: 2.8rem;
    font-size: 0.9rem;
}

/* Nível 4 */
.mapa-site__4 {
    padding-left: 4.2rem;
    font-size: 0.875rem;
    color: #555;
}

/* Alto contraste — mapa do site */
body.alto-contraste .mapa-site__1 > a {
    color: #ff0 !important;
    border-left-color: #fff !important;
}

body.alto-contraste .mapa-site a {
    color: #ff0 !important;
}

/* =====================================================
   Alto Contraste
   Ativado via classe .alto-contraste no <body>
   ===================================================== */

body.alto-contraste,
body.alto-contraste .wrapper,
body.alto-contraste main,
body.alto-contraste .module,
body.alto-contraste .module-content,
body.alto-contraste .container,
body.alto-contraste section,
body.alto-contraste article,
body.alto-contraste aside,
body.alto-contraste footer,
body.alto-contraste .masthead {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.alto-contraste a,
body.alto-contraste a:visited {
    color: #ff0 !important;
    text-decoration: underline !important;
}

body.alto-contraste a:hover,
body.alto-contraste a:focus {
    color: #fff !important;
    background-color: #000 !important;
    outline: 2px solid #ff0 !important;
}

/* Barra do Governo RS */
body.alto-contraste #barra-govrs,
body.alto-contraste .barra-govrs-main,
body.alto-contraste .cabecalho__funcionalidades {
    background-color: #000 !important;
    border-bottom: 1px solid #fff !important;
}

body.alto-contraste .barra-govrs__nav-link,
body.alto-contraste .cabecalho__funcionalidades a,
body.alto-contraste .cabecalho__funcionalidades__links-extras a {
    color: #ff0 !important;
}

/* Masthead e navegação */
body.alto-contraste .masthead .navigation .nav-pills li a,
body.alto-contraste .masthead .navigation .nav-pills li.active a {
    color: #ff0 !important;
    background-color: #000 !important;
    border-bottom-color: #fff !important;
}

/* Banner "Por que dados abertos" */
body.alto-contraste .por-que-dados-abertos {
    background: #000 !important;
    border: 1px solid #fff !important;
}

body.alto-contraste .por-que-dados-abertos .text-white,
body.alto-contraste .por-que-dados-abertos p {
    color: #fff !important;
}

/* Hero de busca */
body.alto-contraste .search-hero {
    background: #000 !important;
    border-color: #fff !important;
}

body.alto-contraste .search-hero input,
body.alto-contraste .search-hero .form-control {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.alto-contraste .search-hero .btn-search,
body.alto-contraste .btn,
body.alto-contraste .btn-outline-primary {
    background-color: #000 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
}

body.alto-contraste .btn:hover,
body.alto-contraste .btn-outline-primary:hover {
    background-color: #ff0 !important;
    color: #000 !important;
}

/* Cards e seções */
body.alto-contraste .grupo-item,
body.alto-contraste .card-solicitacoes,
body.alto-contraste .card {
    background-color: #000 !important;
    border: 1px solid #fff !important;
    color: #fff !important;
}

body.alto-contraste .grupo-titulo,
body.alto-contraste .titulo-secao,
body.alto-contraste .page-heading,
body.alto-contraste h1,
body.alto-contraste h2,
body.alto-contraste h3,
body.alto-contraste h4,
body.alto-contraste h5,
body.alto-contraste h6 {
    color: #fff !important;
}

body.alto-contraste .text-muted,
body.alto-contraste .grupo-meta {
    color: #ccc !important;
}

body.alto-contraste .section-divider {
    border-color: #fff !important;
    opacity: 1 !important;
}

body.alto-contraste .section-solicitacoes,
body.alto-contraste .section-portais {
    background-color: #000 !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

/* Breadcrumb */
body.alto-contraste .breadcrumb {
    background-color: #000 !important;
}

body.alto-contraste .breadcrumb-item a,
body.alto-contraste .breadcrumb-item.active {
    color: #ff0 !important;
}

body.alto-contraste .breadcrumb-item + .breadcrumb-item::before {
    color: #fff !important;
}

/* Rodapé */
body.alto-contraste footer,
body.alto-contraste .site-footer {
    background-color: #000 !important;
    color: #fff !important;
    border-top: 1px solid #fff !important;
}

body.alto-contraste footer a {
    color: #ff0 !important;
}


/* =====================================================
   Cards de Grupos — grade responsiva com hover
   ===================================================== */

.grupo-card {
    background-color: #ffffff;
    border: 1px solid #e3eaf4;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.grupo-card:hover {
    background-color: #ebf1f8;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(70, 121, 178, 0.15);
    border-color: #c8d8ec;
}

.grupo-card__img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.grupo-card__titulo {
    color: #4679b2;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.grupo-card__meta {
    color: #6c757d;
    font-size: 0.78rem;
}

.grupo-card__contagem {
    font-weight: 500;
    font-size: 0.82rem;
    color: #4679b2;
    display: block;
    line-height: 1.4;
}

/* Alto contraste — cards de grupos */
body.alto-contraste .grupo-card {
    background-color: #000 !important;
    border: 1px solid #fff !important;
    color: #fff !important;
}

body.alto-contraste .grupo-card:hover {
    background-color: #111 !important;
    box-shadow: none !important;
}

body.alto-contraste .grupo-card__titulo {
    color: #ff0 !important;
}

body.alto-contraste .grupo-card__meta {
    color: #ccc !important;
}

body.alto-contraste .grupo-card__contagem {
    color: #ff0 !important;
}
