/* No page baseline import here: every page imports #app/shared/styles/page.css
   through its own style.css, and the /ui catalog, on its own themes, renders
   this template too. The panel, backdrop, title and close button are the
   Dialog's; only the shortcut list is styled here. */

.keyboard-help-mount {
  display: contents;
}

/* The list is the DialogBody: with scroll="inside" it scrolls on a short
   screen while the title and the foot stay in view. */
.keyboard-help-groups {
  gap: 1rem;
}

.keyboard-help-group-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 0.375rem;
}

.keyboard-help-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.keyboard-help-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.keyboard-help-keys {
  font-size: 0.8125rem;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

.keyboard-help-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.keyboard-help-foot {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-dim);
}
.keyboard-help-foot kbd {
  margin-right: 0.25rem;
}

/* Alternatives for one action, with a faint slash between them so "j ↓"
   does not read as a chord. */
.keyboard-help-alt + .keyboard-help-alt::before {
  content: "/";
  margin: 0 0.375rem;
  color: var(--ink-faint);
}
