Why do styles from two media queries apply at the same breakpoint?

Styles from two media queries can apply at the same breakpoint because classic min-width and max-width conditions are inclusive. At exactly 48rem, both min-width: 48rem and max-width: 48rem evaluate to true.
When both rules match, normal CSS cascade rules decide the result: origin, importance, cascade layer, specificity and source order. Media queries do not create separate exclusive modes. Inspect the computed style to see which declaration wins. The overlap follows normal cascade rules.
Modern range syntax can express a clean boundary:
@media (width < 48rem) { /* narrow */ }
@media (width >= 48rem) { /* wide */ }
If the project needs older syntax, use one primary cascade direction. Mobile-first base rules plus min-width enhancements avoid many upper-bound overlaps. Do not invent values such as 47.999rem unless a specific rendering issue has been demonstrated; fractional CSS pixels and zoom can still make such gaps confusing.
Test the exact computed viewport value, which may include fractions after zoom or device emulation. Check source order and selector specificity at the boundary. A clear breakpoint convention and component ownership prevent two independent stylesheets from assigning conflicting behavior to the same transition. Test the solution with keyboard focus, touch input and a resized desktop window. Responsive geometry is only successful when every visible control remains reachable and the content keeps a logical reading order. Include the pattern in responsive regression tests with long content, browser zoom and at least one narrow embedded context. Record the expected wrapping and focus behavior so later component changes can be checked against a known result.