/* Tracker 4281 (Mike c18929, 16.11.2026): the grey top bar of the logged-out homepage, for every
   page that opts in with the body class "nav26" and this stylesheet (nav26::assets()): /people,
   /companies, /jobs, /magazine and /studio so far; Mike wants it on every page except Annual.
   Logo, grey, black links, icons and their hover / focus as on the homepage (index.php); the
   logged-in submenus keep the site's green.

   The prefix repeats the class on purpose: body.nav26.nav26.nav26 is (0,3,1), enough to outrank
   the legacy (0,3,x) nav rules (body.bJobslanding .t_job > a.active ...) without !important. */

body.nav26.nav26.nav26 {
    --nav26-grey: #f0f0f0;
    --nav26-ink: #000;
    --nav26-hover: #d7d7d7;
    --nav26-border: #d9dedb;
}

body.nav26.nav26.nav26 .nav_wrap {
    background: var(--nav26-grey);
    border-bottom-color: var(--nav26-grey);
    transition: border-color .2s, box-shadow .2s;
}
/* on the landing pages the bar blends into the grey hero and gets its hairline once the page
   scrolls (js/landing26.js); elsewhere (/studio) no line, as on the homepage (Jan 16.11.) */
body.nav26.nav26.nav26.pl26-scrolled .nav_wrap {
    border-bottom-color: var(--nav26-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
body.nav26.nav26.nav26 .icon-menu {
    background: var(--nav26-ink);
}
body.nav26.nav26.nav26 .icon-menu:before,
body.nav26.nav26.nav26 .icon-menu:after {
    background: var(--nav26-grey);
}
body.nav26.nav26.nav26 a#headloginbutton,
body.nav26.nav26.nav26 #register a {
    color: var(--nav26-ink);
}
body.nav26.nav26.nav26 a#headloginbutton:hover,
body.nav26.nav26.nav26 #register a:hover {
    background: var(--nav26-hover);
}
/* logged-in icons (Live Feed, Connections, Messages, Notifications), their labels and the
   avatar chevron: black like the menu links, with the same grey on hover and keyboard focus
   (Jan 13.11.). The black icons are the white sprites recoloured (img/v3/iko1-4-black.png). */
body.nav26.nav26.nav26 .icon-happening-notifications {
    background-image: url('/img/v3/iko1-black.png');
}
body.nav26.nav26.nav26 .icon-connection-notifications {
    background-image: url('/img/v3/iko2-black.png');
}
body.nav26.nav26.nav26 .icon-messages-notifications,
body.nav26.nav26.nav26 .icon-messages-notifications.active-notification {
    background-image: url('/img/v3/iko3-black.png');
}
body.nav26.nav26.nav26 .icon-profile-notification,
body.nav26.nav26.nav26 .icon-profile-notification.active-notification {
    background-image: url('/img/v3/iko4-black.png');
}
body.nav26.nav26.nav26 .icon-profile-notification:hover,
body.nav26.nav26.nav26 .icon-messages-notifications:hover,
body.nav26.nav26.nav26 .icon-happening-notifications:hover,
body.nav26.nav26.nav26 .icon-connection-notifications:hover,
body.nav26.nav26.nav26 .icon-messages-notifications:focus-visible,
body.nav26.nav26.nav26 .icon-happening-notifications:focus-visible,
body.nav26.nav26.nav26 .icon-connection-notifications:focus-visible {
    background-color: var(--nav26-hover);
    outline: 0;
}
body.nav26.nav26.nav26 .nav_wrap .smul-text,
body.nav26.nav26.nav26 #loggedin #name_prof,
body.nav26.nav26.nav26 #loggedin #name_prof i {
    color: var(--nav26-ink);
}
/* the homepage's dark logo (#333, 335x54 for sharp retina at 180x30) */
@media only screen and (min-width: 560px) {
    body.nav26.nav26.nav26 #logo {
        background-image: url(/images/homepage-v2/assets/creativepool-logo-black.png);
        background-size: 180px 30px;
    }
}
/* below 1024px the links open as a panel: logged out it is grey with black links, as on the
   homepage; logged in it stays the site's green menu (with its submenus), as on every other
   page - the homepage has no logged-in version of this bar */
@media only screen and (max-width: 1023px) {
    body.nav26.nav26.nav26 .loggedout-t_nav {
        background: var(--nav26-hover);
    }
    body.nav26.nav26.nav26 .loggedout-t_nav a {
        color: var(--nav26-ink);
    }
    body.nav26.nav26.nav26 .loggedout-t_nav a:hover {
        background: var(--nav26-hover);
    }
}
@media only screen and (min-width: 1024px) {
    body.nav26.nav26.nav26 .t_links > ul > li > a {
        color: var(--nav26-ink);
    }
    body.nav26.nav26.nav26 .t_links > ul > li > a:hover,
    body.nav26.nav26.nav26 .t_links > ul > li > a.hover-state,
    body.nav26.nav26.nav26 .t_links > ul > li > a:focus-visible {
        background: var(--nav26-hover);
        outline: 0;
    }
    /* the current section's item (Talent, Jobs, Studio, Companies, Magazine) is green elsewhere;
       here it only gets the hover colour. :hover on the li, not the link: with the mouse in the
       submenu the link itself is not hovered, but the item must stay green (white text) */
    body.nav26.nav26.nav26 .t_links > ul > li:not(:hover) > a.active:not(.hover-state):not(:focus-visible),
    body.nav26.nav26.nav26 .t_links > ul > li:is(.t_peo, .t_job, .t_studio, .t_comp, .t_mag):not(:hover) > a:not(.hover-state):not(:focus-visible) {
        background: transparent;
        border-color: transparent;
    }
    /* logged in, the items with a submenu open the site's green dropdown; the hovered item
       takes the same green so the two read as one (logged out no dropdown opens, so they keep
       the grey hover above) */
    body.nav26.nav26.nav26 .loggedin-t_nav > ul > li:not(.no-menu):hover > a,
    body.nav26.nav26.nav26 .loggedin-t_nav > ul > li:not(.no-menu) > a.hover-state {
        background: #6aa396;
        color: #fff;
    }
}
