/* Lessons and exercises as a level path (owner's pick "C", 1 Nov 2026).
   A lesson is a round violet node with a book (read to learn); an exercise is a night diamond with a gold pen
   (do it and get marked). A done step turns into an aqua tick, the next step glows gold. A dotted line joins the
   steps. Used by the skill roadmaps on /study/ielts and the set outline beside every lesson and exercise. */
:root {
  --path-book: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%204h7a3%203%200%200%201%203%203v13a2%202%200%200%200-2-2H2z%27/%3E%3Cpath%20d%3D%27M22%204h-7a3%203%200%200%200-3%203v13a2%202%200%200%201%202-2h8z%27/%3E%3C/svg%3E");
  --path-pen: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23FFC83D%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2020h9%27/%3E%3Cpath%20d%3D%27M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4z%27/%3E%3C/svg%3E");
  --path-tick: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23140f2e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%206%209%2017l-5-5%27/%3E%3C/svg%3E");
  --path-diamond: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ── Skill roadmaps on /study/ielts ── */
body.ielts-dash-page .rm-pairs { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; max-width: 820px; }
body.ielts-dash-page .rm-pairs::before { content: ''; position: absolute; left: 43px; top: 44px; bottom: 44px; width: 4px; opacity: .45;
  background: repeating-linear-gradient(180deg, var(--vg-violet) 0 10px, transparent 10px 18px); }
body.ielts-dash-page .rm-pair { position: relative; display: block !important; padding: 16px 0 4px !important; overflow: visible !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important; }
body.ielts-dash-page .rm-pair-n { position: absolute !important; left: 96px; top: 0; display: block !important; width: auto !important; height: auto !important; padding: 0 !important; background: none !important;
  color: #8a85a8 !important; font: 800 12px/1.4 'Be Vietnam Pro', sans-serif !important; letter-spacing: .1em; text-transform: uppercase; }
body.ielts-dash-page .rm-pair-n::before, body.ielts-dash-page .rm-pair-n::after { display: none !important; }
body.ielts-dash-page .rm-pair-steps { display: block !important; }
body.ielts-dash-page .rm-step { margin: 0 !important; }
body.ielts-dash-page .rm-step[data-kind] > a { position: relative; display: grid !important; grid-template-columns: 72px minmax(0, 1fr) !important; column-gap: 14px !important; row-gap: 2px !important; align-items: center !important;
  padding: 12px 8px !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; clip-path: none !important; transform: none !important; }
body.ielts-dash-page .rm-step[data-kind] > a:hover { background: linear-gradient(90deg, rgba(138, 114, 246, .1), transparent 70%) !important; }
body.ielts-dash-page .rm-step[data-kind] > a:focus-visible { outline: 3px solid var(--vg-violet) !important; outline-offset: -3px; }
body.ielts-dash-page .rm-step > a > .rm-step-text { grid-column: 2; min-width: 0; }
body.ielts-dash-page .rm-step > a > .rm-step-side { grid-column: 2; margin-top: 4px !important; }
body.ielts-dash-page .rm-dot { display: none !important; }
/* the node */
body.ielts-dash-page .rm-step[data-kind] > a::before { content: '' !important; position: relative !important; z-index: 1; grid-row: 1 / span 2; align-self: start; width: 72px !important; height: 72px; inset: auto !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 32px !important; }
body.ielts-dash-page .rm-step[data-kind="lesson"] > a::before { background-color: var(--vg-violet) !important; background-image: var(--path-book) !important; border-radius: 50% !important;
  box-shadow: 0 6px 0 #5a43c9, 0 10px 18px -6px rgba(90, 67, 201, .6); }
body.ielts-dash-page .rm-step[data-kind="exercise"] > a::before { background-color: var(--vg-night) !important; background-image: var(--path-pen) !important; clip-path: var(--path-diamond); }
body.ielts-dash-page .rm-step[data-kind][data-state="done"] > a::before { background-color: var(--vg-aqua) !important; background-image: var(--path-tick) !important; box-shadow: none !important; }
body.ielts-dash-page .rm-step[data-kind][data-state="next"] > a { background: linear-gradient(90deg, rgba(255, 200, 61, .22), transparent 70%) !important; }
body.ielts-dash-page .rm-step[data-kind="lesson"][data-state="next"] > a::before { box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--vg-gold), 0 0 26px var(--vg-gold) !important; }
body.ielts-dash-page .rm-step[data-kind="exercise"][data-state="next"] > a::before { background-color: var(--vg-gold) !important; filter: drop-shadow(0 0 10px var(--vg-gold)); }
body.ielts-dash-page .rm-step.is-placeholder > a::before { opacity: .45; }
/* the words */
body.ielts-dash-page .rm-step[data-kind] .rm-step-type { display: block !important; width: auto; padding: 0 !important; background: none !important; border: 0 !important; clip-path: none !important;
  font-size: 12px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-transform: uppercase; }
body.ielts-dash-page .rm-step[data-kind="lesson"] .rm-step-type { color: #6a4fe0 !important; }
body.ielts-dash-page .rm-step[data-kind="exercise"] .rm-step-type { color: #8a6500 !important; }
body.ielts-dash-page .rm-step[data-kind="lesson"] .rm-step-title { color: var(--vg-ink) !important; font-size: 18px !important; font-weight: 800 !important; }
body.ielts-dash-page .rm-step[data-kind="exercise"] .rm-step-title { color: var(--vg-ink) !important; font-size: 16px !important; font-weight: 700 !important; }
@media (max-width: 640px) {
  body.ielts-dash-page .rm-pairs::before { left: 31px; }
  body.ielts-dash-page .rm-pair-n { left: 72px; }
  body.ielts-dash-page .rm-step[data-kind] > a { grid-template-columns: 52px minmax(0, 1fr) !important; column-gap: 12px !important; padding: 10px 6px !important; }
  body.ielts-dash-page .rm-step[data-kind] > a::before { width: 52px !important; height: 52px; background-size: 24px !important; }
  body.ielts-dash-page .rm-step[data-kind="lesson"] .rm-step-title { font-size: 17px !important; }
}

/* ── The set outline beside a lesson or an exercise ── */
html body[data-study-mode="ielts"][data-study-module] .step-outline .step-outline-list > li > ol { position: relative; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .step-outline-list > li > ol::before { content: ''; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px; opacity: .5;
  background: repeating-linear-gradient(180deg, var(--vg-violet) 0 6px, transparent 6px 11px); }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step a { padding-left: 42px !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step a::before { z-index: 1; left: 7px !important; top: 9px !important; width: 26px !important; height: 26px !important; border: 0 !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 14px !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-step$=":lesson"] a::before { border-radius: 50% !important; background-color: var(--vg-violet) !important; background-image: var(--path-book) !important; box-shadow: 0 3px 0 #5a43c9 !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-step$=":exercise"] a::before { border-radius: 0 !important; background-color: var(--vg-night) !important; background-image: var(--path-pen) !important; clip-path: var(--path-diamond); box-shadow: none !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-state="done"] a::before { background-color: var(--vg-aqua) !important; background-image: var(--path-tick) !important; box-shadow: none !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current[data-step$=":lesson"] a::before { box-shadow: 0 0 0 2px var(--vg-night), 0 0 0 4px var(--vg-gold), 0 0 12px var(--vg-gold) !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current[data-step$=":exercise"] a::before { background-color: var(--vg-gold) !important; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23140f2e%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2020h9%27/%3E%3Cpath%20d%3D%27M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4z%27/%3E%3C/svg%3E") !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-step$=":lesson"] .outline-type { color: #6a4fe0; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-step$=":exercise"] .outline-type { color: #8a6500; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step.current .outline-type { color: var(--vg-gold) !important; }
html body[data-study-mode="ielts"][data-study-module] .step-outline .outline-step[data-step$=":lesson"] a > span:last-child { font-weight: 700; }
