/* First-session journey (static/journey.js): the step strip in the quiz bar
   and one note per step on the real quiz screens. Quiz-paper tokens only. */

html.journey-on .qp-progress { display: none !important; }

.journey-strip { display: flex; align-items: center; gap: 6px; margin: 0 0 0 4px; padding: 0; list-style: none; }
.journey-strip li { display: flex; align-items: center; gap: 6px; white-space: nowrap;
    font: 600 .6875rem/1 var(--qp-mono, 'JetBrains Mono', monospace); letter-spacing: .04em; text-transform: uppercase;
    color: var(--qp-ink-3); }
.journey-strip li + li::before { content: ""; width: 10px; height: 1px; background: var(--qp-rule-strong); }
.journey-dot { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--qp-rule-strong); font-size: .625rem; letter-spacing: 0; }
.journey-strip [data-state="done"] { color: var(--qp-ink-2); }
.journey-strip [data-state="done"] .journey-dot { background: var(--qp-ink-2); border-color: var(--qp-ink-2); color: var(--qp-paper); }
.journey-strip [data-state="current"] { color: var(--qp-link); }
.journey-strip [data-state="current"] .journey-dot { border-color: var(--qp-link); box-shadow: 0 0 0 3px var(--qp-selected); }
/* The bar also carries the subject and topic, so only the current step is
   named on screen; the others stay readable to screen readers. */
.journey-strip li:not([data-state="current"]) .journey-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:root body #mainContent #quizSection .journey-note { max-width: 44rem; margin: 4px 0 18px; padding: 12px 16px 10px;
    border: 1px solid var(--qp-selected); border-radius: 10px;
    background: color-mix(in srgb, var(--qp-selected) 45%, transparent); }
:root body #mainContent #quizSection .journey-note--marking { max-width: none; }
:root body #mainContent #quizSection .journey-note-eyebrow { display: block; margin-bottom: 4px;
    font: 600 .6875rem/1.3 var(--qp-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--qp-link); }
:root body #mainContent #quizSection .journey-note p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--qp-ink); }
:root body #mainContent #quizSection .journey-note-next { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--qp-rule); font-size: .8125rem; color: var(--qp-ink-3); }
:root body #mainContent #quizSection .journey-note-next b { color: var(--qp-ink-2); font-weight: 600; }
:root body #mainContent #quizSection .journey-note-next button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 8px;
    border: 0; background: var(--qp-action); color: var(--qp-action-ink); font: 600 .8125rem/1 var(--qp-sans, inherit); cursor: pointer; }
:root body #mainContent #quizSection .journey-note-next button:hover { background: var(--qp-action-hover); }
:root body #mainContent #quizSection .journey-note-next button:focus-visible { outline: 2px solid var(--qp-focus); outline-offset: 2px; }

/* Below desktop the subject title needs the room: the strip is dots only. */
@media (max-width: 999.98px) {
    .journey-strip [data-state="current"] .journey-label {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 700px) {
    .journey-strip { gap: 3px; margin-left: 0; }
    .journey-strip li { gap: 3px; }
    .journey-strip li + li::before { width: 4px; }
    .journey-dot { width: 12px; height: 12px; font-size: 0; }
}
