/* JDesk Website V4.42 — homepage bento layout correction.
   Fixes oversized dead space, text/media overlap and the orphaned wide card while preserving the V4.41 visual language. */

body[data-jdesk-scope="website"] .jd45-product .jd45-bento{
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  gap:18px;
  align-items:stretch;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card{
  display:flex;
  flex-direction:column;
  min-height:0;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card:not(.jd45-bento-main):not(.jd45-bento-wide){
  min-height:335px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-cardcopy{
  flex:0 0 auto;
  padding:30px 30px 14px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-cardcopy h3{
  margin:10px 0 8px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-cardcopy p{
  line-height:1.72;
}

/* Main desktop card: let the screenshot participate in normal flow instead of being pinned to the bottom. */
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main{
  grid-row:span 2;
  min-height:0;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-cardcopy{
  padding:32px 32px 10px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-capability-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 32px 2px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-capability-row span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border:1px solid #eadb9c;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#6f5b13;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card .jd45-shot{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:calc(100% - 48px);
  height:auto;
  aspect-ratio:1.92;
  margin:8px 24px 24px;
  transform:none;
  flex:0 0 auto;
  border-radius:16px;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-shot{
  width:calc(100% - 56px);
  aspect-ratio:1.28;
  margin:16px 28px 28px;
  transform:none;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-shot img{
  object-fit:cover!important;
  object-position:center top!important;
}

/* Single-window illustration also lives in document flow, so the copy can never collide with it. */
body[data-jdesk-scope="website"] .jd45-product .jd45-window-demo{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:calc(100% - 48px);
  height:168px;
  margin:8px 24px 24px;
  flex:0 0 auto;
}

/* The device-management card is intentionally full width; V4.41 left an empty grid cell beside it. */
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide{
  grid-column:1 / -1;
  min-height:350px;
  display:grid;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
  align-items:stretch;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-cardcopy{
  padding:38px 18px 38px 34px;
  align-self:start;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-shot{
  width:auto;
  align-self:stretch;
  min-height:280px;
  aspect-ratio:auto;
  margin:24px 24px 24px 0;
}
body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-shot img{
  object-fit:contain!important;
  object-position:center top!important;
}

/* Tablet: switch before the cards get cramped; this also protects the copy/media boundary. */
@media(max-width:980px){
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento{grid-template-columns:1fr}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main{grid-row:auto}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card,
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card:not(.jd45-bento-main):not(.jd45-bento-wide){min-height:0}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-shot{
    aspect-ratio:1.58;
  }
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-shot img{
    object-fit:contain!important;
  }
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card .jd45-shot{aspect-ratio:1.65}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide{
    grid-column:auto;
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-cardcopy{padding:30px 30px 14px;width:100%}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-shot{
    width:calc(100% - 48px);
    min-height:0;
    aspect-ratio:1.65;
    margin:8px 24px 24px;
    align-self:auto;
  }
}
@media(max-width:600px){
  body[data-jdesk-scope="website"] .jd45-product .jd45-cardcopy,
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-cardcopy,
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-cardcopy{padding:26px 22px 12px}
  body[data-jdesk-scope="website"] .jd45-product .jd45-capability-row{padding:0 22px 2px}
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-card .jd45-shot,
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-main .jd45-shot,
  body[data-jdesk-scope="website"] .jd45-product .jd45-bento-wide .jd45-shot{
    width:calc(100% - 36px);
    margin:8px 18px 18px;
    aspect-ratio:1.5;
  }
  body[data-jdesk-scope="website"] .jd45-product .jd45-window-demo{
    width:calc(100% - 36px);
    margin:8px 18px 18px;
    height:150px;
  }
}
