{# @description The card a project is drawn as in a listing: banner, type and status, title, contributors, abstract, keywords and identifier. The whole card is one link to the project. #}
{# @prop object:text | description:"The project, loaded with ProjectQuerySet.with_list_data() and with_contributors()." #}
{% load i18n static thumbnail %}
{% comment %}
Project card for the public listing (#330), drawn directly because `cotton/components/object_card.html` uses Bootstrap-era classes that no longer resolve.
The `record-card` classes are shared with the dataset card, so change both together. The card reflows on its own width (`@container`), and its stylesheet is linked once from base.html, never here.
Data comes from `ProjectQuerySet.with_list_data()` and `with_contributors()`; a field that neither prefetches adds a query per card.
{% endcomment %}
{# The reflow lives on this wrapper: a container query is answered by an ancestor, so `.record-card` cannot respond to its own width. #}