/* Keyboard shortcut reference; uses the site's shared guide layout and theme. */
.keyboard-shortcuts-page .shortcut-updated {
  margin: 20px 0 -6px;
  color: var(--orange-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.keyboard-shortcuts-page .guide-heading h1 { font-size: clamp(2.7rem, 5.2vw, 4.6rem); }
.key-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 18px;
  color: var(--text);
  font-size: .9rem;
}
.key-legend span { white-space: nowrap; }
.keyboard-shortcuts-page .shortcut-intro-note { font-size: .95rem; }
.key-combination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.key-combination kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 32px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.3;
  white-space: nowrap;
}
.shortcut-table th, .shortcut-table td { min-width: 0; padding: 15px 14px; }
.shortcut-table thead th:first-child { width: 29%; }
.shortcut-table thead th:nth-child(2) { width: 27%; }
.shortcut-table tbody th { background: transparent; font-size: .9rem; font-weight: 650; }
.shortcut-table tbody tr:last-child th { border-bottom: 0; }
.shortcut-table tbody tr:hover { background: var(--chip-bg); }
.shortcut-table td:last-child { font-size: .84rem; }
@media (max-width: 600px) {
  .shortcut-table table, .shortcut-table tbody { display: block; }
  .shortcut-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .shortcut-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .shortcut-table tbody tr:last-child { border-bottom: 0; }
  .shortcut-table tbody th, .shortcut-table td { display: block; padding: 0; border: 0; }
  .shortcut-table tbody th { font-size: 1rem; }
  .shortcut-table td:last-child { font-size: .9rem; }
}
@media print {
  .keyboard-shortcuts-page .site-header, .keyboard-shortcuts-page .site-footer,
  .keyboard-shortcuts-page .guide-sidebar, .keyboard-shortcuts-page .guide-mobile-contents,
  .keyboard-shortcuts-page .guide-next { display: none; }
  .keyboard-shortcuts-page {
    --text: #111; --muted: #333; --bg-soft: #f4f4f4;
    --line: #ddd; --line-strong: #aaa; --orange-light: #555;
    background: white; color: #111;
  }
  .keyboard-shortcuts-page .guide-shell { display: block; width: 100%; padding: 0; }
  .shortcut-table { overflow: visible; }
  .shortcut-table tr { break-inside: avoid; }
}
