/* Homepage recent observations: bounded, neutral history for the three current State facts. */

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

.home-observation-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.home-observation-current,
.home-observation-history {
  min-width: 0;
}

.home-observation-card .metric-icon {
  margin-top: 0;
}

.home-observation-card .home-observation-label,
.home-observation-card .home-observation-delta,
.home-observation-card .home-observation-history-label,
.home-observation-card .home-observation-range {
  display: block;
}

.home-observation-card .home-observation-label {
  margin-top: 0.45rem;
}

.home-observation-card .home-observation-delta {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.home-observation-history {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.home-observation-card .home-observation-history-label {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-observation-chart {
  width: 100%;
  height: 46px;
  margin-top: 0.35rem;
  overflow: visible;
}

.home-observation-line {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 72%, transparent);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.home-observation-dot {
  fill: var(--surface-2);
  stroke: var(--muted);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.home-observation-dot.is-change {
  fill: var(--accent);
  stroke: var(--accent);
}

.home-observation-dot.is-latest {
  stroke-width: 1.6;
}

.home-observation-card .home-observation-range {
  margin-top: 0.25rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .home-observation-history-grid {
    grid-template-columns: 1fr;
  }

  .home-observation-card {
    grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
    align-items: end;
    gap: 1rem;
  }

  .home-observation-history {
    padding-top: 0;
    padding-left: 1rem;
    border-top: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.16);
  }
}

@media (max-width: 520px) {
  .home-observation-card {
    grid-template-columns: 1fr;
  }

  .home-observation-history {
    padding-top: 0.8rem;
    padding-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-left: 0;
  }
}
