/* =========================================================
   XSeller V3.6.5-R1.1 — SAFE HOME GRID COMPACT
   Important:
   - no width changes
   - no grid-template changes
   - no border changes
   - no DOM content injection
   ========================================================= */

body.xs-v365r11-home .xs-v365r11-card{
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
}

/* Simple text cards */
body.xs-v365r11-home .xs-v365r11-card:not(.xs-v365r11-rich){
  min-height:255px!important;
}

/* Cards containing an existing mock/demo/list keep enough room for that asset. */
body.xs-v365r11-home .xs-v365r11-card.xs-v365r11-rich{
  min-height:310px!important;
}

/* Only tighten vertical whitespace. Do not touch width/grid/borders. */
body.xs-v365r11-home .xs-v365r11-card{
  padding-top:24px!important;
  padding-bottom:24px!important;
}

body.xs-v365r11-home .xs-v365r11-card h1,
body.xs-v365r11-home .xs-v365r11-card h2,
body.xs-v365r11-home .xs-v365r11-card h3,
body.xs-v365r11-home .xs-v365r11-card h4{
  margin-bottom:10px!important;
}

body.xs-v365r11-home .xs-v365r11-card p{
  margin-top:0!important;
  margin-bottom:10px!important;
  line-height:1.62!important;
}

/* Existing visual/demo elements get a predictable but restrained top gap. */
body.xs-v365r11-home .xs-v365r11-card [class*="mock" i],
body.xs-v365r11-home .xs-v365r11-card [class*="preview" i],
body.xs-v365r11-home .xs-v365r11-card [class*="sample" i],
body.xs-v365r11-home .xs-v365r11-card [class*="demo" i]{
  margin-top:12px!important;
}

/* Do not introduce white borders from focus/anchor artifacts. */
body.xs-v365r11-home .xs-v365r11-card:focus,
body.xs-v365r11-home .xs-v365r11-card:focus-visible{
  outline:none!important;
}

/* Mobile: natural height is preferable. */
@media(max-width:900px){
  body.xs-v365r11-home .xs-v365r11-card,
  body.xs-v365r11-home .xs-v365r11-card.xs-v365r11-rich,
  body.xs-v365r11-home .xs-v365r11-card:not(.xs-v365r11-rich){
    min-height:0!important;
    height:auto!important;
    padding-top:19px!important;
    padding-bottom:19px!important;
  }
}
