/* Local fixes for sale lots; keep the rental layout and calculation logic. */
@layer refinements1021 {
  /* All annual groups share the available width, including undated records. */
  #lotRoot .concept860 .history-year-grid961 {
    grid-template-columns:repeat(var(--year-count961),minmax(0,1fr))!important;
    min-width:0!important; gap:10px!important;
  }
  #lotRoot .concept860 .history-year961 {
    grid-template-rows:32px minmax(64px,1fr) 42px 30px!important;
  }
  #lotRoot .concept860 .history-growth961 {
    white-space:normal!important; flex-wrap:wrap!important; align-content:center!important;
    column-gap:4px!important; row-gap:0!important; text-align:center!important;
    font-size:11px!important; line-height:1.2!important;
  }
  #lotRoot .concept860 .history-bar-labels986 {
    padding:5px 1px 0!important; column-gap:4px!important;
  }
  #lotRoot .concept860 .history-bar-labels986>span {
    white-space:normal!important; overflow-wrap:anywhere!important;
    font-size:10px!important; line-height:1.2!important;
  }
  #lotRoot .concept860 .history-year-grid961::before { top:32px!important; bottom:72px!important; }
  #lotRoot .concept860 .history-detail-column964 {
    overflow-y:auto!important; overflow-x:hidden!important; gap:14px!important;
  }
  #lotRoot .concept860 .history-detail-column964>.history-year-detail961,
  #lotRoot .concept860 .history-detail-column964>.history-year-notes963 {
    flex:0 0 auto!important;
  }
  #lotRoot .concept860 .history-year-detail961 dl>div {
    display:block!important; min-height:0!important;
  }
  #lotRoot .concept860 .history-year-detail961 dd {
    white-space:normal!important; overflow-wrap:anywhere!important;
  }
  @media(max-width:700px) {
    #lotRoot .concept860 .history-stage963>.history-years961:not([hidden]) {
      grid-template-columns:minmax(0,1fr)!important; grid-template-rows:minmax(210px,1fr) auto!important;
      overflow-y:auto!important;
    }
    #lotRoot .concept860 .history-detail-column964 {
      border-left:0!important; border-top:1px solid #dce5e2!important; padding:10px 0 0!important;
      overflow:visible!important;
    }
  }
  /* Three sale facts stay in one row on desktop. */
  @media(min-width:1001px) {
    #lotRoot .concept860 .facts794.facts-sale1021 {
      grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
    #lotRoot .concept860 .facts-sale1021>.fact794 {
      grid-column:auto!important; grid-row:auto!important;
      display:flex!important; align-items:baseline!important; flex-wrap:wrap!important; gap:4px 6px!important;
    }
    #lotRoot .concept860 .facts-sale1021>.fact794>svg { align-self:center!important; flex:none!important; }
  }
  /* Keep longer ratings within the main overview gauge. */
  #lotRoot .concept860 #detailIip539 .iip-ring710>span {
    top:68%!important; left:50%!important; transform:translateX(-50%)!important;
    width:68%!important; max-width:68%!important; white-space:normal!important;
    overflow-wrap:normal!important; font-size:10px!important; line-height:1.1!important;
  }
  /* Explicit label/value stacks prevent the initial-price label overlapping its value. */
  html[data-catalog-view] body.catalog688 #cards .lot688 .facts688.sale-facts1021 {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important; height:auto!important; min-height:76px!important; box-sizing:border-box!important;
    gap:12px!important; padding:0!important; margin:0 0 10px!important; align-items:start!important;
  }
  html[data-catalog-view] body.catalog688 #cards .lot688 .sale-facts1021>span {
    display:flex!important; flex-direction:column!important; align-items:flex-start!important;
    gap:5px!important; min-width:0!important; padding:0!important;
  }
  html[data-catalog-view] body.catalog688 #cards .lot688 .sale-facts1021>span>small {
    display:block!important; min-height:2.6em!important; margin:0!important;
    font-size:12px!important; line-height:1.3!important; white-space:normal!important;
  }
  html[data-catalog-view] body.catalog688 #cards .lot688 .sale-facts1021>span>b {
    display:block!important; margin:0!important; font-size:14px!important; line-height:1.3!important;
    white-space:normal!important; overflow-wrap:anywhere!important;
  }
  #lotRoot .sale-scenarios1021 .scenario-stats1021 {
    display:grid!important; align-content:start!important; gap:5px!important;
    margin:14px 0 0!important; padding:0!important; min-height:80px!important;
    font:400 14px/1.4 OnestSite890,Onest,Arial,sans-serif!important; color:#627c76!important;
  }
  #lotRoot .sale-scenarios1021 .scenario-stats1021>div {
    display:flex!important; align-items:baseline!important; flex-wrap:wrap!important; gap:0 6px!important;
  }
  #lotRoot .sale-scenarios1021 .scenario-stats1021 dt::after { content:':'!important; }
  #lotRoot .sale-scenarios1021 .scenario-stats1021 dd { margin:0!important; font-weight:650!important; }
  #lotRoot .sale-scenarios1021>.calculation-disclaimer927,
  #lotRoot .sale-scenarios1021>.expense-caption722,
  #lotRoot .sale-scenarios1021>.note5 {
    font:400 14px/1.5 OnestSite890,Onest,Arial,sans-serif!important;
    color:#627c76!important; margin:12px 0 0!important; padding:0!important;
    background:none!important; border:0!important; box-shadow:none!important;
    white-space:normal!important; overflow-wrap:anywhere!important;
  }
}
@layer summary1009 {
  @media(min-width:1200px) {
    #lotRoot .summary-card1009[data-metric="iip"] .summary-body1009 {
      grid-template-columns:minmax(0,1fr) 108px!important;
    }
  }
  #lotRoot .summary-score1021 {
    font-size:40px!important; color:#285967!important; line-height:1.15!important;
  }
  #lotRoot .summary-card1009[data-metric="iip"] .summary-rating1009 {
    width:100%!important; text-align:right!important;
  }
}
