/* The arrow occupies the existing inter-link space without moving any link. */
body #masthead #primary-menu > .products-navigation { position:relative; }
body #masthead .products-menu-toggle {
 position:absolute; left:100%; top:50%; transform:translateY(-50%);
 display:grid; place-items:center; width:24px; height:44px; padding:0;
 border:0; border-radius:3px; background:transparent; color:#fff; cursor:pointer;
}
body #masthead .products-menu-toggle span { width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
body #masthead .products-menu-toggle:is(:hover,:focus-visible) { color:#d2c8ae; }
body #masthead .products-menu-toggle:focus-visible { outline:2px solid #d2c8ae; outline-offset:-3px; }
body #masthead #primary-menu .products-category-menu {
 position:absolute; top:100%; left:-12px; float:none; display:block; width:max-content;
 min-width:180px; margin:0; padding:6px 0; background:#423e3a; z-index:30; text-align:left;
 box-shadow:0 4px 8px #0002; list-style:none;
}
body #masthead #primary-menu .products-category-menu[hidden] { display:none; }
body #masthead #primary-menu .products-category-menu li { display:block; position:static; margin:0; padding:0; }
body #masthead #primary-menu .products-category-menu a {
 display:block; width:auto; padding:8px 14px; font-family:'Instrument Sans',sans-serif;
 font-size:var(--cactus-navigation-size); font-weight:500; letter-spacing:1.8px; line-height:32px;
 color:#fff; text-decoration:none; white-space:nowrap; background:transparent;
}
body #masthead #primary-menu .products-category-menu a::after { content:none; }
.products-category-menu .vaselli-suffix { position:relative; inset-inline-start:-2px; }
body #masthead #primary-menu .products-category-menu a:is(:hover,:focus-visible) { color:#d2c8ae; text-decoration:none; }
body #masthead #primary-menu .products-category-menu a:focus-visible { outline:1px solid #d2c8ae; outline-offset:-4px; }
@media(max-width:900px) {
 body #masthead .products-menu-toggle { left:calc(50% + 64px); }
 body #masthead #primary-menu .products-category-menu { left:50%; transform:translateX(-50%); max-width:calc(100vw - 24px); }
 body #masthead #primary-menu .products-category-menu a { font-size:19px; }
}

@media(min-width:901px) and (max-width:955px) {
 body #masthead .products-menu-toggle { width:calc(10px + (100vw - 900px) * .25); }
}
/* Keep the expanded narrow header inside the viewport without moving search. */
@media(max-width:900px) { body #masthead.menu-open { overflow-x:clip; } }
@media(max-width:900px) {
 /* The fixed mobile navigation overlays the page. Nest categories between its
    links so they never cover Story or Contact, while page geometry stays fixed. */
 body #masthead .products-menu-toggle { top:22px; }
 body #masthead #primary-menu .products-category-menu { position:static; transform:none; margin:0 auto; }
}
@media(min-width:901px) and (max-width:955px) {
 body #masthead .products-menu-toggle { width:calc(7px + (100vw - 900px) * .25); }
 body #masthead .products-menu-toggle span { width:5px; height:5px; }
}

/* Fade only opacity. Inert closed links cannot receive focus or intercept input. */
body #masthead #primary-menu .products-category-menu { opacity:0; pointer-events:none; transition:opacity .25s linear; }
body #masthead #primary-menu .products-category-menu[data-open] { opacity:1; pointer-events:auto; }
@media(prefers-reduced-motion:reduce) { body #masthead #primary-menu .products-category-menu { transition:none; } }
