@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================
   DESIGN SYSTEM — ROOT VARIABLES
   ============================================ */
:root {
  /* Primary palette */
  --azul-institucional: #005ca9;
  --azul-medio: #2f80c1;
  --azul-claro: #eaf4fb;
  --verde-sucesso: #1f8a5b;
  --verde-claro: #d1fae5;

  /* Alert/negative — red reserved exclusively for alerts */
  --vermelho-alerta: #c8102e;
  --amarelo-atencao: #f2c94c;

  /* Neutrals */
  --cinza-texto: #334155;       /* body text — contrast 7.5:1 on white */
  --cinza-muted: #475569;       /* secondary text — contrast 5.9:1 on white */
  --cinza-borda: #d8e2ec;
  --cinza-fundo: #f4f7fb;
  --branco: #ffffff;

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-xs: 0 3px 10px rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius: 14px;

  /* Typography */
  --font-family: "Inter", "Segoe UI", Arial, sans-serif;
  --font-size-body: 14px;
  --font-size-min: 12px;
  --font-size-axis: 10px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cinza-texto);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: 1.5;
  background: var(--branco);
  min-height: 100vh;
}

/* ============================================
   APP ROOT & CONTAINER
   ============================================ */
.app-root {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 56px;
  overflow-x: hidden;
  background: var(--branco);
}

.app-container {
  width: min(1240px, calc(100% - 40px));
  margin: 24px auto 0;
}

/* Dashboard container — main wrapper */
.dashboard-container {
  width: 100%;
  min-height: 100vh;
  background: var(--branco);
  font-family: var(--font-family);
  color: var(--cinza-texto);
}

/* Dashboard content — main content wrapper below filter panel */
.dashboard-content {
  width: min(1240px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 0;
}

/* ============================================
   HEADER (with FUNASA logo)
   ============================================ */
.header,
.app-header,
.dashboard-header {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  color: var(--branco);
  background: #1b2a4a;
  border-bottom: none;
}

.header-inner,
.app-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
}

.app-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header::after {
  content: none;
}

.app-kicker {
  display: none;
}

.app-title {
  margin: 0;
  color: var(--branco);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.app-subtitle {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ============================================
   STICKY FILTER PANEL
   ============================================ */
.filter-panel {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  padding: 12px 20px;
  background: var(--branco);
  border-bottom: 1px solid var(--cinza-borda);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
  border-radius: 0;
}

.filter-panel .filter-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
}

.filter-panel .filter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.filter-panel .filter-item-wide {
  flex: 1;
  min-width: 240px;
}

.filter-panel .filter-label {
  font-size: var(--font-size-min);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cinza-muted);
}

.filter-panel .btn-clear-filters {
  padding: 8px 16px;
  font-family: var(--font-family);
  font-size: var(--font-size-min);
  font-weight: 600;
  color: var(--azul-institucional);
  background: var(--azul-claro);
  border: 1px solid var(--azul-medio);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-panel .filter-item-button {
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
  align-self: flex-end;
}

.filter-panel .btn-clear-filters:hover {
  background: var(--azul-institucional);
  color: var(--branco);
}

/* ============================================
   KPI ROW — horizontal flex row for KPI cards
   ============================================ */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  margin-bottom: 24px;
}

.kpi-row > * {
  flex: 1 1 180px;
  min-width: 0;
}

/* ============================================
   KPI CARD — base card styling
   ============================================ */
.kpi-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-left: 5px solid var(--azul-medio);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow-wrap: anywhere;
}

