The architecture of detention: why design matters