The gap has barely altered in the past 25 years once increases in women’s education are accounted for.