/* The lesson-day topic lens: the banner naming the day, and the question chip
   strip under it. Tokens only — the values these replaced were invented at the
   call site in topics.js, which put them where lint-hex could not see them
   (it scans .css alone). See docs/STYLE_GUIDE.md. */

.topic-banner {
    display: inline-block;
    margin: 12px 0 4px;
    padding: 8px 14px;
    border-radius: var(--radius);
    background: var(--ink-slate);
    color: var(--surface);
    font-size: 14px;
}

.topic-question-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

/* 44px square is the phone-portrait floor for a tap target, and a chip is a
   real one — it jumps the learner to that question. Eight of them wrap to two
   rows on a narrow phone, which the strip's flex-wrap already handles. */
.topic-question-chip {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

/* Four states, not three: the question you are on can also be finished, which
   is exactly what a submit produces. `current-done` is what a learner watches
   their just-submitted chip become. */
.topic-question-chip[data-state="current"] {
    background: var(--brand-blue);
    border: 1px solid var(--brand-blue);
    color: var(--surface);
}

.topic-question-chip[data-state="current-done"] {
    background: var(--good);
    border: 1px solid var(--good);
    color: var(--surface);
}

.topic-question-chip[data-state="done"] {
    background: var(--surface);
    border: 1px solid var(--good);
    color: var(--good);
}

.topic-question-chip[data-state="todo"] {
    background: var(--surface-sunken);
    border: 1px solid var(--border-strong);
    color: var(--ink-secondary);
}
