/*
2.15.17 — Candidate Homes Self-Contained Image + Layout Repair
Scoped only after the JS has positively identified the Candidate Homes section.
*/

body.slc-chsc-21517-active .slc-chsc-21517-grid {
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:12px !important;
  width:100% !important;
  max-width:none !important;
  align-items:stretch !important;
  box-sizing:border-box !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-card {
  display:flex !important;
  flex-direction:column !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  padding:8px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-card * {
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  max-width:100% !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-visual {
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:76px !important;
  min-height:76px !important;
  margin:0 0 8px !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:4px !important;
  background:#eef2ec !important;
  box-sizing:border-box !important;
  flex:0 0 76px !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-visual svg {
  display:block !important;
  width:100% !important;
  height:100% !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-card h1,
body.slc-chsc-21517-active .slc-chsc-21517-card h2,
body.slc-chsc-21517-active .slc-chsc-21517-card h3,
body.slc-chsc-21517-active .slc-chsc-21517-card h4,
body.slc-chsc-21517-active .slc-chsc-21517-card h5,
body.slc-chsc-21517-active .slc-chsc-21517-card h6,
body.slc-chsc-21517-active .slc-chsc-21517-card strong,
body.slc-chsc-21517-active .slc-chsc-21517-card b {
  font-size:12px !important;
  line-height:1.25 !important;
  margin-top:0 !important;
  margin-bottom:4px !important;
}

body.slc-chsc-21517-active .slc-chsc-21517-card p,
body.slc-chsc-21517-active .slc-chsc-21517-card span,
body.slc-chsc-21517-active .slc-chsc-21517-card div,
body.slc-chsc-21517-active .slc-chsc-21517-card a {
  font-size:10px !important;
  line-height:1.35 !important;
}

@media(max-width:900px){
 body.slc-chsc-21517-active .slc-chsc-21517-grid{
   grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
}
@media(max-width:560px){
 body.slc-chsc-21517-active .slc-chsc-21517-grid{
   grid-template-columns:1fr !important;
 }
}
