/* Responsive: the narrow-viewport courtesy layout, plus reduced-motion.
   Desktop-primary, same as the RRG tool; this makes the phone competent, not special. */

@media (max-width: 760px) {
  .page {
    padding: 16px 12px 32px;
  }
  /* Stack the headline: the count reads first, the history chart follows it. */
  .headline {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  /* The readings table is the accessible equal of the cards, so it must stay a real
     table. It scrolls inside its own box rather than widening the page. */
  .table-wrap {
    overflow-x: auto;
  }
  .readout {
    gap: 8px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
