/* How current the data is.
   A bar exists here to make one comparison readable at a glance: the gap
   between the most current jurisdiction and the least. It carries no colour
   meaning beyond that, and every value it draws is also printed as a number in
   the adjacent cell, so nothing on this page is only available visually. */

.rec-cell {
  min-width: 8rem;
  width: 30%;
}

.rec-bar {
  display: block;
  position: relative;
  width: 100%;
  height: 0.75rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  overflow: hidden;
}

.rec-fill {
  display: block;
  height: 100%;
  background: currentColor;
  opacity: 0.75;
  border-radius: 0.375rem;
}

.rec-bar-none {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* The site's theme is set by its own toggle, which stamps data-theme on the root
   element, and the OS preference is only a default. Keying the track colour off
   prefers-color-scheme alone was wrong and it failed in the direction that hides
   things: on a machine preferring dark, with the page still in its light theme,
   a white track was drawn onto a cream page and the bar's own extent disappeared.
   Both signals are handled, and the explicit attribute wins in both directions,
   the same way style.css does it. */
@media (prefers-color-scheme: dark) {
  .rec-bar { background: rgba(255, 255, 255, 0.14); }
}

:root[data-theme="dark"] .rec-bar { background: rgba(255, 255, 255, 0.14); }
:root[data-theme="light"] .rec-bar { background: rgba(0, 0, 0, 0.08); }

/* The table is wide. It scrolls inside its own container rather than pushing
   the page sideways on a phone, which is where this gets read. */
.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .rec-cell { display: none; }
}
