<div class="seriesfinding-preview p-2">
  <h5 class="mb-1">Series Finding</h5>
  <div class="small text-muted mb-2">Series: {% if finding.series %}<a href="{% url 'atlas:series_detail' finding.series.pk %}">{{ finding.series.get_block|truncatechars:80 }}</a>{% else %}—{% endif %}</div>
  <div class="mb-2">{{ finding.description|default:'(no description)' }}</div>
  {% if finding.findings.all %}
    <div class="mb-2"><strong>Findings:</strong>
      <ul class="mb-0">
        {% for f in finding.findings.all %}
          <li>{{ f.name }}</li>
        {% endfor %}
      </ul>
    </div>
  {% endif %}
  <div class="d-flex gap-2">
    <a class="btn btn-sm btn-primary" href="{% url 'atlas:series_finding_details' finding.pk %}">Open full</a>
    <a class="btn btn-sm btn-outline-secondary" href="{% url 'atlas:series_detail' finding.series.pk %}">Open series</a>
  </div>
</div>
