/* Windows lab 3 (lesson 10): the keyboard-shortcut strip under the laptop and the answer boxes in the exercises. */

/* ── keycaps: drawn keys, pressed into the simulator ─────────────────── */
.kbd-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 14px auto 0; max-width: 820px; padding: 0 8px; }
.kbd-cap { font-size: .8rem; color: var(--ink-dim, #6e6e73); margin-inline-end: 2px; }
.kbd-combo { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid var(--line, rgba(127, 127, 127, .28)); border-radius: 10px; background: var(--panel, #fff); color: inherit; font: inherit; cursor: pointer; direction: ltr; transition: background-color .12s ease, border-color .12s ease; }
.kbd-combo:hover { border-color: rgba(127, 127, 127, .5); }
.kbd-combo:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.kbd-combo .kc { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 7px; font: 600 12.5px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1d1d1f;
    background: linear-gradient(#ffffff, #f0f0f2); border: 1px solid #c9c9ce; border-bottom-width: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); justify-content: center; transition: transform .08s ease, border-bottom-width .08s ease; }
.kbd-combo:active .kc, .kbd-combo.down .kc { transform: translateY(2px); border-bottom-width: 1px; }
.kbd-combo .kc-plus { font-size: 11px; color: #8e8e93; }
/* the Windows key: a four-pane window drawn with gradients (not a vendor logo file) */
.kc-logo { display: inline-block; width: 11px; height: 11px; background:
    linear-gradient(#1d1d1f, #1d1d1f) 0 0 / 5px 5px no-repeat, linear-gradient(#1d1d1f, #1d1d1f) 6px 0 / 5px 5px no-repeat,
    linear-gradient(#1d1d1f, #1d1d1f) 0 6px / 5px 5px no-repeat, linear-gradient(#1d1d1f, #1d1d1f) 6px 6px / 5px 5px no-repeat; opacity: .78; }
@media (prefers-reduced-motion: reduce) { .kbd-combo .kc, .kbd-combo { transition: none; } }

/* ── answers inside an exercise ─────────────────────────────────────── */
.task .tx .l3-ans { display: flex; gap: 6px; margin-top: 7px; max-width: 360px; }
.task .tx .l3-ans input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid var(--line, rgba(127, 127, 127, .35)); border-radius: 8px; font: 13px/1.3 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--panel, #fff); color: inherit; }
.task .tx .l3-ans input:focus { outline: 2px solid #0071e3; outline-offset: 0; border-color: transparent; }
.task .tx .l3-ans button { flex: none; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; background: #0071e3; color: #fff; font: 600 12.5px system-ui, sans-serif; cursor: pointer; }
.task .tx .l3-ans.ok input { border-color: #1d9e55; background: rgba(29, 158, 85, .06); }
.task .tx .l3-ans.ok button { background: #1d9e55; cursor: default; }
.task .tx .l3-ans.bad input { border-color: #d70015; }
.task .tx .l3-msg { display: block; margin-top: 4px; font-size: .78rem; color: #d70015; }
.task .tx .l3-q { display: block; margin-top: 8px; }
.task .tx .l3-qt { display: block; font-size: .84rem; margin-bottom: 5px; }
.task .tx .l3-opt { margin: 0 6px 6px 0; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line, rgba(127, 127, 127, .35)); background: var(--panel, #fff); color: inherit; font: 12.5px system-ui, sans-serif; cursor: pointer; }
[dir="rtl"] .task .tx .l3-opt { margin: 0 0 6px 6px; }
.task .tx .l3-opt.ok { border-color: #1d9e55; background: rgba(29, 158, 85, .1); color: #137a3f; }
.task .tx .l3-opt.bad { border-color: #d70015; background: rgba(215, 0, 21, .07); color: #b3000f; }

@media (max-width: 520px) { .kbd-strip { gap: 6px 8px; } .kbd-combo .kc { min-width: 26px; height: 27px; padding: 0 7px; font-size: 11.5px; } }
/* the ports workbench sits under the laptop, across the stage; full screen is for the device alone */
.stage .ports-panel { margin-top: 18px; user-select: text; -webkit-user-select: text; }
html.fs .stage .ports-panel { display: none; }
/* full screen (2026-10-30): the laptop centred with the shortcut keys right under it, as one column; the Ports & cables
   workbench waits outside full screen (it is long and would take the screen) */
html.fs .ports-panel { display: none; }
html.fs .stage { flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
html.fs .stage .laptop { width: min(100%, calc((100vh - 230px) * 1.6)); margin: 0 auto; }
html.fs .stage .kbd-strip { position: static; width: auto; max-width: 100%; margin: 0 auto; }
