/* ef11 profile head: portrait left, name and details right; badges in a row. */
.ef-profile {
  padding-block: 1.5rem 3rem;
}

.ef-profile__breadcrumb {
  margin-bottom: 2.5rem;
}

.ef-profile__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .ef-profile {
    padding-block: 2rem 5rem;
  }

  .ef-profile__breadcrumb {
    margin-bottom: 4.5rem;
  }

  .ef-profile__grid {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    align-items: start;
    gap: 3rem 5.5rem;
  }
}

.ef-profile__image img {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
}

.ef-profile__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  line-height: 2.5rem;
  color: var(--color-heading);
}

@media (min-width: 48rem) {
  .ef-profile__name {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
}

.ef-profile__meta {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-heading);
}

.ef-profile__roles {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.ef-profile__text {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Badges in their original look, like on the team cards (design feedback
   10.11.2026): square PNGs with transparent edges, no ring, no colour filter.
   The image title is the hover text. */
.ef-profile__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  vertical-align: middle;
}

.ef-profile__badges :where(div) {
  display: contents;
}

.ef-profile__badges img {
  width: 5rem;
  height: 5rem !important;
  object-fit: contain;
}

.ef-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Badges and profile links (drupal.org) share a row while it fits. */
.ef-profile__badges + .ef-profile__actions {
  display: inline-flex;
  margin-inline-start: 0.75rem;
  vertical-align: middle;
}
