/* Sign in menu: the item opens a popout of portals (/js/sign-in.js). Built by tools/add_sign_in_menu.py.

Icons: Lucide "log-in" and "arrow-up-right", from lucide-static 0.460.0, drawn inline in the pages.

ISC License

Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

.menu-item-sign-in .signin-icon{width:1.1em;height:1.1em;margin-right:.4em}
/* Phone menu links are inline text: centre the icon on the capitals, and use negative margins so it
   does not make the line taller than the other menu items (which pushed the text down). */
@media (max-width: 991.98px){.menu-item-sign-in .signin-icon{vertical-align:.08em;margin-top:-.3em;margin-bottom:-.3em}}
/* Desktop menu links are flex rows, where vertical-align does nothing, so nudge the icon instead.
   .34em centres it on the capitals, but it is taller than they are and then reads as low, so it sits
   about 1 px higher (.26em): its bottom lines up with the bottom of the letters. */
@media (min-width: 992px){.menu-item-sign-in .signin-icon{position:relative;top:.26em}}

/* One destination: who it is for, what it is, and an arrow saying it goes elsewhere.
   Padding, indent and shadow are the theme's own, so the popout lines up like the other menus'
   drop-downs: level with the menu text on phones, and opening under its item on desktop. */
/* The arrow sits first, on the left, so the item starts level with the menu text and the popout is
   only as wide as its longest line. "Who" is set like the drop-downs' bold section headings (for
   example "Outsource Spend"); "what" like their ordinary items. Both inherit the theme's item font,
   so they are uppercase on desktop and normal case on phones, as the other drop-downs are. */
.primary-navbar .navbar-nav .nav-item .dropdown-item.signin-item{display:grid;grid-template-columns:auto 1fr;column-gap:.5rem;align-items:center;white-space:nowrap;overflow:visible}
.signin-who{display:block;grid-column:2;font-weight:700;color:#09163C}
.signin-what{display:block;grid-column:2;color:#09163C}
.signin-arrow{grid-column:1;grid-row:1 / span 2;width:1em;height:1em;color:#F17C21;transition:transform .2s ease}
.signin-item:hover .signin-arrow,.signin-item:focus .signin-arrow{transform:translate(2px,-2px)}
.menu-item-sign-in .signin-toggle{cursor:pointer}

@media (min-width: 992px){
  /* Opens from the item's left edge like the others; /js/sign-in.js adds signin-flip to open it
     leftwards instead when the window is too narrow for it to fit. */
  .primary-navbar .navbar-nav .nav-item.menu-item-sign-in.signin-flip .dropdown-menu{left:auto;right:0}
  .primary-navbar .navbar-nav .nav-item.menu-item-sign-in.signin-open .dropdown-menu{display:block;opacity:1;visibility:visible}
  .primary-navbar .navbar-nav .nav-item.menu-item-sign-in .dropdown-menu{min-width:0}
}
