.cfd-photo-edit{width:fit-content;max-width:100%;margin-top:1rem;color:#30455a}
.cfd-photo-edit summary{cursor:pointer;font-size:.9rem;font-weight:650;text-decoration:underline;text-underline-offset:.22em}
.cfd-photo-edit form{display:grid;gap:.75rem;max-width:28rem;margin-top:.8rem;padding:1rem;border:1px solid #d4dee6;border-radius:.65rem;background:#f7f9fc}
.cfd-photo-edit label{display:grid;gap:.3rem;font-weight:600;font-size:.9rem}
.cfd-photo-edit input{max-width:100%;min-width:0;box-sizing:border-box}
.cfd-photo-edit input[type=text]{background:white;border:1px solid #a6b8c9;border-radius:.35rem;padding:.45rem .6rem}
.cfd-photo-edit form>div{display:flex;gap:.45rem;flex-wrap:wrap}
.cfd-photo-edit p{margin:0}.cfd-photo-edit p:empty{display:none}

/* Keep the selected judge and the documented role together at phone widths. */
.crs-profile-picker{display:none}
.crs-short-copy{display:grid;gap:3px;min-width:0}
.crs-overview .crs-shortcut:has(img:not([hidden])){grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
.crs-shortcut img{display:block;width:clamp(42px,6cqi,58px);height:auto;max-height:80px;object-fit:contain;border-radius:5px}
.crs-detail .crs-judge{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;column-gap:clamp(13px,2.6cqi,24px);row-gap:14px;background:linear-gradient(112deg,#edf5fb,#fafcfb)}
.crs-judge:has(.crs-photo img:not([hidden])){grid-template-columns:clamp(74px,15cqi,138px) minmax(0,1fr)}
.crs-judge .crs-photo{width:100%;align-self:start}
.crs-judge .crs-photo img{height:auto;width:auto;max-width:100%;max-height:180px;object-fit:contain;border-radius:7px}
.crs-judge .crs-photo summary{display:inline-block;padding:5px 0;color:#2b526b;text-decoration:underline;text-underline-offset:2px;font-size:.78rem}
.crs-judge .crs-photo figcaption{margin:0}
.crs-judge .crs-case-role{color:#164b64;font-size:.93rem;font-weight:630;line-height:1.4}
.crs-judge .crs-source-links{grid-column:1/-1;border-top:1px solid #cedee7;padding-top:7px}
.crs-judge .crs-source-links a{padding:6px 0}
.crs-judge .crs-photo:has(img[hidden]),.crs-shortcut img[hidden]{display:none}
.cfd-roster-profile.cfd-court-profile header .cfd-lineup-avatar{width:clamp(74px,12cqi,114px);height:auto;aspect-ratio:3/4;border-radius:8px}
.cfd-court-profile .cfd-lineup-avatar img{object-fit:contain;object-position:center}
.cfd-independent[data-cfd-grouping=court] .cfd-lineup-avatar:has(img){width:44px;height:54px;border-radius:5px}
@container(max-width:750px){
  .crs-roster [role=group]{display:none}
  .crs-profile-picker{display:grid;gap:4px;color:#3b5669;font-weight:600;font-size:.875rem}
  .crs-profile-picker select{width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box;padding:9px 32px 9px 11px;border:1px solid #aabfcd;border-radius:7px;background-color:white;color:#19394f;font:inherit}
}
@container(max-width:510px){
  .crs-judge .crs-identity h2,.cfd-court-profile header h2{font-size:clamp(1.15rem,5.2cqi,1.55rem);overflow-wrap:break-word}
  .crs-judge .crs-org{font-size:.92rem;line-height:1.4;margin:6px 0}
  .crs-judge .crs-source-links a{min-height:40px;display:inline-flex;align-items:center}
}
