/* ============================================================
   Educatone — Spacious, readable course roadmap
   ============================================================ */

.rm { position: relative; }

.rm-mod { position: relative; padding-left: 84px; padding-bottom: var(--space-10); }
.rm-mod::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: -8px; width: 3px;
  background: var(--border); border-radius: 3px;
}
.rm-mod.done::before { background: var(--color-success); opacity: .5; }
.rm-mod:last-child::before { display: none; }

/* Node */
.rm-node {
  position: absolute; left: 0; top: 4px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 800; z-index: 1;
}
.rm-node svg { width: 24px; height: 24px; }
.rm-node.done { background: var(--color-success); color: #fff; }
.rm-node.progress { background: var(--color-primary); color: #fff; box-shadow: 0 0 0 6px var(--color-primary-ring); }
.rm-node.locked { background: var(--surface); border: 3px solid var(--border); color: var(--text-muted); }

/* Module header */
.rm-mod__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.rm-mod__eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.rm-mod.progress .rm-mod__eyebrow { color: var(--color-primary); }
.rm-mod__titles h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 5px; line-height: 1.2; }
.rm-mod.locked .rm-mod__titles h3 { color: var(--text-soft); }

.rm-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 700; }
.rm-pill svg { width: 15px; height: 15px; }
.rm-pill.done { background: var(--color-success-soft); color: #15803D; }
.rm-pill.progress { background: var(--color-primary-soft); color: var(--color-primary-hover); }
.rm-pill.lock { background: var(--surface-2); color: var(--text-muted); }

/* Lessons */
.rm-lessons { display: flex; flex-direction: column; gap: var(--space-3); }
.rm-lesson {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rm-lesson:not(.lock):hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.rm-lesson.cur { border-color: var(--color-primary); background: var(--color-primary-soft); border-width: 2px; padding: calc(var(--space-5) - 1px); box-shadow: var(--shadow-md); }
.rm-lesson.lock { background: var(--surface-2); border-style: dashed; }

.rm-lesson__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.rm-lesson__dot svg { width: 19px; height: 19px; }
.rm-lesson__dot.done { background: var(--color-success-soft); color: #15803D; }
.rm-lesson__dot.cur { background: var(--color-primary); color: #fff; }
.rm-lesson__dot.lock { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

.rm-lesson__body { flex: 1; min-width: 0; }
.rm-lesson__title { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.rm-lesson.lock .rm-lesson__title { color: var(--text-soft); font-weight: 500; }
.rm-lesson__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rm-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.rm-tag.video { background: var(--surface-2); color: var(--text-soft); }
.rm-tag.hw { background: var(--color-warning-soft); color: #B45309; }
.rm-tag.test { background: #EDE9FE; color: #6D28D9; }
.rm-tag.project { background: #E0F2FE; color: #0369A1; }

.rm-lesson__action { flex-shrink: 0; }
.rm-go { height: 44px; padding: 0 20px; font-size: 14.5px; gap: 7px; }
.rm-state { font-size: 13.5px; font-weight: 600; }
.rm-state.done { color: var(--color-success); }
.rm-state.lock { color: var(--text-muted); }

@media (max-width: 720px) {
  .rm-mod { padding-left: 0; }
  .rm-mod::before { display: none; }
  .rm-node { position: static; margin-bottom: var(--space-3); width: 48px; height: 48px; font-size: 18px; }
  .rm-mod__titles h3 { font-size: 19px; }
  .rm-lesson { flex-wrap: wrap; padding: var(--space-4); }
  .rm-lesson__action { width: 100%; }
  .rm-go { width: 100%; }
}
