Bridging 3D Confinement and 2D Correlations in Counterion Layers at Charged Interfaces: An Extended Percus Relation from First Principles | Synapse