/* [ssr_property_history] — additions on top of history.css for the property-scoped ledger.
   Everything is scoped to .ssr-history--property so the single-listing ledger is untouched.
   Tokens are the --hs-* aliases history.css sets on .ssr-history, with literal fallbacks. */

/* Event column: badge on the first line, the required source line beneath it. */
.ssr-history--property .ssr-history__body--ledger .ssr-history__lstatus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

/* "Source: [IDX] Doorify MLS #10192414" — the icon must stay legible (Rules 17.8), so it is never
   smaller than 16px tall and sits on the same baseline as the text. */
.ssr-history--property .ssr-phist__src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--hs-muted, #6f6d73);
  font-variant-numeric: tabular-nums;
}
.ssr-history--property .ssr-phist__idx {
  display: inline-block;
  height: 16px;
  width: auto;
  vertical-align: middle;
}

/* $/sqft under the price, quieter than the delta. */
.ssr-history--property .ssr-phist__sqft {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--hs-muted, #6f6d73);
  font-variant-numeric: tabular-nums;
}

/* The fold: rows past the visible count hide until the checkbox is ticked. */
.ssr-history--property .ssr-history__state:not(:checked) ~ .ssr-history__list .ssr-phist__row.is-hidden {
  display: none;
}

/* Section 17.10 Closed disclaimer, only present when a Sold row rendered. */
.ssr-history--property .ssr-phist__disclaimer {
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .ssr-history--property .ssr-history__body--ledger .ssr-history__lhead,
  .ssr-history--property .ssr-history__body--ledger .ssr-history__lrow {
    grid-template-columns: 92px minmax(0, 1fr) 112px;
    gap: 10px;
    align-items: start;
  }
  .ssr-history--property .ssr-phist__src {
    flex-wrap: wrap;
    row-gap: 2px;
  }
}
