/* JustiX v0.8.5.3 — Court Participant Containment Fix
   Participant names and metadata must never escape their own cards. */
.legacy-court-2d .judge-person,
.legacy-court-2d .lawyer-person{
  overflow:visible!important;
}
.legacy-court-2d .court-person-copy{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:78px;
  padding:14px 14px 13px;
  margin-top:-3px;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  background:linear-gradient(180deg,#6b4b28 0%,#3c2818 100%);
  border:1px solid rgba(255,255,255,.035);
  box-shadow:0 12px 28px rgba(0,0,0,.20);
  position:relative;
  z-index:2;
  overflow:hidden;
}
.legacy-court-2d .judge-person .court-person-copy{
  background:linear-gradient(180deg,#6b4b28 0%,#3c2818 100%);
}
.legacy-court-2d .court-person-copy b,
.legacy-court-2d .court-person-copy span{
  display:block!important;
  box-sizing:border-box;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
.legacy-court-2d .court-person-copy b{
  color:#fff!important;
  font-size:clamp(12px,1.05vw,16px)!important;
  line-height:1.18!important;
  font-weight:850!important;
}
.legacy-court-2d .court-person-copy span{
  color:#cbd5df!important;
  font-size:clamp(10px,.9vw,14px)!important;
  line-height:1.32!important;
}
.legacy-court-2d .lawyer-person .avatar,
.legacy-court-2d .judge-person .avatar{
  position:relative;
  z-index:3;
  flex:0 0 auto;
}
/* Keep enough width for normal legal role names before wrapping. */
.legacy-court-2d .lawyer-person{
  width:31%!important;
  max-width:330px!important;
  min-width:190px!important;
}
.legacy-court-2d .judge-person{
  width:42%!important;
  max-width:470px!important;
  min-width:240px!important;
}
@media(max-width:900px){
  .legacy-court-2d .lawyer-person{width:38%!important;min-width:160px!important}
  .legacy-court-2d .judge-person{width:55%!important;min-width:220px!important}
  .legacy-court-2d .court-person-copy{padding:12px 10px;min-height:72px}
}
@media(max-width:650px){
  .legacy-court-2d .lawyer-person{width:42%!important;min-width:0!important;max-width:42%!important}
  .legacy-court-2d .judge-person{width:64%!important;min-width:0!important;max-width:64%!important}
  .legacy-court-2d .court-person-copy{padding:10px 8px;min-height:66px;border-radius:12px;gap:5px}
  .legacy-court-2d .court-person-copy b{font-size:12px!important;line-height:1.18!important}
  .legacy-court-2d .court-person-copy span{font-size:10px!important;line-height:1.25!important}
}
@media(max-width:430px){
  .legacy-court-2d .court-person-copy{padding:9px 6px;min-height:62px}
  .legacy-court-2d .court-person-copy b{font-size:11px!important}
  .legacy-court-2d .court-person-copy span{font-size:9px!important}
}
