/* SPDX-FileCopyrightText: Copyright 2026 Alexander Orlov <info@lifub.com> */

/* The keyboard-shortcut legend (`?`) of every Keyring page, in the page's
   own theme tokens. */

.shortcut-legend {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px 20px;
  border: 1px solid var(--focus-color);
  border-radius: 12px;
  background: var(--std-back-color);
  color: var(--front-color);
}

.shortcut-legend::backdrop { background: hsla(220, 21%, 8%, 0.65); }
.shortcut-legend h2 { margin: 0 0 10px; font-size: 16px; text-align: center; }
.shortcut-legend h3 { margin: 12px 0 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary-color); }
.shortcut-legend dl { display: grid; grid-template-columns: minmax(96px, max-content) 1fr; gap: 4px 14px; margin: 0; }
.shortcut-legend dt { text-align: right; white-space: nowrap; color: var(--secondary-color); font-size: 12px; }
.shortcut-legend dd { margin: 0; font-size: 13px; }
.shortcut-legend button { padding: 2px 10px; border: 1px solid var(--info-color); border-radius: 6px; background: transparent; color: var(--front-color); cursor: pointer; }
.shortcut-legend .shortcut-legend-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--info-color); align-items: center; }
.shortcut-legend-footer button { min-height: 32px; padding: 6px 14px; }
.shortcut-legend-note { margin: 12px 0 0; font-size: 11px; color: var(--secondary-color); }

.shortcut-legend kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 5px;
  border: 1px solid var(--info-color);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--back-color);
  color: var(--focus-color);
  font: 600 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  text-align: center;
}
