/* STATS -> COMPARE: a month or day per row, with a bar for how busy it was against the busiest one shown. */
.stats-compare-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stats-compare-table .busiest strong {
  color: var(--c-amber);
}

.stats-compare-bar-cell {
  width: 40%;
  min-width: 120px;
  white-space: nowrap;
}

.stats-compare-bar {
  display: inline-block;
  height: 10px;
  min-width: 2px;
  max-width: calc(100% - 4.5rem);
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(46, 213, 255, 0.35), var(--c-cyan));
  border-radius: 2px;
}

.stats-compare-change {
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: var(--font-mono);
}

.stats-compare-change--up {
  color: var(--c-green);
}

.stats-compare-change--down {
  color: var(--c-red);
}

/* Phones: the words in the headings are wider than the screen, so the icons carry them, and the bar goes: the
   change against the period before is the part worth keeping. */
@media (max-width: 760px) {
  .stats-compare-word {
    display: none;
  }

  .stats-compare-table {
    font-size: 0.72rem;
  }

  .stats-compare-table td,
  .stats-compare-table th {
    padding: 4px 3px;
  }

  .stats-compare-bar {
    display: none;
  }

  .stats-compare-bar-cell {
    width: auto;
    min-width: 0;
  }

  .stats-compare-change {
    margin-left: 0;
  }
}
