/*
 * .seq-tenant-switch — the account disclosure of the main navigation
 * (docs/plans/seq-redesign.md § Navigation, layouts/_nav_account.html.erb): a <details> in
 * .main-nav-desktop-actions whose summary is the current tenant's name as a gem .nav-link with
 * the gem's .disclosure-chevron, and whose menu, .seq-tenant-switch__menu, lists the tenants
 * the user has a role in, the account items and Log out, each a .nav-link (rule 1 of § The
 * composition system: nothing in the bar takes a type the .nav-link composites do not). Built
 * on <details>/<summary> so it works without JavaScript. Below 1024px the same items are flat
 * .nav-link rows in .main-nav-drawer and this file plays no part. The summary is a .nav-link,
 * whose hit area the gem sizes; this file styles the menu only.
 *
 *   <details class="seq-tenant-switch">
 *     <summary class="nav-link nav-link--sm disclosure-summary">geneops-laboratory <svg class="disclosure-chevron">…</svg></summary>
 *     <ul class="seq-tenant-switch__menu">
 *       <li><span class="nav-link nav-link--sm" aria-current="true">geneops-laboratory, current</span></li>
 *       <li><form …><button class="nav-link nav-link--sm">geneops-production</button></form></li>
 *       <li><hr class="main-nav-divider"></li>
 *       <li><a class="nav-link nav-link--sm" href="/capacity">Capacity</a></li>
 *       …
 *     </ul>
 *   </details>
 *
 */

.seq-tenant-switch {
  position: relative;
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-400);
  font-variant-numeric: var(--numerals);
}

.seq-tenant-switch__menu {
  position: absolute;
  top: calc(100% + var(--spacing-4));
  left: 0;
  z-index: var(--z-overlay);
  min-width: 100%;
  margin: 0;
  padding: var(--spacing-4);
  list-style: none;
  background: var(--background-surface-2);
  border: var(--stroke-weight-1) solid var(--border-default);
  border-radius: var(--corner-radius-xs);
  box-shadow: var(--shadow-lift);
}

/* ---------- On paper the open menu does not print ---------- */
@media print {
  .seq-tenant-switch__menu {
    display: none;
  }
}
