/* Org unit public profile (emblem + bio) */
.org-unit-profile-panel__layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
}

@media (min-width: 576px) {
  .org-unit-profile-panel__layout {
    grid-template-columns: minmax(7rem, 9rem) 1fr;
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .org-unit-profile-panel__layout > .attachment-media-slot {
    max-width: 9rem;
  }
}

.org-unit-profile-panel__bio {
  white-space: pre-wrap;
}

.org-unit-profile-panel .attachment-media-slot:not(.attachment-media-slot--empty),
.org-unit-profile-panel .attachment-media-slot--contain .attachment-media-slot__image {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.org-unit-profile-panel--overview .org-unit-profile-panel__layout {
  grid-template-columns: clamp(4.5rem, 20vw, 9rem) minmax(0, 1fr);
  gap: clamp(0.75rem, 3vw, 1.5rem);
  padding: clamp(0.75rem, 3vw, 1.25rem);
  align-items: start;
}

.org-unit-profile-panel--overview .attachment-media-slot__image {
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .org-unit-profile-panel--overview .attachment-media-slot__image {
  mix-blend-mode: normal;
}

.org-unit-profile-panel__main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.org-unit-profile-panel__facts {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  font-size: var(--font-ui-sm);
}

.org-unit-profile-panel__facts dt {
  font-weight: 600;
}

.org-unit-profile-panel__facts dd {
  margin: 0.2rem 0 0;
}

.org-unit-profile-panel__facts a {
  color: var(--accent-primary);
}

.org-unit-profile-panel__facts a:hover,
.org-unit-profile-panel__facts a:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
}

.org-unit-profile-emblem {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.org-unit-profile-emblem__image {
  display: block;
  max-height: 220px;
  width: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  background: #fff;
}
