Variation of the electron flux spectrum along a solar flare loop as inferred from STIX hard X-ray observations | Synapse