/* Proof 5, the manual and training. The page and its quiz in the phone; the picker's warning and the learning path beside it. */
/* The toy's room is kept before it is drawn, so the page below does not jump. */
.js [data-toy='manual'] { min-height: 1098px; }
@media (min-width: 700px) { .js [data-toy='manual'] { min-height: 680px; } }
.mn { container-type: inline-size; }
/* On a narrow screen the phone is a little shorter, so its last button stays above the page's own dock. */
@container (max-width: 569px) { .mn .phone { height: 590px; } .mn .phone > .screen { height: 572px; } }
.mn-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mn-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mn-nudge.still::before { animation: none; }
/* Narrow: the picker's warning comes first, so the visitor sees it before they clear it; then the phone, then the path. */
.mn-side { display: contents; }
.mn-pick { order: -1; }
.mn-path { order: 1; }
.mn-in > .mn-side > .mn-card { width: 100%; max-width: 350px; }
@container (min-width: 570px) {
  .mn-in { flex-direction: row; align-items: flex-start; justify-content: center; gap: 24px; }
  .mn-side { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; max-width: 292px; padding-top: 60px; gap: 16px; }
  .mn-pick, .mn-path { order: 0; }
}
.mn .av.me { --av-bg: var(--ink); --av-fg: var(--on-navy); }

/* ----- The page ----- */
.mn .screen { gap: 10px; }
.mn-steps { position: relative; gap: 11px; padding: 14px; }
.mn-steps .ui-step { font: 400 15px/21px var(--sans); }
.mn-quizrow { position: relative; }
.mn-bar { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); background: var(--surface); margin-bottom: -14px; padding-bottom: 16px; }
.mn-bar-say { margin-inline: 16px; font: 400 13px/18px var(--sans); color: var(--text-2); }
.mn-bar-ok { margin-inline: 16px; display: flex; }
.mn-signed { background: var(--ok-tint); color: var(--ok); }
.mn-pulse { position: relative; }
.mn-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid var(--accent); animation: mn-ring 1.5s var(--ease-out) infinite; pointer-events: none; }
@keyframes mn-ring { from { opacity: 0.9; transform: scale(0.96, 0.9); } to { opacity: 0; transform: scale(1.06, 1.4); } }
.mn-stamp { position: absolute; top: 4px; inset-inline-end: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 9px 6px; border: 2.5px solid var(--ok-solid); border-radius: 9px; background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ok); font: 700 15px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-9deg); }
.mn-stamp small { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; }
.mn-stamp.land { animation: mn-stamp 480ms var(--ease-spring) both; }
@keyframes mn-stamp { 0% { opacity: 0; transform: rotate(-26deg) scale(2.6); } 100% { opacity: 1; transform: rotate(-9deg) scale(1); } }
/* In Spanish the row's second line is longer ("Cuestionario aprobado · 1 de 1"): the stamp lands just under the row, not on its words. */
:lang(es) .mn-stamp { top: calc(100% + 4px); }

/* ----- The quiz ----- */
.mn-quiz.enter > * { animation: mn-in 320ms var(--ease-out) both; }
@keyframes mn-in { from { opacity: 0; transform: translateX(18px); } }
[dir='rtl'] .mn-quiz.enter > * { animation-name: mn-in-rtl; }
@keyframes mn-in-rtl { from { opacity: 0; transform: translateX(-18px); } }
.mn-q { margin: 6px 16px 2px; font: 700 18px/24px var(--sans); letter-spacing: -0.01em; color: var(--text); }
.mn-choices { display: flex; flex-direction: column; gap: 8px; margin-inline: 12px; }
.mn-choice { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 13px; border-radius: 15px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: start; font: 500 15px/20px var(--sans); color: var(--text); transition: transform 160ms var(--ease-spring), border-color 160ms, background 160ms; }
.mn-choice:hover { transform: translateY(-1px); border-color: var(--accent); }
.mn-choice:active { transform: scale(0.98); }
.mn-choice i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-control); display: grid; place-items: center; }
.mn-choice.wrong { border-color: var(--warn); background: var(--warn-tint); color: var(--warn); pointer-events: none; }
.mn-choice.wrong.now { animation: mn-no 380ms var(--ease-in-out); }
.mn-choice.wrong i { border-color: var(--warn); }
.mn-choice.wrong i::after { content: ''; width: 10px; height: 2px; border-radius: 1px; background: var(--warn); }
.mn-choice.right { border-color: var(--ok-solid); background: var(--ok-tint); color: var(--ok); pointer-events: none; animation: mn-yes 420ms var(--ease-spring); }
.mn-choice.right i { border-color: var(--ok-solid); background: var(--ok-solid); }
.mn-choice.right i::after { content: ''; width: 10px; height: 5px; border: solid var(--surface); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@keyframes mn-no { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-4px); } }
@keyframes mn-yes { 40% { transform: scale(1.04); } }
.mn-said { min-height: 40px; margin-inline: 16px; font: 600 14px/20px var(--sans); color: var(--warn); }
.mn-said.ok { color: var(--ok); }
.mn-back { margin-top: auto; }

/* ----- Beside the phone ----- */
.mn-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 14px 15px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 32px -24px color-mix(in srgb, var(--navy) 60%, transparent); }
.mn-cap { font: 600 12px/16px var(--sans); color: var(--text-3); }
.mn-person { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.mn-person b { font: 600 15px/20px var(--sans); color: var(--text); margin-inline-end: auto; }
.mn-chip { height: auto; min-height: 24px; padding-block: 4px; white-space: normal; }
.mn-chip.shake { animation: mn-shake 700ms 250ms var(--ease-in-out) both; }
@keyframes mn-shake { 15% { transform: rotate(-5deg) scale(1.08); } 35% { transform: rotate(4deg) scale(1.08); } 55% { transform: rotate(-3deg) scale(1.05); } 75% { transform: rotate(2deg); } }
.mn-chip.land { animation: mn-yes 460ms var(--ease-spring); }
.mn-foot { font: 400 11px/15px var(--sans); color: var(--text-3); }
.mn-name { font: 700 17px/22px var(--sans); letter-spacing: -0.01em; color: var(--text); }
.mn-path ol { display: flex; flex-direction: column; }
.mn-path li { display: flex; align-items: center; gap: 9px; min-height: 36px; border-top: 1px solid var(--line); font: 500 14px/19px var(--sans); color: var(--text-2); }
.mn-path li > span:not(.ui-check) { flex: 1; min-width: 0; }
.mn-path li.done { color: var(--text); }
.mn-path li.now { color: var(--text); font-weight: 600; }
.mn-path li.now .ui-check { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.mn-path li.land .ui-check { animation: mn-yes 460ms var(--ease-spring); }
.mn-path .ui-check { width: 20px; height: 20px; }
.mn-path time { font: 500 12px/18px var(--mono); color: var(--text-3); white-space: nowrap; }
.mn-buddy { display: flex; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); font: 500 14px/20px var(--sans); color: var(--text); }

/* With the whole width: more room between the phone and what stands beside it. */
@container (min-width: 860px) { .mn-in { gap: clamp(56px, 8cqw, 110px); } }
