/* Astoria advisor v4i — 2026-11-16
   Inquiry textarea: at least 3 readable lines on laptop and mobile.
   Description: "read more" sits at the bottom of the whole block, under the fade,
   and only when the text does not fit. On laptop the collapsed block bottom
   aligns with the last KI bot card (height set in property.js). */
#agentSidebar .agent-form textarea,
#objectAdvisor .agent-form textarea{
  box-sizing:border-box;
  line-height:1.35;
  min-height:calc(3 * 1.35em + 24px);
  height:auto;
  max-height:12em;
  resize:vertical;
  overflow:auto;
}

.desc-block .desc-body{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.desc-block .desc-clip{
  position:relative;
  min-width:0;
  min-height:0;
}
.desc-block .desc-inner{min-width:0}
.desc-block .desc-fade{display:none}
.desc-block .desc-body.is-collapsed{overflow:hidden}
.desc-block .desc-body.is-collapsed .desc-clip{
  flex:1 1 auto;
  overflow:hidden;
}
.desc-block .desc-body.is-collapsed .desc-fade{
  display:block;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3em;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);
  pointer-events:none;
  z-index:1;
}
.desc-block .desc-toggle{
  flex:0 0 auto;
  margin-top:6px;
  padding:0;
  position:relative;
  z-index:2;
  background:#fff;
  align-self:flex-start;
  color:#E20074;
  font-weight:700;
}
.desc-block .desc-toggle[hidden]{display:none!important}

/* If static HTML still has the v4h clamp class after v4i re-render, do not keep the old mid-block fade. */
.desc-block:has(#descBody) .desc-text.clamped{max-height:none;overflow:visible}
.desc-block:has(#descBody) .desc-text.clamped::after{content:none;display:none}

@media (max-width:900px){
  #agentSidebar .agent-form textarea,
  #objectAdvisor .agent-form textarea{
    min-height:calc(3 * 1.35em + 24px);
  }
}
