.kp-sales-period {
  color: var(--muted);
  margin: -.65rem 0 1.65rem;
}
.kp-results, .kp-sales-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}
.kp-results {
  grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
  align-items: stretch;
}
.kp-sales-numbers { margin: 0; }
.kp-sales-numbers > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--forest);
}
.kp-sales-numbers dt { max-width: 22ch; line-height: 1.4; }
.kp-sales-numbers dd {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .96;
  margin: 0;
}
.kp-portal-rating {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
}
.kp-portal-logo { width: 140px; max-width: 100%; height: auto; display: block; }
.kp-portal-rating figcaption { display: grid; gap: .25rem; margin-top: 1.05rem; line-height: 1.4; }
.kp-portal-rating strong { font-size: 1.75rem; line-height: 1.2; }
.kp-portfolio .kp-sale-card { display: flex; flex-direction: column; border-top: 3px solid var(--forest); }
.kp-portfolio .kp-sale-card p { margin: .55rem 0 1.5rem; }
.kp-portfolio .kp-deal-price {
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.kp-deal-price dt { font-size: .9rem; color: var(--muted); }
.kp-portfolio .kp-deal-price dd {
  margin-top: .2rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}
.kp-sales-nav { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: 1.2rem 0 2.3rem; }
.kp-sales-city { scroll-margin-top: 7rem; }
.kp-sales-city + .kp-sales-city { margin-top: clamp(2.4rem, 5vw, 4.2rem); }
.kp-sales-city h3 { margin: 0 0 .85rem; font-size: clamp(1.45rem, 2.2vw, 2.2rem); }
.kp-sales-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.kp-sales-table th, .kp-sales-table td { padding: .8rem 1rem; vertical-align: middle; }
.kp-sales-table thead th {
  background: var(--forest);
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
}
.kp-sales-table tbody th, .kp-sales-table tbody td { border-bottom: 1px solid var(--line); }
.kp-sales-table tbody tr:nth-child(even) { background: var(--paper); }
.kp-sales-table tbody th, .kp-sales-table tbody td:nth-child(2) { font-weight: 650; }
.kp-sales-table tbody th { width: 50%; }
.kp-sales-table small, .kp-preview-list small {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.4;
}
.kp-sales-table td, .kp-sales-table th:nth-child(n+2) { text-align: right; }
.kp-sales-table td:nth-child(2), .kp-sales-table time { white-space: nowrap; }
.kp-sales-table .kp-narrow-date { display: none; }
.kp-city-service { display: inline-block; margin-top: .85rem; }
.kp-local .kp-city-sold { scroll-margin-top: 7rem; }
.kp-preview-list { list-style: none; padding: 0; margin: 0; }
.kp-preview-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .85rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.kp-preview-list li:first-child { border-top: 2px solid var(--forest); }
.kp-preview-list li:last-child { border-bottom: 1px solid var(--line); }
.kp-preview-list .kp-preview-price { font-weight: 700; white-space: nowrap; }
.kp-local-source { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 1rem 0; color: var(--muted); font-size: .88rem; }
.kp-local-source img { width: 112px; max-width: 100%; height: auto; }
.kp-local-building { margin: 1rem 0 0; }
@media (max-width: 760px) {
  .kp-results { grid-template-columns: 1fr; gap: .75rem; }
  .kp-sales-numbers { gap: 1rem; }
  .kp-portal-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.4rem; }
  .kp-portal-rating figcaption { margin-top: 0; }
  .kp-sales-table th, .kp-sales-table td { padding: .7rem .65rem; }
}
@media (max-width: 520px) {
  .kp-sales-table tbody th { width: auto; overflow-wrap: anywhere; }
  .kp-sales-table th:last-child, .kp-sales-table td:last-child { display: none; }
  .kp-sales-table .kp-narrow-date { display: block; }
}
