/* ===================================================================
   CRMV-RJ - Layout Fiel ao WordPress / Elementor / Astra Theme
   Site Oficial: https://www.crmvrj.org.br/
   =================================================================== */

:root {
  /* Tipografia oficial do site CRMV-RJ */
  --font-headings: 'Raleway', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-charts: 'Poppins', 'Nunito', sans-serif;
  
  /* Paleta global oficial do Astra Theme / CRMV-RJ */
  --ast-color-primary: #008acb;         /* Azul destaque CRMV-RJ */
  --ast-color-primary-dark: #004b87;    /* Azul institucional escuro */
  --ast-color-accent: #046bd2;         /* Azul links Astra */
  --ast-color-accent-hover: #045cb4;
  --ast-color-dark: #1e293b;           /* Títulos escuros */
  --ast-color-text: #434f5f;           /* Texto corpo */
  --ast-color-muted: #64748b;          /* Textos secundários */
  --ast-color-bg-subtle: #f9fafb;      /* Fundo suave Astra */
  --ast-color-border: #e2e8f0;         /* Linhas e bordas */
  --ast-color-border-dark: #d1d5db;
  --ast-color-white: #ffffff;
  
  /* Cores das 8 Regiões do Estado do RJ (SETRAB) */
  --col-metropolitana: #9a7ecc;
  --col-medio-paraiba: #e6ca3a;
  --col-centro-sul: #45a855;
  --col-serrana: #4aa6f2;
  --col-norte: #f69259;
  --col-noroeste: #99472e;
  --col-baixadas: #489a8f;
  --col-costa-verde: #e8569c;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ast-color-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ast-color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ast-color-accent-hover);
}

.ast-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================================
   Top View Toolbar (Controle de Visualização e Embed)
   =================================================================== */

.preview-toolbar {
  background: #0f172a;
  color: #94a3b8;
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 1000;
}

