/* ef11 author box (Figma "Autorenbox", 11/2026): a rule in the link colour on top, portrait 166px square, name 20/28, role 13/19, text 16/24, icons and the arrow link below. */
.ef-author {
  display: grid;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--color-rule);
}

@container (min-width: 32rem) {
  .ef-author {
    grid-template-columns: 10.375rem minmax(0, 1fr);
    gap: 1.625rem;
  }
}

.ef-author__image img {
  display: block;
  width: 100%;
  max-width: 10.375rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.ef-author__head {
  display: grid;
  gap: 0.25rem;
}

.ef-author__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--color-heading);
}

.ef-author__role {
  font-size: 0.8125rem;
  line-height: 1.1875rem;
  color: var(--color-eyebrow);
}

.ef-author__text {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.ef-author__text > * + * {
  margin-top: 0.75rem;
}

.ef-author__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3125rem;
  margin-top: 1rem;
}

/* Several authors in a row stand one gutter apart, not a full column gap (2.5rem). */
.ef-author + .ef-author {
  margin-top: calc(var(--grid-gutter, 1.5rem) - 2.5rem);
}