.kpi-label {
  margin: 0 0 8px;
  color: var(--cinza-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* KPI VALUE — large numeric display (1.5× body font size = ~21px) */
.kpi-value {
  margin: 0;
  color: #12263f;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ============================================
   KPI MODIFIERS
   ============================================ */

/* Success modifier — for mean-based cards (green accent) */
.kpi-card.kpi-success {
  border-left-color: var(--verde-sucesso);
}

.kpi-card.kpi-success .kpi-value {
  color: var(--verde-sucesso);
}

/* Danger modifier — red only for alerts */
.kpi-danger {
  border-left-color: var(--vermelho-alerta);
}

.kpi-danger .kpi-value {
  color: var(--vermelho-alerta);
}

/* Warning modifier */
.kpi-warning {
  border-left-color: var(--amarelo-atencao);
}

.kpi-warning .kpi-value {
  color: #9a6b00;
}

/* ============================================
   KPI TOOLTIP — appears on hover
   ============================================ */
.kpi-has-tooltip {
  position: relative;
  cursor: help;
}

.kpi-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  z-index: 200;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kpi-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.kpi-has-tooltip:hover .kpi-tooltip {
  visibility: visible;
  opacity: 1;
}

/* ============================================
   TWO-COLUMN GRID — responsive layout
   ============================================ */
.two-col-grid,
.two-column-grid,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 24px;
}

.two-col-grid > *,
.two-column-grid > *,
.chart-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ============================================
   FULL-WIDTH SECTION — spans full content width
   ============================================ */
.full-width-section,
.full-width,
.chart-full-width {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 24px;
}

/* ============================================
   SECTION — generic section spacing
   ============================================ */
.section {
  width: 100%;
  margin-bottom: 28px;
  padding: 0;
}

/* ============================================
   SECTION HEADER — title with divider line
   ============================================ */
.section-header {
  margin-bottom: 16px;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--azul-institucional);
  border-radius: 2px;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  color: #16324f;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-description {
  margin: 4px 0 0;
  color: var(--cinza-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ============================================
   CHART CONTAINER — wrapper for chart components
   ============================================ */
.chart-container {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

/* ============================================
   SECTION CARDS & CONTENT PANELS
   ============================================ */
.section-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 20px;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.section-card .dash-graph {
  min-height: 330px;
}

.content-panel {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.content-panel > * {
  min-width: 0;
  max-width: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h3 {
  margin: 0;
  color: #16324f;
  font-size: clamp(1.32rem, 1.16rem + 0.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

h4 {
  margin: 0 0 14px;
  color: var(--azul-institucional);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin: 8px 0 0;
  max-width: 980px;
  color: var(--cinza-muted);
  line-height: 1.65;
  font-size: var(--font-size-body);
}

hr {
  width: 100%;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--cinza-borda);
}

.section-subtitle {
  margin-top: 28px;
  color: #16324f;
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================
   LEGACY GRID CLASSES (backward compatibility)
   ============================================ */
.grid-2,
.grid-3,
.kpi-grid {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.grid-2 > *,
.grid-3 > *,
.kpi-grid > * {
  min-width: 0;
  max-width: 100%;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid {
  --kpi-min-card: 210px;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--kpi-min-card)), 1fr)
  );
}

.kpi-grid-5 {
  --kpi-min-card: 150px;
  gap: 10px 14px;
}

.kpi-grid-5 .kpi-card {
  padding: 12px 14px;
  border-left-width: 4px;
}

.kpi-grid-5 .kpi-label {
  margin-bottom: 6px;
  font-size: 0.66rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.kpi-grid-5 .kpi-value {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem);
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ============================================
   PLOTLY CHARTS
   ============================================ */
.dash-graph {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.js-plotly-plot,
.plot-container,
.svg-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================================
   DATA TABLES
   ============================================ */
.dash-table-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--cinza-borda);
  border-radius: 12px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
  color: var(--branco) !important;
  background-color: var(--azul-institucional) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  font-weight: 800 !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
  border-color: #e8eef5 !important;
  color: var(--cinza-texto) !important;
  font-size: var(--font-size-min);
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner tr:nth-child(even) td {
  background-color: #f8fafc !important;
}

/* ============================================
   TABS (legacy support)
   ============================================ */
.tabs-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  margin-bottom: 18px;
}

.tabs-wrapper .tab-container {
  display: flex !important;
  flex-wrap: wrap;
  width: 100% !important;
  max-width: 100%;
}

.tabs-wrapper .tab {
  flex: 1 1 220px !important;
  min-width: 0 !important;
  width: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px !important;
  color: var(--azul-institucional) !important;
  font-weight: 800 !important;
  background: var(--branco) !important;
  border: 1px solid var(--cinza-borda) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-xs);
  white-space: normal !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tabs-wrapper .tab:hover {
  border-color: rgba(0, 92, 169, 0.38) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.tabs-wrapper .tab-selected {
  color: var(--branco) !important;
  background: var(--azul-institucional) !important;
  border-color: var(--azul-institucional) !important;
  box-shadow: 0 10px 26px rgba(0, 92, 169, 0.22);
}

.subtabs-parent {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 18px;
}

.subtabs-container {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.subtabs-container.tab-container,
.subtabs-container .tab-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.subtabs-container .tab,
.subtabs-container.tab-container .tab {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
  min-height: 58px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 8px !important;
  color: var(--azul-institucional) !important;
  font-size: 0.82rem;
  font-weight: 800 !important;
  line-height: 1.25;
  text-align: center;
  white-space: normal !important;
  background: var(--branco) !important;
  border: 1px solid var(--cinza-borda) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.subtabs-container .tab:hover,
.subtabs-container.tab-container .tab:hover {
  border-color: rgba(0, 92, 169, 0.38) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.subtabs-container .tab-selected,
.subtabs-container.tab-container .tab-selected {
  color: var(--branco) !important;
  background: var(--azul-institucional) !important;
  border-color: var(--azul-institucional) !important;
  box-shadow: 0 10px 26px rgba(0, 92, 169, 0.22);
}

.subtabs-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ============================================
   LEGACY CONTENT AREAS
   ============================================ */
#conteudo-subabas {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

#conteudo-subabas > * {
  min-width: 0;
  max-width: 100%;
}

.adimplencia-subtab {
  display: grid;
  gap: 22px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.adimplencia-subtab > * {
  min-width: 0;
  max-width: 100%;
}

.adimplencia-summary-card {
  max-width: 100%;
  padding: 14px 16px;
  overflow: hidden;
}

/* ============================================
   TABLE FILTERS (legacy)
   ============================================ */
.table-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.filter-item-wide {
  flex: 1;
  min-width: 240px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cinza-muted);
}

.filter-dropdown .Select-control {
  border-radius: 6px !important;
  border-color: #e2e8f0 !important;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.15s;
}

.filter-input:focus {
  border-color: var(--azul-institucional);
  box-shadow: 0 0 0 2px rgba(0, 92, 169, 0.1);
}

/* DataTable filter improvements */
.dash-spreadsheet-container .dash-filter {
  font-family: var(--font-family) !important;
  font-size: 12px !important;
  padding: 8px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  background: white !important;
  margin: 4px 2px !important;
}

.dash-spreadsheet-container .dash-filter:focus {
  border-color: var(--azul-institucional) !important;
  box-shadow: 0 0 0 2px rgba(0, 92, 169, 0.12) !important;
  outline: none !important;
}

.dash-spreadsheet-container .dash-filter::placeholder {
  color: #a0aec0 !important;
  font-style: italic;
}

.dash-spreadsheet-container .dash-header {
  font-family: var(--font-family) !important;
}

.dash-spreadsheet-container .dash-spreadsheet-inner input.dash-filter--case--sensitive {
  font-family: var(--font-family);
  font-size: 12px;
  padding: 6px 8px;
}

/* KPIs centered (legacy) */
.kpi-grid-centered {
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* Section spacing in content panels */
.content-panel > div > .kpi-grid {
  margin-bottom: 28px;
}

.content-panel > div > .grid-2 {
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablet landscape / medium screens: reflow at 768–991px */
@media (min-width: 768px) and (max-width: 991px) {
  .two-col-grid,
  .two-column-grid,
  .chart-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }

  /* Allow reflow to single column if min chart width cannot be maintained */
  @supports (grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))) {
    .two-col-grid,
    .two-column-grid,
    .chart-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
  }

  .filter-panel {
    gap: 12px;
  }

  .filter-panel .filter-item {
    min-width: 140px;
  }
}

/* Tablet / small screens: single column below 768px */
@media (max-width: 767px) {
  .two-col-grid,
  .two-column-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-panel .filter-controls {
    flex-wrap: wrap;
  }

  .filter-panel .filter-item,
  .filter-panel .filter-item-wide {
    min-width: 100%;
    max-width: 100%;
  }

  .kpi-row {
    flex-direction: column;
  }

  .kpi-row > * {
    flex: 1 1 auto;
  }
}

/* Small tablet */
@media (max-width: 980px) {
  .app-container {
    width: min(100% - 28px, 1240px);
  }

  .content-panel {
    padding: 20px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subtabs-container.tab-container,
  .subtabs-container .tab-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: single-column stacked at ≤680px */
@media (max-width: 680px) {
  .app-header-inner {
    width: calc(100% - 36px);
    padding: 32px 0 64px;
    flex-wrap: wrap;
  }

  .app-logo {
    position: static;
    display: block;
    width: 78px;
    margin-bottom: 14px;
  }

  .app-kicker,
  .app-title,
  .app-subtitle {
    margin-left: 0;
  }

  .app-container {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .content-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .section-card {
    padding: 16px;
  }

  /* All grids collapse to single column */
  .two-col-grid,
  .two-column-grid,
  .chart-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .subtabs-container.tab-container,
  .subtabs-container .tab-container {
    grid-template-columns: 1fr;
  }

  .tabs-wrapper .tab {
    min-height: 50px;
    padding: 12px !important;
    font-size: 0.9rem;
  }

  .section-card .dash-graph {
    min-height: 280px;
  }

  /* KPI row stacks vertically */
  .kpi-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Filter panel stays sticky on mobile */
  .filter-panel {
    position: sticky;
    top: 0;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .filter-panel .filter-controls {
    flex-wrap: wrap;
  }
}

/* ============================================
   TWO-COLUMN GRID AT ≥992px
   (ensures side-by-side at desktop widths)
   ============================================ */
@media (min-width: 992px) {
  .two-col-grid,
  .two-column-grid,
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   ACCESSIBILITY — ensure minimum contrast
   Text colors verified against white bg:
   - --cinza-texto (#334155): contrast ~7.5:1 ✓
   - --cinza-muted (#475569): contrast ~5.9:1 ✓
   - --azul-institucional (#005CA9): contrast ~5.7:1 ✓
   - --verde-sucesso (#1F8A5B): contrast ~4.6:1 ✓
   - --vermelho-alerta (#C8102E): contrast ~5.3:1 ✓
   - KPI value (#12263f): contrast ~12.5:1 ✓
   All meet WCAG AA 4.5:1 requirement.
   ============================================ */
