/* ============================================================
   The phone drawer, for the pages that load site.css instead of
   components.css (/answers, /compare, /faq). Their nav already has the
   drill-down drawer markup and nav.js drives it, but nothing styled it:
   on a phone, opening the menu showed a run of bare blue links. A copy
   of the drawer block in components.css, verbatim; change both together.
   ============================================================ */
/* Never taller than the screen below the bar. */
.nav-mobile { max-height: calc(100svh - 58px); overflow-y: auto; overscroll-behavior: contain; }

/* Each level is its own column. Without this the links inside a panel are
   inline boxes (they used to be flex children of the drawer itself) and the
   sub-pages run together across the line. The [hidden] guard has to come
   after, or `display: flex` would override it and every panel would show. */
.nav-m-panel { display: flex; flex-direction: column; gap: 2px; }
.nav-m-panel[hidden] { display: none; }

/* The two top-level rows, and the header that walks back from a section. */
.nav-m-row, .nav-m-back {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: none;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-1);
  text-align: left;
  cursor: pointer;
}
.nav-m-row { justify-content: space-between; }
.nav-m-row:hover, .nav-m-row:active,
.nav-m-back:hover, .nav-m-back:active { background: var(--bg-cream-deep); }
.nav-m-chev { flex: none; color: var(--fg-3); }

.nav-m-back {
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-1);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 15px;
  color: var(--fg-2);
}
.nav-m-back .nav-m-chev-back { color: var(--accent); }

.nav-m-head {
  margin: 14px 0 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.nav-m-head:first-child { margin-top: 4px; }

/* A product: its name, a status tag, and the product's own hue as a dot. */
.nav-m-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  --c: var(--accent);
}
.nav-m-item[data-accent="bug"] { --c: var(--p-bug); }
.nav-m-item[data-accent="pm"]  { --c: var(--p-pm); }
.nav-m-item[data-accent="lms"] { --c: var(--p-lms); }
.nav-m-item:hover, .nav-m-item:active { background: var(--bg-cream-deep); }

.nav-m-name {
  position: relative;
  padding-left: 15px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
}
.nav-m-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 7px;
  height: 7px;
  background: var(--c);
}
/* A product's sub-pages, indented under it. */
.nav-m-sub {
  padding: 8px 12px 8px 39px;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
}
.nav-m-sub:hover, .nav-m-sub:active { background: var(--bg-cream-deep); color: var(--fg-1); }

/* Company: one level, no dots. */
.nav-m-link {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--fg-1);
  text-decoration: none;
}
.nav-m-link:hover, .nav-m-link:active { background: var(--bg-cream-deep); }