.preview-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-pill {
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.preview-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-preview-switch {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-preview-switch:hover,
.btn-preview-switch.is-active {
  background: var(--ast-color-primary);
  border-color: var(--ast-color-primary);
  color: #ffffff;
}

/* ===================================================================
   WordPress Astra Header (Idêntico a https://www.crmvrj.org.br/)
   =================================================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  position: relative;
  z-index: 50;
}

/* Mini Top Bar with Official Government Icons */
.mini-top-bar {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
  background: #ffffff;
}

.mini-top-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.mini-icon-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.mini-icon-item:hover {
  color: var(--ast-color-primary);
  background: #f8fafc;
}

.mini-icon-item img {
  height: 22px;
  width: auto;
  display: block;
}

/* Main Navigation Header */
.main-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo-link img {
  max-width: 270px;
  height: auto;
  display: block;
}

.main-navigation-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-menu li a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ast-color-text);
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.main-menu li a:hover {
  color: var(--ast-color-primary);
}

.main-menu li.has-dropdown a::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 2px;
  color: #94a3b8;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ast-color-text);
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.nav-search-btn:hover {
  color: var(--ast-color-primary);
}

/* ===================================================================
   Seção "CRMV-RJ em Números" (Elementor & Astra Layout Fiel)
   =================================================================== */

.crmvrj-numeros-section {
  position: relative;
  background: #ffffff;
  padding: 50px 0 70px;
  overflow: hidden;
}

/* Wavy Background (Shape Divider Idêntico ao Anexo 1) */
.elementor-wave-bg {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  height: 520px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.elementor-wave-bg svg {
  width: 100%;
  height: 100%;
}

.section-content-wrap {
  position: relative;
  z-index: 10;
}

/* Título e Subtítulo da Seção (Estilo Elementor) */
.elementor-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.elementor-section-title {
  font-family: var(--font-headings);
  font-size: 32px;
  font-weight: 500;
  color: #008acb;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.elementor-section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: #434f5f;
  margin-bottom: 0;
}

/* ===================================================================
   Cards Padronizados do Elementor (Estilo Anexo 1)
   =================================================================== */

.wp-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 24px -2px rgba(0, 138, 203, 0.12), 0 1px 4px rgba(67, 79, 95, 0.05);
  border: 1px solid rgba(0, 138, 203, 0.08);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-card:hover {
  box-shadow: 0 8px 30px -4px rgba(0, 138, 203, 0.18), 0 2px 8px rgba(67, 79, 95, 0.08);
}

.wp-card-subheading {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ===================================================================
   Destaque Principal: Card do Mapa Interativo Regional
   =================================================================== */

.map-main-card {
  margin-bottom: 30px;
  padding: 28px;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.map-card-header-left h3 {
  font-family: var(--font-headings);
  font-size: 23px;
  font-weight: 700;
  color: #004b87;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-header-left p {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 2px;
}

.map-search-wrapper {
  position: relative;
  min-width: 280px;
  flex: 0 1 320px;
}

.map-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 14px 8px 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #475569;
  background: #ffffff;
  transition: all 0.2s ease;
}

.map-search-input:focus {
  outline: none;
  border-color: #008acb;
  box-shadow: 0 0 0 3px rgba(0, 138, 203, 0.15);
}

.map-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

/* Layout Expandido do Mapa */
.map-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Área do SVG Ampliada (Largura Total e Altura Maximizada) */
.map-canvas-container {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f9fd 100%);
  border: 1px solid #dcebf7;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

#mapa-rj-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  display: block;
  margin: 0 auto;
}

/* Regiões e Municípios */
.region-group {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.muni-path {
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.region-group:hover .muni-path {
  stroke: #ffffff;
  stroke-width: 1.6;
  filter: brightness(1.1);
}

.region-group.is-active .muni-path {
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: brightness(1.15) drop-shadow(0 3px 5px rgba(0,0,0,0.25));
}

.region-group.is-dimmed {
  opacity: 0.3;
}

.muni-path.is-highlighted {
  fill: #f59e0b !important;
  stroke: #ffffff !important;
  stroke-width: 2.6 !important;
  filter: drop-shadow(0 0 8px #f59e0b);
}

.map-label-group.is-dimmed {
  opacity: 0.25;
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(1, 46, 64, 0.95);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  max-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-tooltip.is-visible {
  opacity: 1;
}

.map-tooltip-region {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-headings);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-tooltip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.map-tooltip-val {
  font-size: 1.15rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.map-tooltip-muni {
  font-size: 0.78rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 4px;
}

/* Painel de Foco da Região Selecionada (Abaixo do Mapa) */
.focus-region-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--focus-color, #008acb);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.focus-region-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.focus-region-title-wrap {
  display: flex;
  flex-direction: column;
}

.focus-region-badge {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.focus-region-title {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  font-weight: 800;
  color: #004b87;
  line-height: 1.2;
}

.focus-region-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.focus-region-percent {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--focus-color, #008acb);
  line-height: 1;
}

.focus-region-sublabel {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.focus-bar-bg {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin: 14px 0;
}

.focus-bar-fill {
  height: 100%;
  background: var(--focus-color, #008acb);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.focus-region-munis {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.7;
  max-height: none;
  overflow: visible;
}

.focus-region-munis strong {
  color: #0f172a;
  margin-right: 4px;
}

/* Seção de Grade das 8 Regiões Fluminenses (Sem Barra de Rolagem) */
.ranking-section-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
}

.ranking-section-header {
  margin-bottom: 16px;
}

.ranking-section-header h4 {
  font-family: var(--font-headings);
  font-size: 1.28rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.ranking-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 960px) {
  .ranking-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ranking-grid-container {
    grid-template-columns: 1fr;
  }
}

.ranking-card-item {
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  min-height: 86px;
}

.ranking-card-item:hover {
  border-color: var(--reg-color, #008acb);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}

.ranking-card-item.is-active {
  border-color: var(--reg-color, #008acb);
  box-shadow: 0 0 0 2px var(--reg-color, #008acb), 0 10px 22px rgba(0, 0, 0, 0.09);
  background: #ffffff;
}

.ranking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ranking-dot-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ranking-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ranking-name {
  font-size: 1.18rem;
  color: #1e293b;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-val {
  font-family: var(--font-headings);
  font-size: 1.55rem;
  font-weight: 900;
  flex-shrink: 0;
}

.ranking-card-bar {
  height: 7px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  width: 100%;
}

.ranking-card-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* ===================================================================
   Grid de Cards Inferiores (Estabelecimentos + Demografia Histórica)
   =================================================================== */

.cards-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Donut Chart de Estabelecimentos */
.donut-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.donut-canvas-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-legend-mini {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.donut-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f8fafc;
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* Gráficos de Coluna (Profissionais por Idade - Anexo 1) */
.bar-chart-container {
  height: 220px;
  width: 100%;
  position: relative;
}

/* Gráficos de Pizza de Gênero (Med Vet & Zoo - Anexo 1) */
.pie-chart-container {
  height: 220px;
  width: 100%;
  position: relative;
}

/* Rodapé dos Dados / Fontes Oficiais */
.sources-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sources-card strong {
  color: #1e293b;
}

/* ===================================================================
   WordPress Astra Footer (Idêntico ao site oficial)
   =================================================================== */

.site-footer {
  background: #012e40;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-widgets-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 50px 0 40px;
}

@media (max-width: 900px) {
  .footer-widgets-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-widgets-row {
    grid-template-columns: 1fr;
  }
}

.footer-widget-col h3,
.footer-widget-col h2 {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-widget-col p {
  margin-bottom: 10px;
  font-size: 13.5px;
}

.footer-widget-col a {
  color: #7acdee;
}

.footer-widget-col a:hover {
  color: #ffffff;
}

.footer-logo-img {
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
  display: block;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-social-icons {
  display: flex;
  gap: 14px;
}

.footer-social-icons a {
  color: #ffffff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-social-icons a:hover {
  background: #008acb;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===================================================================
   Modo Exclusivo de Widget / Embed (Quando embutido no WordPress)
   =================================================================== */

body.embed-mode {
  background: transparent !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body.embed-mode .site-header,
body.embed-mode .site-footer,
body.embed-mode .preview-toolbar {
  display: none !important;
}

body.embed-mode .crmvrj-numeros-section {
  padding: 10px 0 !important;
}

body.embed-mode .ast-container {
  max-width: 100% !important;
  padding: 0 10px !important;
}

body.embed-mode .map-main-card {
  padding: 24px 16px !important;
}


/* ===================================================================
   Abas Interativas: Pessoa Física vs Pessoa Jurídica
   =================================================================== */

/* ===================================================================
   Abas Interativas: Pessoa Física vs Pessoa Jurídica (Visual Ampliado)
   =================================================================== */

.category-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.category-tabs-nav {
  display: inline-flex;
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 9999px;
  border: 1px solid #dce4ec;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  gap: 8px;
}

.category-tab-btn {
  background: transparent;
  border: none;
  padding: 14px 34px;
  border-radius: 9999px;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  color: #008acb;
}

.category-tab-btn.is-active {
  background: #ffffff;
  color: #008acb;
  box-shadow: 0 4px 14px rgba(0, 138, 203, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-tab-btn .tab-count {
  background: rgba(0, 138, 203, 0.12);
  color: #008acb;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease forwards;
}

.tab-pane.is-active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badges e Títulos de Categoria (Ampliados) */
.category-section-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #008acb;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 26px;
}

.category-section-banner.banner-pj {
  border-left-color: #f59e0b;
}

.category-banner-title {
  font-family: var(--font-headings);
  font-size: 1.28rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-banner-meta {
  font-size: 1rem;
  color: #475569;
  font-weight: 600;
}

/* Grid de Cards Exclusivo de PJ (Pessoa Jurídica) */
.pj-cards-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .pj-cards-grid {
    grid-template-columns: 1fr;
  }
}

.pj-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .pj-kpi-row {
    grid-template-columns: 1fr;
  }
}

.pj-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.pj-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--kpi-col, #004b87);
}

.pj-kpi-num {
  font-family: var(--font-headings);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--kpi-col, #004b87);
  line-height: 1.05;
  margin: 10px 0;
}

.pj-kpi-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  display: block;
}

.pj-kpi-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.55;
  font-weight: 500;
}

.donut-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.donut-canvas-wrap {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-legend-mini {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donut-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
}

.donut-legend-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.pj-info-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px 28px;
}

.pj-info-box h4 {
  font-family: var(--font-headings);
  color: #004b87;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.pj-info-box ul {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pj-info-box li {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #334155;
}

.pj-info-box li strong {
  color: #0f172a;
}
