/* =========================================================
   Learning roadmap
   ========================================================= */
.path-page { max-width: 520px; }  /* centred single column on the path page */
.unit-banner {
  border-radius: 16px;
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.unit-banner .unit-label { opacity: .85; }
.unit-banner h2 { font-size: 1.15rem; margin: 0; }

.path {
  list-style: none;
  margin: 0;
  padding: 3rem 0 1.75rem;       /* room for the START bubble */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;                  /* leaves room for the START bubble between nodes */
  position: relative;
}
/* subtle dashed connector running down the centre */
.path::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 4px dashed var(--line);
  transform: translateX(-50%);
  z-index: 0;
}
.path li { position: relative; z-index: 1; transform: translateX(var(--x, 0)); text-align: center; }

.node {
  position: relative;            /* anchors the pulsing ring */
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.4rem;
  color: #fff;
  background: var(--locked);
  box-shadow: 0 6px 0 var(--locked-dark);
  transition: transform .1s, box-shadow .1s;
}
.node svg { width: 30px; height: 30px; }
.node:active { transform: translateY(6px); box-shadow: 0 0 0 transparent; }
.node:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.node.is-locked { color: #afafaf; cursor: not-allowed; }
.node.is-active { background: var(--brand); box-shadow: 0 6px 0 var(--brand-dark); }
.node.is-done { background: var(--gold); box-shadow: 0 6px 0 var(--gold-dark); }

/* pulsing ring + "START" bubble on the current node */
.node.is-active::after {
  content: "";
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 4px solid var(--brand);
  opacity: .35;
  animation: pulse 1.6s ease-out infinite;
}
.start-bubble {
  position: absolute;
  top: -38px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--brand);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .15rem .6rem;
  white-space: nowrap;
}
.node-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin: .55rem auto 0; max-width: 130px; line-height: 1.3; background: var(--bg); }
@keyframes pulse { from { transform: scale(.9); opacity: .5; } to { transform: scale(1.2); opacity: 0; } }

/* =========================================================
   Roadmap: unit colours and zig-zag offsets
   (classes are applied by the roadmap renderer in JS)
   ========================================================= */
.unit-1 { background: var(--brand); }
.unit-2 { background: var(--blue); }
.unit-3 { background: #ce82ff; }
.unit-4 { background: #ff9600; }
.unit-5 { background: #ff4b72; }

.path .zig-0, .path .zig-4 { --x: 0px; }
.path .zig-1, .path .zig-3 { --x: -55px; }
.path .zig-2               { --x: -80px; }
.path .zig-5, .path .zig-7 { --x: 55px; }
.path .zig-6               { --x: 80px; }
