/* Site menu (option pep_site_menu_enabled; inc/site-menu.php loads this file only while the switch is on).
   Owner, 22 Nov 2026: "The words are too close. Its hard to read."
   Before: 13.5px type (14.5px from 1440), 18 to 24px between items, links 17px tall; phone menu 14.5px type,
   rows 32px apart, links 15px tall.
   Every rule names `ul.navbar-nav`, one element more than the header's own `header.main-head .navbar-nav ...`
   rules in header-row.css, shell-redesign.css and style.css, so it wins on specificity and needs no !important.
   Colours are the header's own tokens; nothing here sets a colour except the hairline (--pep-line). */

/* Desktop row */
@media (min-width: 992px) {
    header.main-head ul.navbar-nav { column-gap: 24px; row-gap: 0; }
    header.main-head ul.navbar-nav > li,
    header.main-head ul.navbar-nav > li:first-child,
    header.main-head ul.navbar-nav > li:last-child { margin: 0; }
    header.main-head ul.navbar-nav > li > a {
        display: block; padding: 12px 0;
        font-size: 15px; line-height: 20px; letter-spacing: 0; white-space: nowrap;
    }
    /* the hover underline stays 10px under the words (it hangs off the link box, which is now 12px taller below) */
    header.main-head ul.navbar-nav > li > a::after { bottom: 2px; }
}

@media (min-width: 1200px) {
    header.main-head ul.navbar-nav { column-gap: 32px; }
}

/* Phone and tablet menu (the slide-in panel) */
@media (max-width: 991px) {
    header.main-head .navbar-collapse ul.navbar-nav > li { margin: 0; border-bottom: 1px solid var(--pep-line); }
    header.main-head .navbar-collapse ul.navbar-nav > li:last-child { border-bottom: 0; }
    header.main-head .navbar-collapse ul.navbar-nav > li > a {
        display: block; width: 100%; padding: 14px 0;
        font-size: 17px; line-height: 24px; letter-spacing: 0;
    }
    header.main-head .navbar-collapse ul.navbar-nav > li > a::after { bottom: 13px; }
    /* While the menu is open the header (which holds the panel and its dimmer) must sit above the page. The panel
       lives inside the fixed header (z-index 10); the rolling bar is sticky at z-index 12 and painted over the
       panel's top rows, and the catalog page's own search field carries an invisible tap layer at z-index 100 that
       took the taps meant for the menu row lying over it (found on the live site 23 Nov 2026: "FAQ" on /products/).
       1000 is the panel's own z-index; the admin bar and the chat button stay above. common.js puts `open-nav` on
       <html> while the panel is open. */
    html.open-nav header.main-head { z-index: 1000; }
}
