/* GrayC accents for the keycloak.v3 account console (ADR012 in
   continuous-delivery). Colours and fonts come from grayc-tokens.css. */

.pf-v5-c-masthead {
    border-bottom: 3px solid var(--grayc-orange);
}

.pf-v5-c-masthead__brand img,
.pf-v5-c-brand {
    height: 2.25rem;
}

.pf-v5-c-nav__link.pf-m-current,
.pf-v5-c-nav__link.pf-m-current:hover {
    --pf-v5-c-nav__link--after--BorderColor: var(--grayc-orange);
}

/* The stock keycloak.v3 masthead is near-black in light mode, which swallows
   the petrol logo. Give light mode a light masthead; dark mode keeps its own. */
:root:not(.pf-v5-theme-dark) .pf-v5-c-masthead {
    --pf-v5-c-masthead--BackgroundColor: #fff;
    --pf-v5-c-masthead--m-display-inline--BackgroundColor: #fff;
    --pf-v5-global--Color--light-100: var(--grayc-petrol-deep);
    --pf-v5-global--BorderColor--300: var(--grayc-petrol);
    background-color: #fff;
    color: var(--grayc-petrol-deep);
}

:root:not(.pf-v5-theme-dark) .pf-v5-c-masthead .pf-v5-c-button.pf-m-plain,
:root:not(.pf-v5-theme-dark) .pf-v5-c-masthead .pf-v5-c-menu-toggle {
    --pf-v5-c-button--m-plain--Color: var(--grayc-petrol-deep);
    --pf-v5-c-menu-toggle--Color: var(--grayc-petrol-deep);
    color: var(--grayc-petrol-deep);
}

/* The brief's variable above is not the one PF5 reads for the current-item
   marker, so set the marker itself. */
.pf-v5-c-nav__link.pf-m-current::after,
.pf-v5-c-nav__link.pf-m-current:hover::after {
    border-color: var(--grayc-orange);
}
