Why is a CSS container query not applying?

A container query usually fails because no eligible ancestor has the required containment, the wrong container is selected or the condition never becomes true. Add container-type: inline-size to an ancestor of the element being styled, then inspect that ancestor’s computed size.
The queried element cannot normally use itself as its size container. This pattern will not work if container-type is placed on .card while the rule also tries to style that same card. Put containment on a wrapper such as .card-slot and target descendants.
Named queries can silently point at the wrong ancestor. Confirm that container-name matches the name in @container and that the named element supports the queried feature. An unnamed query uses the nearest eligible ancestor, which may differ after markup changes.
Check units, source order, specificity and browser support. Another rule may override a matching query, creating the impression that it never applied. Developer tools can show the active condition and crossed-out declarations. Also verify that the container has a constrained inline size instead of simply expanding with its content.
Reduce the case to a wrapper, child and one declaration. Resize the container directly, then restore nested layouts and names. Keep query setup in the reusable component documentation so a consumer does not copy the child markup without the container declaration it depends on. Keep the rule beside the component it controls and document the reason for the threshold or constraint. This makes future changes easier to evaluate and prevents an unrelated page stylesheet from silently overriding the responsive behavior.