/* LF-SITE-001B — targeted dashboard + explainer card repairs
   Scope: personal-dashboard + market-explainer only. */

/* Dashboard: the lower-center cards must size to their full content instead of
   being clipped by the older fixed 226px row. */
body[data-page="personal-dashboard"] .center-column{
  grid-template-rows:minmax(0,1fr) auto!important;
}
body[data-page="personal-dashboard"] .lower-center-grid{
  align-items:stretch!important;
}
body[data-page="personal-dashboard"] .allocation-card,
body[data-page="personal-dashboard"] .holdings-card{
  height:auto!important;
  min-height:258px!important;
  overflow:hidden!important;
}

/* Dashboard coverage: show more real stories when the feed returns them. The
   panel follows its content instead of stretching into an empty column; long
   lists scroll inside the card. */
body[data-page="personal-dashboard"] .right-column{
  grid-template-rows:260px auto!important;
  align-content:start!important;
}
body[data-page="personal-dashboard"] .coverage-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}
body[data-page="personal-dashboard"] .coverage-list{
  max-height:420px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:4px;
  scrollbar-gutter:stable;
}
body[data-page="personal-dashboard"] .coverage-list::-webkit-scrollbar{width:7px}
body[data-page="personal-dashboard"] .coverage-list::-webkit-scrollbar-track{background:rgba(130,109,65,.08);border-radius:10px}
body[data-page="personal-dashboard"] .coverage-list::-webkit-scrollbar-thumb{background:rgba(145,108,43,.34);border-radius:10px}

/* Market Explainer: explicit final ownership for the four dark insight cards.
   Loaded last so no cream/light-panel rule can fade this copy again. */
body[data-page="market-explainer"] .explain-cards section{
  color:#f8f3e8!important;
  background:linear-gradient(148deg,#10372a,#06261d 82%)!important;
}
body[data-page="market-explainer"] .explain-cards section>div{
  color:#f1d58d!important;
  opacity:1!important;
}
body[data-page="market-explainer"] .explain-cards section strong{
  color:#fff6df!important;
  opacity:1!important;
}
body[data-page="market-explainer"] .explain-cards section p{
  color:#eef6f1!important;
  opacity:1!important;
  font-weight:500!important;
}
body[data-page="market-explainer"] .explain-cards .premium-icon{
  color:#f0cf7d!important;
  opacity:1!important;
}

@media(max-width:760px){
  body[data-page="personal-dashboard"] .allocation-card,
  body[data-page="personal-dashboard"] .holdings-card{min-height:0!important}
  body[data-page="personal-dashboard"] .coverage-list{max-height:none!important;overflow:visible!important;padding-right:0}
}
