/* {% list_row %}: icon badge, title and caption, trailing figure. Rows stack inside a flush panel. */

.list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row-link:hover {
  background: var(--surface-subtle);
}

.list-row-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.list-row-text {
  grid-column: 2;
  min-width: 0;
}

.list-row-text b {
  display: block;
  color: var(--text);
  font-size: var(--text-sm);
}

.list-row-text small {
  display: block;
  margin-top: var(--space-0-5);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.list-row-trailing {
  grid-column: 3;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

/* {% timeline %}: an object's history, newest first, on a connecting line. */
.timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.timeline-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.timeline-body b {
  display: block;
  color: var(--text);
  font-size: var(--text-sm);
}

.timeline-body p {
  margin: var(--space-0-5) 0 0;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.timeline-body small {
  display: block;
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-xs);
}
