/* Luminary · quests built ahead and the offline paths (wave 2, quests generation). Registered on every page
   (routes_lesson), after quests.css. Tokens only (luminary.css), both themes; the studio world's rules are at the
   bottom.
   - Saved for tonight is a waiting mark, so it is dashed (the Dashed Means Not-Yet rule), in ink with the moon icon:
     it reads without color. Never yellow (nothing is built yet) and never red or amber (nothing went wrong).
   - The offline line on the board is a calm info plate, not an alarm: math and built quests still work.
   - The credit line sits small and quiet under the quest; its links are the shared blue.
   - Touch: 44px targets on coarse pointers; everything wraps at 320px. No motion of its own. */

/* ------------------------------------------------------------------ the board: builds tonight / saved for tonight */
.q-tonight {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; min-height: 22px;
  border: 1px dashed var(--ink-3); border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; color: var(--ink-2); white-space: normal;
}
.q-tonight > .icon { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.q-btn-tonight .icon { color: var(--ink-2); }
.notice.q-offline > .icon { color: var(--ink-2); }

/* ------------------------------------------------------------------ the lesson page: saved for tonight */
.q-queued { max-width: 760px; }
.q-queued-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--ink); }
.q-queued-head > .icon { color: var(--ink-2); flex: none; margin-top: 2px; }
.q-queued-head > p { margin: 0; max-width: 68ch; }
.q-queued .row { flex-wrap: wrap; }

/* ------------------------------------------------------------------ a ready-made quest (the bank, no AI) */
.q-ready-made { display: inline-flex; align-items: center; gap: 2px; }

/* ------------------------------------------------------------------ the written answer while it's being read */
.q-reading > .icon { color: var(--ink-2); }

/* ------------------------------------------------------------------ the credit line under an adapted quest */
.q-credit { display: flex; align-items: flex-start; gap: 8px; max-width: 760px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; line-height: 1.45; }
.q-credit > .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.q-credit-lines { display: grid; gap: 4px; }
.q-credit-lines p { margin: 0; max-width: 90ch; overflow-wrap: anywhere; }
.q-credit-lines a { color: var(--blue); text-underline-offset: 2px; }

@media (pointer: coarse) {
  .q-queued .btn, .q-btn-tonight { min-height: 44px; }
  .q-credit-lines a { display: inline-block; padding-block: 6px; }  /* a 44px-ish row for a thumb on the link */
}

/* ------------------------------------------------------------------ the studio world: card stock on the cork */
[data-world="studio"] .q-tonight { border-color: var(--card-edge); background: var(--kraft); color: var(--ink); }
[data-world="studio"] .q-tonight > .icon { color: var(--ink); }
[data-world="studio"] .q-queued-head { background: var(--card); border-color: var(--card-edge); }
[data-world="studio"] .q-credit { border-color: var(--card-edge); color: var(--ink-2); }
[data-world="studio"] .q-credit > .icon { color: var(--ink-2); }
