/* Links between lessons, topics and Explore tools (connections.js). */
.topic-journey { margin: 18px 0 22px; padding: 16px; border-radius: 16px; background: var(--area-bg, #f3f7f4); border: 1px solid var(--line); }
.journey-h { margin: 0 0 10px; font-size: 20px; }
.journey-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.journey-step { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); min-width: 0; }
.journey-step h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.journey-step p { margin: 0 0 8px; }
.journey-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--area, var(--ink)); color: #fff; font-size: 14px; }
.journey-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.journey-chips button { min-width: 44px; min-height: 44px; border-radius: 10px; font-weight: 700; }
.journey-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.journey-lessons button, .tool-lesson-topic li button { width: 100%; min-height: 44px; text-align: left; display: flex; align-items: center; gap: 8px; }
.journey-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; }
.tool-chip small { color: var(--muted); font-weight: 400; }
.journey-neighbours { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.journey-neighbour { display: grid; gap: 2px; text-align: left; min-height: 44px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--area, var(--line)); flex: 1 1 220px; }
.journey-neighbour small { color: var(--muted); font-weight: 700; }
.journey-neighbour span { color: var(--muted); font-size: 14px; }
.lesson-where-next { margin: 18px 0 8px; padding: 14px; border-radius: 14px; background: #f3f7f4; border: 1px solid var(--line); display: grid; gap: 10px; }
.lesson-where-next h3, .lesson-where-next p { margin: 0; }
.teacher-where-next { justify-items: start; }
.teacher-where-next .journey-neighbour { width: 100%; }
.practice-topic-map { margin: 8px 0 0; }
.tool-lessons { margin: 24px 0 8px; padding: 16px; border-radius: 16px; background: #f3f7f4; border: 1px solid var(--line); }
.tool-lessons h2 { margin: 0 0 4px; font-size: 20px; }
.tool-lessons-note { margin: 0 0 12px; color: var(--muted); }
.tool-lesson-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.tool-lesson-topic { background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 5px solid var(--area, var(--line)); min-width: 0; }
.tool-lesson-topic p { margin: 0 0 6px; }
.tool-lesson-topic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.lesson-activity .tool-lessons { display: none; }
@media print { .topic-journey, .lesson-where-next, .tool-lessons { display: none !important; } }
.tool-lesson-topic p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tool-lesson-topic .link-button, .journey-neighbour, .tool-chip { text-align: left; }
.tool-chip small { flex-basis: 100%; padding-left: 26px; }
#hub > .tool-lessons { margin: 0 0 20px; }
.primary-link { font-weight: 700; color: var(--ink); }
