/* ----------------------------------------------------------
 * Apollo - Peer benchmarks (Macro tab)
 * 2x2 grid - Cyprus highlighted - peers faded
 * ---------------------------------------------------------- */

.mi-peer-benchmarks {
  margin-top: 24px;
}

.mi-peer-benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.mi-peer-chart {
  background: #ffffff;
  border: 1px solid #e1e3eb;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mi-peer-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mi-peer-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a2744;
  margin: 0;
}

.mi-peer-chart-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mi-peer-chart-canvas-wrap {
  height: 200px;
}

.mi-peer-chart-caption {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.mi-peer-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mi-peer-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #3d405b;
}

.mi-peer-legend-swatch {
  width: 10px; height: 10px; border-radius: 50%;
}

.mi-peer-legend-item--highlight {
  font-weight: 600;
  color: #1a2744;
}

/* Peer-benchmarks header strip */
.mi-peer-benchmarks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.mi-peer-benchmarks-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  margin: 0;
}

.mi-peer-benchmarks-blurb {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px 0;
  line-height: 1.45;
}

/* Print: keep 2x2 grid, slightly tighter */
@media print {
  .mi-peer-benchmarks-grid { gap: 8px; }
  .mi-peer-chart { page-break-inside: avoid; }
}

/* Below 1280px: design system says show desktop-only notice. The grid
   still degrades gracefully to 1 column for screenshot/print scenarios. */
@media (max-width: 1280px) {
  .mi-peer-benchmarks-grid { grid-template-columns: 1fr; }
}
