/* Nav-tree dropdown overflow fix — Demo Breaks Register #35 (2026-11-08).
 *
 * Root cause: the bundle's dropdown panels (.nav-tree > div) are 340px wide
 * and left-anchored to their nav item (bundle CSS:
 * width:min(340px, 100vw - 24px); left:0). The desktop public nav is a
 * 6-column grid (.site-nav), so at any viewport under 2040px each column is
 * narrower than the 340px panel. The LAST dropdown — Charities, sitting in
 * the final column flush with the right edge — therefore spills past the
 * viewport: at 1920x1200 its panel runs 1600 -> 1940, exactly 20px over,
 * which registers as 20px of horizontal scrollable overflow
 * (.club-header / .app-shell scrollWidth 1940 vs clientWidth 1920) in the
 * tall photo-header state whenever the Charities menu is open.
 *
 * The bundle already right-anchors the second dropdown the same way
 * (.nav-tree:nth-of-type(2) > div { left:auto; right:0 } at
 * min-width:700px); this extends that treatment to the last dropdown,
 * scoped to the widths where the spill can occur. At 2040px and wider the
 * columns are at least 340px wide and no spill is possible, so the rule
 * stops there. Below 700px the bundle switches the panels to a fixed,
 * inset layout (left/right 12px) that cannot spill; that range is
 * deliberately untouched. Where a per-trigger anchoring script sets inline
 * placement (Valley), inline styles still win over this rule.
 */
@media (min-width: 700px) and (max-width: 2039px) {
  .nav-tree:last-of-type > div {
    left: auto;
    right: 0;
  }
}
