/* The account slot.
 *
 * PagesPrinter fills <!--pp:visitor--> in the header for each visitor:
 * "Join free" + "Sign in" when signed out, "Your library" when signed in.
 * Its markup carries pp: utilities from the widget bundle; these rules make
 * it match the site.
 *
 *   .pp-account-top   the landing pages' top bar: quiet text links
 *   .pp-account-side  the members area's sidebar: items with icons
 *
 * A lone link is the signed-in "Your library" (free sign-up is on, so a
 * signed-out visitor always sees two links).
 */
.pp-account .pp-visitor {
  display: flex !important;
  align-items: center;
  gap: 0.25rem !important;
  margin: 0 !important;
}

.pp-account .pp-visitor a {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem !important;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-neutral-400, #a1a1aa) !important;
  text-decoration: none !important;
}

.pp-account .pp-visitor a:hover {
  background: rgb(250 250 250 / 0.05);
  color: var(--color-neutral-100, #f4f4f5) !important;
}

.pp-account .pp-visitor a:first-child:not(:only-child) {
  color: var(--color-primary, #5bde0e) !important;
}

@media (max-width: 39.99rem) {
  .pp-account-top .pp-visitor a {
    padding: 0.5rem;
  }
}

/* Sidebar: stacked items with an icon each. */
.pp-account-side .pp-visitor a {
  line-height: 1.5rem;
}

.pp-account-side .pp-visitor a::before {
  content: "";
  display: none;
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url(/assets/icons/sign-in.svg) center / contain no-repeat;
  mask: url(/assets/icons/sign-in.svg) center / contain no-repeat;
  opacity: 0.8;
}

.pp-account-side .pp-visitor a:first-child:not(:only-child)::before {
  -webkit-mask-image: url(/assets/icons/user-plus.svg);
  mask-image: url(/assets/icons/user-plus.svg);
}

.pp-account-side .pp-visitor a:only-child::before {
  -webkit-mask-image: url(/assets/icons/library.svg);
  mask-image: url(/assets/icons/library.svg);
}

@media (min-width: 64rem) {
  .pp-account-side .pp-visitor {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem !important;
  }

  .pp-account-side .pp-visitor a::before {
    display: block;
  }
}
