/**
 * Market comparison on the lot page: two horizontal bars (the lot in the brand pink, the average in the brand
 * blue). The width of each bar comes from the --w variable set by the view.
 */
.market-headline {
  font-size: 1rem;
}

.market-bar {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.market-track {
  height: 0.75rem;
  border-radius: 50rem;
  background: #f1f1f1;
  overflow: hidden;
}

.market-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 50rem;
  background: #193891;
}

.market-fill.is-lot {
  background: var(--primary, #cf045b);
}

.market-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6c757d;
}

@media (max-width: 575.98px) {
  .market-bar {
    grid-template-columns: 1fr auto;
  }

  .market-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
