What is the relationship between the adrenal cortex and the medulla in the Hypothalamic-Pituitary-Adrenal axis (HPA axis)?