/* Desktop safety layer for Company Intelligence profiles. Loaded only on company pages. */
@media (min-width: 861px){
  body.rcai-company-profile .wrap,
  body.rcai-company-profile .page-wrap,
  body.rcai-company-profile .profile-wrap,
  main[data-edge-company-profile],
  main[data-static-company-profile]{
    width:min(1200px,calc(100% - 48px))!important;
    max-width:1200px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.rcai-company-profile .hero,
  main[data-edge-company-profile] .hero,
  main[data-static-company-profile] .hero{
    grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr)!important;
    gap:36px!important;
  }
  body.rcai-company-profile .main,
  main[data-edge-company-profile] .main,
  main[data-static-company-profile] .main{
    grid-template-columns:minmax(0,1.65fr) minmax(330px,.85fr)!important;
    gap:28px!important;
  }
  body.rcai-company-profile .hero>*,body.rcai-company-profile .main>*,
  main[data-edge-company-profile] .hero>*,main[data-edge-company-profile] .main>*,
  main[data-static-company-profile] .hero>*,main[data-static-company-profile] .main>*{
    min-width:0!important;
  }
  body.rcai-company-profile .content,body.rcai-company-profile .side,
  main[data-edge-company-profile] .content,main[data-edge-company-profile] .side,
  main[data-static-company-profile] .content,main[data-static-company-profile] .side{
    min-width:0!important;
    width:100%!important;
  }
  body.rcai-company-profile .quick,
  main[data-edge-company-profile] .quick,
  main[data-static-company-profile] .quick{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.rcai-company-profile .q,
  main[data-edge-company-profile] .q,
  main[data-static-company-profile] .q{
    min-width:0!important;
    overflow:hidden!important;
  }
  body.rcai-company-profile .card,
  main[data-edge-company-profile] .card,
  main[data-static-company-profile] .card{
    min-width:0!important;
    max-width:100%!important;
  }
  body.rcai-company-profile .fact strong,
  main[data-edge-company-profile] .fact strong,
  main[data-static-company-profile] .fact strong{
    overflow-wrap:anywhere!important;
  }
  body.rcai-company-profile .scores,
  main[data-edge-company-profile] .scores,
  main[data-static-company-profile] .scores{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* Prevent any desktop metric strip from overflowing into the right rail. */
body.rcai-company-profile .stats,
body.rcai-company-profile .metrics,
body.rcai-company-profile .profile-stats,
body.rcai-company-profile .company-stats{
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
body.rcai-company-profile .stats>*,
body.rcai-company-profile .metrics>*,
body.rcai-company-profile .profile-stats>*,
body.rcai-company-profile .company-stats>*{min-width:0!important;overflow-wrap:anywhere!important}
