/* The supplied Local 40 seal has gray square padding. Keep arbitrary uploaded
   logos and other organizations untouched. Shared by source and bounded release. */
aside > a:has(img[src$="/org-logos/local40.png"]:not([style*="display: none"])) {
  min-height: 0;
  background: transparent;
  border-top: 0 !important;
  padding: 12px 8px;
  gap: 12px;
  color: #fff;
}

aside > a > img[src$="/org-logos/local40.png"] {
  width: 190px;
  height: 190px;
  max-width: none;
  flex-shrink: 0;
  margin: -23px;
  object-fit: contain;
  clip-path: circle(38% at 50% 50%);
}

/* The seal already names the Local. The existing error handler hides a failed
   image; in that state, retain the original readable organization-name fallback. */
aside > a:has(img[src$="/org-logos/local40.png"]:not([style*="display: none"])) > span:first-of-type {
  display: none;
}

aside > a:has(img[src$="/org-logos/local40.png"]:not([style*="display: none"])) > span:last-of-type {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.025em;
  color: #cbd5e1;
}
