/* From loop to comprehension (lesson 1.8). Colours: amber = the value that goes into the list (data),
   gray = the loop and the filter (control; the filter is dashed). Lit parts glow, they don't change colour. */
.lc-panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lc-panes .fig-panel + .fig-panel { margin-top: 0; }
.lc-code { margin: 0; overflow-x: auto; font: 14px/1.9 var(--font-mono); font-variant-ligatures: none; color: var(--ink); }
.lc-code code { padding: 0; border: 0; background: none; font-size: inherit; }
.lc-part { padding: 1px 3px; border-radius: 5px; outline: none; transition: box-shadow var(--dur) var(--ease); cursor: default; }
.lc-value { background: var(--data-tint); box-shadow: inset 0 -2px 0 var(--data); }
.lc-loop { background: var(--sunk); box-shadow: inset 0 -2px 0 var(--ink-2); }
.lc-filter { background: var(--sunk); border-bottom: 2px dashed var(--ink-2); }
.lc-value.is-on { box-shadow: inset 0 -2px 0 var(--data), 0 0 0 3px var(--data-line); }
.lc-loop.is-on, .lc-filter.is-on { box-shadow: inset 0 -2px 0 var(--ink-2), 0 0 0 3px var(--line-strong); }
.lc-filter.is-on { box-shadow: 0 0 0 3px var(--line-strong); }

.lc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; }
.lc-key { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 0; border-radius: 7px; background: none; font: 500 13px var(--font-sans); color: var(--ink-2); cursor: default; }
.lc-key.is-on { background: var(--sunk); }
.lc-swatch { width: 18px; height: 10px; border-radius: 3px; }
.lc-swatch.lc-value { box-shadow: inset 0 -2px 0 var(--data); }
.lc-swatch.lc-loop { box-shadow: inset 0 -2px 0 var(--ink-2); }
.lc-swatch.lc-filter { border-bottom: 2px dashed var(--ink-2); }
.lc-note { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .lc-part { transition: none; }
}
