/* Карта курсу на сторінці уроку (14.11.2026): стани уроків, модулі, згортання.
   Підключається після bittobyte.css і перекриває старі правила змісту (.toc*). */

/* З lesson-ui/v2 (GAME-7c) карта курсу — у висувній панелі «☰ Курс» (css/lesson-mode.css);
   тут лишились стилі самої карти: прогрес, модулі, уроки. */

/* Шапка карти: назва, смуга прогресу, лічильник. */
.toc__bar { height: 6px; margin: 10px 0 0; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.toc__bar span { display: block; height: 100%; background: var(--accent); }

/* Модулі: читабельний заголовок, лічильник, згортання. */
.toc__group { border-top: 1px solid var(--border); }
.toc__group:first-of-type { border-top: 0; }
.toc__module {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px; cursor: pointer; list-style: none;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: none;
}
.toc__module::-webkit-details-marker { display: none; }
.toc__module::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg);
  transition: transform .15s;
}
.toc__group[open] > .toc__module::after { transform: rotate(45deg); }
.toc__group[open] > .toc__module { color: var(--text); }
.toc__module:hover { background: var(--surface2); }
.toc__module:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.toc__module-count { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.toc__group--done .toc__module-count { color: var(--accent); }
.toc__module-link { display: block; padding: 0 18px 2px; font-size: 12px; color: var(--faint); text-decoration: none; }
.toc__module-link:hover { color: var(--accent); }
.toc__list { padding: 4px 0 8px; }

/* Уроки: стан формою, а не лише кольором. */
.toc__item { gap: 10px; padding: 7px 18px; font-size: 14px; }
.toc__title { min-width: 0; }
/* Номер без рамки, стан — кружком ліворуч (14.11.2026, варіант 2). */
.toc__num { width: auto; height: auto; min-width: 26px; border: 0; border-radius: 0; justify-content: flex-start; font-weight: 400; }
.toc__state {
  flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint);
  display: flex; align-items: center; justify-content: center; color: var(--surface); box-sizing: border-box;
}
.toc__item--started .toc__state { border-color: var(--accent); background: linear-gradient(to top, var(--accent) 50%, transparent 50%); }
/* «Переглянуто» (18.11.2026): урок без тесту й завдання — зроблений, з галочкою (.toc__item--done);
   де тест чи завдання лишились — контур з оком. */
.toc__item--viewed .toc__state { border-color: var(--accent); color: var(--accent); }
.toc__item--passed .toc__state, .toc__item--mastery .toc__state, .toc__item--done .toc__state { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.toc__item[aria-current="page"] .toc__num { color: var(--accent); border: 0; font-weight: 700; }
.toc__item[aria-current="page"].toc__item--new .toc__state { border-color: var(--accent); }
.toc__item--locked { color: var(--faint); }
.toc__item--locked .toc__state { border: 0; border-radius: 0; color: var(--faint); }
.toc__next {
  margin-left: auto; flex: none; padding: 1px 7px; border: 1px solid var(--accent); border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--accent);
}
