/* Colors come from the title through inherited color and these properties. */
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  padding: .05em .35em;
  border: 1px solid currentColor;
  border-radius: .25em;
  font: 600 .85em/1.4 var(--shortcut-font, ui-sans-serif, system-ui, sans-serif);
}
.shortcut-hint { margin-inline-start: .55em; font-size: .72em; opacity: .75; }
html[data-shortcuts="off"] .shortcut-hint { display: none; }
/* A device without a keyboard gains nothing from hints. */
@media (hover: none) and (pointer: coarse) { .shortcut-hint { display: none; } }
.shortcut-help { width: min(46rem, calc(100vw - 1.5rem)); max-width: none; }
.shortcut-help h3 { margin: 0 0 .4rem; font-size: 1rem; }
.shortcut-groups { columns: 2 18rem; column-gap: 2rem; margin-bottom: .8rem; }
.shortcut-groups section { break-inside: avoid; margin-bottom: 1rem; }
.shortcut-help dl { display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr; gap: .35rem .8rem; margin: 0; align-items: baseline; }
.shortcut-help dt { display: flex; flex-wrap: wrap; gap: .25rem; align-items: baseline; }
.shortcut-help dd { margin: 0; }
.shortcut-foot { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; margin-top: 1rem; }
.shortcut-toggle { display: flex; gap: .5rem; align-items: center; }
