/*
 * vimNav.css — bottom-right hint chip for the `g`-leader two-key nav.
 *
 * Lives next to the toast stack (toast.css → bottom: 20px right: 20px).
 * Positioned higher (bottom: 96px) so an in-flight toast never sits on top
 * of a freshly-armed nav chip. z-index sits just under the palette overlay
 * (9999) and below the toast stack (9998) — palette wins, then toasts, then
 * the nav chip if both happen to be live.
 *
 * Same premium-feel tokens as palette/toast/empty states: --card-elevated,
 * --t1/2/3, --mint, --mint-a10/20, --ps-elev-2, --ps-ease.
 */

.ps-gnav-hint {
  position: fixed;
  bottom: 96px;
  right: 20px;
  z-index: 9997;
  min-width: 240px;
  max-width: 280px;
  padding: 14px 14px 12px;
  background: var(--card-elevated);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--ps-elev-2);
  font-family: var(--fb);
  color: var(--t2);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 200ms var(--ps-ease), transform 200ms var(--ps-ease);
  pointer-events: none; /* purely informational while armed */
}

html[data-theme="light"] .ps-gnav-hint {
  border-color: rgba(26, 39, 64, 0.08);
}

.ps-gnav-hint.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ps-gnav-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .ps-gnav-head {
  border-bottom-color: rgba(26, 39, 64, 0.06);
}

.ps-gnav-leader {
  font-family: var(--fd, var(--fb));
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: 0.02em;
}

.ps-gnav-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ps-gnav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.ps-gnav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.78rem;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-gnav-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-gnav-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--mint-a10, rgba(46, 216, 168, 0.10));
  color: var(--mint, #2ed8a8);
  border-radius: 5px;
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--mint-a20, rgba(46, 216, 168, 0.20));
  flex-shrink: 0;
}

/* Stacked on narrow viewports — keep all bindings visible. */
@media (max-width: 480px) {
  .ps-gnav-hint {
    bottom: 110px;
    right: 16px;
    left: 16px;
    min-width: 0;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-gnav-hint {
    transition: opacity 120ms linear;
    transform: none !important;
  }
}
