SF snaps 7-game skid with Wood's gem, stellar defense and timely hits