/* Luminary · placement check, welcome back, in-quest detours and the walkthrough (wave 2, placement-restart).
   Registered on every page (routes_placement.register_stylesheet), after quests.css. Tokens only (luminary.css), both
   themes; the studio world's rules are at the bottom.
   - Not a test: neutral notches (answered = filled ink, never right/wrong colors), no timer, no score strip.
   - A detour is a calm side table, not a warning: surface plates and blue presses, never amber or red.
   - One primary press per view; 44px targets on coarse pointers; everything stacks at 320px.
   - The walkthrough's reveal is instant (no motion of its own), so reduced motion has nothing to undo. */

/* ------------------------------------------------------------------ the page and the intro */
.q-place-lead { max-width: 65ch; }
.q-place-lead p { margin: 0; }
.q-place-asked { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.q-place-asked > .icon { color: var(--blue); flex: none; }
.q-place-actions { align-items: center; }
.q-place-intro, .q-place-head { gap: 14px; }

/* ------------------------------------------------------------------ the run: neutral notches, gentle feedback */
.q-place-notches { display: flex; flex-wrap: wrap; gap: 6px; }
.q-place-notches > span { width: 22px; height: 12px; border-radius: 2px; border: 1.5px solid var(--outline); background: transparent; }
.q-place-notches > span.is-done { background: var(--ink-3); border-color: var(--ink-3); }
.q-place-notches > span.is-current { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--blue); }
.q-place-fb { max-width: 70ch; }
.q-place-close { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--blue); font-weight: 700; }
.q-place-close .icon { width: 18px; height: 18px; }
.q-place-skip { margin-top: 2px; }
.q-place-skip .btn .icon { color: var(--ink-2); }

/* ------------------------------------------------------------------ the result: how the quests start now */
.q-place-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 70ch; }
.q-place-lines li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 14px; border-radius: var(--r);
                    background: var(--surface); border: 1px solid var(--line); }
.q-place-lines li > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ink-2); }
.q-place-lines li.is-solid > .icon { color: var(--good); }
.q-place-lines li.is-warmup > .icon { color: var(--blue); }

/* ------------------------------------------------------------------ the detour panel: a side table, three choices */
.q-detour { padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); max-width: 760px; }
.q-detour h3 { font-size: 1.08rem; }
.q-detour-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.q-detour-choice { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 16px; align-items: center; }
.q-detour-choice .btn { width: 100%; justify-content: flex-start; }
.q-detour-why { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 52ch; }
@media (max-width: 560px) {
  .q-detour-choice { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ the walkthrough: one step at a time */
.q-walkthrough .section-title { display: flex; align-items: center; gap: 8px; }
.q-walkthrough .section-title .icon { color: var(--blue); }
.q-walk-steps .q-walk-step:last-child { font-weight: 700; }
.q-walk-actions { align-items: center; }
.q-walk-next .num { font-family: var(--font-mono); font-weight: 500; }

/* ------------------------------------------------------------------ an eased problem, a parked quest */
.q-eased { color: var(--ink-2); }
.q-eased .icon { color: var(--blue); }
.q-parked p { max-width: 60ch; }

/* ------------------------------------------------------------------ the parent's findings (office: ink and one blue) */
.q-place-parent { padding-top: 4px; }
.q-place-parent + .q-place-parent { border-top: 1px solid var(--line); padding-top: 12px; }
.q-place-parent-h { font-size: 1rem; }
.q-place-parent-head { margin: 0; color: var(--ink-2); }
.q-place-findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-width: 72ch; }
.q-place-findings li { padding-left: 14px; position: relative; }
.q-place-findings li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.q-place-findings li.is-solid::before { background: var(--good); }
.q-place-findings li.is-warmup::before { background: var(--blue); }
.q-place-findings li.is-level { color: var(--ink-2); }
.q-place-suggest { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--blue-soft); max-width: 72ch; }
.q-place-suggest p { margin: 0; }
.q-place-suggest .btn { justify-self: start; }

/* ------------------------------------------------------------------ touch: 44px targets; phones stack */
@media (pointer: coarse) {
  .q-place-actions .btn, .q-place-skip .btn, .q-detour .btn, .q-walk-actions .btn, .q-place-ask .btn, .q-place-suggest .btn { min-height: 44px; }
}
@media (max-width: 560px) {
  .q-place-actions { flex-direction: column; align-items: stretch; }
  .q-place-actions form, .q-place-actions .btn, .q-walk-actions .btn, .q-walk-actions form { width: 100%; }
}

/* ------------------------------------------------------------------ the studio world: card stock on the cork */
/* The offer, the detour and the result lines are cards taped to the board in the quests' swatch (cornflower); the
   notches are kraft dots, filled in ink when answered. Colors stay tokens. */
[data-world="studio"] .q-place-bench,
[data-world="studio"] .q-place-intro {
  box-shadow: inset 0 4px 0 var(--swatch-cornflower), var(--shadow-hung);
}
[data-world="studio"] .q-place-notches > span { width: 14px; height: 14px; border-radius: 50%; border-color: var(--card-edge); background: var(--kraft); }
[data-world="studio"] .q-place-notches > span.is-done { background: var(--ink); border-color: var(--ink); }
[data-world="studio"] .q-detour {
  border: 1px solid var(--card-edge); border-radius: var(--r-sm); background: var(--card);
  box-shadow: inset 0 4px 0 var(--swatch-cornflower), var(--shadow-hung); padding-top: 20px;
}
[data-world="studio"] .q-place-lines li { border-color: var(--card-edge); border-radius: var(--r-sm); background: var(--card); }
[data-world="studio"] .q-place-lines li > .icon { color: var(--ink); }
[data-world="studio"] .q-place-close { color: var(--ink); }
