How do the rails buckle?
Disclaimer – this includes a back-of-the-envelope calculation. Take it with a pinch of salt. If a steel beam is exposed to an increased temperature, it will tend to expand. If there is nothing to oppose that expansion, then the beam increases in length by ΔL. If, however, the beam’s ends don’t allow this expansion then…