/* The account controls in an Auxfield header: Sign in when signed out; signed in, initials in a teal circle that open
   the account menu. Same look as auxfield.com's home page and qiviut.auxfield.com (protien static/header.js). Used with
   /account.js on the legal pages and every portal page; needs /theme.css. */
[data-account] { display: inline-flex; align-items: center; }
[data-account] [hidden] { display: none !important; }
.acct-signin {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--corner, 4px);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.acct-signin:hover { border-color: var(--teal); color: var(--teal-text); }
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 0.3rem); z-index: 40; min-width: 13rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: var(--corner, 4px); background: var(--paper); box-shadow: 0 12px 32px -16px rgba(14, 15, 18, 0.45); text-align: left; }
.menu a { display: block; box-sizing: border-box; text-decoration: none; width: 100%; padding: 0.5rem 0.6rem; border-radius: 2px; color: var(--ink); font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.menu a:hover, .menu a:focus-visible { background: color-mix(in srgb, var(--teal) 9%, transparent); outline: none; }
.menu-head { padding: 0.5rem 0.6rem 0.6rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line); }
.menu-head b { display: block; font-weight: 500; font-size: 0.9rem; }
.menu-head span { display: block; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
/* A labeled group (Qiviut's items, Staff), and an unlabeled one before the account's own items. */
.menu-group { margin: 0.35rem 0 0.15rem; padding: 0.45rem 0.6rem 0.2rem; border-top: 1px solid var(--line); color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; }
.menu-group:empty { padding: 0; margin: 0.35rem 0 0.25rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: var(--teal); color: var(--on-teal); font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.04em; cursor: pointer; }
.avatar:hover, .avatar[aria-expanded="true"] { background: var(--teal-hover); }
.avatar:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
