/* Home V10 Phase 5V — content-priority polish from the approved mobile mockup.
 * Focus -> Recent Sales -> Price Movers -> New Updates -> Insight -> Data basis.
 */
@media (max-width:820px){
  html[data-cardondo-home="v10-shell"] .homeV10RecentSales{
    order:3!important;
    margin:15px 0 0!important;
    padding:12px 0 0!important;
    border-top:8px solid #f6f6f4!important;
    background:#fff!important;
  }
  html[data-cardondo-home="v10-shell"] .v9Movement{order:4!important}
  html[data-cardondo-home="v10-shell"] .v9News{order:5!important}
  html[data-cardondo-home="v10-shell"] .v9CompactOneInsight{order:6!important}
  html[data-cardondo-home="v10-shell"] .v9Rules{order:7!important}

  html[data-cardondo-home="v10-shell"] .homeV10RecentSales>header{
    margin:0 0 7px!important;
    padding:0!important;
    align-items:flex-start!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10RecentSales h2{
    font-size:18px!important;
    line-height:1.15!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10RecentSales header p{
    margin-top:4px!important;
    font-size:9.8px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10RecentSalesList{
    border-top:1px solid #ececeb!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleRow{
    min-height:78px!important;
    padding:8px 0!important;
    grid-template-columns:46px minmax(0,1fr) 104px!important;
    column-gap:11px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleThumb{
    width:44px!important;
    height:60px!important;
    border-radius:6px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleIdentity b{
    font-size:13.5px!important;
    line-height:1.16!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleIdentity small{
    margin-top:3px!important;
    font-size:8.8px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleMetaLine{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    margin-top:6px!important;
    min-width:0!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleBadge{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    min-height:18px!important;
    padding:0 6px!important;
    border-radius:999px!important;
    background:#eef6ff!important;
    color:#2b73bd!important;
    font-size:8px!important;
    line-height:1!important;
    font-weight:850!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleDate{
    min-width:0!important;
    color:#858a90!important;
    font-size:8.6px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleRow>strong{
    max-width:104px!important;
    font-size:13.2px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SalesAll{
    min-height:38px!important;
    margin-top:8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:11px!important;
    background:#f5f5f3!important;
    color:#35393d!important;
    text-decoration:none!important;
    font-size:10.5px!important;
    font-weight:850!important;
  }

  /* News is for new listings / price updates; completed sales live in the dedicated block. */
  html[data-cardondo-home="v10-shell"] .v9News{
    margin-top:15px!important;
    padding-top:11px!important;
    border-top:8px solid #f6f6f4!important;
  }
  html[data-cardondo-home="v10-shell"] .v9NewsRow.homeV10SoldDuplicate{
    display:none!important;
  }
  html[data-cardondo-home="v10-shell"] .v9News>header{margin-bottom:6px!important}
  html[data-cardondo-home="v10-shell"] .v9NewsList{border-top:1px solid #ececeb!important}

  /* Insight should add interpretation, not repeat the top mover sentence. */
  html[data-cardondo-home="v10-shell"] .v9CompactOneInsight{
    margin-top:14px!important;
    padding:11px 12px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10InsightCopy{
    display:block!important;
    color:#555b60!important;
    font-size:10px!important;
    line-height:1.45!important;
  }

  html[data-cardondo-home="v10-shell"] .v9Rules{margin-top:12px!important}
  html[data-cardondo-home="v10-shell"] .v9Rules summary{min-height:40px!important}

  /* Finish the page immediately after the data-basis drawer. */
  html[data-cardondo-home="v10-shell"] .v9Main{
    min-height:0!important;
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
  html[data-cardondo-home="v10-shell"] .v9Footer{
    margin-top:16px!important;
    margin-bottom:calc(76px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:390px){
  html[data-cardondo-home="v10-shell"] .homeV10SaleRow{
    grid-template-columns:43px minmax(0,1fr) 94px!important;
    column-gap:9px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleThumb{
    width:41px!important;
    height:56px!important;
  }
  html[data-cardondo-home="v10-shell"] .homeV10SaleRow>strong{max-width:94px!important;font-size:12.5px!important}
}
