/* ==========================================================
   Deltavisor · the `.dv-hist` stacked histogram, for every site page that draws one: the home
   page's market cards and Property History (site/property/chart.js).

   The component as cdn components.css and the app draw it. The site does not load
   components.css (its `.app__header` rules would restyle this header), so the rules the site
   uses are here, once. The axis math is not copied: it is cdn/js/v1/hist.js, loaded by the page.
   It lived in home.css until 2026-10-08, when a second page needed it.
========================================================== */
.dv-hist { --dv-hist-h: 4.5rem; }
.dv-hist__bars {
  display: flex; align-items: flex-end; gap: 0.125rem; height: var(--dv-hist-h);
  box-shadow: inset 0 -0.0625rem 0 var(--rule);
}
.dv-hist__bar {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.dv-hist__stack {
  display: flex; flex-direction: column-reverse;
  width: 100%; overflow: hidden; border-radius: 0.125rem 0.125rem 0 0;
}
.dv-hist__stack > i { display: block; width: 100%; }
.dv-hist__axis {
  position: relative; height: 1.5rem;
  font-variant-numeric: tabular-nums; font-size: var(--t-3xs); color: var(--ink-mid);
}
.dv-hist__tick { position: absolute; top: 0; left: 0; width: 0; height: 100%; }
.dv-hist__tick-line {
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  width: 0.0625rem; height: 0.3rem; background: currentColor; opacity: 0.55;
}
.dv-hist__tick-label { position: absolute; top: 0.45rem; left: 0; transform: translateX(-50%); white-space: nowrap; }
.dv-hist__tick--first .dv-hist__tick-label { transform: none; }
.dv-hist__tick--last .dv-hist__tick-label { transform: translateX(-100%); }
@media (max-width: 34rem) {
  .dv-hist { --dv-hist-h: 3.5rem; }
  .dv-hist__bars { gap: 0.0625rem; }
}

