/* ACM portal
   ------------------------------------------------------------------------
   The navbar is dark, so the theme makes every link in it white. The
   profile dropdown is built from those same links but sits on a white
   panel, which left My Account, Log out and Switch To Desk as white text on
   white. Only the links inside the dropdown are changed; the ones still on
   the bar keep the colour they need.
   ------------------------------------------------------------------------ */

.navbar .dropdown-menu {
    background: #FFFFFF;
    border: 1px solid #D8CEE6;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(45, 22, 74, .06),
                0 8px 24px -6px rgba(45, 22, 74, .22);
    padding: 5px;
    min-width: 190px;
}

.navbar .dropdown-menu a,
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu button {
    color: #2F2838 !important;
    border-radius: 5px;
    padding: 7px 11px;
    font-weight: 500;
}

.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu a:focus,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: #F1EAFA;
    color: #3D106A !important;
}

.navbar .dropdown-menu .dropdown-divider {
    border-top: 1px solid #E6DEF0;
    margin: 5px 2px;
}

/* The small print under an item, where there is one. */
.navbar .dropdown-menu .text-muted,
.navbar .dropdown-menu small {
    color: #6B6476 !important;
}

/* The avatar that opens it had no edge against the dark bar. */
.navbar .avatar-frame,
.navbar .dropdown-toggle .avatar-frame {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.navbar .dropdown-toggle:hover .avatar-frame {
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* The company colour on v16's login button.
   ------------------------------------------------------------------------
   v16 rebuilt the login page on .es-button, whose solid variant colours
   itself from design tokens rather than from .btn-primary. Those tokens
   ship near-black, so the button on the first page anyone sees came out
   black instead of the company purple.

   The tokens are set on the button's own selector, not on :root. They
   do not inherit: with the value on :root every ancestor of the button
   picked it up and the button itself still computed #171717, falling
   back to its own initial value. Nothing was overriding it - it simply
   never arrived.

   `.es-button[data-variant="solid"]` matches the theme's own selector
   for specificity, and this file loads after the theme, so it wins the
   tie. Setting the tokens rather than background-color also carries the
   hover and active states, which a background override would have left
   grey. The stock ramp lightens on hover and again on active, so this
   one does the same.

   None of this exists on v15, so the block is inert there.
   ------------------------------------------------------------------------ */

.es-button[data-variant="solid"] {
    --bt-solid-bg: #3D106A;
    --bt-solid-bg-hover: #4E1788;
    --bt-solid-bg-active: #5F1EA3;
}
