/* Help guide modal — fully self-contained. Safe to remove: delete this
   file, css/help-guide.css's <link> in index.html, the #topbar-help-btn
   button, and the initHelpGuide() import/call in js/main.js. */

.help-guide-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.help-guide-backdrop.is-open {
  display: flex;
}

.help-guide-modal {
  width: min(560px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
}

.help-guide-modal h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.help-guide-modal h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: var(--space-5) 0 var(--space-3);
}

.help-guide-modal h3:first-of-type {
  margin-top: 0;
}

.help-guide-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
}

.help-guide-close:hover {
  color: var(--color-text);
  background: var(--color-surface-3);
}

.help-guide-modal-inner {
  position: relative;
}

.help-guide-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.help-guide-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}

.help-guide-key {
  flex-shrink: 0;
  min-width: 108px;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.help-guide-key .material-icons {
  font-size: 16px;
}

.help-guide-kbd {
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.help-guide-desc-title {
  color: var(--color-text);
  font-weight: 500;
}

.help-guide-desc {
  color: var(--color-text-muted);
}
