/**
 * Sitewide: highlights the "Portfolio" primary-nav item (menu-item-31, a
 * Custom Link to /projects/) in the secondary accent while viewing any part
 * of the portfolio section -- the archive itself, or any single `project`
 * post. WordPress's own current-menu-item class only fires on an exact URL
 * match, so it never fires for a single project's own permalink under
 * /projects/{slug}/ -- joetennis_child_portfolio_body_class() in
 * functions.php covers that gap with a body class instead.
 *
 * Scoped to `.primary-menu-ul` specifically (Neve's nav-list class --
 * confirmed identical markup renders in both the desktop header and the
 * mobile off-canvas menu, so this one rule covers both) so it does NOT also
 * match the footer's own nav (`.joetennis-footer-nav`, site-footer.css),
 * which renders the same menu items under a different class and would look
 * wrong there -- secondary-accent text on a secondary-accent background.
 */
/* Retrofitted onto the shared states model (SPEC-interactive-color-states,
   Story 1). This is Family B -- "you are here" -- not a Family A hover
   value, so it resolves from `--current-marker` and carries weight 600
   alongside the colour. The weight is load-bearing, not decoration: it is
   the non-colour carrier that keeps the marker readable where the purple
   is marginal, and the "colour is never the sole carrier" constraint is
   partly discharged by it. Do not drop it as redundant.

   Two nested fallbacks, deliberately: `--current-marker` is declared by
   site-interactive-states.css, `--nv-secondary-accent` by Neve. A bare
   `var()` on either would drop the whole declaration if it were ever
   unresolved and the marker would vanish silently, which is exactly the
   failure simple-stack.css:195-199 documents.

   SPECIFICITY, and why the `.wrap` selector exists. Neve paints nav hover
   with `.nav-ul li:hover > .wrap > a` at (0,3,2), in a stylesheet that
   loads AFTER this one. The original selector here was also (0,3,2), so
   it TIED and lost on order: pointing at "Portfolio" while inside the
   portfolio section made the marker disappear under the cursor and
   flip to the hover accent. Adding `.wrap` takes the rule to (0,4,2),
   which clears both Neve's rule and the shared sheet's own nav-hover rule
   (0,4,1), so Family B keeps precedence over Family A as the contract
   requires. The bare-`a` selector is kept as a fallback for any menu
   markup Neve renders without the `.wrap` div.

   BOTH HALVES MEASURED LIVE, 2026-09-19, on dev.joetennis.com with the
   pointer resting on "Portfolio" inside the portfolio section:
     - colour: old selector rgb(0,229,255) -> new selector
       rgb(168,85,247). The marker really was being lost to hover before
       this change; it is not a theoretical specificity argument.
     - weight: old selector 500 -> new selector 600. Nothing else on the
       page declares a weight for this anchor, so the 600 below is the
       only declaration and it is what makes the change visible on the
       item under the cursor. Confirmed on the desktop header and on the
       mobile drawer copy, which renders the same menu under the same
       `.wrap` markup. */
body.is-portfolio-section .primary-menu-ul .menu-item-31 a,
body.is-portfolio-section .primary-menu-ul .menu-item-31 .wrap a {
	color: var(--current-marker, #a855f7);
	font-weight: 600;
}
