/* The keyboard explains itself (work/chain/keys8.py): the key under the pointer is red, a card in front says what it does.
   Only colour and opacity change. */
.keys-still .kb { position: relative; }
.keys-still .kb .k[data-k] { cursor: default; outline: none; }
.keys-still .kb .k.is-red, .keys-still .kb[data-step="5"] .k.is-red { background: #e5484d; color: #fff; transition: background-color 120ms ease; }
.k8-card { position: absolute; z-index: 5; width: min(300px, calc(100% - 16px)); padding: 14px 16px 15px; border-radius: 12px;
  background: #fff; color: #17212e; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 18px 44px rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 140ms ease; }
.k8-card.is-on { opacity: 1; }
.k8-name { margin: 0 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.k8-text { margin: 0; font-size: 14px; line-height: 1.45; color: #3c4653; }
.k8-note { margin: 8px 0 0; font-size: 12.5px; color: #7a8491; }
.k8-note:empty { display: none; }
.kb-caption .k8-ask { color: var(--dark-ink); }
@media (hover: none) { .k8-ask-hover { display: none; } }
@media (hover: hover) { .k8-ask-tap { display: none; } }
@media (max-width: 760px) { .keys-still .kb-caption { display: block; margin-top: 12px; font-size: 13px; } }
/* where the key comes from: ForthTap's own (blue) or a Lightroom key moved under the left hand (grey) */
.k8-from { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #5b6573; }
.k8-from.is-ft { background: #e6f0fd; color: #0a6cdf; }
.k8-from[hidden] { display: none; }
.k8-from.is-qe { background: #0a6cdf; color: #fff; }
/* the tag as a quiet line in the title's own left edge, no plate */
.k8-from, .k8-from.is-ft, .k8-from.is-qe { display: block; margin: 0 0 4px; padding: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: #0a6cdf; }
.k8-from[hidden] { display: none; }
/* the label may use a little more of the key's width than the letter above it */
.keys-still .kb .k i { margin-right: -2px; }

/* The keyboard says it can be pointed at: a short line under it, and once, a drawn pointer that visits three keys. */
.k8-hint { margin: 14px 0 0; color: #7b8693; font-size: 14px; line-height: 1.4; }
.k8-hint-touch { display: none; }
@media (hover: none) { .k8-hint-mouse { display: none; } .k8-hint-touch { display: inline; } }
.k8-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease; }
.k8-cursor svg { width: 22px; height: 22px; fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.k8-cursor.is-on { opacity: 1; }

/* The backtick is a tiny tick in the font, so on the hardness key it is drawn larger and bolder, in the same corner as the letters. */
.keys-still .kb .k b.k-grave { font-size: 1.75em; font-weight: 800; line-height: 0.62; }
