/* ============================================================
   Giao tuyến và giao điểm — @dohoangtumath
   Chỉ phần riêng. Nền trang, nút, ô nhập, công tắc, bảng kiểm chứng
   đều lấy từ components.css.
   ============================================================ */

@import url('../../shared/components.css');

/* ── Danh sách các bước ──────────────────────────────────── */
.step-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: buoc;
}

.step-list li {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: var(--sp-3);
    font-size: var(--step--1);
    line-height: 1.55;
    color: var(--text-muted);
    text-wrap: pretty;
}

/* Số thứ tự trong một ô tròn — đọc được cả khi không phân biệt màu */
.step-list li::before {
    counter-increment: buoc;
    content: counter(buoc);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-sunken);
    border: var(--rule-width) solid var(--rule);
    border-radius: 50%;
}

/* Bước ĐANG dựng: nổi hẳn lên bằng cả màu lẫn độ đậm */
.step-list li.is-current {
    color: var(--text);
    font-weight: 500;
}
.step-list li.is-current::before {
    color: var(--text-onbrand);
    background: var(--accent);
    border-color: var(--accent);
}

/* Bước đã xong */
.step-list li.is-done::before {
    color: var(--math-fn2);
    border-color: var(--math-fn2);
}

/* Bước chưa tới — mờ đi nhưng vẫn đọc được, không dùng opacity quá thấp */
.step-list li.is-todo { color: var(--text-muted); }

/* ── Kết luận ────────────────────────────────────────────── */
.formula-display {
    padding: var(--sp-3);
    font-size: var(--step-0);
    text-align: center;
    color: var(--accent);
    background: var(--surface-sunken);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* ── Vùng vẽ ─────────────────────────────────────────────── */
#three-canvas {
    width: 100%;
    height: 100%;
}
