The non-structural requirements are pretty simple for guard rails: if there's a fall hazard, make a guard, and keep it such that it will actually stop people from falling.
Many remodels require matching an existing trim profile for new doors or windows. When an old profile isn't available, you can make new pieces with a little bit of 'millwork magic'—and a giant pencil