Drupal advanced forum - different styles for different forums
On further investigation I believe this can be done with a combination of assigning a path to a post via pathauto, and the Context module, which can add CSS depending on the path.