/* Coverage-atlas layout (plan 0006 slice 1b). Vendored, no external stylesheet. */

.atlas-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
  .atlas-grid { grid-template-columns: 1fr; }
}

#atlas { position: relative; width: 100%; }
#atlas-canvas { width: 100%; display: block; }

#atlas-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 5;
  max-width: 16rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  border-radius: 4px;
}

#atlas-legend { margin-top: 0.5rem; font-size: 0.75rem; opacity: 0.85; }
.legend-row { display: flex; align-items: center; gap: 0.4rem; margin: 0.2rem 0; }
.legend-label { opacity: 0.75; }
.legend-bar {
  display: inline-block; width: 140px; height: 0.7rem; border-radius: 2px;
  border: 1px solid rgba(128, 128, 128, 0.4);
}
/* Min/max sit against the gradient's two ends, so the scale reads as a range. */
.legend-end { font-variant-numeric: tabular-nums; opacity: 0.75; }
.legend-swatch {
  display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 2px;
  border: 1px solid rgba(128, 128, 128, 0.4);
}

/* Atlas-specific chart layout only — the shared chart styles (.axis-label,
   .grid-line, .chart-legend, .chart-empty, svg sizing) live in base.html so a
   chart renders identically on every page. */
.charts { display: flex; flex-direction: column; gap: 1rem; }
.chart h2 { font-size: 0.95rem; margin: 0 0 0.25rem; font-weight: 600; }
