/*
 * OCSI site navigation: the role-based dashboard links in the header menu.
 * Hand-authored, loaded on every front-end page (see resources/assets.php).
 * Bump the ocsi_nav_css ver there after editing.
 */

/* The page you are on. An underline rather than bold, so marking it never
   shifts the other links sideways. WordPress sets aria-current="page" on the
   same link, so screen readers announce it too. */
.site-main-navigation .menu > li.current-menu-item:not(.menu-cta) > a,
.site-main-navigation-m .menu > li.current-menu-item:not(.menu-cta) > a {
    text-decoration: underline;
    text-decoration-color: #146490;
    text-decoration-thickness: 3px;
    text-underline-offset: 0.45em;
}

/* An administrator sees every dashboard plus Logout. Between the tablet
   breakpoint and a full desktop that row is wider than the space beside the
   logo, so it wraps onto a second line instead of running off the edge. */
.site-main-navigation .menu {
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 1199.98px) {
    .site-main-navigation .menu > li:not(.menu-cta) > a {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}
