From cppreference on the namespace page:
inline(optional) namespace attr(optional) identifier {
namespace-body }
The namespace-body defines a namespace scope, which affects name lookup.
All names introduced by the declarations that appear within
namespace-body (including nested namespace definitions) become members
of the namespace identifier, whether this namespace definition is the
original namespace definition (which introduced identifier), or an
extension namespace definition (which "reopened" the already defined
namespace)
So, based on what the standard has mentioned, whatever is defined inside the namespace as namespace-body, is considered at the scope of that namespace and qualified name lookup applies while referring to anything inside the namespace.