/* Step-by-step walkthroughs shown after an answer and under "Work through the solution". */
.walk {
  margin-top: var(--s3, 16px);
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r2);
  color: var(--ink);
}
.walk h3 { color: var(--accent); margin-bottom: 6px; }
.wgoal { margin: 0 0 14px; color: var(--ink-2); font-size: 1.02rem; }
.wsteps { list-style: none; counter-reset: wstep; margin: 0; padding: 0; display: grid; gap: 12px; }
.wstep {
  counter-increment: wstep;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r1);
  background: var(--surface-2);
  border-left: 5px solid var(--accent-line);
  animation: wstep-in .28s var(--ease) both;
}
.wstep:focus { outline: none; }
.wstep:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wstep::before {
  content: counter(wstep);
  grid-row: 1 / span 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent-line);
  color: var(--accent);
  font-weight: 800;
}
.wdo { grid-column: 2; font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.wshow {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: var(--r1);
  background: var(--well);
  border: 1px solid var(--line);
  font-size: 1.35rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.wshow.wtext { font-size: 1.05rem; line-height: 1.5; font-variant-numeric: normal; }
.wstep.wcross { border-left-color: var(--bad-line); }
.wstep.wcross::before { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.wshow.wx { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; }
.wwhy { grid-column: 2; margin-top: 6px; font-size: .97rem; line-height: 1.45; color: var(--ink-3); }
.wcheck, .wtip { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r1); line-height: 1.45; }
.wcheck { background: var(--good-soft); border: 1px solid var(--good-line); color: var(--ink); }
.wcheck b { color: var(--good); }
.wtip { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink); }
.wtip b { color: var(--warn); }
.walk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.walk-actions:empty { display: none; }
.walk-video { width: min(960px, 94vw); padding: 12px; border: 2px solid var(--line); border-radius: var(--r2); background: var(--paper); color: var(--ink); }
.walk-video::backdrop { background: rgb(0 0 0 / .7); }
.walk-video form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.walk-video video { display: block; width: 100%; border-radius: var(--r1); background: #000; }
@keyframes wstep-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wstep { animation: none; } }
@media (max-width: 560px) {
  .walk { padding: 12px; }
  .wstep { grid-template-columns: 28px 1fr; column-gap: 10px; padding: 10px; }
  .wstep::before { grid-row: 1; width: 28px; height: 28px; font-size: .9rem; }
  .wshow, .wwhy { grid-column: 1 / -1; }
  .wshow { font-size: 1.15rem; padding: 6px 10px; }
  .wshow.wtext { font-size: 1rem; }
}
@media (max-width: 720px) {
  /* On narrow screens the feedback box keeps 60px on the left for its icon; let the walkthrough use that width below the icon. */
  .feedback .walk { margin-left: -44px; }
}
